/* ================================================================
   CYNOSURE REALTY — styles.css
   Shared stylesheet: theme tokens, reset, header, footer, utilities
   Link this from every page.
================================================================ */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ================================================================
   THEME TOKENS — LIGHT
================================================================ */
:root,
[data-theme="light"] {
  --bg:            #fafaf6;
  --bg-2:          #f5f2ec;
  --bg-3:          #ede9e0;
  --surface:       #ffffff;
  --surface-2:     #f0ede6;
  --border:        #e5e1d8;
  --border-2:      #d4cfc5;
  --text:          #1e2533;
  --text-2:        #4a5568;
  --text-3:        #6b7280;
  --navy:          #084933;
  --navy-2:        #0b6446;
  --navy-3:        #0b6446;
  --gold:          #c9a84c;
  --gold-dark:     #a88830;
  --gold-light:    #f7f0dc;
  --gold-alpha:    rgba(201, 168, 76, 0.12);
  --gold-border:   rgba(201, 168, 76, 0.30);
  --green:         #1a6b3c;
  --green-pale:    rgba(26, 107, 60, 0.10);
  --red:           #c0392b;
  --shadow-xs:     0 1px 2px rgba(15, 33, 55, 0.05);
  --shadow-sm:     0 1px 4px rgba(15, 33, 55, 0.07), 0 1px 2px rgba(15, 33, 55, 0.04);
  --shadow-md:     0 4px 20px rgba(15, 33, 55, 0.10), 0 2px 6px rgba(15, 33, 55, 0.06);
  --shadow-lg:     0 12px 40px rgba(15, 33, 55, 0.13), 0 4px 12px rgba(15, 33, 55, 0.07);
  --shadow-xl:     0 24px 64px rgba(15, 33, 55, 0.17);
  --header-bg:     rgba(255, 255, 255, 0.95);
  --header-border: rgba(229, 225, 216, 1);
  --font-d:        "geist", sans-serif;
  --font-b:         "geist", sans-serif;
  --radius-xs:     4px;
  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     16px;
  --radius-xl:     24px;
  --max-w:         1200px;
  --header-h:      72px;
  color-scheme: light;
}

/* ================================================================
   THEME TOKENS — DARK
================================================================ */
[data-theme="dark"] {
  --bg:            #0d1117;
  --bg-2:          #131b24;
  --bg-3:          #1a2535;
  --surface:       #161f2c;
  --surface-2:     #1e2a3a;
  --border:        #2a3a4d;
  --border-2:      #3a4f66;
  --text:          #eef2f7;
  --text-2:        #b8c6d6;
  --text-3:        #7a92ab;
  --navy:          #0f2137;
  --navy-2:        #1a3c5e;
  --navy-3:        #080f18;
  --gold:          #c9a84c;
  --gold-dark:     #a88830;
  --gold-light:    rgba(201, 168, 76, 0.15);
  --gold-alpha:    rgba(201, 168, 76, 0.10);
  --gold-border:   rgba(201, 168, 76, 0.25);
  --green:         #22a05a;
  --green-pale:    rgba(34, 160, 90, 0.12);
  --shadow-xs:     0 1px 2px rgba(0, 0, 0, 0.20);
  --shadow-sm:     0 1px 4px rgba(0, 0, 0, 0.30);
  --shadow-md:     0 4px 20px rgba(0, 0, 0, 0.40);
  --shadow-lg:     0 12px 40px rgba(0, 0, 0, 0.50);
  --shadow-xl:     0 24px 64px rgba(0, 0, 0, 0.60);
  --header-bg:     rgba(13, 17, 23, 0.96);
  --header-border: rgba(42, 58, 77, 1);
  color-scheme: dark;
}

/* ================================================================
   RESET & BASE
================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.30s ease, color 0.30s ease;
}

img, video { display: block; max-width: 100%; height: auto; }
a  { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font-b); border: none; background: none; }
input, select, textarea { font-family: var(--font-b); }
svg { flex-shrink: 0; }

/* ================================================================
   SHARED UTILITIES
================================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-d);
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 700;
  line-height: 1.10;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 14px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-3);
  line-height: 1.75;
  max-width: 600px;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
}

/* Shared fade-up animation (JS adds .visible) */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.d1 { transition-delay: 0.10s; }
.fade-up.d2 { transition-delay: 0.20s; }
.fade-up.d3 { transition-delay: 0.30s; }
.fade-up.d4 { transition-delay: 0.40s; }
.fade-up.d5 { transition-delay: 0.50s; }

/* Shared buttons */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--gold);
  color: #0f2137;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: background 0.2s, transform 0.15s;
}
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-1px); }

.btn-outline-navy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.btn-outline-navy:hover {
  border-color: var(--gold);
  background: var(--gold-alpha);
  color: var(--gold-dark);
}

/* ================================================================
   HEADER
================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  height: var(--header-h);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-xs);
  transition: background 0.30s, border-color 0.30s;
}

.nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: linear-gradient(135deg, #0f2137, #1a3c5e);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
[data-theme="dark"] .logo-mark {
  background: linear-gradient(135deg, #c9a84c, #a88830);
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-mark-fallback {
  font-family: var(--font-d);
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
}
[data-theme="dark"] .logo-mark-fallback { color: #0f2137; }

.logo-words { display: flex; flex-direction: column; line-height: 1; }

.logo-name {
  font-family: var(--font-d);
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}
.logo-name span { color: var(--gold); }

.logo-tagline {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 2px;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-links a:hover { background: var(--bg-2); color: var(--text); }
.nav-links a.active { color: var(--gold); font-weight: 600; }

/* Nav actions (right side) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-nav-cta {
  padding: 9px 20px;
  background: var(--gold);
  color: #0f2137;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-nav-cta:hover { background: var(--gold-dark); transform: translateY(-1px); }

/* Theme toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover { background: var(--bg-3); border-color: var(--border-2); }

/* Hamburger */
.hamburger {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  border: 1px solid var(--border);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background 0.2s;
}
.hamburger:hover { background: var(--bg-3); }

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 490;
  background: var(--surface);
  padding: calc(var(--header-h) + 16px) 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.30s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu a {
  display: block;
  padding: 15px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.15s, padding-left 0.2s;
}
.mobile-menu a:hover { color: var(--gold); padding-left: 20px; }
.mobile-menu a.active { color: var(--gold); font-weight: 600; }

.mobile-menu-cta {
  margin-top: 20px;
  padding: 16px;
  background: var(--gold);
  color: #0f2137;
  font-weight: 700;
  font-size: 16px;
  border-radius: var(--radius-sm);
  text-align: center;
  border: none;
  display: block;
  transition: background 0.2s;
}
.mobile-menu-cta:hover { background: var(--gold-dark); color: #0f2137; }

/* ================================================================
   FOOTER
================================================================ */
.site-footer {
  background: var(--hero-bg-1);
  color: rgba(255,255,255,0.65);
  padding: 80px 24px 0;
}

[data-theme="dark"] .site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 60px;
}

.footer-brand img { margin-bottom: 16px; }

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
  max-width: 280px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  transition: all 0.2s;
}
.social-btn:hover {
  background: rgba(201,135,58,0.2);
  border-color: var(--gold);
  color: var(--gold);
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--gold); }

.footer-newsletter h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 12px;
}

.footer-newsletter p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.3); }
.newsletter-form input:focus { border-color: rgba(201,135,58,0.5); }

.newsletter-form button {
  background: var(--gold);
  color: #fff;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: background 0.2s;
}
.newsletter-form button:hover { background: var(--gold-dark); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.35); }

.footer-bottom-links {
  display: flex;
  gap: 20px;
}
.footer-bottom-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}
.footer-bottom-links a:hover { color: var(--gold); }

/* ================================================================
   SCROLL-TO-TOP
================================================================ */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: #0f2137;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.30s, transform 0.2s;
  z-index: 300;
}
.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top:hover { transform: translateY(-3px); }

/* ================================================================
   RESPONSIVE — shared breakpoints
================================================================ */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .nav { padding: 0 20px; }
  .footer-main { grid-template-columns: 1fr; padding: 48px 20px 32px; }
  .footer-bottom { padding: 16px 20px; }
  .footer-bottom-links { display: none; }
  .btn-nav-cta { display: none; }
}


/* ── FAQ SECTION ───────────────────────────────────────────── */
.faq-section {
  padding: 100px 24px;
  background: var(--bg-primary);
}

.faq-inner {
  max-width: 860px;
  margin: 0 auto;
}

.faq-header {
  text-align: center;
  margin-bottom: 56px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  text-align: left;
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s;
  gap: 16px;
}
.faq-question:hover { background: var(--bg-secondary); }

.faq-question.open { color: var(--gold); background: var(--bg-secondary); }

.faq-chevron {
  width: 20px; height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
  color: var(--text-muted);
}
.faq-question.open .faq-chevron { transform: rotate(180deg); color: var(--gold); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
  background: var(--bg-secondary);
}
.faq-answer.open { max-height: 300px; }

.faq-answer-inner {
  padding: 20px 28px 28px;
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ── CONTACT SECTION ───────────────────────────────────────── */
.contact-section {
  padding: 100px 24px;
  background: var(--bg-secondary);
}

.contact-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 32px 0;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--gold-light);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-info-item div strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
  letter-spacing: 0.03em;
}
.contact-info-item div span {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Contact form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.contact-form h3 {
  font-family: "geist", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: "geist", sans-serif;
  font-size: 0.92rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,135,58,0.12);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.btn-submit {
  width: 100%;
  background: var(--gold);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px;
  border-radius: var(--radius-md);
  transition: all 0.25s var(--ease-bounce);
  letter-spacing: 0.03em;
}
.btn-submit:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

/* Map subsection */
.map-section {
  max-width: var(--container);
  margin: 64px auto 0;
}

.map-section h3 {
  font-family: "geist", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.map-embed {
  width: 100%;
  height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.map-embed iframe {
  width: 100%; height: 100%;
  border: none;
}


/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .feature-inner { grid-template-columns: 1fr; gap: 48px; }
  .feature-inner.reverse { direction: ltr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-showcase-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-primary, .nav-actions .btn-secondary { display: none; }
  .nav-actions .theme-toggle { display: flex; }
  .hamburger { display: flex; }

  .hero-headline { font-size: 2.4rem; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand p { max-width: 100%; }
  .hero-showcase-strip { grid-template-columns: repeat(2, 1fr); }
  .projects-header { flex-direction: column; align-items: flex-start; }
  .blog-header { flex-direction: column; align-items: flex-start; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .feature-badge { display: none; }
}

@media (max-width: 480px) {
  .projects-grid { grid-template-columns: 1fr; }
  .hero-showcase-strip { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 20px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; }
}

/* Utility */
.text-center { text-align: center; }
.mt-auto { margin-top: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }