/* ==========================================================================
   Sound With Sri — Shared Stylesheet
   Contains everything identical across every page: reset, layout helpers,
   navigation, footer, buttons, fade-in system and the watercolour
   placeholder component. Page-specific rules (hero variants, unique
   sections) live in a <style> block at the top of each page.
   ========================================================================== */

:root {
  --paper: #F7F4EE;
  --ink:   #1E1B16;
  --muted: #7A7268;
  --faint: #B0A89E;
  --sage:  #5D7057;
  --rule:  #E3DDD3;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Jost', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #FFFFFF;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { text-decoration: none; color: inherit; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; }

/* ---- layout helpers ---- */
.container-7xl { max-width: 80rem; margin-left: auto; margin-right: auto; }
.container-6xl { max-width: 72rem; margin-left: auto; margin-right: auto; }
.container-5xl { max-width: 64rem; margin-left: auto; margin-right: auto; }
.container-3xl { max-width: 48rem; margin-left: auto; margin-right: auto; }
.container-2xl { max-width: 42rem; margin-left: auto; margin-right: auto; }
.container-xl  { max-width: 36rem; margin-left: auto; margin-right: auto; }
.flex { display: flex; }
.grid { display: grid; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.text-center { text-align: center; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.w-full { width: 100%; }
.hidden { display: none; }
.inline-block { display: inline-block; }
.top-0 { top: 0; } .left-0 { left: 0; } .right-0 { right: 0; }
.z-50 { z-index: 50; }
.h-screen { height: 100vh; }
.min-h-640 { min-height: 640px; }
.overflow-hidden { overflow: hidden; }
.bg-paper { background: var(--paper); }

/* ---- navigation ---- */
#nav {
  transition: background-color 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}
#nav.scrolled {
  background-color: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner { padding: 1.25rem 2rem; }
.nav-links { gap: 2.25rem; display: none; }
.nav-links a {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--faint); transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); }
.logo-link { font-family: var(--serif); font-style: italic; font-size: 1.125rem; color: var(--ink); }

/* mobile menu toggle + dropdown panel */
.nav-menu-toggle {
  background: none; border: none; cursor: pointer; padding: 0;
  font-family: var(--sans); font-weight: 400; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint);
}
.nav-menu-toggle:hover { color: var(--ink); }
.nav-mobile-panel {
  display: none; flex-direction: column; gap: 1.1rem;
  position: absolute; top: 100%; left: 0; right: 0;
  background: #FFFFFF; border-bottom: 1px solid var(--rule);
  padding: 1.25rem 2rem 1.75rem;
  box-shadow: 0 12px 24px -12px rgba(30,27,22,0.12);
}
.nav-mobile-panel.open { display: flex; }
.nav-mobile-panel a {
  font-family: var(--sans); font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--faint); transition: color 0.2s;
}
.nav-mobile-panel a:hover,
.nav-mobile-panel a.active { color: var(--ink); }

/* ---- watercolour placeholder (used for closing-section backgrounds) ---- */
.wc {
  background: var(--paper); border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.wc::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 30% 25%, rgba(93,112,87,0.06), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(93,112,87,0.05), transparent 50%);
}
.wc-label {
  font-family: var(--sans); font-weight: 300; font-size: 11px;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--faint); z-index: 1;
}
.wc-label-corner {
  position: absolute; bottom: 20px; right: 24px;
  font-family: var(--sans); font-weight: 300; font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint); z-index: 1;
}

/* ---- fade-in on scroll ---- */
.fade-in { opacity: 0; transform: translateY(22px); transition: opacity 0.9s ease, transform 0.9s ease; }
.fade-in.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1 !important; transform: none !important; transition: none !important; }
}
@media print {
  .fade-in { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---- buttons ---- */
.btn-primary {
  font-family: var(--sans); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: #FFFFFF; background: var(--ink); transition: background-color 0.25s ease;
  font-size: 12px; padding: 1rem 2.25rem; border: none; cursor: pointer; display: inline-block;
}
.btn-primary:hover { background: var(--sage); }
.btn-secondary {
  font-family: var(--sans); font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); border: 1px solid var(--ink); transition: background-color 0.25s ease, color 0.25s ease;
  font-size: 12px; padding: 1rem 2.25rem; display: inline-block;
}
.btn-secondary:hover { background: var(--ink); color: #FFFFFF; }
.btn-primary-lg { padding: 1rem 2.5rem; }
.btn-quiet {
  font-family: var(--sans); font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); padding: 1rem 0.5rem; transition: color 0.25s ease; font-size: 12px;
}
.btn-quiet:hover { color: var(--ink); }

/* ---- rotating testimonial (Home only, but harmless shared) ---- */
.testi-fade { transition: opacity 0.7s ease; }
.testi-fade.out { opacity: 0; }

/* ---- generic section heading ---- */
.h2-serif {
  font-family: var(--serif); font-weight: 300; font-size: 1.875rem; line-height: 1.25; color: var(--ink);
}
@media (min-width: 768px) {
  .h2-serif { font-size: 3rem; }
}

/* ---- generic section spacing (page-specific desktop overrides live per-page) ---- */
.sec { padding: 7rem 2rem; }
@media (min-width: 768px) {
  .sec { padding: 9rem 3.5rem; }
}

/* ---- footer ---- */
footer { padding: 4rem 2rem; border-top: 1px solid var(--rule); }
.footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 1.5rem; }
.footer-logo { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--ink); }
.footer-tag { font-family: var(--sans); font-weight: 300; font-size: 0.875rem; color: var(--muted); }
.footer-links { display: flex; align-items: center; gap: 2.5rem; margin-top: 1rem; }
.footer-links a {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--faint); transition: color 0.2s;
}
.footer-links a:hover { color: var(--ink); }
.footer-final {
  font-family: var(--sans); font-weight: 300; font-size: 11px; color: var(--faint); margin-top: 0.5rem;
}

/* ---- accessibility ---- */
.skip-link {
  position: absolute; left: -9999px; top: auto; z-index: 100;
  background: var(--ink); color: #FFFFFF; padding: 0.75rem 1.25rem;
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
}
.skip-link:focus { left: 1rem; top: 1rem; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--sage); outline-offset: 2px;
}

/* ---- contact form status message ---- */
.form-msg { margin-top: 1.25rem; font-family: var(--sans); font-weight: 300; font-size: 0.875rem; min-height: 1.2em; }
.form-msg.success { color: var(--sage); }
.form-msg.error { color: var(--ink); }

/* ================= DESKTOP (md: 768px+) ================= */
@media (min-width: 768px) {
  .nav-inner { padding: 1.25rem 3.5rem; }
  .nav-links { display: flex; }
  .nav-menu-toggle { display: none; }
  .nav-mobile-panel { display: none !important; }
  .logo-link { font-size: 1.25rem; }
}
