/* ================================================================
   Mark Purnell — Personal Agent Website
   FL Advertising Compliance (FAC 61J2-10.025):
   - Brokerage name adjacent to contact info
   - Agent name never larger than brokerage name
   - No false or misleading claims
   ================================================================ */

/* ── self-hosted fonts ──────────────────────────────────────────── */

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/dm-sans-regular.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dm-sans-400i.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/playfair-regular.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── tokens ─────────────────────────────────────────────────────── */

:root {
  --c-bg:         #f8f7f4;
  --c-surface:    #ffffff;
  --c-surface-2:  #f1efeb;
  --c-text:       #1b1b1b;
  --c-text-muted: #6b6b6b;
  --c-text-light: #999;
  --c-accent:     #1a4d3e;
  --c-accent-h:   #133b30;
  --c-border:     #e4e2dd;
  --c-hero-bg:    #0e2e24;

  --ff-sans:      'DM Sans', system-ui, -apple-system, sans-serif;
  --ff-serif:     'Playfair Display', 'Georgia', serif;

  --sp-2xs: 0.125rem;
  --sp-xs:  0.25rem;
  --sp-sm:  0.5rem;
  --sp-md:  1rem;
  --sp-lg:  1.5rem;
  --sp-xl:  2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 4.5rem;
  --sp-4xl: 6rem;

  --w-max:    1120px;
  --w-narrow: 640px;
  --radius:   10px;
  --radius-lg: 16px;
}

/* ── reset ──────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--ff-sans); font-size: 1rem; line-height: 1.65;
       color: var(--c-text); background: var(--c-bg); -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4 { margin: 0; font-family: var(--ff-serif); font-weight: 600; line-height: 1.2; }
p { margin: 0 0 var(--sp-md); }
a { color: var(--c-accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-accent-h); }
address { font-style: normal; }
img { display: block; max-width: 100%; }

/* ── layout ─────────────────────────────────────────────────────── */

.wrap          { width: 100%; max-width: var(--w-max); margin: 0 auto; padding: 0 var(--sp-xl); }
.wrap--narrow  { max-width: var(--w-narrow); }

/* ── grain canvas (WebGL) ───────────────────────────────────────── */

.grain-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: multiply;
}

/* ── header ─ FL: brokerage ≥ agent name size ───────────────────── */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(248, 247, 244, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
}

.header__inner {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: var(--sp-md) var(--sp-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2xs);
}

/* FL compliance: brokerage 1rem, agent 0.875rem */
.header__brokerage {
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-text);
  letter-spacing: 0.02em;
}

.header__agent {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-text-muted);
}

.header__nav {
  display: flex;
  gap: var(--sp-lg);
}

.header__nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-text-muted);
  transition: color .2s;
}

.header__nav a:hover {
  color: var(--c-text);
  text-decoration: none;
}

/* ── hero ────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--c-hero-bg);
}

.hero__image-wrap {
  position: absolute;
  inset: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--c-hero-bg);
  opacity: 0.45;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: var(--sp-4xl) var(--sp-xl) var(--sp-3xl);
  max-width: var(--w-max);
  margin: 0 auto;
  width: 100%;
  color: #fff;
}

/* FL: brokerage name same/larger than agent */
.hero__brokerage {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.85;
  margin: 0 0 var(--sp-md);
}

.hero__title {
  font-family: var(--ff-serif);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 var(--sp-md);
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: 1.35rem;
  font-weight: 300;
  opacity: 0.9;
  margin: 0 0 var(--sp-sm);
}

.hero__tagline {
  font-family: var(--ff-serif);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 400;
  opacity: 0.7;
  margin: 0 0 var(--sp-xl);
}

.hero__actions {
  display: flex;
  gap: var(--sp-md);
  flex-wrap: wrap;
  margin-bottom: var(--sp-xl);
}

.hero__contact {
  margin-top: var(--sp-md);
}

/* ── buttons ────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.75rem;
  font-family: var(--ff-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  text-decoration: none;
}

.btn--primary {
  background: #fff;
  color: var(--c-accent);
  border-color: #fff;
}

.btn--primary:hover {
  background: var(--c-surface-2);
  color: var(--c-accent-h);
  text-decoration: none;
}

.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

.btn--outline:hover {
  border-color: #fff;
  color: #fff;
  text-decoration: none;
}

/* dark-on-light buttons for non-hero sections */
.section--contact .btn--primary {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
}

.section--contact .btn--primary:hover {
  background: var(--c-accent-h);
  border-color: var(--c-accent-h);
  color: #fff;
  text-decoration: none;
}

.section--contact .btn--outline {
  color: var(--c-accent);
  border-color: var(--c-border);
}

.section--contact .btn--outline:hover {
  border-color: var(--c-accent);
  color: var(--c-accent-h);
  text-decoration: none;
}

/* ── contact block (reusable) ───────────────────────────────────── */

.contact-block {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}

.contact-brokerage {
  font-size: 0.95rem;
  font-weight: 600;
}

.contact-agent {
  font-size: 0.875rem;
}

.contact-detail {
  font-size: 0.875rem;
}

/* hero variant */
.contact-block--hero {
  color: rgba(255,255,255,0.75);
}
.contact-block--hero .contact-brokerage {
  color: rgba(255,255,255,0.95);
}
.contact-block--hero a {
  color: rgba(255,255,255,0.75);
}
.contact-block--hero a:hover {
  color: #fff;
}

/* contact section variant */
.contact-block--contact {
  align-items: center;
  text-align: center;
  margin-bottom: var(--sp-xl);
}
.contact-block--contact .contact-brokerage { font-size: 1.1rem; }
.contact-block--contact .contact-agent     { font-size: 1rem;   }
.contact-block--contact .contact-detail    { font-size: 1rem;   }

/* footer variant */
.contact-block--footer {
  color: rgba(255,255,255,0.75);
}
.contact-block--footer .contact-brokerage {
  color: rgba(255,255,255,0.95);
}
.contact-block--footer a {
  color: rgba(255,255,255,0.85);
}
.contact-block--footer a:hover {
  color: #fff;
}

/* ── sections ───────────────────────────────────────────────────── */

.section {
  padding: var(--sp-4xl) 0;
}

.section--about       { background: var(--c-surface); }
.section--specialties { background: var(--c-bg); }
.section--areas       { background: var(--c-surface); }
.section--profiles    { background: var(--c-bg); }
.section--contact     { background: var(--c-surface); text-align: center; }

.section__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--sp-sm);
}

.section__heading {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  margin-bottom: var(--sp-2xl);
  color: var(--c-text);
}

.section__intro {
  font-size: 1.1rem;
  color: var(--c-text-muted);
  max-width: 440px;
  margin: 0 auto var(--sp-xl);
}

/* ── about ──────────────────────────────────────────────────────── */

.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2xl);
}

.about__photo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about__headshot {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.about__photo-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2xs);
  margin-top: var(--sp-lg);
  text-align: center;
}

/* FL: brokerage name ≥ agent name */
.about__photo-name {
  font-family: var(--ff-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--c-text);
}

.about__photo-brokerage {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--c-accent);
  letter-spacing: 0.02em;
}

.about__content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xl);
}

.about__text p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--c-text);
}

.about__text p:last-child { margin-bottom: 0; }

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--sp-lg);
  background: var(--c-bg);
  border-radius: var(--radius-lg);
}

.stat-card__value {
  font-family: var(--ff-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-accent);
  margin-bottom: var(--sp-xs);
}

.stat-card__label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── specialties ────────────────────────────────────────────────── */

.specialties__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sp-lg);
}

.spec-card {
  padding: var(--sp-xl);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  transition: border-color .25s, box-shadow .25s;
}

.spec-card:hover {
  border-color: var(--c-accent);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.spec-card__icon {
  display: block;
  font-size: 1.75rem;
  margin-bottom: var(--sp-md);
}

.spec-card__title {
  font-family: var(--ff-serif);
  font-size: 1.15rem;
  margin-bottom: var(--sp-sm);
}

.spec-card__text {
  font-size: 0.9rem;
  color: var(--c-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ── service areas ──────────────────────────────────────────────── */

.areas__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--sp-md);
}

.area-card {
  padding: var(--sp-lg) var(--sp-xl);
  background: var(--c-bg);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}

.area-card:hover {
  border-color: var(--c-border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.area-card__name {
  font-family: var(--ff-serif);
  font-size: 1.05rem;
  margin-bottom: var(--sp-xs);
}

.area-card__desc {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  margin: 0;
}

/* ── profiles ───────────────────────────────────────────────────── */

.profiles__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sp-md);
}

.profile-card {
  display: flex;
  flex-direction: column;
  padding: var(--sp-xl);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  transition: border-color .25s, box-shadow .25s;
  text-decoration: none;
  position: relative;
}

.profile-card:hover {
  border-color: var(--c-accent);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  text-decoration: none;
}

.profile-card__name {
  font-family: var(--ff-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: var(--sp-xs);
}

.profile-card__desc {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  flex: 1;
}

.profile-card__arrow {
  position: absolute;
  top: var(--sp-xl);
  right: var(--sp-xl);
  font-size: 1.25rem;
  color: var(--c-text-light);
  transition: color .2s, transform .2s;
}

.profile-card:hover .profile-card__arrow {
  color: var(--c-accent);
  transform: translateX(4px);
}

/* ── contact CTA ────────────────────────────────────────────────── */

.contact__cta {
  display: flex;
  gap: var(--sp-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ── footer ─────────────────────────────────────────────────────── */

.footer {
  background: var(--c-hero-bg);
  color: rgba(255,255,255,0.6);
  padding: var(--sp-3xl) 0 var(--sp-xl);
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-xl);
  padding-bottom: var(--sp-2xl);
  margin-bottom: var(--sp-xl);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2xs);
}

/* FL: brokerage name ≥ agent name */
.footer__brokerage {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}

.footer__agent {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
}

/* ── footer social links ── */

.footer__social {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.footer__social-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.footer__social-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
}

.footer__social-links a {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: var(--sp-sm) var(--sp-md);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  transition: color .2s, border-color .2s, background .2s;
  text-decoration: none;
}

.footer__social-links a:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.06);
  text-decoration: none;
}

.footer__social-links svg {
  flex-shrink: 0;
}

.footer__disclaimer {
  font-size: 0.8rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
}

.footer__disclaimer p { margin-bottom: var(--sp-sm); }
.footer__disclaimer p:last-child { margin-bottom: 0; }

.footer__disclaimer a {
  color: rgba(255,255,255,0.85);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.35);
  text-underline-offset: 2px;
}

.footer__disclaimer a:hover {
  color: #fff;
  text-decoration-color: rgba(255,255,255,0.7);
}

.footer__credit {
  margin-top: var(--sp-md);
  padding-top: var(--sp-sm);
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
}

.footer__credit a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color .2s;
}

.footer__credit a:hover {
  color: #fff;
}

/* ── hamburger button ───────────────────────────────────────────── */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}

.hamburger__line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.hamburger--open .hamburger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger--open .hamburger__line:nth-child(2) {
  opacity: 0;
}
.hamburger--open .hamburger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── mobile nav ────────────────────────────────────────────────── */

.header__nav--mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 0 var(--sp-xl) var(--sp-lg);
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}

.header__nav--mobile.header__nav--visible {
  max-height: 300px;
  padding: var(--sp-sm) var(--sp-xl) var(--sp-lg);
}

.header__nav--mobile a {
  display: block;
  padding: var(--sp-md) 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-border);
  transition: color .2s;
}

.header__nav--mobile a:last-child {
  border-bottom: none;
}

.header__nav--mobile a:hover {
  color: var(--c-accent);
  text-decoration: none;
}

/* ── scroll reveal animations ──────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── responsive ─────────────────────────────────────────────────── */

@media (min-width: 768px) {
  .about__grid {
    grid-template-columns: 280px 1fr;
    align-items: stretch;
    gap: var(--sp-3xl);
  }

  .about__photo {
    display: flex;
    flex-direction: column;
  }

  .about__headshot {
    max-width: 280px;
    flex: 1;
    aspect-ratio: auto;
    min-height: 0;
  }

  .about__stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-block--default,
  .contact-block--hero {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--sp-md);
  }

  .contact-block--default .contact-brokerage,
  .contact-block--hero .contact-brokerage {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .header__nav--desktop {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .header__nav--mobile {
    display: flex;
  }

  .hero__content {
    padding: var(--sp-3xl) var(--sp-lg) var(--sp-2xl);
  }

  .hero__title {
    font-size: 2.25rem;
  }

  .about__stats {
    grid-template-columns: 1fr;
  }

  .footer__top {
    flex-direction: column;
  }
}

/* App.css: ensure full-height layout (no #root in static HTML) */
body { min-height: 100vh; }

