/* ==========================================================================
   Kaplan Property Solutions — Stylesheet
   Built by GD Technology (https://gdtecho.com)
   -----------------------------------------------------------------------
   TABLE OF CONTENTS
   1. Tokens (edit brand colours / fonts here)
   2. Reset & base
   3. Layout helpers
   4. Header / nav
   5. Buttons & tags (key-tag signature element)
   6. Hero
   7. Sections (generic)
   8. Property cards
   9. Forms
   10. Footer
   11. Utilities & responsive
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root{
  --ink:        #16233A;   /* primary — headers, nav, dark panels */
  --ink-80:     #223454;
  --brass:      #B08D57;   /* accent — CTAs, key-tag, highlights */
  --brass-dark: #93743F;
  --sage:       #6F8069;   /* secondary accent — alt sections */
  --parchment:  #F6F3EC;   /* background */
  --parchment-dim: #EDE8DB;
  --paper:      #FFFFFF;
  --ink-text:   #22221F;
  --ink-soft:   #4A4A45;
  --line:       #DAD3C2;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;

  --radius: 4px;
  --shadow-card: 0 1px 2px rgba(22,35,58,0.06), 0 8px 24px rgba(22,35,58,0.07);
  --shadow-lift: 0 4px 8px rgba(22,35,58,0.08), 0 16px 40px rgba(22,35,58,0.12);
  --max-width: 1180px;
}

/* 2. RESET & BASE ----------------------------------------------------------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-text);
  background: var(--parchment);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--ink);
  letter-spacing: -0.01em;
}
h1{ font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; }
h2{ font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3{ font-size: 1.3rem; }
p{ margin: 0 0 1em; color: var(--ink-soft); }
.eyebrow{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 0.9em;
}
.eyebrow::before{
  content: '';
  width: 22px; height: 1px;
  background: var(--brass-dark);
  display: inline-block;
}
:focus-visible{ outline: 2px solid var(--brass); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* 3. LAYOUT ------------------------------------------------------------------ */
.wrap{ max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section{ padding: 88px 0; }
.section--tight{ padding: 56px 0; }
.section--ink{ background: var(--ink); color: var(--parchment); }
.section--ink h2, .section--ink h3{ color: var(--paper); }
.section--ink p{ color: #C7CDD9; }
.section--sage{ background: var(--sage); color: var(--paper); }
.section--sage h2, .section--sage h3{ color: var(--paper); }
.section--sage p{ color: #E2E7DE; }
.section--dim{ background: var(--parchment-dim); }
.grid{ display: grid; gap: 32px; }
.grid--2{ grid-template-columns: repeat(2, 1fr); }
.grid--3{ grid-template-columns: repeat(3, 1fr); }
.grid--4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px){
  .grid--3, .grid--4{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .grid--2, .grid--3, .grid--4{ grid-template-columns: 1fr; }
  .section{ padding: 56px 0; }
}

/* 4. HEADER / NAV ------------------------------------------------------------ */
.site-header{
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,243,236,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap{
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px;
}
.brand{ display: flex; align-items: center; gap: 12px; }
.brand-mark{ width: 40px; height: 40px; flex-shrink: 0; }
.brand-text{ display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong{
  font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); font-weight: 600;
}
.brand-text span{
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--brass-dark);
}
.nav-links{ display: flex; gap: 34px; align-items: center; }
.nav-links a{
  font-size: 0.95rem; font-weight: 500; color: var(--ink);
  position: relative; padding: 4px 0;
}
.nav-links a::after{
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--brass); transition: right 0.25s ease;
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after{ right: 0; }
.nav-links a[aria-current="page"]{ color: var(--brass-dark); }
.nav-cta{ display: flex; align-items: center; gap: 18px; }
.nav-toggle{ display: none; }
@media (max-width: 860px){
  .nav-links{
    position: fixed; inset: 68px 0 0 0; background: var(--parchment);
    flex-direction: column; justify-content: flex-start; padding: 40px 24px;
    gap: 28px; transform: translateX(100%); transition: transform 0.3s ease;
  }
  .nav-links.open{ transform: translateX(0); }
  .nav-toggle{
    display: flex; flex-direction: column; gap: 5px; background: none; border: none;
    cursor: pointer; padding: 8px;
  }
  .nav-toggle span{ width: 24px; height: 2px; background: var(--ink); }
  .nav-cta .btn span.btn-full-label{ display: none; }
}

/* 5. BUTTONS & KEY-TAG SIGNATURE --------------------------------------------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.92rem;
  padding: 13px 26px; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn--brass{ background: var(--brass); color: var(--ink); }
.btn--brass:hover{ background: var(--brass-dark); transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn--ghost{ background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover{ background: var(--ink); color: var(--parchment); }
.btn--ghost-light{ background: transparent; color: var(--paper); border-color: rgba(255,255,255,0.5); }
.btn--ghost-light:hover{ background: var(--paper); color: var(--ink); }

/* Key-tag: the recurring signature shape — a die-cut estate-agent key fob */
.key-tag{
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  clip-path: polygon(0 14%, 14% 0, 100% 0, 100% 86%, 86% 100%, 0 100%);
}
.key-tag::before{
  content: '';
  position: absolute; top: 14px; left: 14px;
  width: 9px; height: 9px; border-radius: 50%;
  border: 1.5px solid var(--brass-dark);
  background: var(--parchment);
}

/* 6. HERO --------------------------------------------------------------------- */
.hero{
  position: relative;
  background: var(--ink);
  color: var(--parchment);
  overflow: hidden;
  padding: 100px 0 0;
}
.hero .wrap{
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
}
.hero-copy p{ color: #C7CDD9; max-width: 46ch; font-size: 1.08rem; }
.hero-copy h1{ color: var(--paper); }
.hero-copy h1 em{
  font-style: normal; color: var(--brass);
}
.hero-actions{ display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats{
  display: flex; gap: 34px; margin-top: 56px; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.hero-stats div strong{
  display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--paper);
}
.hero-stats div span{
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: #9AA5B8;
}
.hero-art{ position: relative; }
.hero-terrace{ width: 100%; height: auto; }
@media (max-width: 900px){
  .hero .wrap{ grid-template-columns: 1fr; }
  .hero{ padding-top: 56px; }
  .hero-stats{ flex-wrap: wrap; row-gap: 18px; }
}

/* 7. GENERIC CONTENT SECTIONS -------------------------------------------------- */
.section-head{ max-width: 640px; margin-bottom: 48px; }
.section-head--center{ margin-left: auto; margin-right: auto; text-align: center; }
.feature{
  padding: 30px 26px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  height: 100%;
}
.feature svg{ width: 34px; height: 34px; color: var(--brass-dark); margin-bottom: 16px; }
.feature h3{ margin-bottom: 8px; }
.feature p{ margin-bottom: 0; font-size: 0.95rem; }

.step-row{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step{ padding: 28px 24px 28px 0; border-right: 1px solid var(--line); position: relative; }
.step:last-child{ border-right: none; }
.step .step-num{ font-family: var(--font-mono); color: var(--brass-dark); font-size: 0.85rem; }
@media (max-width: 860px){
  .step-row{ grid-template-columns: 1fr; }
  .step{ border-right: none; border-bottom: 1px solid var(--line); padding: 24px 0; }
}

.quote-block{
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; color: var(--ink);
  max-width: 60ch; line-height: 1.4;
}
.quote-attr{
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--brass-dark);
  margin-top: 18px; text-transform: uppercase; letter-spacing: 0.06em;
}

.area-list{ display: flex; flex-wrap: wrap; gap: 12px; }
.area-list li{
  font-family: var(--font-mono); font-size: 0.82rem; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
}

/* 8. PROPERTY CARDS ------------------------------------------------------------ */
.property-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 980px){ .property-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px){ .property-grid{ grid-template-columns: 1fr; } }

.property-card{
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-card); transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex; flex-direction: column;
}
.property-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.property-media{
  position: relative; aspect-ratio: 4/3; background: var(--ink);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.property-media svg{ width: 78%; height: 78%; }
.property-status{
  position: absolute; top: 14px; left: 14px;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; background: var(--brass); color: var(--ink); font-weight: 600;
}
.property-status--let{ background: var(--sage); color: var(--paper); }
.property-status--sold{ background: var(--ink-80); color: var(--paper); }
.property-body{ padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.property-price{
  font-family: var(--font-mono); font-weight: 600; font-size: 1.05rem; color: var(--brass-dark); margin-bottom: 4px;
}
.property-addr{ font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 10px; color: var(--ink); }
.property-meta{
  display: flex; gap: 16px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 0.82rem; color: var(--ink-soft); font-family: var(--font-mono);
}
.property-meta span{ display: flex; align-items: center; gap: 5px; }

.filter-bar{ display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-btn{
  font-family: var(--font-mono); font-size: 0.78rem; padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); cursor: pointer; transition: all 0.15s ease;
}
.filter-btn:hover{ border-color: var(--brass-dark); }
.filter-btn.active{ background: var(--ink); color: var(--parchment); border-color: var(--ink); }

/* 9. FORMS --------------------------------------------------------------------- */
.form-card{
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow-card);
}
.form-row{ display: grid; gap: 20px; margin-bottom: 20px; }
.form-row--2{ grid-template-columns: 1fr 1fr; }
@media (max-width: 560px){ .form-row--2{ grid-template-columns: 1fr; } }
label{
  display: block; font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 8px; color: var(--ink-soft);
}
input, select, textarea{
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.96rem; background: var(--parchment); color: var(--ink-text);
}
input:focus, select:focus, textarea:focus{ outline: 2px solid var(--brass); outline-offset: 1px; border-color: var(--brass); }
textarea{ resize: vertical; min-height: 120px; }
.form-note{ font-size: 0.82rem; color: var(--ink-soft); margin-top: 14px; }

.contact-strip{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
@media (max-width: 780px){ .contact-strip{ grid-template-columns: 1fr; } }
.contact-item{ display: flex; gap: 14px; align-items: flex-start; }
.contact-item svg{ width: 22px; height: 22px; color: var(--brass-dark); flex-shrink: 0; margin-top: 3px; }
.contact-item strong{ display: block; font-family: var(--font-display); font-size: 1rem; margin-bottom: 2px; color: var(--ink); }
.contact-item span, .contact-item a{ font-size: 0.92rem; color: var(--ink-soft); }

.map-embed{ border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 360px; }
.map-embed iframe{ width: 100%; height: 100%; border: 0; }

/* 10. FOOTER --------------------------------------------------------------------- */
.site-footer{ background: var(--ink); color: #C7CDD9; padding: 64px 0 0; }
.footer-grid{ display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
@media (max-width: 780px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-brand strong{ font-family: var(--font-display); color: var(--paper); font-size: 1.2rem; display: block; margin-bottom: 10px; }
.footer-brand p{ color: #9AA5B8; font-size: 0.9rem; max-width: 32ch; }
.footer-col h4{
  font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--brass); margin-bottom: 16px; font-weight: 600;
}
.footer-col ul li{ margin-bottom: 10px; }
.footer-col a{ color: #C7CDD9; font-size: 0.92rem; }
.footer-col a:hover{ color: var(--brass); }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.12); padding: 22px 0; display: flex;
  justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 0.82rem; color: #8B93A3;
}
.footer-bottom a{ color: #C7CDD9; }
.footer-bottom a:hover{ color: var(--brass); }
.credit{ font-family: var(--font-mono); font-size: 0.78rem; }
.credit a{ color: var(--brass); font-weight: 600; }

/* 11. UTILITIES ------------------------------------------------------------------ */
.mt-0{ margin-top: 0; } .mb-0{ margin-bottom: 0; }
.text-center{ text-align: center; }
.stack-center{ display: flex; flex-direction: column; align-items: center; }
.tag-pill{
  display: inline-block; font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 5px 12px; border-radius: 999px; background: var(--parchment-dim);
  color: var(--ink-soft); border: 1px solid var(--line);
}
