/* The Blue Habit Co. — matches JC's mockup (img/src/mockup/jc-mockup.png).
   All-navy page. Palette: navy #022642, waves #1988B2 / #0171AA / #015889, foam #E8F4F8,
   plus mockup accents: cyan line #48AFD7, CTA cyan #2BB3E3 → #1590C6, card cream #ECE7DF.
   Fonts (self-hosted, SIL OFL): Montserrat (headline, nav, titles), Oswald (CTA label). */

@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/montserrat-latin-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url("fonts/montserrat-latin-italic.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 200 700; font-display: swap;
  src: url("fonts/oswald-latin.woff2") format("woff2"); }

:root {
  --navy: #022642;
  --navy-2: #01304f;
  --navy-deep: #011a2e;
  --wave-light: #1988B2;
  --wave-mid: #0171AA;
  --wave-deep: #015889;
  --foam: #E8F4F8;
  --cyan-line: #48AFD7;
  --sky: #38BDEB;
  --cream: #ECE7DF;
  --muted: #C9DCE6;
  --rule: rgba(160, 196, 216, 0.38);
  --focus: #9be0f7;
  --font: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-cond: "Oswald", "Arial Narrow", sans-serif;
  --wrap: 70rem;          /* 1120px, the mockup's content width at 1280 */
  --header-h: 4.75rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 0.5rem); color-scheme: dark; }
body { margin: 0; font: 1rem/1.6 var(--font); color: #fff; background: var(--navy); }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: 0; z-index: 100; transform: translateY(-120%);
  background: #fff; color: var(--navy); padding: 0.5rem 0.9rem; font-weight: 700; border-radius: 0 0 6px 6px; }
.skip:focus { transform: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 1180px) { .wrap { padding: 0; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy);
  border-bottom: 1px solid var(--cyan-line); box-shadow: 0 1px 0 #00182a; }
.header-inner { display: flex; align-items: center; min-height: var(--header-h); gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: #fff; flex-shrink: 0; }
.brand .mark { width: 64px; height: 64px; border-radius: 50%; }
.stack { display: flex; flex-direction: column; align-items: center; line-height: 1; text-transform: uppercase; }
.stack .s1 { font-weight: 700; font-size: 0.82rem; letter-spacing: 0.22em; padding-left: 0.22em; }
.stack .s2 { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.01em; margin: 0.08rem 0 0.12rem; }
.stack .s3 { font-weight: 600; font-size: 0.8rem; letter-spacing: 0.16em; padding-left: 0.16em; }

.site-nav { flex: 1; display: flex; justify-content: center; }
.site-nav ul { display: flex; gap: 2.4rem; }
.site-nav a { display: inline-flex; align-items: center; gap: 0.3rem; text-decoration: none;
  font-weight: 500; font-size: 0.875rem; letter-spacing: 0.02em; text-transform: uppercase;
  color: #fff; padding: 0.5rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--sky); }
.chev { opacity: 0.9; }

.tools { display: flex; align-items: center; gap: 1.1rem; }
.tool { display: inline-flex; width: 2.5rem; height: 2.5rem; align-items: center; justify-content: center;
  color: #fff; border-radius: 50%; background: none; border: 0; padding: 0; cursor: pointer; }
.tool:hover { color: var(--sky); }
.menu-toggle { display: none; }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 2.9rem; padding: 0.7rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-cond); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.04em;
  text-transform: uppercase; text-decoration: none; line-height: 1; color: #fff; cursor: pointer;
  transition: filter 0.15s, transform 0.15s, background-color 0.15s; }
.btn svg { flex-shrink: 0; }
.btn-cta { background: linear-gradient(180deg, #2DB4E6 0%, #1694CA 50%, #1385BC 100%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  padding: 0.75rem 1.9rem 0.75rem 1.5rem; min-height: 2.85rem; text-shadow: 0 1px 1px rgba(0, 40, 70, 0.35); }
.btn-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-sm { font-size: 1.05rem; }
.btn-outline { border-color: var(--foam); color: var(--foam); }
.btn-outline:hover { background: var(--foam); color: var(--navy); }
.btn-soon { border-color: rgba(201, 220, 230, 0.5); color: var(--muted); cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy);
  height: clamp(20.75rem, 26vw, 31rem); display: flex; align-items: center; }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg { z-index: -1; }
.hero-bg img { object-fit: cover; object-position: 100% 0%; }
.hero-inner { padding-left: 1.6rem; }
.hero-title { margin: 0; font-style: italic; font-weight: 800; font-size: clamp(2.5rem, 4.6vw, 4.4rem);
  line-height: 1.04; letter-spacing: -0.015em; color: #fff; text-shadow: 0 2px 12px rgba(0, 20, 40, 0.35); }
.accent { display: block; width: 5rem; height: 3px; margin: 1.05rem 0 0.85rem; background: var(--sky); border-radius: 2px; }
.hero-sub { margin: 0 0 1.25rem; max-width: 22rem; font-size: clamp(1rem, 1.45vw, 1.2rem); line-height: 1.3;
  font-weight: 500; color: #fff; }

/* ---------- Trust strip ---------- */
.trust { background: var(--navy); border-top: 1px solid rgba(72, 175, 215, 0.55); border-bottom: 1px solid rgba(160, 196, 216, 0.22);
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.35); }
.trust-list { display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 0.7rem; padding-bottom: 0.7rem; }
.trust-list li { display: flex; align-items: center; justify-content: center; gap: 0.85rem;
  font-size: 0.82rem; font-weight: 600; color: #fff; padding: 0.15rem 0.5rem; position: relative; }
.trust-list li + li::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: rgba(72, 140, 175, 0.6); }
.trust-list svg { color: #fff; flex-shrink: 0; }

/* ---------- Collections ---------- */
.collections { padding: 1.3rem 0 1rem; }
.rule-title { display: flex; align-items: center; justify-content: center; gap: 1.6rem; margin: 0 0 1.05rem;
  font-weight: 700; font-size: clamp(1.1rem, 1.6vw, 1.28rem); letter-spacing: 0.17em; text-transform: uppercase;
  color: #fff; text-align: center; }
.rule-title::before, .rule-title::after { content: ""; flex: 0 1 8.5rem; height: 1px; background: var(--rule); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.card { display: flex; flex-direction: column; overflow: hidden; border-radius: 0.8rem; text-decoration: none;
  background: var(--cream); color: var(--navy); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32); }
.card picture { display: block; aspect-ratio: 688 / 400; overflow: hidden; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card-label { position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 2.15rem; padding: 0.35rem 2.4rem; background: linear-gradient(#F2EEE7, #E6E0D6);
  font-weight: 800; font-size: 0.95rem; letter-spacing: 0.01em; text-transform: uppercase; color: var(--navy); }
.card-label svg { position: absolute; right: 0.8rem; top: 50%; transform: translateY(-50%); transition: transform 0.2s; }
.card:hover img { transform: scale(1.05); }
.card:hover .card-label svg { transform: translate(4px, -50%); }

/* ---------- Wave band ---------- */
.wave-band { height: clamp(4.5rem, 9vw, 8.5rem); line-height: 0; background: var(--navy); margin-top: 0.6rem; }
.wave-band svg { width: 100%; height: 100%; display: block; }

/* ---------- Below the waves (navy) ---------- */
.arrivals { background: var(--wave-deep); background: linear-gradient(var(--wave-deep), var(--navy) 85%);
  padding: 2.5rem 0 3rem; text-align: center; }
.arrivals-copy { margin: 0 auto 1.5rem; max-width: 36rem; color: var(--foam); font-size: 1.05rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; }

.about { padding: 2.5rem 0 3.5rem; border-top: 1px solid rgba(160, 196, 216, 0.15); }
.about-inner { display: grid; grid-template-columns: auto 1fr; gap: 2rem 3rem; align-items: start; }
.about-badge { width: 11rem; height: 11rem; border-radius: 50%; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35); }
.about .rule-title { justify-content: flex-start; }
.about .rule-title::before { display: none; }
.about p { margin: 0 0 1rem; max-width: 42rem; color: var(--muted); font-size: 1.02rem; }
.contact { margin-top: 1.6rem; }
.contact h3 { margin: 0 0 0.8rem; font-size: 0.95rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.contact ul { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.75rem; }
.contact a:not(.btn) { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--foam); font-weight: 600; text-decoration: none; }
.contact a:not(.btn):hover { color: #fff; text-decoration: underline; }

.site-footer { background: var(--navy-deep); color: var(--muted); padding: 1.6rem 0 1.25rem; font-size: 0.9rem;
  border-top: 1px solid rgba(72, 175, 215, 0.35); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; }
.site-footer .brand .mark { width: 48px; height: 48px; }
.site-footer .stack .s2 { font-size: 1.15rem; }
.site-footer .stack .s1, .site-footer .stack .s3 { font-size: 0.66rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.6rem; }
.footer-nav a { color: var(--foam); text-decoration: none; font-weight: 500; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-social { display: flex; gap: 0.5rem; }
.footer-social a { display: inline-flex; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center;
  border: 1px solid rgba(232, 244, 248, 0.35); border-radius: 50%; color: var(--foam); }
.footer-social a:hover { background: var(--wave-mid); border-color: var(--wave-mid); color: #fff; }
.legal { margin: 1.2rem auto 0; font-size: 0.82rem; }

/* ---------- 404 ---------- */
.not-found { padding: 4rem 0 2.5rem; text-align: center; }
.not-found .wrap { display: flex; flex-direction: column; align-items: center; }
.not-found img { width: 9rem; height: 9rem; border-radius: 50%; margin-bottom: 1.5rem; }
.not-found .hero-sub { max-width: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .site-nav ul { gap: 1.5rem; }
  .tools { gap: 0.4rem; }
}
@media (max-width: 899px) {
  .js .menu-toggle { display: inline-flex; }
  .tool-search, .tool-user { display: none; }
  .header-inner { justify-content: space-between; }
  .js .site-nav { position: absolute; left: 0; right: 0; top: 100%; display: none;
    background: var(--navy); border-bottom: 1px solid var(--cyan-line); box-shadow: 0 14px 24px rgba(0, 0, 0, 0.35); }
  .js .menu-open .site-nav { display: block; }
  .js .site-nav ul { flex-direction: column; gap: 0; padding: 0.4rem 1.25rem 1rem; }
  .js .site-nav a { display: flex; padding: 0.95rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); font-size: 1rem; }
  .js .site-nav li:last-child a { border-bottom: 0; }
  .js .site-nav .chev { display: none; }
  .no-js .header-inner { flex-wrap: wrap; }
  .no-js .site-nav { order: 3; flex-basis: 100%; justify-content: flex-start; }
  .no-js .site-nav ul { flex-wrap: wrap; gap: 0.25rem 1.25rem; }
  .trust-list { grid-template-columns: repeat(2, 1fr); row-gap: 0.6rem; }
  .trust-list li:nth-child(3)::before { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
}
@media (max-width: 760px) {
  :root { --header-h: 4.1rem; }
  .brand .mark { width: 50px; height: 50px; }
  .stack .s2 { font-size: 1.22rem; }
  .stack .s1, .stack .s3 { font-size: 0.68rem; }
  /* Phone hero: the tee photo on top, copy on navy below. */
  .hero { display: block; height: auto; }
  .hero-bg { position: relative; inset: auto; display: block; height: auto; }
  .hero-bg img { position: static; height: auto; aspect-ratio: 780 / 537; }
  .hero-bg::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%;
    background: linear-gradient(rgba(2, 38, 66, 0), var(--navy)); }
  .hero-inner { padding: 0.5rem 1.25rem 2rem; margin-top: -2.2rem; position: relative; }
  .hero-title { font-size: 2.6rem; }
  .btn-cta { width: 100%; }
  .actions .btn { width: 100%; }
  .trust-list li { flex-direction: column; text-align: center; gap: 0.35rem; font-size: 0.78rem; }
  .trust-list li::before { display: none; }
  .collections { padding-top: 1.75rem; }
  .rule-title { gap: 0.8rem; letter-spacing: 0.12em; font-size: 1.02rem; }
  .rule-title::before, .rule-title::after { flex-basis: 2rem; }
  .cards { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
  .card { border-radius: 0.7rem; }
  .card picture { aspect-ratio: 4 / 3; }
  .card-label { min-height: 2.4rem; font-size: 0.82rem; padding: 0.3rem 1.6rem 0.3rem 0.5rem; }
  .card-label svg { right: 0.45rem; width: 16px; height: 16px; }
  .about-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .about .rule-title { justify-content: center; }
  .about .rule-title::before { display: block; }
  .about-badge { width: 8.5rem; height: 8.5rem; }
  .contact ul { flex-direction: column; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }
  .legal { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media (max-width: 760px) {
  .about .rule-title::before, .about .rule-title::after { display: none; }
}
