/* ============================================================
   DESIGN SYSTEM — style.css
   Tokens, typography, components, header, footer
   ============================================================ */

/* --- Tokens --- */
:root {
  --c-ink:        #17284A;
  --c-navy:       #17284A;
  --c-navy-900:   #0F1C36;
  --c-paper:      #EEF2F3;
  --c-haze:       #DFE6EA;
  --c-surface:    #FFFFFF;
  --c-line:       #C9D4DB;
  --c-line-soft:  #E1E7EB;
  --c-accent:     #A2306A;
  --c-accent-700: #85244F;
  --c-accent-soft: rgba(162,48,106,.09);
  --c-sky:        #4F7FA8;
  --c-sky-light:  #A9C8E2;
  --c-body:       #33415A;
  --c-muted:      #56637A;
  --c-dim:        #6E7A8E;
  --c-on-dark:    #EEF2F3;
  --c-on-dark-2:  rgba(238,242,243,.74);
  --c-error:      #C2413B;
  --c-success:    #2F7D5B;

  --ff-display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --ff-body:    'Onest', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --fs-hero:  clamp(1.75rem, 4.4vw, 3.9rem);
  --fs-h2:    clamp(1.55rem, 3vw, 2.5rem);
  --fs-h3:    clamp(1.1rem, 1.5vw, 1.3rem);
  --fs-body:  clamp(1rem, 1.05vw, 1.0625rem);
  --fs-small: .875rem;

  --maxw: 1240px;
  --gut: clamp(16px, 4vw, 64px);
  --sp-section: clamp(64px, 8vw, 128px);
  --header-h: 72px;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-window: 44% / 32%;
  --r-pill: 999px;
}

/* --- Base --- */
body {
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  color: var(--c-ink);
  background: var(--c-paper);
  overflow-x: hidden;
}

::selection {
  background: var(--c-accent);
  color: #fff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.pricing__card--selectable:has(.pricing__radio:focus-visible) {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Layout --- */
.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section {
  padding: var(--sp-section) 0;
}
.section--sand   { background: var(--c-paper); }
.section--sand2  { background: var(--c-haze); }
.section--jade,
.section--ink,
.section--dark   { background: var(--c-navy); color: var(--c-on-dark); }

/* --- Typography --- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--c-sky);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  border-top: 2px dashed var(--c-accent);
}

.eyebrow--light {
  color: var(--c-sky-light);
}

.heading-2 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.12;
  letter-spacing: -.025em;
  color: var(--c-ink);
  margin: 0;
  text-wrap: balance;
}
.heading-2--light { color: var(--c-on-dark); }

.heading-3 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: 1.25;
  color: var(--c-ink);
  margin: 0;
}

.text-lead {
  font-size: clamp(1.06rem, 1.3vw, 1.22rem);
  line-height: 1.55;
  color: var(--c-muted);
  margin: 0;
}

.text-muted { color: var(--c-muted); }
.text-dim   { color: var(--c-dim); }
.text-body  { color: var(--c-body); }

.note {
  display: inline-block;
  margin-top: 10px;
  font-size: .84rem;
  color: var(--c-accent);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 28px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  text-decoration: none;
  white-space: nowrap;
  background: var(--c-navy);
  color: var(--c-on-dark);
}
.btn:hover { background: var(--c-navy-900); }

.btn--brass {
  background: var(--c-accent);
  color: #fff;
}
.btn--brass:hover { background: var(--c-accent-700); }

.btn--jade {
  background: var(--c-navy);
  color: var(--c-on-dark);
}
.btn--jade:hover { background: var(--c-navy-900); }

.btn--ghost {
  background: transparent;
  border-color: var(--c-line);
  color: var(--c-ink);
}
.btn--ghost:hover {
  background: transparent;
  border-color: var(--c-ink);
}

.btn--block {
  width: 100%;
  text-align: center;
  justify-content: center;
  white-space: normal;
}

/* --- Cards --- */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 38px);
}

/* --- Check list --- */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 1rem;
  color: var(--c-body);
  line-height: 1.5;
}
.checklist__icon {
  color: var(--c-accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* --- Arrow list --- */
.arrow-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}
.arrow-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .97rem;
  line-height: 1.5;
  color: var(--c-body);
}
.arrow-list__icon {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--c-accent);
  font-size: 0;
  margin-top: .5em;
}

/* --- Reveal animation --- */
[data-reveal] {
  opacity: 1;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--c-paper);
  border-bottom: 1px solid var(--c-line-soft);
  transition: box-shadow .3s ease, border-color .3s ease;
  font-family: var(--ff-body);
}
.header.is-scrolled {
  border-bottom-color: var(--c-line);
  box-shadow: 0 10px 30px -24px rgba(23,40,74,.6);
}

.header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gut);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.header__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--c-ink);
  flex-shrink: 0;
}
.header__logo-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}
.header__logo-text {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 1.32rem;
  letter-spacing: -.02em;
}

/* Desktop nav */
.header__nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.5vw, 24px);
  flex: 1 1 auto;
  justify-content: center;
}
.header__nav-link {
  position: relative;
  text-decoration: none;
  color: var(--c-body);
  font-size: .93rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 6px 0;
  transition: color .2s ease;
}
.header__nav-link:hover {
  color: var(--c-ink);
}
.header__nav-link[aria-current="page"] {
  color: var(--c-ink);
}
.header__nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--c-accent);
}
.header__nav-divider {
  width: 18px;
  border-top: 2px dotted var(--c-line);
}

/* Right section */
.header__right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.header__phone {
  text-decoration: none;
  color: var(--c-ink);
  font-weight: 600;
  font-size: .93rem;
  white-space: nowrap;
}
.header__cta {
  text-decoration: none;
  background: var(--c-navy);
  color: var(--c-on-dark);
  font-weight: 600;
  font-size: .9rem;
  padding: 11px 18px;
  border-radius: var(--r-md);
  white-space: nowrap;
  transition: background .2s ease;
}
.header__cta:hover {
  background: var(--c-accent);
}

/* Burger */
.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  cursor: pointer;
  flex-shrink: 0;
}
.header__burger-bar {
  width: 20px;
  height: 2px;
  background: var(--c-ink);
  border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease;
}
.header__burger[aria-expanded="true"] .header__burger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header__burger[aria-expanded="true"] .header__burger-bar:nth-child(2) {
  opacity: 0;
}
.header__burger[aria-expanded="true"] .header__burger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Overlay */
.header__overlay {
  position: fixed;
  inset: 0;
  top: var(--header-h);
  background: rgba(15,28,54,.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  z-index: 90;
}
.header__overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* Drawer */
.header__drawer {
  position: fixed;
  top: var(--header-h);
  right: 0;
  width: min(340px, 88vw);
  bottom: 0;
  background: var(--c-paper);
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px clamp(20px, 5vw, 30px) 28px;
  z-index: 95;
  transform: translateX(105%);
  transition: transform .38s cubic-bezier(.22,.61,.36,1);
  overflow-y: auto;
  border-left: 1px solid var(--c-line);
}
.header__drawer.is-open {
  transform: translateX(0);
}

.header__drawer-link {
  text-decoration: none;
  color: var(--c-ink);
  font-size: 1.05rem;
  font-weight: 500;
  padding: 14px 4px;
  border-bottom: 1px dashed var(--c-line);
  display: block;
}
.header__drawer-link[aria-current="page"] {
  color: var(--c-accent);
  font-weight: 600;
}

.header__drawer-phone {
  text-decoration: none;
  color: var(--c-ink);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 20px 4px 10px;
  display: block;
}

.header__drawer-cta {
  text-decoration: none;
  text-align: center;
  background: var(--c-accent);
  color: #fff;
  font-weight: 600;
  padding: 14px;
  border-radius: var(--r-md);
  margin-top: 8px;
  display: block;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--c-haze);
  color: var(--c-ink);
  font-family: var(--ff-body);
  border-top: 1px solid var(--c-line);
  overflow: hidden;
}

.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) var(--gut) 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr 1.2fr;
  gap: clamp(28px, 4vw, 56px);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 320px;
}
.footer__brand-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: -.02em;
}
.footer__brand-text {
  color: var(--c-muted);
  font-size: .93rem;
  line-height: 1.55;
}

.footer__socials {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  border: 1px solid var(--c-line);
  color: var(--c-ink);
  transition: border-color .2s ease, color .2s ease;
}
.footer__social-link:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
}

.footer__col-title {
  font-family: var(--ff-display);
  font-size: .86rem;
  font-weight: 500;
  color: var(--c-ink);
  margin-bottom: 6px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer__col--contacts { gap: 9px; }

.footer__link {
  text-decoration: none;
  color: var(--c-body);
  font-size: .94rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
  transition: color .2s ease;
}
.footer__link:hover {
  color: var(--c-accent);
}

.footer__meta {
  color: var(--c-muted);
  font-size: .88rem;
  line-height: 1.4;
}

.footer__bottom {
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 22px;
  border-top: 1px dashed var(--c-line);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: space-between;
}

.footer__copy {
  color: var(--c-muted);
  font-size: .85rem;
}

.footer__wordmark {
  display: block;
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(5rem, 21vw, 19rem);
  line-height: .8;
  letter-spacing: -.06em;
  color: #D2DBE1;
  text-align: center;
  margin: clamp(28px, 4vw, 48px) 0 -0.12em;
  user-select: none;
}

/* ============================================================
   FORMS (on dark bg)
   ============================================================ */
.form-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-label__text {
  font-size: .88rem;
  font-weight: 500;
  color: var(--c-on-dark);
}
.form-label__optional {
  font-weight: 400;
  color: rgba(238,242,243,.55);
}

.form-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(238,242,243,.35);
  border-radius: 0;
  padding: 12px 2px;
  color: var(--c-on-dark);
  font-size: 1.02rem;
  font-family: inherit;
  outline: none;
  width: 100%;
  transition: border-color .2s ease;
}
.form-input::placeholder {
  color: rgba(238,242,243,.4);
}
.form-input:focus {
  border-bottom-color: var(--c-sky-light);
}
.form-input:focus-visible {
  outline: none;
  border-bottom-color: var(--c-sky-light);
  box-shadow: 0 1px 0 0 var(--c-sky-light);
}
.form-input--error {
  border-bottom-color: #F08C9C;
}

.form-input--textarea {
  resize: vertical;
  border: 1px solid rgba(238,242,243,.25);
  border-radius: var(--r-md);
  padding: 12px 14px;
}
.form-input--textarea:focus,
.form-input--textarea:focus-visible {
  border-color: var(--c-sky-light);
}

.form-error {
  font-size: .82rem;
  color: #F5A9B5;
  display: none;
}
.form-error.is-visible {
  display: block;
}

.form-banner {
  display: none;
  background: rgba(240,140,156,.12);
  border: 1px solid rgba(240,140,156,.5);
  color: #F8C6CE;
  border-radius: var(--r-md);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: .95rem;
}
.form-banner.is-visible {
  display: block;
}

.form-success {
  display: none;
  background: var(--c-surface);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 44px);
  text-align: center;
  color: var(--c-ink);
}
.form-success.is-visible {
  display: block;
}

.form-success__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #DDEFE6;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: var(--c-success);
}

/* ============================================================
   RESPONSIVE — Header/Footer
   ============================================================ */
@media (max-width: 1100px) {
  .header__phone {
    display: none;
  }
}

@media (max-width: 919px) {
  .header__nav,
  .header__right {
    display: none;
  }
  .header__burger {
    display: inline-flex;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  :root {
    --header-h: 64px;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
}
