/* ===========================================================
   Coral Community Mental Health Center — shared styles
   Ocean theme (reuses Layss's palette + ocean video)
   =========================================================== */
:root {
  --ocean-deep: #0e2c38;
  --ocean: #14495c;
  --teal: #2f7d78;
  --seafoam: #5f9c91;
  --aqua: #cff4ec;
  --aqua-soft: #e9f6f2;
  --coral: #e0584b;
  --coral-dark: #c4452f;
  --cream: #f6faf9;
  --ink: #15323a;
  --ink-soft: #4c6168;
  --gold: #e7a539;
  --line: #dde9e6;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(14,44,56,.05), 0 10px 28px rgba(14,44,56,.07);
  --maxw: 1120px;
  --crisis-h: 40px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; color: var(--ink); background: var(--cream); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--coral); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 88px; }

/* Crisis support bar — fixed, always visible, every page */
.crisis-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 60; min-height: var(--crisis-h); box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; background: var(--ocean-deep); color: #fff; padding: 7px 16px; text-align: center; }
.crisis-bar p { margin: 0; font-size: .85rem; font-weight: 500; line-height: 1.3; min-width: 0; overflow-wrap: anywhere; }
.crisis-bar a { color: #ffd9a8; font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(255,217,168,.45); }
.crisis-bar a:hover { color: #fff; border-bottom-color: #fff; }
@media (max-width: 760px) { .crisis-bar p { font-size: .76rem; } }

/* Crisis resources block (above footer) */
.crisis-resources { background: var(--aqua-soft); border-top: 1px solid var(--line); padding: 46px 0; }
.crisis-resources .wrap { max-width: 940px; text-align: center; }
.crisis-resources h2 { font-size: clamp(1.4rem, 2.6vw, 1.95rem); color: var(--ocean); }
.crisis-resources .sub { color: var(--ink-soft); margin-top: 8px; font-size: 1.02rem; }
.cr-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; text-align: left; }
.cr-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; box-shadow: var(--shadow); }
.cr-item .ic { width: 42px; height: 42px; border-radius: 11px; background: var(--aqua); color: var(--teal); display: flex; align-items: center; justify-content: center; flex: none; }
.cr-item .big { font-weight: 700; color: var(--ocean); font-size: 1.06rem; text-decoration: none; display: inline-block; }
.cr-item a.big:hover { color: var(--coral); }
.cr-item .desc { color: var(--ink-soft); font-size: .88rem; margin-top: 3px; }
@media (max-width: 780px) { .cr-list { grid-template-columns: 1fr; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 1rem; text-decoration: none; padding: 14px 24px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; transition: transform .08s ease, background .15s ease, box-shadow .15s ease, color .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 6px 18px rgba(224,88,75,.32); }
.btn-coral:hover { background: var(--coral-dark); }
.btn-outline { background: transparent; color: var(--ocean); border-color: rgba(20,73,92,.22); }
.btn-outline:hover { border-color: var(--teal); background: rgba(47,125,120,.06); }
.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn-ghost-light:hover { background: rgba(255,255,255,.22); }
.btn-white { background: #fff; color: var(--ocean); }
.btn-white:hover { background: var(--aqua); }
.btn-lg { padding: 17px 30px; font-size: 1.05rem; }

/* Header */
header.site { position: fixed; top: var(--crisis-h); left: 0; right: 0; z-index: 50; transition: background .25s ease, box-shadow .25s ease, border-color .25s; border-bottom: 1px solid transparent; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 24px; max-width: var(--maxw); margin: 0 auto; }
.nav .logo { background: rgba(255,255,255,.92); padding: 6px 12px; border-radius: 12px; line-height: 0; transition: background .25s, padding .25s; }
.nav .logo img { height: 44px; width: auto; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-weight: 500; font-size: .96rem; }
.nav-links a { text-decoration: none; color: rgba(255,255,255,.92); text-shadow: 0 1px 6px rgba(0,0,0,.25); padding-bottom: 2px; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: #fff; }
.nav-links a.active { border-bottom-color: var(--coral); color: #fff; }
header.site.solid, header.site.scrolled { background: rgba(246,250,249,.92); backdrop-filter: saturate(150%) blur(10px); border-bottom-color: var(--line); }
header.site.solid .logo, header.site.scrolled .logo { background: transparent; padding: 0; }
header.site.solid .nav-links a, header.site.scrolled .nav-links a { color: var(--ink-soft); text-shadow: none; }
header.site.solid .nav-links a:hover, header.site.scrolled .nav-links a:hover { color: var(--teal); }
header.site.solid .nav-links a.active, header.site.scrolled .nav-links a.active { color: var(--ocean); }
/* Language switcher + CTA group */
.nav-cta-group { display: flex; align-items: center; gap: 12px; }
.nav-lang { display: inline-flex; align-items: center; font-weight: 600; font-size: .85rem; letter-spacing: .03em; text-decoration: none; color: rgba(255,255,255,.92); border: 1.5px solid rgba(255,255,255,.5); border-radius: 999px; padding: 7px 13px; text-shadow: 0 1px 6px rgba(0,0,0,.25); transition: background .15s, color .15s, border-color .15s; }
.nav-lang:hover { background: rgba(255,255,255,.16); color: #fff; }
header.site.solid .nav-lang, header.site.scrolled .nav-lang { color: var(--ink-soft); border-color: var(--line); text-shadow: none; }
header.site.solid .nav-lang:hover, header.site.scrolled .nav-lang:hover { color: var(--teal); border-color: var(--teal); }

/* HERO with ocean video (home) */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; color: #fff; background: #0e2c38 url('assets/ocean-poster.jpg') center/cover no-repeat; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0; transition: opacity .7s ease; }
.hero.playing .hero-video { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(14,44,56,.55) 0%, rgba(14,44,56,.45) 40%, rgba(14,44,56,.78) 100%); }
.hero-content { position: relative; z-index: 2; padding: 120px 0 90px; max-width: 760px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ocean-deep); background: var(--aqua); padding: 8px 16px; border-radius: 999px; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4rem); margin: 22px 0 0; color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero p.lead { font-size: 1.22rem; color: rgba(255,255,255,.94); margin-top: 20px; max-width: 34em; text-shadow: 0 1px 12px rgba(0,0,0,.3); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.bubbles { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.bubble { position: absolute; bottom: -40px; border-radius: 50%; background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.55), rgba(255,255,255,.08) 60%, transparent 70%); border: 1px solid rgba(255,255,255,.18); animation: rise linear infinite; }
@keyframes rise { 0% { transform: translateY(0) scale(.7); opacity: 0; } 12% { opacity: .7; } 100% { transform: translateY(-92vh) scale(1.1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bubble { display: none; } .hero-video { display: none; } .reveal { opacity: 1 !important; transform: none !important; } }

/* Inner page hero — slim ocean band */
.page-hero { position: relative; color: #fff; text-align: center; background: var(--ocean-deep) url('assets/ocean-poster.jpg') center/cover no-repeat; padding: 150px 0 70px; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,44,56,.7), rgba(20,73,92,.82)); }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero .crumb { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--aqua); font-weight: 600; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.2rem); margin: 12px 0 0; }
.page-hero p { color: rgba(255,255,255,.92); margin: 16px auto 0; max-width: 40em; font-size: 1.12rem; }

/* wave divider */
.wave { position: absolute; bottom: -1px; left: 0; width: 100%; z-index: 2; line-height: 0; }
.wave svg { width: 100%; height: 70px; display: block; }

section { padding: 80px 0; }
.section-head { text-align: center; max-width: 36em; margin: 0 auto 48px; }
.section-head .kicker { color: var(--coral); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-top: 12px; color: var(--ocean); }
.section-head p { color: var(--ink-soft); margin-top: 14px; font-size: 1.08rem; }

/* Trust strip */
.trust { background: var(--ocean-deep); color: #fff; }
.trust .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 38px; padding: 20px 24px; }
.trust-item { display: flex; align-items: center; gap: 9px; font-size: .96rem; font-weight: 500; color: rgba(255,255,255,.92); }
.trust-item .star { color: var(--gold); }

/* Cards */
.services { background: var(--aqua-soft); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); transition: transform .12s ease, box-shadow .12s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(14,44,56,.12); }
.card .ic { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--aqua); color: var(--teal); margin-bottom: 18px; }
.card h3 { font-size: 1.22rem; color: var(--ocean); }
.card p { color: var(--ink-soft); margin-top: 9px; font-size: .97rem; }

/* Mission band */
.mission { background: linear-gradient(135deg, var(--teal) 0%, var(--ocean) 100%); color: #fff; text-align: center; }
.mission .wrap { max-width: 820px; }
.mission .kicker { color: var(--aqua); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; }
.mission h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 14px 0 0; }
.mission p { font-family: 'Fraunces', serif; font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.4; color: rgba(255,255,255,.95); margin-top: 22px; }

/* Insurance */
.insurance { background: var(--cream); }
.ins-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 30px; margin-bottom: 26px; }
.ins-logos img { height: 66px; width: auto; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px; font-weight: 500; color: var(--ocean); font-size: .96rem; }
.chip.more { background: var(--aqua); border-color: var(--aqua); color: var(--teal); }
.chip small { color: var(--teal); font-weight: 400; font-size: .82em; }
.ins-note { text-align: center; max-width: 640px; margin: 22px auto 0; color: var(--ocean); opacity: .85; font-size: .96rem; }
.ins-sub { text-align: center; margin: 30px 0 16px; font-size: 1.05rem; color: var(--teal); font-weight: 600; }

/* Testimonial */
.quote { background: var(--aqua-soft); }
.quote .wrap { max-width: 760px; text-align: center; }
.quote .stars { color: var(--gold); font-size: 1.4rem; letter-spacing: 3px; }
.quote blockquote { font-family: 'Fraunces', serif; font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--ocean); margin: 20px 0 18px; line-height: 1.3; }
.quote cite { font-style: normal; color: var(--ink-soft); font-weight: 500; }
.quote .gbadge { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; font-size: .92rem; font-weight: 500; }

/* CTA over ocean */
.cta { position: relative; color: #fff; overflow: hidden; text-align: center; }
.cta-bg { position: absolute; inset: 0; z-index: 0; background: url('assets/ocean-poster.jpg') center/cover; }
.cta-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(135deg, rgba(20,73,92,.82), rgba(14,44,56,.88)); }
.cta .wrap { position: relative; z-index: 2; }
.cta h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.cta p { color: rgba(255,255,255,.92); font-size: 1.12rem; margin-top: 14px; }
.cta .hero-actions { justify-content: center; }

/* ===== Service detail rows (services page) ===== */
.svc-detail { display: grid; gap: 28px; }
.svc-row { display: grid; grid-template-columns: 64px 1fr; gap: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.svc-row .ic { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--aqua); color: var(--teal); }
.svc-row h3 { font-size: 1.4rem; color: var(--ocean); }
.svc-row p { color: var(--ink-soft); margin-top: 8px; }
.svc-row ul { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.svc-row li { background: var(--aqua-soft); color: var(--teal); border-radius: 999px; padding: 6px 14px; font-size: .9rem; font-weight: 500; }
.note-band { background: var(--aqua-soft); border-left: 4px solid var(--seafoam); border-radius: 10px; padding: 18px 22px; color: var(--ink-soft); font-size: .98rem; }

/* ===== About: values + team ===== */
.values { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.value { text-align: center; padding: 8px; }
.value .ic { width: 58px; height: 58px; border-radius: 50%; background: var(--aqua); color: var(--teal); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.value h3 { font-size: 1.18rem; color: var(--ocean); }
.value p { color: var(--ink-soft); margin-top: 8px; font-size: .97rem; }
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.member { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.member .photo { aspect-ratio: 1/1; background: linear-gradient(135deg, var(--seafoam), var(--ocean)); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6); font-size: .85rem; text-align: center; padding: 16px; }
.member .body { padding: 20px 22px; }
.member h3 { font-size: 1.15rem; color: var(--ocean); }
.member .role { color: var(--coral); font-weight: 600; font-size: .9rem; margin-top: 3px; }
.member p { color: var(--ink-soft); font-size: .94rem; margin-top: 10px; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.contact-row { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: 0; }
.contact-row .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--aqua); color: var(--teal); display: flex; align-items: center; justify-content: center; flex: none; }
.contact-row .lbl { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); font-weight: 600; }
.contact-row .val { font-size: 1.1rem; color: var(--ocean); font-weight: 600; margin-top: 2px; }
.contact-row a.val { text-decoration: none; }
.contact-row a.val:hover { color: var(--coral); }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); min-height: 420px; }
.map-embed iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* Footer */
footer.site { background: var(--ocean-deep); color: rgba(255,255,255,.82); padding: 56px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.foot-logo { background: #fff; border-radius: 12px; padding: 14px 16px; display: inline-block; line-height: 0; }
.foot-logo img { height: 56px; width: auto; }
footer.site h4 { font-family: 'Inter'; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.6); margin: 0 0 14px; }
footer.site a { color: rgba(255,255,255,.86); text-decoration: none; }
footer.site a:hover { color: #fff; text-decoration: underline; }
.foot-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: .96rem; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: .85rem; color: rgba(255,255,255,.55); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* Scroll reveal — only hide when JS is active, so content is never hidden without JS */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 880px) {
  :root { --crisis-h: 58px; }
  .nav-links { display: none; }
  .hero-content { padding-top: 110px; }
  .cards, .cards.cols-3 { grid-template-columns: 1fr 1fr; }
  .values, .team-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: 1fr; }
  .svc-row .ic { margin-bottom: -6px; }
  section { padding: 60px 0; }
  .page-hero { padding-top: 138px; }
}
@media (max-width: 540px) {
  .cards, .cards.cols-3, .values, .team-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .trust .wrap { gap: 12px 22px; }
}
