/* ==========================================================================
   Avoro Group — Real Estate
   Art direction: warm ivory ground, deep navy ink, muted gold accent.
   Editorial real-estate feel. Fraunces (display) + Inter (text).
   ========================================================================== */

:root {
  /* Palette */
  --ivory: #f7f1e5;
  --ivory-2: #efe6d2;
  --paper: #fbf7ec;
  --cream: #f1e6cf;
  --ink: #0e1626;          /* deep navy */
  --ink-2: #1f2a44;
  --muted: #5a6478;
  --rule: #d8cbab;
  --gold: #b08a3e;          /* refined, not yellow */
  --gold-2: #8e6e2a;
  --forest: #2e4030;
  --danger: #a3341d;
  --success: #2e5d3a;

  /* Type */
  --font-display: "Fraunces", "Georgia", "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Scale */
  --fs-eyebrow: 0.78rem;
  --fs-body: 1.0625rem;
  --fs-lede: 1.2rem;
  --fs-h3: 1.35rem;
  --fs-h2: clamp(1.85rem, 3.2vw, 2.75rem);
  --fs-h1: clamp(2.4rem, 5.2vw, 4.25rem);

  /* Layout */
  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 4px;
  --radius-lg: 10px;

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(176,138,62,0.45); text-underline-offset: 3px; transition: color .2s var(--ease), text-decoration-color .2s var(--ease); }
a:hover { color: var(--gold-2); text-decoration-color: var(--gold-2); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; line-height: 1.12; margin: 0 0 .6em; color: var(--ink); }
h1 { font-size: var(--fs-h1); letter-spacing: -0.025em; line-height: 1.04; font-weight: 500; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.02em; }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; }
h4 { font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; font-family: var(--font-sans); font-weight: 600; color: var(--ink-2); }
p { margin: 0 0 1rem; }
strong { font-weight: 600; }

ul { padding-left: 1.1rem; }

/* Helpers */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--ivory); padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

.eyebrow, .section-eyebrow {
  font-size: var(--fs-eyebrow);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-2);
  font-weight: 600;
  margin: 0 0 1rem;
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,241,229,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; padding-bottom: 1rem; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 38px; height: 38px; color: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
.brand-sub { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-2); margin-top: .3rem; font-weight: 500; }

.primary-nav ul { list-style: none; display: flex; gap: 1.75rem; margin: 0; padding: 0; }
.primary-nav a { text-decoration: none; font-size: .95rem; color: var(--ink-2); font-weight: 500; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--gold-2); }

.nav-toggle { display: none; width: 42px; height: 42px; background: transparent; border: 1px solid var(--rule); border-radius: var(--radius); cursor: pointer; padding: 0; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .25s var(--ease), opacity .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-sans); font-weight: 600; font-size: .98rem;
  padding: .9rem 1.5rem; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn-primary { background: var(--ink); color: var(--ivory); }
.btn-primary:hover { background: var(--ink-2); color: var(--ivory); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--ivory); }
.btn-block { width: 100%; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3.5rem, 7vw, 6rem);
  background:
    radial-gradient(ellipse at top right, rgba(176,138,62,0.10), transparent 55%),
    linear-gradient(180deg, var(--paper), var(--ivory));
  overflow: hidden;
}
.hero::after {
  /* Subtle horizon rule */
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule), transparent);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-copy h1 { margin-bottom: 1.25rem; }
.lede { font-size: var(--fs-lede); color: var(--muted); max-width: 36ch; line-height: 1.55; }
.cta-row { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2rem; }

.hero-meta { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; border-top: 1px solid var(--rule); padding-top: 1.75rem; }
.hero-meta li { display: flex; flex-direction: column; gap: .35rem; }
.hero-meta strong { font-family: var(--font-display); font-size: 1.65rem; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.hero-meta span { font-size: .85rem; color: var(--muted); line-height: 1.45; }

.hero-visual { position: relative; }
.hero-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(14,22,38,.45), 0 1px 0 rgba(255,255,255,.6) inset;
  border: 1px solid var(--rule);
  background: var(--paper);
}
.hero-card svg { width: 100%; height: auto; display: block; }
.hero-badge {
  position: absolute; left: -1.25rem; bottom: -1.25rem;
  background: var(--ivory);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: .9rem 1.1rem;
  display: flex; align-items: center; gap: .85rem;
  box-shadow: 0 20px 40px -20px rgba(14,22,38,.25);
  color: var(--ink);
  max-width: 260px;
}
.hero-badge strong { display: block; font-family: var(--font-display); font-size: 1rem; font-weight: 600; }
.hero-badge span { display: block; font-size: .82rem; color: var(--muted); }
.hero-badge svg { color: var(--gold-2); flex-shrink: 0; }

/* ==========================================================================
   Section layout
   ========================================================================== */
.section { padding: clamp(4rem, 8vw, 7rem) 0; border-top: 1px solid var(--rule); }
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-intro { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }

.two-col { display: grid; grid-template-columns: 200px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.col-label { display: flex; align-items: center; gap: 1rem; position: sticky; top: 100px; padding-top: .55rem; }
.col-label .rule { display: block; flex-shrink: 0; width: 36px; height: 1px; background: var(--gold); }
.col-label .section-eyebrow { margin: 0; }
.col-body h2 { margin-bottom: 1.25rem; max-width: 22ch; }
.col-body p { color: var(--ink-2); max-width: 62ch; }

.values { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.values li { padding: 1rem 0; border-top: 1px solid var(--rule); color: var(--ink-2); }
.values li:last-child { border-bottom: 1px solid var(--rule); }
.values strong { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--ink); display: inline-block; min-width: 9rem; }

/* ==========================================================================
   Services
   ========================================================================== */
.section-services { background: var(--paper); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.service-card {
  background: var(--ivory);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -28px rgba(14,22,38,.35); border-color: var(--gold); }
.service-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); margin-bottom: 1.25rem;
}
.service-icon svg { width: 22px; height: 22px; }
.service-card h3 { margin-bottom: .6rem; }
.service-card p { color: var(--muted); margin-bottom: 0; }
.service-card--accent { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.service-card--accent h3, .service-card--accent p { color: var(--ivory); }
.service-card--accent .service-icon { background: rgba(247,241,229,0.08); color: var(--ivory); }
.service-card--accent p { opacity: .82; }
.service-card--accent:hover { border-color: var(--gold); }
.card-link { display: inline-block; margin-top: 1.2rem; color: var(--gold); text-decoration: none; font-weight: 600; }
.card-link:hover { color: var(--ivory); }

/* ==========================================================================
   Contact form
   ========================================================================== */
.section-contact { background: var(--ivory); }
.contact-form { margin-top: 2rem; max-width: 640px; }
.field { display: flex; flex-direction: column; margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field-row .field { margin-bottom: 1.1rem; }
.field label { font-size: .85rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .45rem; }
.field input, .field textarea {
  font: inherit;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  color: var(--ink);
  width: 100%;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #9a8f74; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(14,22,38,0.08);
  background: var(--ivory);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(163,52,29,0.12);
}

.consent {
  border: 1px solid var(--rule);
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 1rem 0 1.5rem;
}
.consent .check { display: flex; gap: .85rem; align-items: flex-start; cursor: pointer; }
.consent input[type="checkbox"] {
  margin-top: .3rem;
  width: 18px; height: 18px;
  accent-color: var(--ink);
  flex-shrink: 0;
}
.consent .check span { font-size: .88rem; line-height: 1.55; color: var(--ink-2); }
.consent a { font-weight: 600; }

.form-status { margin: 1rem 0 0; min-height: 1.4em; font-size: .95rem; color: var(--success); }
.form-status.is-error { color: var(--danger); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: var(--ivory);
  padding: clamp(3rem, 6vw, 5rem) 0 1.5rem;
  margin-top: 4rem;
}
.site-footer a { color: var(--ivory); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); padding-bottom: 2.5rem; border-bottom: 1px solid rgba(247,241,229,0.12); }
.footer-brand .brand-mark { width: 40px; height: 40px; color: var(--ivory); margin-bottom: 1rem; }
.footer-tag { max-width: 36ch; color: var(--ivory); opacity: .8; }
.footer-legal { font-size: .82rem; color: var(--ivory); opacity: .55; margin-top: 1rem; letter-spacing: .04em; }
.footer-col h4 { color: var(--gold); margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-col li { font-size: .95rem; color: rgba(247,241,229,0.82); line-height: 1.5; }
.contact-list li a { display: inline-block; }
.footer-bottom { padding-top: 1.5rem; font-size: .82rem; color: rgba(247,241,229,0.55); }

/* ==========================================================================
   Legal pages
   ========================================================================== */
.page-legal { background: var(--paper); }
.legal { padding: clamp(3rem, 6vw, 5rem) 0; }
.legal-wrap { max-width: 760px; margin: 0 auto; }
.legal-head { margin-bottom: 2.5rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--rule); }
.legal-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .5rem; }
.legal-meta { color: var(--muted); font-size: .92rem; margin: 0; }
.legal section { padding: 1.75rem 0; border-bottom: 1px solid var(--rule); }
.legal section:last-of-type { border-bottom: 0; }
.legal h2 { font-size: 1.5rem; margin-top: 0; margin-bottom: .9rem; }
.legal h3 { font-size: 1.05rem; font-family: var(--font-sans); font-weight: 700; letter-spacing: 0; text-transform: none; margin-top: 1.5rem; margin-bottom: .5rem; color: var(--ink); }
.legal p, .legal li { color: var(--ink-2); }
.legal address { font-style: normal; line-height: 1.7; background: var(--ivory); padding: 1.1rem 1.25rem; border-radius: var(--radius); border: 1px solid var(--rule); display: inline-block; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-badge { left: 0; bottom: -1rem; }
  .two-col { grid-template-columns: 1fr; }
  .col-label { position: static; padding-top: 0; }
  .col-label .rule { width: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    max-height: 0; overflow: hidden;
    transition: max-height .3s var(--ease);
  }
  .primary-nav.is-open { max-height: 500px; }
  .primary-nav ul { flex-direction: column; gap: 0; padding: .5rem 0; }
  .primary-nav li { border-top: 1px solid var(--rule); }
  .primary-nav a { display: block; padding: 1rem var(--gutter); font-size: 1rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .hero-meta { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-badge { position: static; margin-top: 1rem; max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
