/* ===== Bodyworks by Brendan — Shared Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --sage: #7A8B6F;
  --sage-light: #95A688;
  --sage-pale: #E8EDE4;
  --clay: #B5856D;
  --clay-light: #C9A08A;
  --gold-muted: #D4C091;
  --cream: #FAF7F2;
  --warm-white: #FDFCFA;
  --charcoal: #2D2D2D;
  --text: #3A3530;
  --text-light: #7A756E;
  --border: #E8E2D9;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--text); background: var(--cream); line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }

/* ===== Header ===== */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(250,247,242,0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; height: 72px; }

/* FIX 1: Logo — explicit width for SVG rendering on all browsers */
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img {
  height: 60px;
  width: 180px;
  object-fit: contain;
  object-position: left center;
}

.nav { display: flex; align-items: center; gap: 36px; }
.nav a { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-light); transition: color 0.3s; }
.nav a:hover, .nav a.active { color: var(--charcoal); }
.nav a.active { border-bottom: 2px solid var(--sage); padding-bottom: 2px; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 11px 26px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.03em; border-radius: 6px; transition: all 0.3s; }
.btn-primary { background: var(--sage); color: white; }
.btn-primary:hover { background: var(--sage-light); transform: translateY(-1px); }
.btn-outline { border: 1.5px solid var(--sage); color: var(--sage); background: transparent; }
.btn-outline:hover { background: var(--sage); color: white; }
.btn-ghost { border: 1.5px solid rgba(255,255,255,0.5); color: white; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: white; }
.btn-lg { padding: 14px 36px; font-size: 0.875rem; }

/* FIX 2: Mobile Toggle — larger tap target, higher z-index */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  position: relative;
  z-index: 1100;        /* above mobile nav AND header */
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mobile-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--charcoal); transition: all 0.3s; border-radius: 1px;
  pointer-events: none;
}
/* Hamburger → X when nav open */
.mobile-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* FIX 2: Mobile Nav — z-index ABOVE header (1050 > 1000) */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 1050;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding-top: 72px;
}
.mobile-nav.active { display: flex; }
.mobile-nav a {
  font-family: var(--serif); font-size: 1.75rem; color: var(--charcoal);
  -webkit-tap-highlight-color: transparent;
  padding: 8px 24px;
}
.mobile-nav a:active { color: var(--sage); }
.mobile-nav .btn {
  margin-top: 12px;
  padding: 14px 40px; font-size: 1rem;
}

/* ===== Layout ===== */
.section { padding: 100px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.section-label { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage); margin-bottom: 14px; }
.section-title { font-family: var(--serif); font-size: clamp(2rem, 3.5vw, 2.75rem); font-weight: 300; line-height: 1.2; color: var(--charcoal); }
.section-subtitle { font-size: 1.0625rem; color: var(--text-light); line-height: 1.8; margin-top: 16px; max-width: 600px; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ===== Page Header Banner ===== */
.page-banner { padding: 140px 0 80px; background: var(--charcoal); text-align: center; }
.page-banner .section-label { color: var(--gold-muted); }
.page-banner .section-title { color: white; font-size: clamp(2.25rem, 4vw, 3.25rem); }
.page-banner .section-subtitle { color: rgba(255,255,255,0.6); margin-left: auto; margin-right: auto; }

/* ===== Hero (Home only) ===== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; background: linear-gradient(135deg, #3a3a32, #5a5a4a, #4a4a3e); padding-top: 72px; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(35,33,28,0.75) 0%, rgba(35,33,28,0.4) 55%, rgba(35,33,28,0.2) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 600px; padding: 60px 32px; margin-left: 8%; }
.hero-label { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-muted); margin-bottom: 20px; }
.hero h1 { font-family: var(--serif); font-size: clamp(2.75rem, 5.5vw, 4.25rem); font-weight: 300; line-height: 1.12; color: white; margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--sage-pale); }
.hero-sub { font-size: 1.0625rem; color: rgba(255,255,255,0.75); margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Pathway Cards ===== */
.pathways-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.pathway { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 3/4; cursor: pointer; text-decoration: none; }
.pathway-1 { background: #5c6b52; }
.pathway-2 { background: #7a6b5d; }
.pathway-3 { background: #6b7a6f; }
.pathway img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.pathway:hover img { transform: scale(1.05); }
.pathway-text { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; padding: 32px 28px; background: linear-gradient(to top, rgba(30,28,24,0.88) 0%, rgba(30,28,24,0.5) 60%, transparent 100%); }
.pathway h3 { font-family: var(--serif); font-size: 1.625rem; font-weight: 400; color: white; margin-bottom: 6px; }
.pathway p { font-size: 0.875rem; color: rgba(255,255,255,0.7); line-height: 1.5; }

/* ===== Two-Column Grid ===== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.two-col-narrow { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center; }

/* ===== About Styles ===== */
.about-img { border-radius: 12px; overflow: hidden; background: var(--sage-pale); min-height: 300px; }
.about-img img { width: 100%; height: 520px; object-fit: cover; object-position: center top; }
.prose p { font-size: 1.0625rem; color: var(--text-light); line-height: 1.85; margin-bottom: 20px; }
.prose p:last-child { margin-bottom: 0; }
.quote-block { margin-top: 28px; padding: 24px 28px; background: var(--sage-pale); border-left: 3px solid var(--sage); border-radius: 0 8px 8px 0; }
.quote-block p { font-family: var(--serif); font-size: 1.125rem; font-style: italic; color: var(--charcoal); margin: 0; line-height: 1.6; }

/* ===== Reset / Feature Section ===== */
.dark-section { background: var(--charcoal); color: white; }
.dark-section .section-label { color: var(--gold-muted); }
.dark-section .section-title { color: white; }
.dark-section .prose p { color: rgba(255,255,255,0.7); }
.feature-img { border-radius: 12px; overflow: hidden; background: #4a4a3e; min-height: 300px; }
.feature-img img { width: 100%; height: 480px; object-fit: cover; }
.eyebrow { font-family: var(--serif); font-size: 1.0625rem; font-style: italic; color: var(--sage-light); margin-bottom: 24px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 32px; }
.tag { font-size: 0.8125rem; padding: 8px 18px; border: 1px solid rgba(255,255,255,0.2); border-radius: 24px; color: rgba(255,255,255,0.8); }
.tag-solid { font-size: 0.8125rem; padding: 8px 18px; background: var(--sage-pale); border-radius: 24px; color: var(--sage); font-weight: 500; }

/* ===== Space / Gallery ===== */
.space-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-top: 56px; }
.space-item { border-radius: 10px; overflow: hidden; background: var(--sage-pale); min-height: 200px; }
.space-item img { width: 100%; height: 320px; object-fit: cover; }
.space-caption { text-align: center; max-width: 520px; margin: 40px auto 0; }
.space-caption p { font-size: 1rem; color: var(--text-light); }

/* ===== Testimonials ===== */
.testimonials { background: var(--sage-pale); }
.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.test-card { background: var(--warm-white); padding: 36px 32px; border-radius: 10px; }
.test-stars { color: var(--gold-muted); font-size: 0.875rem; letter-spacing: 2px; margin-bottom: 16px; }
.test-card blockquote { font-size: 0.9375rem; line-height: 1.75; color: var(--charcoal); font-style: italic; margin: 0 0 20px 0; }
.test-author { font-size: 0.8125rem; font-weight: 600; color: var(--charcoal); }
.test-detail { font-size: 0.75rem; color: var(--text-light); margin-top: 2px; }

/* ===== Service Cards (Services page) ===== */
.service-card { background: var(--warm-white); border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.service-card-img { height: 280px; overflow: hidden; background: var(--sage-pale); }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; }
.service-card-body { padding: 36px 32px; }
.service-card-body h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; color: var(--charcoal); margin-bottom: 12px; }
.service-card-body p { font-size: 0.9375rem; color: var(--text-light); line-height: 1.75; margin-bottom: 16px; }
.service-card-body .closing { font-size: 0.875rem; font-style: italic; color: var(--clay); margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.techniques { margin-top: 16px; }
.techniques span { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-light); display: block; margin-bottom: 6px; }

/* ===== Session Details (Services page) ===== */
.details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin-top: 48px; }
.detail-card { background: var(--warm-white); padding: 32px 28px; border-radius: 10px; border: 1px solid var(--border); text-align: center; }
.detail-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--sage-pale); margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; color: var(--sage); }
.detail-card h4 { font-family: var(--serif); font-size: 1.125rem; font-weight: 500; color: var(--charcoal); margin-bottom: 6px; }
.detail-card p { font-size: 0.875rem; color: var(--text-light); line-height: 1.6; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-top: 56px; }
.contact-info h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; margin-bottom: 28px; }
.c-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.c-icon { width: 40px; height: 40px; border-radius: 8px; background: var(--sage-pale); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--sage); }
.c-text a { color: var(--sage); font-weight: 500; }
.c-text a:hover { color: var(--clay); }
.c-text p { font-size: 0.875rem; color: var(--text-light); margin-top: 2px; }
.c-text strong { font-size: 0.9375rem; color: var(--charcoal); display: block; }
.contact-building { margin-top: 28px; border-radius: 10px; overflow: hidden; background: var(--sage-pale); }
.contact-building img { width: 100%; height: 220px; object-fit: cover; }
.form-wrap { background: var(--warm-white); padding: 40px; border-radius: 12px; border: 1px solid var(--border); }
.form-wrap h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--charcoal); margin-bottom: 5px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; font-family: var(--sans); font-size: 1rem;
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--cream); color: var(--text); transition: border-color 0.3s;
  -webkit-appearance: none; appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237A756E' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(122,139,111,0.08); }
.form-group textarea { min-height: 100px; resize: vertical; }
.form-submit { width: 100%; padding: 13px; font-size: 0.9375rem; margin-top: 4px; }

/* ===== Final CTA ===== */
.final-cta { background: var(--charcoal); padding: 100px 0; text-align: center; }
.final-cta h2 { font-family: var(--serif); font-size: clamp(2rem, 3.5vw, 2.75rem); font-weight: 300; color: white; margin-bottom: 12px; }
.final-cta p { font-size: 1rem; color: rgba(255,255,255,0.55); margin-bottom: 36px; }

/* ===== Footer ===== */
.footer { background: #232320; color: rgba(255,255,255,0.5); padding: 48px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 40px; }
.footer .logo img { height: 48px; width: 150px; filter: brightness(0) invert(1); }
.footer-links { display: flex; gap: 28px; margin-top: 16px; }
.footer-links a { font-size: 0.8125rem; }
.footer-links a:hover { color: white; }
.footer-contact { text-align: right; font-size: 0.8125rem; line-height: 1.8; }
.footer-contact a { color: var(--sage-light); }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.06); font-size: 0.75rem; text-align: center; }

/* ===== Modal ===== */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 2000; align-items: center; justify-content: center; padding: 24px; }
.modal-overlay.active { display: flex; }
.modal { background: var(--warm-white); border-radius: 16px; max-width: 480px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 44px; position: relative; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--cream); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; color: var(--charcoal); }
.modal-close:hover { background: var(--border); }
.modal h2 { font-family: var(--serif); font-size: 1.75rem; font-weight: 400; margin-bottom: 24px; }

/* ===== Sage Tint (Session Photos Only) ===== */
.sage-tint { position: relative; }
.sage-tint::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(122, 139, 111, 0.25);
  border-radius: inherit;
  pointer-events: none;
}

/* ===== Header CTA (Desktop) ===== */
.header-cta-desktop { font-size: 0.75rem; padding: 10px 20px; white-space: nowrap; }

/* ===== Floating Mobile CTA Bar (Call + Text) ===== */
.floating-cta-bar {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  background: var(--warm-white);
  border-radius: 50px;
  padding: 6px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15), 0 1px 4px rgba(0,0,0,0.08);
  gap: 6px;
}
.floating-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all 0.3s;
}
.floating-btn svg { flex-shrink: 0; }
.floating-btn-call {
  background: var(--sage);
  color: white;
}
.floating-btn-call:hover { background: var(--sage-light); }
.floating-btn-text {
  background: transparent;
  color: var(--sage);
  border: 1.5px solid var(--sage);
}
.floating-btn-text:hover { background: var(--sage-pale); }

/* Legacy (can remove later) */
.floating-cta { display: none; }

/* =============================================
   RESPONSIVE — TABLET (1024px)
   ============================================= */
@media (max-width: 1024px) {
  .pathways-grid { grid-template-columns: 1fr 1fr; }
  .pathway { aspect-ratio: 4/3; }
  .two-col, .two-col-narrow { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .space-grid { grid-template-columns: 1fr 1fr; }
  .space-item img { height: 260px; }
  .test-grid { grid-template-columns: 1fr 1fr; }
  .about-img img { height: 400px; }
  .feature-img img { height: 380px; }
}

/* =============================================
   RESPONSIVE — MOBILE (768px)
   ============================================= */
@media (max-width: 768px) {
  /* Header */
  .nav, .header .btn-primary, .header-cta-desktop { display: none; }
  .mobile-toggle { display: flex; }
  .header-inner { padding: 0 20px; height: 64px; }
  .logo img { height: 48px; width: 150px; }

  /* Layout */
  .section { padding: 64px 0; }
  .container { padding: 0 20px; }

  /* Hero */
  .hero { min-height: 85vh; }
  .hero-content { margin: 0; padding: 40px 20px; max-width: 100%; }
  .hero h1 { font-size: 2.25rem; }
  .hero-sub { font-size: 0.9375rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; text-align: center; justify-content: center; }

  /* Page Banner */
  .page-banner { padding: 110px 0 50px; }
  .page-banner .section-title { font-size: 2rem; }

  /* Pathway Cards */
  .pathways-grid { grid-template-columns: 1fr; max-width: 100%; }
  .pathway { aspect-ratio: 16/10; }
  .pathway-text { padding: 24px 20px; }
  .pathway h3 { font-size: 1.375rem; }

  /* Two-column stacking */
  .two-col, .two-col-narrow { gap: 32px; }
  .about-img img { height: 300px; }
  .feature-img img { height: 280px; }

  /* Gallery / Space grid */
  .space-grid { grid-template-columns: 1fr; }
  .space-item img { height: 220px; }

  /* Testimonials */
  .test-grid { grid-template-columns: 1fr; }
  .test-card { padding: 28px 24px; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; }
  .form-wrap { padding: 28px 20px; }

  /* Tags */
  .tag, .tag-solid { font-size: 0.75rem; padding: 6px 14px; }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer-contact { text-align: left; }
  .footer-links { flex-wrap: wrap; gap: 16px; }

  /* Modal */
  .modal { padding: 28px 22px; border-radius: 12px; margin: 12px; }

  /* Floating CTA */
  .floating-cta-bar { display: flex; }
  .floating-cta { display: none; }

  /* Service cards */
  .service-card-img { height: 220px; }
  .service-card-body { padding: 28px 22px; }

  /* Contact building */
  .contact-building img { height: 180px; }

  /* Section titles */
  .section-title { font-size: 1.75rem; }
  .section-subtitle { font-size: 0.9375rem; }

  /* Final CTA */
  .final-cta { padding: 64px 0; }
  .final-cta h2 { font-size: 1.75rem; }

  /* Quote block */
  .quote-block { padding: 20px 22px; }
}

/* =============================================
   RESPONSIVE — SMALL MOBILE (400px)
   ============================================= */
@media (max-width: 400px) {
  .hero h1 { font-size: 1.875rem; }
  .mobile-nav a { font-size: 1.5rem; }
  .container { padding: 0 16px; }
  .btn-lg { padding: 13px 28px; font-size: 0.8125rem; }
}
