/* ============================================================
   SARAH MITCHELL REAL ESTATE — Global Stylesheet
   Palette: Slate Blue + Terracotta + Warm Off-White
   Fonts: Playfair Display + Nunito Sans
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Nunito+Sans:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Core Palette */
  --slate:      #2E4057;
  --slate-lt:   #3d5478;
  --slate-pale: #eef1f5;
  --terra:      #E07A5F;
  --terra-lt:   #e8937c;
  --terra-pale: #fdf0ec;
  --sage:       #81B29A;
  --sage-pale:  #edf4f0;

  /* Neutrals */
  --white:      #ffffff;
  --off-white:  #faf8f5;
  --cream:      #f4f0eb;
  --sand:       #e8e0d4;
  --warm-gray:  #8a8278;
  --ink:        #2a2520;
  --ink-lt:     #4a443e;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Nunito Sans', system-ui, sans-serif;

  /* Spacing / Shape */
  --radius:     10px;
  --radius-lg:  18px;
  --shadow:     0 4px 24px rgba(46,64,87,.10);
  --shadow-lg:  0 12px 48px rgba(46,64,87,.14);
  --shadow-xl:  0 20px 64px rgba(46,64,87,.18);

  /* Nav height */
  --nav-h:      72px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font-family: var(--font-body); }

/* ── NAV ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  background: rgba(250,248,245,.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(46,64,87,.10);
  transition: box-shadow .3s;
}
.site-nav.scrolled { box-shadow: 0 2px 20px rgba(46,64,87,.10); }

.nav-brand { display: flex; flex-direction: column; line-height: 1; }
.nav-brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 700;
  color: var(--slate); letter-spacing: -.2px;
}
.nav-brand-title {
  font-size: .65rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--terra); margin-top: 2px;
}

.nav-menu { display: flex; align-items: center; gap: .25rem; list-style: none; }
.nav-menu a {
  display: block; padding: .45rem .85rem;
  font-size: .875rem; font-weight: 600;
  color: var(--ink-lt); border-radius: 6px;
  transition: color .2s, background .2s;
}
.nav-menu a:hover, .nav-menu a.active {
  color: var(--slate); background: var(--slate-pale);
}

.nav-cta {
  background: var(--terra); color: var(--white) !important;
  padding: .55rem 1.3rem !important; border-radius: 50px !important;
  font-weight: 700 !important; font-size: .85rem !important;
  transition: background .2s, transform .15s !important;
  background: var(--terra) !important;
}
.nav-cta:hover { background: var(--terra-lt) !important; transform: translateY(-1px); }

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--slate); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--white); border-bottom: 1px solid var(--sand);
  padding: 1.2rem 5% 1.6rem; z-index: 199;
  flex-direction: column; gap: .3rem;
  box-shadow: 0 8px 24px rgba(46,64,87,.10);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: .7rem .5rem; font-size: .95rem;
  font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--cream);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav .nav-cta {
  margin-top: .6rem; text-align: center;
  background: var(--terra) !important; color: var(--white) !important;
  border-radius: 8px !important; padding: .75rem 1rem !important;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--slate);
  padding: 4.5rem 8% 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
.footer-brand .brand-name {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 700;
  color: var(--white); margin-bottom: .5rem;
}
.footer-brand .brand-tag {
  font-size: .72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--terra-lt); margin-bottom: 1rem;
}
.footer-brand p {
  font-size: .875rem; color: rgba(255,255,255,.5);
  line-height: 1.7; max-width: 280px; font-weight: 300;
}
.footer-socials { display: flex; gap: .5rem; margin-top: 1.4rem; }
.footer-social {
  width: 36px; height: 36px; border-radius: 9px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; transition: background .2s; cursor: pointer;
}
.footer-social:hover { background: rgba(255,255,255,.16); }

.footer-col h4 {
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.5); margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .65rem; }
.footer-col ul a { font-size: .875rem; color: rgba(255,255,255,.4); transition: color .2s; }
.footer-col ul a:hover { color: var(--terra-lt); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,.28); }
.footer-bottom a { color: rgba(255,255,255,.28); transition: color .2s; }
.footer-bottom a:hover { color: rgba(255,255,255,.5); }

/* ── SHARED UTILITIES ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.section { padding: 5.5rem 8%; }
.section-sm { padding: 4rem 8%; }

.section-label {
  display: inline-block;
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--terra); margin-bottom: .85rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  font-weight: 600; line-height: 1.12;
  color: var(--slate);
}
.section-title em { font-style: italic; color: var(--terra); }
.section-sub {
  font-size: 1rem; color: var(--warm-gray);
  line-height: 1.72; font-weight: 400;
  max-width: 540px; margin-top: .8rem;
}
.text-center { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }

.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .75rem 1.75rem; border-radius: 50px;
  font-family: var(--font-body); font-size: .9rem;
  font-weight: 700; cursor: pointer; border: none;
  transition: all .2s; text-decoration: none;
}
.btn-primary { background: var(--terra); color: var(--white); }
.btn-primary:hover { background: var(--terra-lt); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(224,122,95,.35); }
.btn-slate { background: var(--slate); color: var(--white); }
.btn-slate:hover { background: var(--slate-lt); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(46,64,87,.3); }
.btn-outline { background: transparent; color: var(--slate); border: 2px solid var(--slate); }
.btn-outline:hover { background: var(--slate); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.5); }
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.up { transform: translateY(20px); }
.reveal.left { transform: translateX(-20px); }
.reveal.right { transform: translateX(20px); }
.reveal.visible { opacity: 1; transform: translate(0); }

/* Floating CTA */
.float-cta {
  position: fixed; bottom: 1.8rem; right: 1.8rem; z-index: 150;
  background: var(--terra); color: var(--white);
  padding: .8rem 1.5rem; border-radius: 50px;
  font-size: .85rem; font-weight: 700;
  box-shadow: 0 4px 20px rgba(224,122,95,.45);
  display: flex; align-items: center; gap: .5rem;
  transition: all .2s; animation: popIn .5s 1.5s ease both;
  border: none; cursor: pointer; text-decoration: none;
}
.float-cta:hover { background: var(--terra-lt); transform: translateY(-2px); }

@keyframes popIn { from { opacity:0; transform:scale(.7) translateY(10px); } to { opacity:1; transform:scale(1) translateY(0); } }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .nav-menu { display: none; }
  .nav-hamburger { display: flex; }
  .section { padding: 4rem 5%; }
  .section-sm { padding: 3rem 5%; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
