/* ============================================================
   MC Sleep Consulting — design system (rebuild preview 2026-08)
   Brand: teal nights, dusty-pink warmth, cloud & sheep artwork.
   Fonts: DM Serif Display (headings) + Raleway (body) — the site's own pairing from the WordPress build.
   ============================================================ */
:root {
  --night: #0B2A36;
  --night-2: #123E4D;
  --teal: #176574;
  --teal-bright: #2E8CA0;
  --pink: #C3788D;
  --pink-deep: #A85E75;
  --sky: #EAF7FD;
  --sky-deep: #D5EEF9;
  --cream: #FDFAF5;
  --ink: #22313A;
  --body: #46565F;
  --muted: #5E717B;
  --line: #DEEBF1;
  --white: #FFFFFF;
  --shadow-soft: 0 6px 24px rgba(23, 101, 116, 0.10);
  --shadow-lift: 0 14px 38px rgba(11, 42, 54, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Raleway', 'Segoe UI', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--body); background: var(--cream); line-height: 1.75; font-size: 16.5px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; color: var(--ink); line-height: 1.22; letter-spacing: -0.01em; }
.wrap { max-width: 1150px; margin: 0 auto; padding: 0 24px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: var(--night); color: #fff; padding: 12px 22px; border-radius: 0 0 12px 0; font-weight: 800; }
.skip-link:focus { left: 0; }
#main-content:focus { outline: none; }
[role="alert"]:focus { outline: 3px solid var(--pink); outline-offset: 2px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 900; background: rgba(253, 250, 245, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; gap: 12px; }
.logo img { height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 13.5px; padding: 0 12px; border-radius: 999px; transition: background .2s, color .2s; }
.nav a:hover { background: var(--sky); color: var(--teal); }
.nav a.active { background: var(--teal); color: var(--white); }
.nav a.nav-cta { background: var(--pink-deep); color: var(--white); margin-left: 6px; }
.nav a.nav-cta:hover { background: #8E4A60; }
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; color: var(--teal); cursor: pointer; padding: 6px 10px; min-width: 44px; min-height: 44px; }

/* ---------- night hero (home) ---------- */
.hero-night { position: relative; background: linear-gradient(160deg, var(--night) 0%, var(--night-2) 45%, var(--teal) 100%); color: var(--white); overflow: hidden; }
.hero-night::before { /* soft stars */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,.9) 45%, transparent 55%),
    radial-gradient(1px 1px at 28% 64%, rgba(255,255,255,.7) 45%, transparent 55%),
    radial-gradient(1.5px 1.5px at 43% 18%, rgba(255,255,255,.8) 45%, transparent 55%),
    radial-gradient(1px 1px at 61% 41%, rgba(255,255,255,.6) 45%, transparent 55%),
    radial-gradient(2px 2px at 74% 15%, rgba(255,255,255,.9) 45%, transparent 55%),
    radial-gradient(1px 1px at 87% 55%, rgba(255,255,255,.7) 45%, transparent 55%),
    radial-gradient(1.5px 1.5px at 52% 78%, rgba(255,255,255,.5) 45%, transparent 55%),
    radial-gradient(1px 1px at 8% 84%, rgba(255,255,255,.6) 45%, transparent 55%);
}
.hero-night::after { /* two slowly twinkling stars (the only idle motion on the site) */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(2px 2px at 68% 24%, rgba(255,255,255,.95) 45%, transparent 55%),
    radial-gradient(1.5px 1.5px at 22% 38%, rgba(255,255,255,.85) 45%, transparent 55%);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-night::after { animation: mc-twinkle 12s ease-in-out infinite; }
  @keyframes mc-twinkle { 0%, 100% { opacity: .45; } 50% { opacity: .7; } }
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: 40px; align-items: center; padding: 84px 0 120px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sky-deep); background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18); padding: 7px 16px; border-radius: 999px; margin-bottom: 22px; }
.hero-night h1 { color: var(--white); font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-bottom: 18px; }
.hero-night h1 em { font-style: italic; color: #F5CBD8; }
.hero-sub { font-size: 1.12rem; color: rgba(255,255,255,.85); max-width: 34em; margin-bottom: 30px; }
.hero-art img { filter: drop-shadow(0 18px 40px rgba(0,0,0,.35)); }
.hero-trust { position: relative; display: flex; gap: 26px; flex-wrap: wrap; margin-top: 34px; font-size: 13.5px; color: rgba(255,255,255,.75); }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-clouds { position: absolute; bottom: -2px; left: 0; right: 0; height: 88px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath fill='%23FDFAF5' d='M0,60 C90,18 190,18 280,52 C350,78 430,80 500,55 C580,26 680,24 760,50 C830,72 910,74 980,52 C1060,26 1160,24 1240,48 C1310,68 1380,66 1440,44 L1440,90 L0,90 Z'/%3E%3C/svg%3E") bottom center / 100% 100% no-repeat; }

/* ---------- inner page hero ---------- */
.hero-day { position: relative; background: linear-gradient(165deg, var(--sky) 0%, var(--sky-deep) 100%); overflow: hidden; }
.hero-day .hero-grid { padding: 64px 0 96px; min-height: 380px; grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); }
.hero-day .hero-grid > div:first-child { max-width: 34rem; }
.hero-day h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 12px; }
.hero-day .hero-eyebrow { color: var(--teal); background: rgba(23,101,116,.08); border-color: rgba(23,101,116,.18); }
.hero-day .hero-sub { color: var(--body); }
.hero-day .hero-clouds { opacity: 1; }
/* hanging artwork: anchored to the hero's TOP edge, rope exits out the top (its designed role) */
.hero-ornament { position: absolute; top: 0; right: 6%; bottom: 96px; width: auto; z-index: 0; pointer-events: none; display: flex; align-items: flex-start; }
.hero-ornament img { height: 100%; width: auto; object-fit: contain; object-position: top; }
.hero-day .hero-grid.has-ornament { grid-template-columns: 1fr; position: relative; z-index: 1; }
@media (max-width: 900px) { .hero-ornament { right: 2%; opacity: .55; } .hero-day .hero-grid.has-ornament > div:first-child { max-width: 100%; } }
@media (max-width: 640px) { .hero-ornament { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-family: var(--font-body); font-weight: 800; font-size: 15px; text-decoration: none; border-radius: 999px; padding: 14px 28px; border: 0; cursor: pointer; transition: transform .15s, box-shadow .15s, background .2s; }
.btn-pink { background: var(--pink-deep); color: var(--white); box-shadow: 0 8px 22px rgba(168,94,117,.38); }
.btn-pink:hover { background: #8E4A60; transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.10); color: var(--white); border: 1.5px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--night-2); transform: translateY(-2px); }
.btn-line { background: var(--white); color: var(--teal); border: 1.5px solid var(--teal); }
.btn-line:hover { background: var(--sky); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- sections ---------- */
.section { padding: 78px 0; }
.section-sky { background: var(--sky); }
.section-night { background: linear-gradient(150deg, var(--night), var(--teal)); color: rgba(255,255,255,.85); padding-bottom: 104px; border-radius: 0 0 48px 48px; position: relative; z-index: 1; }
.section-night h2 { color: var(--white); }
.eyebrow { display: block; font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--pink-deep); margin-bottom: 10px; }
.section-head { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.section-sub { max-width: 44em; margin-bottom: 40px; }
.center { text-align: center; }
.center .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 26px; }
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 32px 28px; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.card-art { height: 110px; display: flex; align-items: center; justify-content: flex-start; margin-bottom: 18px; }
.card-art img { max-height: 100%; width: auto; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; counter-reset: step; }
.step { position: relative; background: rgba(255,255,255,.72); border-radius: var(--radius); padding: 34px 28px 28px; border: 1px solid transparent; }
.step-num { position: absolute; top: -22px; left: 26px; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--teal-bright)); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.15rem; font-weight: 400; box-shadow: 0 6px 16px rgba(23,101,116,.35); }

/* package journey cards */
.pkg-card { display: flex; flex-direction: column; }
.pkg-tag { align-self: flex-start; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); background: var(--sky); border-radius: 999px; padding: 5px 12px; margin-bottom: 14px; }
.pkg-card.featured { border: 2px solid var(--pink-deep); position: relative; box-shadow: 0 12px 30px rgba(168,94,117,.16); }
@media (min-width: 901px) { .pkg-card.featured { transform: translateY(-10px); } .pkg-card.featured:hover { transform: translateY(-14px); } }
.pkg-card.featured .pkg-tag { color: var(--pink-deep); background: #FBEFF3; }
.pkg-price { font-family: var(--font-display); font-size: 1.7rem; color: var(--teal); margin: 14px 0 4px; }
.pkg-price small { display: block; font-family: var(--font-body); font-size: .8rem; color: var(--muted); font-weight: 700; line-height: 1.4; margin-top: 2px; }
.pkg-list { list-style: none; margin: 12px 0 20px; }
.pkg-list li { padding: 6px 0 6px 28px; position: relative; font-size: 15px; }
.pkg-list li::before { content: "☾"; position: absolute; left: 4px; color: var(--pink); font-size: 15px; }
.pkg-card .btn { margin-top: auto; }

/* compare table */
.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
table.compare { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 14.5px; }
table.compare th { background: var(--teal); color: var(--white); text-align: left; padding: 14px 16px; font-family: var(--font-body); font-weight: 800; white-space: nowrap; }
table.compare td { padding: 13px 16px; border-top: 1px solid var(--line); vertical-align: top; }
table.compare td a { display: inline-block; padding: 6px 0; }
table.compare tr:nth-child(even) td { background: var(--sky); }
table.compare td.price { font-weight: 800; color: var(--teal); white-space: nowrap; }

/* team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 26px; }
.team-card { text-align: center; }
.team-photo { width: 150px; height: 150px; border-radius: 50%; overflow: hidden; margin: 0 auto 18px; border: 5px solid var(--sky-deep); box-shadow: var(--shadow-soft); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card .role { color: var(--pink-deep); font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }
.team-meta { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.team-card.slot-open { border-style: dashed; border-width: 2px; border-color: var(--sky-deep); background: transparent; box-shadow: none; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 300px; }

/* testimonials */
.quote-card { position: relative; padding-top: 44px; box-shadow: none; border-radius: 6px; border-left: 3px solid var(--sky-deep); }
.quote-card::before { content: "“"; position: absolute; top: 8px; left: 24px; font-family: var(--font-display); font-size: 4rem; color: var(--sky-deep); line-height: 1; }
.quote-who { font-weight: 800; color: var(--ink); margin-top: 14px; font-size: 14.5px; }

/* split section (image + text) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.split .art img { margin: 0 auto; }

/* forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 800; font-size: 13.5px; color: var(--ink); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], select, textarea { width: 100%; font-family: var(--font-body); font-size: 15.5px; color: var(--ink); background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 13px 15px; transition: border .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(23,101,116,.14); }
textarea { min-height: 140px; resize: vertical; }
.notice { border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 22px; font-weight: 700; }
.notice-ok { background: #E7F6EC; color: #1E6B3C; border: 1px solid #BFE5CC; }
.notice-err { background: #FBEAEA; color: #963939; border: 1px solid #F0C9C9; }

/* footer */
.site-footer { background: var(--night); color: rgba(255,255,255,.72); padding: 60px 0 30px; }
.section-night + .site-footer { padding-top: 92px; margin-top: -32px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer h4 { color: var(--white); font-size: 1.05rem; margin-bottom: 14px; }
.site-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-nav a { display: block; padding: 4px 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 22px; font-size: 13.5px; color: rgba(255,255,255,.5); }
.footer-logo { height: 54px; width: auto; margin-bottom: 16px; }

/* rhythm variants */
.section-compact { padding: 58px 0; }
.section-feature { padding: 96px 0; }


/* motion */
@media (prefers-reduced-motion: no-preference) {
  .fade-up { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
  .fade-up.in { opacity: 1; transform: none; }
}

/* focus visibility */
a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .split, .hero-day .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-art { order: 2; max-width: 230px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  input[type=text], input[type=email], input[type=tel], select, textarea { font-size: 16px; }
  .section.section-compact { padding: 44px 0; }
  .section.section-feature { padding: 68px 0; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px 18px 18px; gap: 6px; box-shadow: var(--shadow-soft); }
  .nav.open { display: flex; }
  .nav a { text-align: center; }
  .nav-toggle { display: block; }
  .section { padding: 56px 0; }
  .hero-grid { padding: 56px 0 104px; }
}

/* questionnaires */
.q-form p { margin-bottom: 16px; }
.q-heading { margin: 30px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--sky-deep); color: var(--teal); font-size: 1.15rem; }

/* ---- header social + cart icons ---- */
.header-icons { display: flex; align-items: center; gap: 8px; }
.header-icons a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--sky); color: var(--teal); transition: background .2s, color .2s, transform .2s; }
.header-icons a:hover { background: var(--teal); color: var(--white); transform: translateY(-1px); }
@media (max-width: 900px) { .header-icons a { width: 34px; height: 34px; } }
@media (max-width: 760px) { .header-icons { margin-left: auto; margin-right: 4px; } }
@media (max-width: 380px) { .header-icons a:first-child { display: none; } }

/* ---- home hero slider ---- */
.hero-slider .hs-track { display: grid; }
.hero-slider .hs-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s linear .8s; }
.hero-slider .hs-slide.is-active { opacity: 1; visibility: visible; transition: opacity .8s ease; }
.hero-slider .hs-slide .hero-grid { padding-bottom: 132px; }
.hs-h1 { font-family: var(--font-display); color: var(--white); font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.12; margin-bottom: 18px; font-weight: 400; letter-spacing: -0.01em; }
.hs-h1 em { font-style: italic; color: #F5CBD8; }
.hero-slider .hs-slide.is-active .hero-grid > div:first-child { animation: hs-rise .8s ease both; }
.hero-slider .hs-slide.is-active .hero-art { animation: hs-rise 1s .15s ease both; }
@keyframes hs-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-slider .hs-slide.is-active .hero-grid > div:first-child, .hero-slider .hs-slide.is-active .hero-art { animation: none; } }
.hs-ui { position: absolute; left: 0; right: 0; bottom: 96px; display: flex; align-items: center; justify-content: center; gap: 14px; z-index: 3; }
.hs-arrow { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); color: var(--white); width: 40px; height: 40px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; transition: background .2s; }
.hs-arrow:hover { background: rgba(255,255,255,.28); }
.hs-dots { display: flex; gap: 9px; }
.hs-dot { width: 11px; height: 11px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.35); cursor: pointer; transition: background .2s, transform .2s; }
.hs-dot:hover { background: rgba(255,255,255,.65); }
.hs-dot.is-active { background: var(--pink); transform: scale(1.25); }
@media (max-width: 900px) {
  .hero-slider .hero-art { max-width: 210px; }
  .hs-ui { bottom: 92px; }
  .hero-slider .hs-slide .hero-grid { padding-bottom: 148px; }
}

/* ---- testimonial photos + real photographs ---- */
.photo-round { border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.quote-photo { margin: 6px 0 16px; }
.quote-photo img { width: 100%; border-radius: var(--radius-sm); }
.quote-who { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; overflow-wrap: anywhere; }
.quote-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--sky-deep); }

/* ---- team member without a photo yet ---- */
.team-initials { width: 100%; height: 100%; min-height: 200px; display: flex; align-items: center; justify-content: center; background: linear-gradient(150deg, var(--sky), var(--sky-deep)); color: var(--teal); font-family: var(--font-display); font-size: 4.4rem; }

/* ---- team-member brand logo (only on that member's page/sections) ---- */
.member-logo-hero { background: var(--white); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-soft); }
.member-logo-inline { border-radius: var(--radius-sm); }

/* slider paddings stated explicitly per breakpoint (never rely on specificity to win) */
@media (max-width: 760px) {
  .hero-slider .hs-slide .hero-grid { padding: 48px 0 150px; }
  .hero-trust span { overflow-wrap: anywhere; }
}

[id]{scroll-margin-top:96px}

/* comparison table: keep package names visible while swiping on phones */
table.compare th:first-child, table.compare td:first-child { position: sticky; left: 0; z-index: 2; }
table.compare th:first-child { background: var(--teal); }
table.compare td:first-child { background: var(--white); box-shadow: 6px 0 8px -6px rgba(0,0,0,.18); }
table.compare tr:nth-child(even) td:first-child { background: var(--sky); }
.table-hint { display: none; text-align: center; font-size: 13.5px; color: var(--muted); margin: 0 0 10px; }
@media (max-width: 820px) { .table-hint { display: block; } }
