/*
Theme Name: Safe Lee & Safe Lea
Theme URI: https://safeleeandlea.com
Description: Phase 1 marketing theme for Safe Lee & Safe Lea. Block theme, Inter typeface, series navy and orange.
Version: 0.2.1
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: safeleeandlea
License: Proprietary. Inter font licensed under the SIL Open Font License 1.1 (assets/fonts/OFL-Inter.txt).
*/

:root {
  --sll-navy: #092438;
  --sll-navy-deep: #061A29;
  --sll-orange: #FF8C31;
  --sll-mist: #F3F5F7;
  --sll-line: #DDE3E9;
  --sll-ink: #16212B;
  --sll-slate: #55636F;
  --sll-radius: 12px;
  --sll-band-y: clamp(3rem, 7vw, 5.5rem);
}

body { text-align: left; -webkit-font-smoothing: antialiased; }
p, li { text-align: left; }
img { max-width: 100%; height: auto; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
.wp-site-blocks { padding-top: 0; padding-bottom: 0; }

/* ---------- Skip link + focus ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--sll-orange); outline-offset: 2px;
}

/* ---------- Header ---------- */
.sll-header { background: var(--sll-navy); color: #fff; position: sticky; top: 0; z-index: 50; padding-block: 0.75rem; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.sll-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; max-width: 1200px; margin-inline: auto !important; }
.sll-brand { display: inline-flex; align-items: center; gap: 0.7rem; color: #fff !important; text-decoration: none; font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.sll-brand img { width: 52px; height: auto; display: block; }
.sll-header .wp-block-navigation { gap: 1.6rem; font-weight: 600; font-size: 0.95rem; }
.sll-header .wp-block-navigation a { color: #fff; text-decoration: none; }
.sll-header .wp-block-navigation a:hover { color: var(--sll-orange); }
.sll-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--sll-navy) !important; color: #fff !important; }
.sll-header .wp-block-navigation__responsive-container-open, .sll-header .wp-block-navigation__responsive-container-close { color: #fff; }
.sll-header .wp-block-buttons { margin: 0; }
.sll-header .wp-block-button__link { padding: 0.6rem 1.1rem; font-size: 0.95rem; }
.sll-header__nav { display: flex; align-items: center; gap: 1.6rem; }
@media (max-width: 1100px) {
  .sll-header .wp-block-navigation, .sll-header .wp-block-navigation__container { gap: 1rem; font-size: 0.9rem; flex-wrap: nowrap; }
  .sll-header__nav { gap: 1rem; }
  .sll-header .wp-block-button__link { padding: 0.5rem 0.9rem; font-size: 0.9rem; }
}
@media (max-width: 860px) { .sll-header .sll-header__cta { display: none; } }
@media (min-width: 600px) and (max-width: 740px) { .sll-brand span { display: none; } }

/* ---------- Bands (full-width sections) ---------- */
.sll-band { padding-block: var(--sll-band-y); }
.sll-band + .sll-band { margin-block-start: 0 !important; }
.sll-band.sll-tight { padding-block: clamp(2rem, 4vw, 3rem); }
.sll-navy { background: var(--sll-navy); color: #fff; }
.sll-navy a:not(.wp-block-button__link) { color: #fff; }
.sll-mist { background: var(--sll-mist); }
.sll-hero { background: linear-gradient(180deg, var(--sll-navy) 0%, var(--sll-navy-deep) 100%); color: #fff; padding-block: clamp(3rem, 8vw, 6rem); }
.sll-hero h1 { margin-top: 0.4rem; max-width: 15ch; }
.sll-hero .sll-lead { color: #D6E0E8; }

.sll-kicker { text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; font-size: 0.8rem; color: var(--sll-navy); display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0 !important; }
.sll-kicker::before { content: ""; width: 1.8rem; height: 3px; background: var(--sll-orange); border-radius: 2px; }
.sll-navy .sll-kicker, .sll-hero .sll-kicker { color: var(--sll-orange); }

.sll-lead { font-size: var(--wp--preset--font-size--large, 1.25rem); line-height: 1.55; color: var(--sll-slate); }
/* Keep long lines readable while staying left-aligned with the 1200px content edge. */
.sll-band.is-layout-constrained > .sll-lead,
.sll-band.is-layout-constrained > h1 {
  max-width: min(64ch, 100%) !important;
  margin-left: max(0px, calc((100% - 1200px) / 2)) !important;
  margin-right: auto !important;
}
.sll-band.is-layout-constrained > h1 { max-width: min(24ch, 100%) !important; }
.sll-navy .sll-lead { color: #D6E0E8; }
.sll-muted { color: var(--sll-slate); }
.sll-navy .sll-muted { color: #B9C7D3; }

/* ---------- Media ---------- */
.sll-media img { border-radius: var(--sll-radius); display: block; width: 100%; box-shadow: 0 18px 40px rgba(0,0,0,0.25); }
.sll-mist .sll-media img, .sll-band:not(.sll-navy):not(.sll-hero) .sll-media img { box-shadow: 0 10px 30px rgba(9,36,56,0.12); }
.sll-media figcaption { font-size: 0.85rem; color: var(--sll-slate); margin-top: 0.5rem; }

/* ---------- Buttons ---------- */
.wp-block-button__link { transition: transform .15s ease, box-shadow .15s ease, background .15s ease; text-decoration: none; }
.wp-block-button__link:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,0.18); }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--sll-navy); border: 2px solid currentColor; }
.sll-navy .wp-block-button.is-style-outline > .wp-block-button__link, .sll-hero .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; }

/* ---------- Cards ---------- */
.sll-cards { gap: 1.25rem !important; }
.sll-card { background: #fff; border: 1px solid var(--sll-line); border-radius: var(--sll-radius); padding: 1.5rem 1.4rem; height: 100%; }
.sll-mist .sll-card { border-color: transparent; box-shadow: 0 2px 10px rgba(9,36,56,0.06); }
.sll-navy .sll-card { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14); }
.sll-card h3 { margin-top: 0; font-size: 1.1rem; }
.sll-card p { margin-bottom: 0; }
.sll-card > *:first-child { margin-top: 0; }
.sll-card-accent { border-top: 4px solid var(--sll-orange); }
.wp-block-column > .sll-card { height: 100%; }

/* ---------- Three beats ---------- */
.sll-beat { position: relative; }
.sll-beat .sll-media, .sll-card .sll-media { margin: -0.4rem -0.3rem 1rem; }
.sll-beat .sll-media img, .sll-card .sll-media img { box-shadow: none !important; border-radius: 8px; }
.sll-beat__num { font-weight: 800; font-size: 0.8rem; letter-spacing: 0.12em; color: #C25E0E; text-transform: uppercase; margin: 0 0 0.3rem !important; }
.sll-navy .sll-beat__num { color: var(--sll-orange); }

/* Illustrated episode steps (How it works) */
.sll-episode-row { gap: clamp(1.25rem, 4vw, 3.5rem) !important; margin-block: 0 clamp(2rem, 5vw, 3.5rem) !important; }
.sll-episode-row h3 { font-size: 1.35rem; margin-top: 0.2rem; }
h2 + .sll-episode-row, .sll-episode-row:first-child { margin-top: 2rem !important; }
.sll-episode-row p:not(.sll-beat__num) { color: var(--sll-slate); font-size: 1.05rem; }
@media (max-width: 781px) { .sll-episode-row { flex-direction: column-reverse !important; } .sll-episode-row:nth-child(odd) { flex-direction: column !important; } }
.sll-cue { font-style: italic; color: var(--sll-navy); font-weight: 600; }
.sll-navy .sll-cue { color: var(--sll-orange); }

/* ---------- Steps ---------- */
.sll-steps { counter-reset: sllstep; display: grid; gap: 1rem; }
.sll-step { counter-increment: sllstep; position: relative; padding: 1.2rem 1.3rem 1.2rem 4.4rem; background: #fff; border: 1px solid var(--sll-line); border-radius: var(--sll-radius); }
.sll-mist .sll-step { border-color: transparent; box-shadow: 0 2px 10px rgba(9,36,56,0.06); }
.sll-step::before { content: counter(sllstep); position: absolute; left: 1.2rem; top: 1.1rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--sll-orange); color: var(--sll-navy); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.sll-step h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.sll-step p { margin: 0; color: var(--sll-slate); }

/* ---------- Topics ---------- */
.sll-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0; list-style: none; }
.sll-chips li { list-style: none; }
.sll-chips a, .sll-chips span { display: inline-block; padding: 0.4rem 0.9rem; border-radius: 999px; border: 1px solid var(--sll-line); background: #fff; color: var(--sll-navy); font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.sll-navy .sll-chips a, .sll-navy .sll-chips span { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); color: #fff; }
.sll-chips a:hover { border-color: var(--sll-orange); }
.sll-topic-group { scroll-margin-top: 6rem; }
.sll-topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.sll-topic { background: #fff; border: 1px solid var(--sll-line); border-radius: var(--sll-radius); padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.35rem; }
.sll-topic__num { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; color: var(--sll-slate); margin: 0; }
.sll-topic h3 { margin: 0; font-size: 1.05rem; }
.sll-topic__setting { margin: 0; font-size: 0.85rem; color: var(--sll-slate); }
.sll-topic__line { margin: 0; font-size: 0.95rem; }
.sll-status { display: inline-block; align-self: flex-start; margin-top: auto !important; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; background: var(--sll-mist); color: var(--sll-slate); }
.sll-status--available { background: var(--sll-orange); color: var(--sll-navy); }

/* ---------- Notes ---------- */
.sll-note { border-left: 4px solid var(--sll-orange); background: #FFF6EC; padding: 1rem 1.2rem; border-radius: 0 8px 8px 0; font-size: 0.95rem; color: #3E3226; }
.sll-note p { margin: 0; }
.sll-navy .sll-note { background: rgba(255,140,49,0.1); color: #F2E4D6; }

/* ---------- Checks list ---------- */
.sll-ticks { list-style: none; padding-left: 0; }
.sll-ticks li { position: relative; padding-left: 1.9rem; margin-bottom: 0.6rem; }
.sll-ticks li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--sll-orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23092438' stroke-width='3' d='M5 10.5l3.2 3.2L15 7'/%3E%3C/svg%3E") center/80% no-repeat; }

/* ---------- Footer ---------- */
.sll-footer { background: var(--sll-navy-deep); color: #B9C7D3; padding-block: 3rem 2rem; padding-inline: clamp(1.1rem, 4vw, 2rem); font-size: 0.9rem; }
.sll-footer__inner { max-width: 1200px; margin-inline: auto !important; }
.sll-footer .sll-brand { font-size: 1rem; }
.sll-footer__tag { margin: 0.6rem 0 0; color: #D6E0E8; }
.sll-footer__comp { font-style: italic; max-width: 80ch; margin: 1.5rem 0; color: #9FB0BF; font-size: 0.85rem; line-height: 1.6; }
.sll-footer__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin: 0; padding: 0; list-style: none; }
.sll-footer__links a { color: #fff; text-decoration: none; }
.sll-footer__links a:hover { color: var(--sll-orange); }
.sll-footer__base { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 1.5rem; padding-top: 1.2rem; font-size: 0.8rem; color: #8193A3; }

/* ---------- Forms (Contact Form 7) ---------- */
.sll-form { background: #fff; border: 1px solid var(--sll-line); border-radius: var(--sll-radius); padding: clamp(1.25rem, 4vw, 2.25rem); box-shadow: 0 10px 30px rgba(9,36,56,0.08); }
.sll-form label, .wpcf7 label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.3rem; }
.wpcf7 p { margin: 0 0 1rem; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 select, .wpcf7 textarea, .sll-input {
  width: 100%; box-sizing: border-box; font: inherit; padding: 0.7rem 0.85rem; border: 1px solid #C5CFD8; border-radius: 6px; background: #fff; color: var(--sll-ink);
}
.wpcf7 textarea { min-height: 140px; }
.wpcf7 .wpcf7-list-item { display: inline-block; margin: 0 1rem 0.4rem 0; font-weight: 400; }
.wpcf7 .wpcf7-list-item label { font-weight: 400; display: inline; }
.wpcf7 input[type="submit"] { background: var(--sll-orange); color: var(--sll-navy); border: 0; border-radius: 6px; padding: 0.85rem 1.6rem; font: inherit; font-weight: 700; cursor: pointer; }
.wpcf7 input[type="submit"]:hover { box-shadow: 0 6px 16px rgba(0,0,0,0.18); }
.wpcf7-not-valid-tip { color: #B3261E; font-size: 0.85rem; }
.sll-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 640px) { .sll-form-row { grid-template-columns: 1fr; } }
.sll-hp { position: absolute !important; left: -9999px !important; }

/* ---------- Text pages ---------- */
.sll-text h2 { font-size: 1.3rem; margin-top: 2rem; }
.sll-updated { color: var(--sll-slate); font-size: 0.9rem; }

/* ---------- Mobile ---------- */
@media (max-width: 781px) {
  .sll-hero h1 { max-width: none; }
  .sll-step { padding-left: 4rem; }
}
