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

/* --- Tokens --- */
:root {
  --c-ink:      #14201D;
  --c-jade:     #0E4D44;
  --c-jade-700: #0A3A33;
  --c-brass:    #B4824A;
  --c-brass-light: #D6A766;
  --c-sand:     #F6F2EA;
  --c-sand-2:   #ECE6DA;
  --c-cream:    #FFFFFF;
  --c-line:     #DCD5C7;
  --c-muted:    #5A645F;
  --c-body:     #3A4541;
  --c-dim:      #8A8474;
  --c-on-dark:  #F6F2EA;
  --c-error:    #E0866F;
  --c-success:  #5C8C3F;

  --ff-display: 'Fraunces', Georgia, serif;
  --ff-body:    'Manrope', system-ui, sans-serif;

  --fs-hero:  clamp(2.8rem, 7vw, 5.4rem);
  --fs-h2:    clamp(2rem, 4vw, 3.2rem);
  --fs-h3:    clamp(1.3rem, 2vw, 1.6rem);
  --fs-body:  clamp(1rem, 1.1vw, 1.125rem);
  --fs-small: .875rem;

  --maxw: 1240px;
  --gut: clamp(16px, 4vw, 64px);
  --sp-section: clamp(64px, 9vw, 140px);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
}

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

::selection {
  background: var(--c-brass);
  color: var(--c-ink);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--c-brass);
  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-sand); }
.section--sand2  { background: var(--c-sand-2); }
.section--jade   { background: var(--c-jade); color: var(--c-on-dark); }
.section--ink    { background: var(--c-ink); color: var(--c-on-dark); }

/* --- Typography --- */
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-brass);
  margin-bottom: 18px;
}

.eyebrow--light {
  color: var(--c-brass-light, #D6A766);
}

.heading-2 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: -.015em;
  color: var(--c-ink);
  margin: 0;
}
.heading-2--light { color: var(--c-on-dark); }

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

.text-lead {
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  line-height: 1.5;
  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 {
  font-size: .82rem;
  color: var(--c-dim);
  font-style: italic;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1.02rem;
  padding: 16px 32px;
  border-radius: var(--r-pill);
  border: none;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn--brass {
  background: var(--c-brass);
  color: var(--c-ink);
  box-shadow: 0 18px 40px -18px rgba(180,130,74,.9);
}
.btn--brass:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px -18px rgba(180,130,74,.95);
}

.btn--jade {
  background: var(--c-jade);
  color: var(--c-on-dark);
  box-shadow: 0 10px 24px -14px rgba(14,77,68,.8);
}
.btn--jade:hover {
  background: var(--c-jade-700);
  transform: translateY(-1px);
}

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

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

/* --- Cards --- */
.card {
  background: var(--c-cream);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: clamp(26px, 3.2vw, 42px);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 56px -34px rgba(20,32,29,.45);
  border-color: #CFC6B3;
}

/* --- 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-jade);
  font-weight: 700;
  flex-shrink: 0;
}

/* --- Arrow list --- */
.arrow-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.arrow-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .96rem;
  color: var(--c-body);
}
.arrow-list__icon {
  color: var(--c-brass);
  font-weight: 700;
  line-height: 1.5;
}

/* --- Reveal animation --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- Hero animation --- */
@keyframes heroUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, box-shadow .35s ease, border-color .35s ease;
  font-family: var(--ff-body);
}
.header.is-scrolled {
  background: rgba(246,242,234,.92);
  backdrop-filter: saturate(1.1) blur(10px);
  -webkit-backdrop-filter: saturate(1.1) blur(10px);
  border-bottom-color: var(--c-line);
  box-shadow: 0 8px 30px -18px rgba(20,32,29,.4);
}

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

/* Logo */
.header__logo {
  text-decoration: none;
  color: var(--c-on-dark);
  transition: color .35s ease;
  flex-shrink: 0;
}
.header.is-scrolled .header__logo {
  color: var(--c-ink);
}
.header__logo-text {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 1.42rem;
  letter-spacing: .005em;
}

/* Desktop nav */
.header__nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 26px);
  flex: 1 1 auto;
  justify-content: center;
}
.header__nav-link {
  text-decoration: none;
  color: var(--c-on-dark);
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .005em;
  white-space: nowrap;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color .25s ease, border-color .25s ease;
}
.header.is-scrolled .header__nav-link {
  color: var(--c-ink);
}
.header__nav-link[aria-current="page"] {
  border-bottom-color: var(--c-brass);
}

/* Right section */
.header__right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.header__phone {
  text-decoration: none;
  color: var(--c-on-dark);
  font-weight: 600;
  font-size: .92rem;
  white-space: nowrap;
  transition: color .35s ease;
}
.header.is-scrolled .header__phone {
  color: var(--c-ink);
}
.header__cta {
  text-decoration: none;
  background: var(--c-jade);
  color: var(--c-on-dark);
  font-weight: 600;
  font-size: .88rem;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  white-space: nowrap;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 10px 24px -14px rgba(14,77,68,.8);
}
.header__cta:hover {
  background: var(--c-jade-700);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -14px rgba(14,77,68,.9);
}

/* Burger */
.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  background: transparent;
  border: 1px solid rgba(246,242,234,.4);
  border-radius: 12px;
  cursor: pointer;
  flex-shrink: 0;
}
.header.is-scrolled .header__burger {
  border-color: var(--c-line);
}
.header__burger-bar {
  width: 20px;
  height: 2px;
  background: var(--c-on-dark);
  border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease;
}
.header.is-scrolled .header__burger-bar {
  background: var(--c-ink);
}
.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: 74px;
  background: rgba(20,32,29,.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: 74px;
  right: 0;
  width: min(340px, 86vw);
  bottom: 0;
  background: var(--c-jade);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 26px clamp(20px, 5vw, 30px);
  z-index: 95;
  transform: translateX(105%);
  transition: transform .38s cubic-bezier(.22,.61,.36,1);
  overflow-y: auto;
  border-left: 1px solid rgba(246,242,234,.12);
}
.header__drawer.is-open {
  transform: translateX(0);
}

.header__drawer-link {
  text-decoration: none;
  color: var(--c-on-dark);
  font-size: 1.05rem;
  font-weight: 500;
  padding: 14px 6px;
  border-bottom: 1px solid rgba(246,242,234,.12);
  display: block;
}
.header__drawer-link[aria-current="page"] {
  color: var(--c-brass);
  font-weight: 600;
}

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

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

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--c-ink);
  color: var(--c-on-dark);
  font-family: var(--ff-body);
}

.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 84px) var(--gut) 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(32px, 4vw, 56px);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 300px;
}
.footer__brand-name {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 1.5rem;
}
.footer__brand-text {
  color: rgba(246,242,234,.7);
  font-size: .95rem;
  line-height: 1.55;
}

.footer__socials {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(246,242,234,.2);
  color: var(--c-on-dark);
  transition: background .2s ease, border-color .2s ease;
}
.footer__social-link:hover {
  background: rgba(180,130,74,.2);
  border-color: var(--c-brass);
}

.footer__col-title {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-brass);
  font-weight: 600;
  margin-bottom: 4px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__col--contacts { gap: 10px; }

.footer__link {
  text-decoration: none;
  color: rgba(246,242,234,.82);
  font-size: .95rem;
  line-height: 1.4;
  transition: color .2s ease;
}
.footer__link:hover {
  color: var(--c-on-dark);
}

.footer__meta {
  color: rgba(246,242,234,.6);
  font-size: .88rem;
  line-height: 1.4;
}

.footer__bottom {
  margin-top: clamp(40px, 5vw, 56px);
  padding-top: 24px;
  border-top: 1px solid rgba(246,242,234,.14);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: space-between;
}

.footer__copy {
  color: rgba(246,242,234,.6);
  font-size: .85rem;
}
.footer__disclaimer {
  color: rgba(246,242,234,.45);
  font-size: .78rem;
  max-width: 560px;
  line-height: 1.5;
}

/* ============================================================
   FORMS (on dark bg)
   ============================================================ */
.form-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-label__text {
  font-size: .86rem;
  font-weight: 600;
  color: rgba(246,242,234,.9);
}
.form-label__optional {
  font-weight: 400;
  color: rgba(246,242,234,.55);
}

.form-input {
  background: rgba(246,242,234,.06);
  border: 1px solid rgba(246,242,234,.22);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--c-on-dark);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  width: 100%;
  transition: border-color .2s ease;
}
.form-input:focus {
  border-color: var(--c-brass);
}
.form-input--error {
  border-color: var(--c-error);
}

.form-input--textarea {
  resize: vertical;
}

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

.form-banner {
  display: none;
  background: rgba(224,134,111,.16);
  border: 1px solid rgba(224,134,111,.5);
  color: #F4C4B7;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: .95rem;
}
.form-banner.is-visible {
  display: block;
}

.form-success {
  display: none;
  background: var(--c-on-dark);
  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: var(--r-pill);
  background: #E2EFD9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: var(--c-success);
}

/* ============================================================
   RESPONSIVE — Header/Footer
   ============================================================ */
@media (max-width: 919px) {
  .header__nav,
  .header__right {
    display: none;
  }
  .header__burger {
    display: inline-flex;
  }
}

@media (max-width: 767px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}
