/* ==========================================================================
   Monterey Bay Holistic Alliance
   Design system modeled on the Academy of Integrative Health & Medicine
   (aihm.org): Oswald display type, Lato body copy, deep-navy + cyan palette,
   square-edged components, full-bleed imagery.
   Ocean imagery and all editorial content retained from the original site.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root{
  /* ------------------------------------------------------------------
     Palette derived from the ocean in the Alliance's own logo, sampled
     pixel-by-pixel: foam #dee2ee, aqua #7fc9c4, teal #58b0a7, trough
     #004f77. Every value below is checked for contrast against the
     ground it sits on.
     ------------------------------------------------------------------ */
  --navy:        #06334a;   /* ink — headings, nav      13.3:1 on white   */
  --navy-deep:   #04283b;   /* deepest — footer, scrims                   */
  --navy-mid:    #0a5570;   /* hover / gradient midpoint                  */
  --cyan:        #0a6e83;   /* links, button grounds     5.9:1 on white   */
  --cyan-bright: #0e8ba3;   /* rules and decoration — large use only      */
  --cyan-dark:   #085a6c;   /* button hover                               */
  --gray:        #4d6774;   /* body copy — biased teal    5.0:1 on the deepest ground */
  --gray-dark:   #2a5f72;
  --gray-line:   #d8e6e9;   /* hairlines, tinted                          */
  --offwhite:    #f1f8f9;   /* aqua wash                                  */
  --sand:        #e7f2f4;   /* deeper wash                                */
  --white:       #ffffff;

  /* Sampled straight from the logo */
  --sea-foam:    #dee2ee;
  --sea-aqua:    #7fc9c4;
  --sea-teal:    #58b0a7;
  --sea-blue:    #4f9fb5;
  --sea-deep:    #004f77;
  --gold:        #efd9a3;   /* sea-lit sand — the one warm note, so the
                               all-cool palette does not go flat         */

  /* Glass. Frosted surfaces need something behind them to refract, so the
     sections that carry glass also carry an aqua atmosphere below. */
  --glass:        rgba(255,255,255,.62);
  --glass-strong: rgba(255,255,255,.78);
  --glass-dark:   rgba(6,51,74,.42);
  --glass-line:   rgba(255,255,255,.55);
  --glass-edge:   rgba(127,201,196,.42);
  --blur:         saturate(180%) blur(18px);
  --blur-sm:      saturate(160%) blur(10px);

  --ring: 0 1px 2px rgba(6,51,74,.06), 0 8px 24px rgba(6,51,74,.08);
  --ring-lift: 0 2px 4px rgba(6,51,74,.08), 0 18px 44px rgba(10,110,131,.18);

  --display: "Oswald", "Arial Narrow", sans-serif;
  --body:     "Lato", -apple-system, "Helvetica Neue", Arial, sans-serif;

  --shell: 1180px;
  --gutter: 24px;
}

/* ---------- Reset ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--body);
  font-size:17px;
  line-height:1.75;
  color:var(--gray);
  -webkit-font-smoothing:antialiased;

  /* An atmosphere rather than a blank sheet: soft blooms of the logo's aqua
     and teal over a barely-tinted ground, with a whisper of grain on top so
     the large calm areas have texture instead of reading as empty screen.
     Fixed, so the light stays put while the content scrolls through it. */
  background-color:#e9f4f6;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E"),
    radial-gradient(1200px 720px at 82% -6%, rgba(88,176,167,.52), transparent 60%),
    radial-gradient(1000px 640px at 4% 20%, rgba(79,159,181,.40), transparent 58%),
    radial-gradient(1150px 720px at 96% 58%, rgba(127,201,196,.44), transparent 58%),
    radial-gradient(950px 620px at 8% 88%, rgba(88,176,167,.38), transparent 58%),
    linear-gradient(180deg,#fbfefe 0%, #e9f4f6 42%, #dceef1 100%);
  background-attachment:fixed,fixed,fixed,fixed,fixed,fixed;
  background-repeat:repeat,no-repeat,no-repeat,no-repeat,no-repeat,no-repeat;
  background-size:180px 180px,auto,auto,auto,auto,auto;
}
img{ max-width:100%; height:auto; display:block; border:0; }
a{ color:var(--cyan); text-decoration:none; transition:color .2s ease; }
a:hover{ color:var(--navy); }
ul,ol{ margin:0 0 1.4em; padding-left:1.25em; }
li{ margin-bottom:.5em; }
p{ margin:0 0 1.4em; }
p:last-child{ margin-bottom:0; }

/* ---------- Display type ---------- */
h1,h2,h3,h4,h5{
  font-family:var(--display);
  font-weight:500;
  color:var(--navy);
  margin:0 0 .5em;
  line-height:1.2;
  letter-spacing:.01em;
}
h1{ font-size:48px; }
h2{ font-size:40px; }
h3{ font-size:26px; }
h4{ font-size:21px; }
h5{ font-size:17px; text-transform:uppercase; letter-spacing:.08em; }

/* Lato sub-headings, as AIHM uses beneath its Oswald titles */
.subhead{
  font-family:var(--body);
  font-weight:700;
  font-size:24px;
  color:var(--navy);
  line-height:1.4;
  margin:0 0 1em;
}
.eyebrow{
  font-family:var(--body);
  font-weight:700;
  font-size:13px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--cyan);
  margin:0 0 14px;
}
.lede{ font-size:20px; line-height:1.7; color:var(--gray-dark); }

/* ---------- Layout ---------- */
.shell{ width:100%; max-width:var(--shell); margin:0 auto; padding:0 var(--gutter); }
.shell--narrow{ max-width:860px; }
.section{ padding:92px 0; }
.section--tight{ padding:64px 0; }
.section--offwhite{
  background:
    linear-gradient(180deg, rgba(255,255,255,.70), rgba(255,255,255,.40)),
    radial-gradient(1100px 460px at 12% -10%, rgba(127,201,196,.36), transparent 62%),
    radial-gradient(900px 420px at 92% 108%, rgba(79,159,181,.28), transparent 60%);
  border-top:1px solid rgba(255,255,255,.65);
  border-bottom:1px solid rgba(255,255,255,.65);
}
.section--sand{
  background:
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.25)),
    radial-gradient(900px 420px at 85% -12%, rgba(88,176,167,.34), transparent 62%);
}
/* A plain white section still gets a breath of aqua at its edges, so cards
   sitting on it have something to lift away from. */
.section{ position:relative; }
.section--navy{
  background:
    radial-gradient(760px 420px at 15% 0%, rgba(14,139,163,.55), transparent 60%),
    radial-gradient(700px 400px at 88% 100%, rgba(88,176,167,.34), transparent 58%),
    var(--navy);
}
.section--navy h1,.section--navy h2,.section--navy h3{ color:var(--white); }
.section--navy p,.section--navy li{ color:rgba(255,255,255,.85); }
.center{ text-align:center; }

/* A thin band of surf marking the seam between sections. */
.section + .section::before{
  content:""; position:absolute; top:0; left:0; right:0; height:1px;
  background:linear-gradient(90deg,transparent,rgba(127,201,196,.6),transparent);
}
.section-head{ max-width:760px; margin:0 auto 56px; text-align:center; }
.section-head p{ font-size:19px; }

/* Square rule under section titles — an AIHM signature */
.rule{
  width:72px; height:4px; margin:0 0 26px; border-radius:2px;
  background:linear-gradient(90deg,var(--cyan-bright),var(--sea-aqua));
}
.center .rule,.section-head .rule{ margin-left:auto; margin-right:auto; }

/* ---------- Buttons (square corners, solid cyan) ---------- */
.btn{
  position:relative; overflow:hidden;
  display:inline-block;
  font-family:var(--body);
  font-weight:700;
  font-size:20px;
  line-height:1.2;
  padding:19px 48px;
  color:var(--white);
  background:linear-gradient(135deg,var(--cyan-bright) 0%,var(--cyan) 62%,var(--cyan-dark) 100%);
  border:2px solid transparent;
  border-radius:0;
  cursor:pointer;
  box-shadow:0 6px 18px rgba(10,110,131,.26);
  transition:transform .28s cubic-bezier(.2,.8,.3,1), box-shadow .28s ease, color .2s ease;
}
/* A band of light travelling across the face on hover. */
.btn::after{
  content:""; position:absolute; top:0; bottom:0; left:-60%; width:45%;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.42),transparent);
  transform:skewX(-18deg);
  transition:left .55s cubic-bezier(.2,.8,.3,1);
}
.btn:hover{
  color:var(--white);
  transform:translateY(-2px);
  box-shadow:0 12px 30px rgba(10,110,131,.36);
}
.btn:hover::after{ left:120%; }
.btn:focus-visible{ outline:3px solid var(--sea-aqua); outline-offset:3px; }
.btn--sm{ font-size:15px; padding:11px 22px; box-shadow:0 4px 12px rgba(10,110,131,.24); }
/* Frosted ghost — reads as glass over imagery rather than a plain outline. */
.btn--ghost{
  background:rgba(255,255,255,.14);
  -webkit-backdrop-filter:var(--blur-sm); backdrop-filter:var(--blur-sm);
  color:var(--white); border-color:rgba(255,255,255,.7);
  box-shadow:0 6px 20px rgba(4,40,59,.24);
}
.btn--ghost:hover{ background:rgba(255,255,255,.9); color:var(--navy); border-color:#fff; }
.btn--navy{
  background:linear-gradient(135deg,var(--navy-mid),var(--navy));
  box-shadow:0 6px 18px rgba(6,51,74,.3);
}
.btn--navy:hover{ box-shadow:0 12px 30px rgba(6,51,74,.4); }
.btn-row{ display:flex; flex-wrap:wrap; gap:16px; }
.center .btn-row{ justify-content:center; }

/* ==========================================================================
   Header — two tiers, as on aihm.org
   ========================================================================== */
.site-header{
  position:sticky; top:0; z-index:60;
  background:var(--glass-strong);
  -webkit-backdrop-filter:var(--blur); backdrop-filter:var(--blur);
  border-bottom:1px solid var(--glass-line);
  box-shadow:0 1px 0 rgba(127,201,196,.35);
  transition:box-shadow .3s ease, background .3s ease;
}
/* Once content is passing underneath, deepen the glass so it separates. */
.site-header.is-stuck{
  background:rgba(255,255,255,.86);
  box-shadow:0 1px 0 rgba(127,201,196,.5), 0 10px 30px rgba(6,51,74,.10);
}
.site-header.is-stuck .logo__mark{ width:46px; height:46px; }
.site-header.is-stuck .header-inner{ min-height:92px; }
.header-inner{ transition:min-height .3s ease; }
.header-inner{
  max-width:var(--shell); margin:0 auto; padding:0 var(--gutter);
  display:flex; align-items:center; justify-content:space-between; gap:32px;
  min-height:116px;
}

/* Logo — the original identity, rebuilt as vector plus live text so it stays
   sharp at any size and re-colours itself on dark grounds. */
.logo{ display:flex; align-items:center; gap:14px; flex-shrink:0; text-decoration:none; }
.logo:hover{ color:inherit; }
.logo__mark{
  width:58px; height:58px; flex-shrink:0; color:var(--cyan);
  transition:width .3s ease, height .3s ease, transform .5s cubic-bezier(.2,.8,.3,1);
}
.logo:hover .logo__mark{ transform:rotate(-6deg) scale(1.04); }
.logo__text{ display:block; line-height:1; }
.logo__name{
  display:block;
  font-family:"Playfair Display", Georgia, "Times New Roman", serif;
  font-style:italic; font-weight:700;
  font-size:26px; line-height:1.04; letter-spacing:.005em;
  color:var(--navy);
  white-space:nowrap;
}
/* The second line sat in blue on the original; it keeps that role here. */
.logo__name--alt{ color:var(--cyan); padding-left:1.1em; }
.logo__tag{
  display:block; margin-top:6px;
  font-family:var(--body); font-weight:700;
  font-size:8.5px; letter-spacing:.155em; text-transform:uppercase;
  color:var(--gray); white-space:nowrap;
}

/* On the dark footer the whole lockup inverts — the thing the flat JPEG
   could never do. */
.footer-logo .logo__mark{ color:var(--sea-aqua); }
.footer-logo .logo__name{ color:var(--white); }
.footer-logo .logo__name--alt{ color:var(--sea-aqua); }
.footer-logo .logo__tag{ color:rgba(255,255,255,.6); }

.header-right{ display:flex; flex-direction:column; align-items:flex-end; gap:14px; padding:20px 0; }

/* Utility row */
.utility{ display:flex; align-items:center; gap:20px; }
.utility a{
  font-size:14px; font-weight:400; color:var(--navy);
}
.utility a:hover{ color:var(--cyan); }
.utility .btn{ font-size:14px; padding:9px 19px; font-weight:400; }

/* Primary navigation */
.nav{ display:flex; align-items:center; gap:28px; }
.nav__item{ position:relative; }
.nav__link{
  display:inline-flex; align-items:center; gap:6px;
  font-size:16px; color:var(--navy); padding:6px 0;
}
.nav__link{ position:relative; }
.nav__link::after{
  content:""; position:absolute; left:0; right:0; bottom:-2px; height:2px;
  background:linear-gradient(90deg,var(--cyan-bright),var(--sea-aqua));
  transform:scaleX(0); transform-origin:left; transition:transform .3s cubic-bezier(.2,.8,.3,1);
}
.nav__link:hover::after,.nav__item.is-current > .nav__link::after{ transform:scaleX(1); }
.nav__link:hover,.nav__item.is-current > .nav__link{ color:var(--cyan); }
.nav__caret{ width:9px; height:9px; fill:currentColor; opacity:.75; }

.nav__panel{
  position:absolute; top:100%; left:50%; transform:translateX(-50%) translateY(8px);
  min-width:238px;
  background:var(--glass-strong);
  -webkit-backdrop-filter:var(--blur); backdrop-filter:var(--blur);
  border-top:3px solid var(--cyan-bright);
  border-left:1px solid var(--glass-line); border-right:1px solid var(--glass-line);
  box-shadow:0 18px 40px rgba(6,51,74,.18);
  padding:10px 0; margin:0; list-style:none;
  opacity:0; visibility:hidden; transition:opacity .18s ease,transform .18s ease,visibility .18s;
}
.nav__item:hover .nav__panel,.nav__item:focus-within .nav__panel{
  opacity:1; visibility:visible; transform:translateX(-50%) translateY(0);
}
.nav__panel li{ margin:0; }
.nav__panel a{
  display:block; padding:10px 22px; font-size:15px; color:var(--navy); white-space:nowrap;
}
.nav__panel a:hover{ background:rgba(127,201,196,.22); color:var(--cyan); }

/* Mobile toggle */
.nav-toggle{
  display:none; background:none; border:0; padding:10px; cursor:pointer;
  color:var(--navy);
}
.nav-toggle svg{ width:26px; height:26px; fill:currentColor; }

/* ==========================================================================
   Hero — full-bleed ocean imagery under a navy scrim
   ========================================================================== */
.hero{
  position:relative;
  min-height:560px;
  display:flex; align-items:center;
  background:var(--navy-deep) center/cover no-repeat;
  overflow:hidden;
}
.hero::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(100deg,rgba(0,32,62,.86) 0%,rgba(0,52,98,.66) 46%,rgba(0,80,124,.34) 100%);
}
.hero .shell{ position:relative; z-index:3; padding-top:80px; padding-bottom:80px; }
.hero__content{ max-width:700px; }
.hero h1{ color:var(--white); font-size:58px; line-height:1.14; margin-bottom:22px; }
.hero .eyebrow{ color:var(--gold); }
.hero p{ color:rgba(255,255,255,.92); font-size:20px; line-height:1.7; margin-bottom:32px; max-width:600px; }
.hero .rule{ background:var(--gold); }

/* --------------------------------------------------------------------------
   Living ocean hero — a slow drift across the wave photograph with three
   layers of surf rolling beneath it, and a rotating line of encouragement.
   All motion is disabled under prefers-reduced-motion.
   -------------------------------------------------------------------------- */
.hero--ocean{ background-image:none; }

/* The slideshow. Frames are stacked and crossfaded; each is inset so the
   slow zoom never exposes an edge. Grades are set per-slide in the markup. */
.hero__slides{ position:absolute; inset:0; z-index:0; overflow:hidden; }
.hero__slide{
  position:absolute; inset:-7%;
  background-position:center; background-size:cover; background-repeat:no-repeat;
  opacity:0;
  transition:opacity .9s ease-in-out;
  will-change:opacity,transform;
}
.hero__slide.is-active{
  opacity:1;
  /* Restarts on every turn, so each frame gets its own push inward. */
  animation:slideZoom 7s ease-out forwards;
}
@keyframes slideZoom{
  from{ transform:scale(1.04); }
  to{   transform:scale(1.13); }
}

/* Single-frame variant, kept for any hero that is not a slideshow. */
.hero__bg{
  position:absolute; inset:-7%;
  background-position:center; background-size:cover; background-repeat:no-repeat;
  z-index:0;
  filter:saturate(1.5) brightness(1.24) contrast(.94) hue-rotate(-16deg);
  animation:oceanDrift 38s ease-in-out infinite alternate;
  will-change:transform;
}
@keyframes oceanDrift{
  from{ transform:scale(1.05) translate3d(0,0,0); }
  to{   transform:scale(1.17) translate3d(-2.2%,-1.6%,0); }
}
}
.hero--ocean::after{
  z-index:1;
  background:
    linear-gradient(100deg,
      rgba(0,44,68,.90) 0%,
      rgba(0,68,92,.76) 32%,
      rgba(0,100,120,.48) 58%,
      rgba(40,148,156,.20) 80%,
      rgba(127,201,196,.06) 100%);
}

/* Sunlight glinting off the water, drifting slowly across it. */
.hero__shimmer{
  position:absolute; inset:0; z-index:1; pointer-events:none;
  background:linear-gradient(104deg,
    transparent 30%, rgba(255,255,255,.10) 46%, rgba(222,226,238,.16) 54%,
    transparent 70%);
  background-size:220% 100%;
  animation:seaShimmer 19s ease-in-out infinite alternate;
}
@keyframes seaShimmer{
  from{ background-position:0% 0; }
  to{   background-position:100% 0; }
}

/* Three tiling surf layers, each drifting at its own speed. */
.hero__waves{
  position:absolute; left:0; right:0; bottom:0; height:165px; z-index:2;
  pointer-events:none; overflow:hidden;
}
.wave{
  position:absolute; left:0; right:0; bottom:0;
  background-repeat:repeat-x;
  background-position:0 bottom;
  will-change:background-position;
}
/* Four layers: deep swell, turquoise face, aqua break, then white foam in
   front — the same order of colour you see in the logo. */
.wave--swell{
  height:132px; opacity:.3; background-size:1400px 132px;
  animation:waveDrift 31s linear infinite;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,64 C220,18 420,104 600,64 C780,24 1000,104 1200,64 L1200,120 L0,120 Z' fill='%2300708f'/%3E%3C/svg%3E");
}
.wave--back{
  height:108px; opacity:.58; background-size:1200px 108px;
  animation:waveDriftReverse 23s linear infinite;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C200,10 400,110 600,60 C800,10 1000,110 1200,60 L1200,120 L0,120 Z' fill='%233aa8a2'/%3E%3C/svg%3E");
}
.wave--mid{
  height:84px; opacity:.82; background-size:950px 84px;
  animation:waveDrift 15s linear infinite;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,70 C150,30 350,110 600,70 C850,30 1050,110 1200,70 L1200,120 L0,120 Z' fill='%237fd3cd'/%3E%3C/svg%3E");
}
/* Foam: a crest of white water with a soft lip, riding in front of the rest. */
.wave--front{
  height:66px; opacity:1; background-size:1100px 66px;
  animation:waveDriftReverse 10s linear infinite;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,78 C180,38 380,116 600,80 C820,44 1020,116 1200,78 L1200,120 L0,120 Z' fill='%23ffffff'/%3E%3Cpath d='M0,86 C180,50 380,120 600,88 C820,56 1020,120 1200,86 L1200,120 L0,120 Z' fill='%23eaf7f7' opacity='.9'/%3E%3C/svg%3E");
}
@keyframes waveDrift{        from{ background-position:0 bottom; }     to{ background-position:1200px bottom; } }
@keyframes waveDriftReverse{ from{ background-position:900px bottom; } to{ background-position:0 bottom; } }

.hero--ocean .shell{ z-index:3; padding-bottom:150px; }

/* Rotating quotes. Stacked in one grid cell so nothing shifts as they change. */
.quotes{ display:grid; margin:0 0 34px; max-width:620px; }
.hero--ocean .quotes{ max-width:640px; }
.quote{
  grid-area:1/1;
  margin:0;
  padding:18px 24px;
  background:rgba(6,51,74,.30);
  -webkit-backdrop-filter:var(--blur-sm); backdrop-filter:var(--blur-sm);
  border:1px solid rgba(255,255,255,.18);
  border-left:3px solid var(--gold);
  font-family:var(--body); font-style:italic; font-weight:400;
  font-size:22px; line-height:1.6; color:#fff;
  opacity:0; transform:translateY(10px);
  /* Leaves quickly... */
  transition:opacity .3s ease,transform .3s ease;
  pointer-events:none;
}
.quote.is-active{
  opacity:1; transform:none; pointer-events:auto;
  /* ...and the next one waits for the old line to clear before arriving,
     so two sentences are never legible on top of each other. */
  transition:opacity .5s ease .32s,transform .5s ease .32s;
}

/* --------------------------------------------------------------------------
   Scroll reveals. The .reveal class is applied by script, so anything that
   never gets observed simply stays visible.
   -------------------------------------------------------------------------- */
.reveal{
  opacity:0; transform:translateY(22px);
  transition:opacity .7s cubic-bezier(.2,.8,.3,1) var(--delay,0ms),
             transform .7s cubic-bezier(.2,.8,.3,1) var(--delay,0ms);
}
.reveal.is-in{ opacity:1; transform:none; }
/* Never let an animation hide content from print or assistive rendering. */
@media print{ .reveal{ opacity:1 !important; transform:none !important; } }

/* Split imagery lifts a little as it settles. */
.split__media img{ box-shadow:var(--ring); transition:box-shadow .4s ease, transform .5s ease; }
.split__media:hover img{ box-shadow:var(--ring-lift); }

@media (prefers-reduced-motion:reduce){
  .reveal{ opacity:1 !important; transform:none !important; transition:none !important; }

    .hero__bg,.wave,.hero__shimmer,.hero__slide{ animation:none !important; }
  .hero__slide{ transition:none; }
  .quote{ transition:none; }
}

/* Compact hero for interior pages */
.page-hero{ min-height:330px; }
.page-hero.hero--ocean{ min-height:500px; }
.page-hero h1{ font-size:50px; margin-bottom:16px; }
.page-hero p{ font-size:19px; margin-bottom:0; }

/* Breadcrumb */
.crumb{ font-size:14px; color:rgba(255,255,255,.72); margin-bottom:16px; }
.crumb a{ color:rgba(255,255,255,.72); }
.crumb a:hover{ color:var(--white); }

/* ==========================================================================
   Card grid — image tiles with dark scrim and gold titles (AIHM pattern)
   ========================================================================== */
.grid{ display:grid; gap:28px; }
.grid--2{ grid-template-columns:repeat(2,1fr); }
.grid--3{ grid-template-columns:repeat(3,1fr); }
.grid--4{ grid-template-columns:repeat(4,1fr); }

.tile{
  position:relative; display:flex; flex-direction:column; justify-content:flex-end;
  min-height:320px; padding:30px 26px;
  background:var(--navy) center/cover no-repeat;
  color:var(--white); overflow:hidden;
  box-shadow:var(--ring);
  transition:transform .4s cubic-bezier(.2,.8,.3,1), box-shadow .4s ease;
}
.tile:hover{ transform:translateY(-6px); box-shadow:var(--ring-lift); }
/* The frosted plate the words sit on. */
.tile__panel{
  position:relative; z-index:2;
  background:var(--glass-dark);
  -webkit-backdrop-filter:var(--blur-sm); backdrop-filter:var(--blur-sm);
  border:1px solid rgba(255,255,255,.20);
  border-left:3px solid var(--sea-aqua);
  padding:20px 22px;
  transition:background .4s ease, border-color .4s ease;
}
.tile:hover .tile__panel{ background:rgba(6,51,74,.55); border-left-color:var(--gold); }
.tile::before{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg,rgba(4,40,59,.20) 0%,rgba(4,40,59,.62) 52%,rgba(4,40,59,.90) 100%);
  transition:background .4s ease;
}
.tile:hover::before{ background:linear-gradient(180deg,rgba(4,40,59,.34) 0%,rgba(10,110,131,.72) 52%,rgba(4,40,59,.95) 100%); }
.tile > *{ position:relative; z-index:2; }
.tile h3{ color:var(--gold); font-size:24px; margin-bottom:10px; }
.tile p{ color:rgba(255,255,255,.88); font-size:15.5px; line-height:1.65; margin:0; }
.tile__more{
  display:inline-block; margin-top:16px; font-family:var(--body); font-weight:700;
  font-size:14px; letter-spacing:.09em; text-transform:uppercase; color:var(--white);
}
.tile__more::after{ content:" ›"; }
.tile:hover .tile__more{ color:var(--gold); }

/* --------------------------------------------------------------------------
   Built frames. These stand in for the two stock photographs that were cut —
   layered water in the logo's palette under a tiling wave texture. They live
   here rather than in style attributes because the texture is a data URI
   containing double quotes, which would terminate an HTML style="..." early
   and collapse the whole background to url("").
   -------------------------------------------------------------------------- */
.plate--deep,.plate--dawn,.plate--shallow{
  background-repeat:repeat,no-repeat,no-repeat,no-repeat;
  background-size:240px 120px,cover,cover,cover;
  background-position:0 0,center,center,center;
}
.plate--deep{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='120'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.1' opacity='.16'%3E%3Cpath d='M0,30 C60,8 120,52 240,30'/%3E%3Cpath d='M0,60 C60,38 120,82 240,60'/%3E%3Cpath d='M0,90 C60,68 120,112 240,90'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(1200px 620px at 78% 6%, rgba(127,201,196,.55), transparent 62%),
    radial-gradient(900px 720px at 12% 92%, rgba(10,110,131,.85), transparent 62%),
    linear-gradient(158deg,#0e6d8c 0%,#08415c 55%,#052f45 100%);
}
.plate--dawn{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='120'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.1' opacity='.16'%3E%3Cpath d='M0,30 C60,8 120,52 240,30'/%3E%3Cpath d='M0,60 C60,38 120,82 240,60'/%3E%3Cpath d='M0,90 C60,68 120,112 240,90'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(900px 560px at 76% 10%, rgba(239,217,163,.85), transparent 58%),
    radial-gradient(1100px 680px at 16% 94%, rgba(88,176,167,.80), transparent 62%),
    linear-gradient(152deg,#1a7f9b 0%,#0d5e78 46%,#07374f 100%);
}
.plate--shallow{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='120'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.1' opacity='.16'%3E%3Cpath d='M0,30 C60,8 120,52 240,30'/%3E%3Cpath d='M0,60 C60,38 120,82 240,60'/%3E%3Cpath d='M0,90 C60,68 120,112 240,90'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(1000px 580px at 26% 8%, rgba(222,238,238,.80), transparent 58%),
    radial-gradient(1000px 680px at 88% 84%, rgba(88,176,167,.90), transparent 62%),
    linear-gradient(150deg,#84cfc9 0%,#3fa2b4 46%,#0d5e78 100%);
}

/* A built frame needs almost no scrim — its gradient is already pitched for
   white type — where a photograph needs a heavy one. */
.tile--plate::before{
  background:linear-gradient(180deg,rgba(4,40,59,.02) 0%,rgba(4,40,59,.26) 100%);
}
.tile--plate:hover::before{
  background:linear-gradient(180deg,rgba(4,40,59,.08) 0%,rgba(10,110,131,.42) 100%);
}
.tile--plate .tile__panel{ background:rgba(4,40,59,.44); }
.tile--plate:hover .tile__panel{ background:rgba(4,40,59,.60); }

/* Plain white card */
.card{
  position:relative;
  background:var(--glass);
  -webkit-backdrop-filter:var(--blur); backdrop-filter:var(--blur);
  border:1px solid var(--glass-line);
  border-top:4px solid transparent;
  border-image:linear-gradient(90deg,var(--cyan-bright),var(--sea-aqua)) 1;
  padding:34px 30px; height:100%;
  box-shadow:var(--ring);
  transition:transform .4s cubic-bezier(.2,.8,.3,1), box-shadow .4s ease, background .3s ease;
}
a.card:hover{ transform:translateY(-6px); box-shadow:var(--ring-lift); background:var(--glass-strong); }
.card h3{ font-size:23px; margin-bottom:12px; }
.card p{ font-size:16px; margin-bottom:0; }
.card__icon{ width:44px; height:44px; fill:var(--cyan); margin-bottom:18px; }

/* Person card */
.person{
  background:var(--glass);
  -webkit-backdrop-filter:var(--blur); backdrop-filter:var(--blur);
  border:1px solid var(--glass-line);
  border-left:3px solid var(--sea-aqua);
  padding:30px 28px; height:100%;
  box-shadow:var(--ring);
  transition:transform .4s cubic-bezier(.2,.8,.3,1), box-shadow .4s ease, border-left-color .3s ease;
}
.person:hover{ transform:translateY(-5px); box-shadow:var(--ring-lift); border-left-color:var(--cyan-bright); }
.person h3{ font-size:21px; margin-bottom:4px; }
.person__role{
  font-family:var(--body); font-weight:700; font-size:12.5px; letter-spacing:.13em;
  text-transform:uppercase; color:var(--cyan); margin:0 0 14px;
}
.person p{ font-size:15.5px; line-height:1.7; }

/* ---------- Split feature (image beside copy) ---------- */
.split{ display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:64px; }
.split--flip .split__media{ order:2; }
.split__media img{ width:100%; height:100%; object-fit:cover; min-height:380px; }

/* ---------- Statistics band ---------- */
.stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:32px; text-align:center; }
.stat__num{
  font-family:var(--display); font-weight:500; font-size:52px; line-height:1;
  color:var(--gold); margin-bottom:8px;
}
.stat__label{ font-size:15px; color:rgba(255,255,255,.85); letter-spacing:.04em; }

/* ---------- Directory chips ---------- */
.chips{ display:flex; flex-wrap:wrap; gap:12px; list-style:none; padding:0; margin:0; }
.chips li{ margin:0; }
.chips a{
  display:block; padding:13px 24px;
  background:var(--glass);
  -webkit-backdrop-filter:var(--blur-sm); backdrop-filter:var(--blur-sm);
  border:1px solid var(--glass-line); border-left:3px solid var(--sea-aqua);
  font-size:16px; color:var(--navy);
  box-shadow:0 2px 10px rgba(6,51,74,.06);
  transition:transform .25s cubic-bezier(.2,.8,.3,1), background .25s ease, color .25s ease, box-shadow .25s ease;
}
.chips a:hover{
  background:linear-gradient(135deg,var(--cyan-bright),var(--cyan));
  border-color:transparent; color:var(--white);
  transform:translateY(-3px); box-shadow:0 10px 24px rgba(10,110,131,.32);
}

/* ---------- Newsletter ---------- */
.newsletter{ background:var(--offwhite); }
.form{ display:grid; gap:18px; max-width:620px; margin:0 auto; }
.form--page{ margin:0; max-width:none; }
.form__row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.field label{
  display:block; font-family:var(--body); font-weight:700; font-size:13px;
  letter-spacing:.09em; text-transform:uppercase; color:var(--navy); margin-bottom:7px;
}
.field .req{ color:var(--cyan); }
.field input,.field select,.field textarea{
  width:100%; padding:14px 16px; font-family:var(--body); font-size:16px; color:var(--navy);
  background:var(--glass-strong);
  -webkit-backdrop-filter:var(--blur-sm); backdrop-filter:var(--blur-sm);
  border:1px solid rgba(127,201,196,.55); border-radius:0;
  transition:border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.field input:focus,.field select:focus,.field textarea:focus{
  outline:none; border-color:var(--cyan-bright); background:#fff;
  box-shadow:0 0 0 4px rgba(127,201,196,.30);
}
.field textarea{ min-height:150px; resize:vertical; }

/* ---------- Contact detail list ---------- */
.contact-list{ list-style:none; padding:0; margin:0; }
.contact-list li{ display:flex; gap:16px; padding:18px 0; border-bottom:1px solid var(--gray-line); margin:0; }
.contact-list svg{ width:22px; height:22px; fill:var(--cyan); flex-shrink:0; margin-top:5px; }
.contact-list strong{
  display:block; font-family:var(--body); font-weight:700; font-size:12.5px;
  letter-spacing:.12em; text-transform:uppercase; color:var(--navy); margin-bottom:2px;
}

/* --------------------------------------------------------------------------
   Illustrations — original artwork drawn in code, in the logo's palette.
   No photography, no licensing, a few hundred bytes each, sharp at any size.
   -------------------------------------------------------------------------- */
.motif{ display:block; width:100%; height:auto; }
.motif--card{
  width:96px; height:96px; flex-shrink:0;
  filter:drop-shadow(0 6px 14px rgba(6,51,74,.14));
  transition:transform .45s cubic-bezier(.2,.8,.3,1);
}
.motif--lead{
  width:100%; max-width:210px;
  filter:drop-shadow(0 10px 26px rgba(6,51,74,.18));
}

/* ---------- Article cards ---------- */
.post{
  display:flex; gap:20px; align-items:flex-start;
  padding:26px 24px; height:100%;
  background:var(--glass);
  -webkit-backdrop-filter:var(--blur); backdrop-filter:var(--blur);
  border:1px solid var(--glass-line);
  border-top:4px solid transparent;
  border-image:linear-gradient(90deg,var(--cyan-bright),var(--sea-aqua)) 1;
  box-shadow:var(--ring);
  color:var(--gray); text-decoration:none;
  transition:transform .4s cubic-bezier(.2,.8,.3,1), box-shadow .4s ease, background .3s ease;
}
.post:hover{ transform:translateY(-6px); box-shadow:var(--ring-lift); background:var(--glass-strong); color:var(--gray); }
.post:hover .motif--card{ transform:scale(1.07) rotate(-3deg); }
.post__art{ display:block; }
.post__body{ display:block; }
.post__meta{
  display:block; font-size:12px; font-weight:700; letter-spacing:.12em;
  text-transform:uppercase; color:var(--gray); margin-bottom:9px;
}
.post__topic{ color:var(--cyan); }
.post__title{
  display:block; font-family:var(--display); font-weight:500; font-size:21px;
  line-height:1.25; color:var(--navy); margin-bottom:10px;
}
.post__stand{ display:block; font-size:15px; line-height:1.65; margin-bottom:14px; }

/* Cards stack their art above the text once the column gets narrow. */
@media (max-width:1040px){
  .post{ flex-direction:column; gap:16px; }
  .motif--card{ width:80px; height:80px; }
}

/* ---------- Article layout ---------- */
.article{ display:grid; grid-template-columns:250px 1fr; gap:56px; align-items:start; }
.article__aside{ position:sticky; top:150px; }
.article__art{ margin-bottom:22px; }
.article__meta{
  font-size:13px; letter-spacing:.08em; text-transform:uppercase;
  color:var(--gray); line-height:1.8; margin-bottom:18px;
}
.article__meta strong{ color:var(--cyan); }
.article__note{
  font-size:13.5px; line-height:1.7; color:var(--gray);
  border-left:3px solid var(--sea-aqua); padding-left:14px; margin:0;
}
/* Running text wants a comfortable measure, not the full column. */
.article__body{ max-width:68ch; }
.article__body h2{ font-size:30px; margin-top:1.9em; }
.article__body h2:first-child{ margin-top:0; }
.article__body ul{ padding-left:1.1em; }
.article__body li{ margin-bottom:.75em; }
.article__body li strong{ color:var(--navy); }

@media (max-width:900px){
  .article{ grid-template-columns:1fr; gap:32px; }
  .article__aside{ position:static; display:flex; gap:22px; align-items:center; }
  .article__art{ margin-bottom:0; }
  .motif--lead{ width:110px; }
  .article__note{ display:none; }
}

/* ---------- Directory category content ---------- */
.cat-list{ display:flex; flex-direction:column; gap:2px; }
.cat-block{
  display:flex; gap:24px; align-items:flex-start;
  padding:28px 8px; border-bottom:1px solid var(--gray-line);
}
.cat-block:last-child{ border-bottom:0; }
.cat-block__art{ flex-shrink:0; width:64px; }
.cat-block__art .motif{ width:64px; height:64px; }
.cat-block h3{ font-size:21px; margin-bottom:8px; }
.cat-block p{ font-size:16px; margin:0; max-width:60ch; }

/* ---------- FAQ accordion ---------- */
.faq-list{ display:flex; flex-direction:column; gap:12px; }
.faq{
  background:var(--glass);
  -webkit-backdrop-filter:var(--blur-sm); backdrop-filter:var(--blur-sm);
  border:1px solid var(--glass-line); border-left:3px solid var(--sea-aqua);
  padding:4px 22px;
}
.faq summary{
  padding:18px 0; cursor:pointer; list-style:none;
  font-family:var(--display); font-weight:500; font-size:18px; color:var(--navy);
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{
  content:"+"; font-family:var(--body); font-weight:700; font-size:22px; color:var(--cyan);
  flex-shrink:0; transition:transform .25s ease;
}
.faq[open] summary::after{ transform:rotate(45deg); }
.faq p{ margin:0 0 20px; font-size:15.5px; color:var(--gray); }

@media (max-width:620px){
  .cat-block{ flex-direction:column; gap:14px; }
}

/* ---------- Callout / prose ---------- */
.callout{
  border-left:4px solid var(--sea-aqua);
  background:var(--glass);
  -webkit-backdrop-filter:var(--blur-sm); backdrop-filter:var(--blur-sm);
  box-shadow:var(--ring);
  padding:28px 32px;
}
.prose h2{ font-size:34px; margin-top:1.6em; }
.prose h2:first-child{ margin-top:0; }
.prose h3{ font-size:23px; margin-top:1.6em; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{ background:var(--navy-deep); color:rgba(255,255,255,.72); padding:76px 0 0; }
.footer-grid{ display:grid; grid-template-columns:1.5fr 1fr 1fr 1fr 1fr; gap:36px; padding-bottom:56px; }
.site-footer h4{
  color:var(--white); font-family:var(--body); font-weight:700; font-size:13px;
  letter-spacing:.15em; text-transform:uppercase; margin-bottom:20px;
}
.site-footer p{ font-size:15px; line-height:1.75; }
.site-footer ul{ list-style:none; padding:0; margin:0; }
.site-footer li{ margin-bottom:11px; }
.site-footer a{ color:rgba(255,255,255,.72); font-size:15px; }
.site-footer a:hover{ color:var(--gold); }
.footer-logo{ margin-bottom:22px; }

.socials{ display:flex; gap:12px; margin-top:22px; }
/* The default is the light page. The footer overrides it below — without
   that split these icons were white on a white ground. */
.socials a{
  display:flex; align-items:center; justify-content:center; width:38px; height:38px;
  background:var(--glass);
  -webkit-backdrop-filter:var(--blur-sm); backdrop-filter:var(--blur-sm);
  border:1px solid rgba(10,110,131,.32); color:var(--cyan);
  transition:background .25s ease, border-color .25s ease, color .25s ease, transform .25s ease;
}
.socials a:hover{
  background:linear-gradient(135deg,var(--cyan-bright),var(--cyan));
  border-color:transparent; color:var(--white); transform:translateY(-3px);
}
.site-footer .socials a{
  background:transparent; -webkit-backdrop-filter:none; backdrop-filter:none;
  border-color:rgba(255,255,255,.26); color:var(--white);
}
.site-footer .socials a:hover{
  background:linear-gradient(135deg,var(--sea-teal),var(--cyan-bright));
  border-color:transparent; color:var(--white);
}
.socials svg{ width:17px; height:17px; fill:currentColor; }

.footer-bar{
  border-top:1px solid rgba(255,255,255,.14); padding:24px 0;
  display:flex; flex-wrap:wrap; gap:16px; justify-content:space-between; align-items:center;
  font-size:13.5px;
}
.footer-bar a{ font-size:13.5px; }
.footer-bar nav{ display:flex; flex-wrap:wrap; gap:22px; }

/* ---------- Disclaimer strip ---------- */
.legal-strip{ background:var(--offwhite); border-top:1px solid var(--gray-line); padding:26px 0; }
.legal-strip p{ font-size:13.5px; line-height:1.7; color:#8a929c; margin:0; text-align:center; max-width:940px; margin:0 auto; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width:1040px){
  .footer-grid{ grid-template-columns:repeat(3,1fr); gap:32px; }
  .split{ gap:44px; }
  .nav{ gap:20px; }
  .nav__link{ font-size:15px; }
}
@media (max-width:900px){
  h1{ font-size:38px; }
  h2{ font-size:32px; }
  .hero h1{ font-size:42px; }
  .quote{ font-size:19px; padding-left:18px; }
  .hero__waves{ height:140px; }
  .hero--ocean .shell{ padding-bottom:124px; }
  .page-hero h1{ font-size:36px; }
  .section{ padding:64px 0; }
  .grid--3,.grid--4{ grid-template-columns:repeat(2,1fr); }
  .stats{ grid-template-columns:repeat(2,1fr); gap:34px; }
  .split{ grid-template-columns:1fr; gap:34px; }
  .split--flip .split__media{ order:0; }
  .split__media img{ min-height:280px; }

  .header-inner{ flex-wrap:wrap; min-height:0; padding-top:16px; padding-bottom:16px; }
  .logo__mark{ width:48px; height:48px; }
  .logo__name{ font-size:22px; }
  .nav-toggle{ display:block; }
  .header-right{ width:100%; align-items:stretch; padding:0; gap:0; }
  .utility{ order:2; flex-wrap:wrap; justify-content:flex-start; gap:14px; padding:16px 0 4px; }
  .nav{
    order:1; display:none; flex-direction:column; align-items:stretch; gap:0;
    width:100%; border-top:1px solid var(--gray-line); margin-top:14px;
  }
  .nav.is-open{ display:flex; }
  .nav__item{ border-bottom:1px solid var(--gray-line); }
  .nav__link{ padding:14px 2px; font-size:16px; justify-content:space-between; }
  .nav__panel{
    position:static; transform:none; opacity:1; visibility:visible; min-width:0;
    box-shadow:none; border-top:0; padding:0 0 10px; display:none; background:var(--offwhite);
  }
  .nav__item.is-expanded .nav__panel{ display:block; }
  .nav__panel a{ padding:10px 18px; }
}
@media (max-width:620px){
  body{ font-size:16px; }
  .logo{ gap:10px; }
  .logo__mark{ width:40px; height:40px; }
  .logo__name{ font-size:18px; }
  .logo__tag{ display:none; }
  .hero{ min-height:470px; }
  .quote{ font-size:17.5px; }
  .hero__waves{ height:104px; }
  .wave--swell{ height:86px; }
  .wave--back{ height:72px; }
  .wave--mid{ height:56px; }
  .wave--front{ height:42px; }
  .hero--ocean .shell{ padding-bottom:92px; }
  .hero h1{ font-size:34px; }
  .page-hero{ min-height:270px; }
  .grid--3,.grid--4,.grid--2{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; }
  .form__row{ grid-template-columns:1fr; }
  .btn{ font-size:17px; padding:16px 32px; width:100%; text-align:center; }
  .utility .btn{ width:auto; }
  .stats{ grid-template-columns:1fr; }
  .footer-bar{ flex-direction:column; align-items:flex-start; }
}
