/* =========================================================
   BreatheWell Institute — Design System
   Refined editorial luxury · navy / gold / pearl
   ========================================================= */

@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=Outfit:wght@200;300;400;500;600;700&display=swap');

:root {
  /* Palette */
  --ink: #15213C;
  --ink-2: #1F2C49;
  --ink-soft: #2A3656;
  --gold: #B89968;
  --gold-light: #D4B988;
  --gold-dark: #997C50;
  --silver: #B5B7BC;
  --silver-light: #D8D9DC;
  --pearl: #F8F5EE;
  --cream: #EFE9DC;
  --paper: #FFFEF9;
  --paper-warm: #FCF9F2;
  --charcoal: #1A1A1A;
  --gray-1: #4A4A4A;
  --gray-2: #757575;
  --gray-3: #A8A8A8;
  --line: rgba(21, 33, 60, 0.10);
  --line-2: rgba(21, 33, 60, 0.18);

  /* Type */
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Outfit', system-ui, -apple-system, sans-serif;

  /* Layout */
  --container: 1320px;
  --pad-x: clamp(20px, 4vw, 72px);
  --section-y: clamp(80px, 10vw, 160px);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --slow: cubic-bezier(0.65, 0.05, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--paper);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* =========================================================
   Typography
   ========================================================= */

.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--ink);
}

.display-xl { font-size: clamp(48px, 7vw, 104px); }
.display-l  { font-size: clamp(40px, 5.5vw, 80px); }
.display-m  { font-size: clamp(32px, 4vw, 56px); }
.display-s  { font-size: clamp(24px, 3vw, 40px); }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.eyebrow-line {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.eyebrow-line::before {
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  background: var(--gold);
}

.lead {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.5;
  color: var(--ink-soft);
}

.body-l {
  font-size: 18px;
  line-height: 1.65;
  color: var(--gray-1);
}

.italic-serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

/* =========================================================
   Layout primitives
   ========================================================= */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.container-narrow {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.section-tight {
  padding-top: clamp(60px, 7vw, 100px);
  padding-bottom: clamp(60px, 7vw, 100px);
}

.bg-pearl { background: var(--pearl); }
.bg-cream { background: var(--cream); }
.bg-ink   { background: var(--ink); color: var(--paper); }
.bg-paper { background: var(--paper); }
.bg-paper-warm { background: var(--paper-warm); }

/* =========================================================
   Top announcement bar
   ========================================================= */

.announce {
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 10px var(--pad-x);
}

.announce strong {
  font-weight: 500;
  color: var(--gold-light);
}

.announce a {
  color: var(--gold-light);
  border-bottom: 1px solid rgba(212, 185, 136, 0.5);
  padding-bottom: 1px;
  margin-left: 8px;
}

.announce a:hover {
  border-bottom-color: var(--gold-light);
}

/* =========================================================
   Navigation
   ========================================================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 254, 249, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: padding 0.4s var(--ease);
}

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px var(--pad-x);
  max-width: var(--container);
  margin: 0 auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links.right {
  justify-content: flex-end;
}

.nav-link {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Dropdown */
.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 240px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  padding: 18px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
  box-shadow: 0 18px 40px rgba(21, 33, 60, 0.08);
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown a {
  display: block;
  padding: 9px 24px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.dropdown a:hover {
  background: var(--pearl);
  color: var(--gold-dark);
}

.nav-logo {
  display: flex;
  justify-content: center;
}

.nav-logo img {
  height: 46px;
  width: auto;
  transition: height 0.4s var(--ease);
}

.nav.scrolled .nav-logo img {
  height: 36px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  transition: all 0.3s var(--ease);
}

.nav-cta:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}

.menu-toggle {
  display: none;
  width: 32px;
  height: 24px;
  position: relative;
}

.menu-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transition: 0.3s var(--ease);
}

.menu-toggle span:nth-child(1) { top: 4px; }
.menu-toggle span:nth-child(2) { top: 12px; }
.menu-toggle span:nth-child(3) { top: 20px; }

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  letter-spacing: 0.22em;
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--paper);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 10px 0;
  letter-spacing: 0.16em;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
}

.btn-ghost:hover {
  color: var(--gold-dark);
  border-bottom-color: var(--gold-dark);
  letter-spacing: 0.20em;
}

.btn-arrow::after {
  content: "→";
  font-size: 14px;
  transition: transform 0.3s var(--ease);
}

.btn:hover .btn-arrow::after,
.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* =========================================================
   Page hero (non-home pages)
   ========================================================= */

.page-hero {
  position: relative;
  padding-top: clamp(80px, 8vw, 130px);
  padding-bottom: clamp(60px, 6vw, 100px);
  background: var(--pearl);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  height: 110%;
  background: radial-gradient(ellipse at center, rgba(184, 153, 104, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.page-hero h1 {
  margin: 14px 0 22px;
}

.page-hero .lead {
  max-width: 720px;
  margin: 0 auto;
}

.crumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-2);
  margin-bottom: 12px;
}

.crumbs a:hover { color: var(--gold-dark); }
.crumbs span { opacity: 0.5; }

/* =========================================================
   Cards & grids
   ========================================================= */

.grid {
  display: grid;
  gap: 24px;
}

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

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 36px 32px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 50px rgba(21, 33, 60, 0.07);
  border-color: var(--gold);
}

.card-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 18px;
  display: block;
}

/* Provider cards */
.provider-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.provider-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 80px rgba(21, 33, 60, 0.08);
}

.provider-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--cream);
}

.provider-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.provider-card:hover .provider-photo img {
  transform: scale(1.04);
}

.provider-info {
  padding: 32px 32px 36px;
}

.provider-info .role {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 10px;
  display: block;
}

.provider-info h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 14px;
}

.provider-info p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--gray-1);
  margin-bottom: 18px;
}

.provider-info .read-more {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
  display: inline-block;
}

.provider-info .read-more:hover {
  color: var(--gold-dark);
}

/* =========================================================
   Footer
   ========================================================= */

.footer {
  background: var(--ink);
  color: var(--silver-light);
  padding: 100px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 70px;
}

.footer-brand img {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1) opacity(0.95);
  margin-bottom: 24px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(216, 217, 220, 0.75);
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: 18px;
  color: var(--gold-light);
  margin-bottom: 22px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 11px;
}

.footer-col a {
  font-size: 13.5px;
  color: rgba(216, 217, 220, 0.75);
  letter-spacing: 0.02em;
}

.footer-col a:hover {
  color: var(--gold-light);
}

.footer-col p {
  font-size: 13.5px;
  color: rgba(216, 217, 220, 0.75);
  line-height: 1.7;
}

.footer-col p strong {
  color: var(--paper);
  font-weight: 400;
  display: block;
  margin-bottom: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(216, 217, 220, 0.12);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 12px;
  color: rgba(216, 217, 220, 0.55);
  letter-spacing: 0.05em;
}

.footer-bottom .links {
  display: flex;
  gap: 24px;
}

.footer-bottom a:hover { color: var(--gold-light); }

/* =========================================================
   Section building blocks
   ========================================================= */

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(48px, 6vw, 80px);
}

.section-head .eyebrow {
  display: inline-block;
  margin-bottom: 18px;
}

.section-head h2 {
  margin-bottom: 22px;
}

.section-head p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 1.5vw, 22px);
  color: var(--gray-1);
  line-height: 1.55;
}

.divider-gold {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 30px auto;
}

/* =========================================================
   Reveal animations
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

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

.reveal-1 { transition-delay: 0.1s; }
.reveal-2 { transition-delay: 0.2s; }
.reveal-3 { transition-delay: 0.3s; }
.reveal-4 { transition-delay: 0.4s; }
.reveal-5 { transition-delay: 0.5s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.45; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 0.7;  transform: translate(-50%, -50%) scale(1.04); }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 860px) {
  .nav-inner { grid-template-columns: auto auto; }
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer { padding-top: 70px; }
  .nav-cta { padding: 10px 16px; font-size: 11px; }
}

@media (max-width: 560px) {
  .nav-logo img { height: 38px; }
  .nav.scrolled .nav-logo img { height: 32px; }
  .announce { font-size: 11px; }
  .btn { padding: 14px 26px; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--ink);
  color: var(--paper);
  z-index: 200;
  padding: 80px var(--pad-x) 40px;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
  overflow-y: auto;
}

.mobile-menu.open { transform: translateX(0); }

.mobile-menu .close {
  position: absolute;
  top: 24px;
  right: var(--pad-x);
  width: 36px;
  height: 36px;
  font-size: 28px;
  color: var(--paper);
  line-height: 1;
}

.mobile-menu ul {
  list-style: none;
}

.mobile-menu li {
  border-bottom: 1px solid rgba(216, 217, 220, 0.12);
}

.mobile-menu a {
  display: block;
  padding: 18px 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--paper);
}

.mobile-menu a:hover {
  color: var(--gold-light);
}

.mobile-menu .sub {
  padding: 0 0 18px 16px;
  list-style: none;
}

.mobile-menu .sub a {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(216, 217, 220, 0.75);
  padding: 8px 0;
  border: none;
}
