/* ============================================================
   ЧИО ЧИО — landing, leads-mass-redesign
   Palette and type scale per design/HANDOFF.md
   Breakpoints: desktop 1440 / tablet 768 / mobile 390
   ============================================================ */

:root {
  /* Palette */
  --ink: #17221F;
  --lime: #D7EF54;
  --sage: #E6EDC8;
  --mist: #DCE1D9;
  --paper: #F7F4ED;
  --coral: #E84B35;
  --white: #FFFFFF;

  /* Type scale (desktop) */
  --h1-size: 82px;
  --h2-size: 48px;
  --body-size: 25px;
  --small-size: 19px;
  --caps-size: 18px;
  --caps-tracking: 3px;

  /* Layout */
  --gutter: 64px;
  --radius-panel: 28px;
  --radius-card: 18px;
  --radius-btn: 31px;
  --header-height: 104px;
  --section-gap: 64px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: var(--body-size);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-weight: bold;
  font-size: 20px;
  line-height: 1;
  text-decoration: none;
  text-align: center;
  padding: 20px 36px;
  border-radius: var(--radius-btn);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.btn-coral {
  background: var(--coral);
  color: var(--white);
}

.btn-lime {
  background: var(--lime);
  color: var(--ink);
}

.btn-ink {
  background: var(--ink);
  color: var(--white);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ink);
  min-height: var(--header-height);
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  font-size: 26px;
  font-weight: bold;
}

.brand-name {
  font-size: 28px;
  font-weight: bold;
  color: var(--paper);
  letter-spacing: 1px;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.site-nav > a:not(.btn) {
  font-size: var(--small-size);
  color: var(--mist);
  text-decoration: none;
  letter-spacing: 1px;
  white-space: nowrap;
  padding: 8px 0;
}

.site-nav > a:not(.btn):hover {
  color: var(--lime);
}

.site-nav > a:not(.btn):focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.site-nav .btn {
  font-size: 18px;
  padding: 17px 28px;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  color: var(--lime);
  font-family: Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 1px;
  cursor: pointer;
  padding: 10px 4px;
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.menu-icon {
  font-size: 20px;
  line-height: 1;
}

/* ---------- Hero ---------- */

.hero {
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px var(--gutter) 0;
}

.hero-panel {
  position: relative;
  background: var(--sage);
  border-radius: var(--radius-panel);
  min-height: 520px;
  padding: 40px 52px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  overflow: hidden;
}

.hero-text {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.eyebrow {
  font-size: var(--caps-size);
  font-weight: bold;
  letter-spacing: var(--caps-tracking);
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: var(--h1-size);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 32px;
}

.hero-copy {
  font-size: var(--body-size);
  max-width: 560px;
  margin-bottom: 40px;
}

.hero-art {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  max-width: 456px;
  justify-self: center;
  z-index: 0;
}

/* ---------- Sections shared ---------- */

.services,
.contact {
  max-width: 1440px;
  margin: 0 auto;
  padding: var(--section-gap) var(--gutter) 0;
}

.services h2,
.why h2,
.app h2,
.contact h2 {
  font-size: var(--h2-size);
  font-weight: 800;
  line-height: 1.15;
}

/* ---------- Popular services ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.card {
  border-radius: var(--radius-card);
  padding: 36px 32px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.card h3 {
  font-size: 25px;
  font-weight: bold;
  line-height: 1.25;
}

.card .price {
  font-size: 22px;
  font-weight: bold;
}

.card-ink {
  background: var(--ink);
  color: var(--white);
}

.card-ink .price {
  color: var(--lime);
}

.card-lime {
  background: var(--lime);
  color: var(--ink);
}

.card-coral {
  background: var(--coral);
  color: var(--white);
}

/* ---------- Why CHIO CHIO ---------- */

.why {
  max-width: 1440px;
  margin: 0 auto;
  padding: var(--section-gap) var(--gutter) 0;
}

.why-panel {
  background: var(--mist);
  border-radius: var(--radius-panel);
  padding: 64px 52px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}

.why-text h2 {
  margin-bottom: 24px;
}

.why-copy {
  font-size: var(--body-size);
  max-width: 520px;
  margin-bottom: 36px;
}

.why-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat {
  background: var(--ink);
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  width: 136px;
  min-height: 136px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  text-align: center;
}

.stat-value {
  font-size: 24px;
  font-weight: bold;
  color: var(--lime);
  line-height: 1.1;
}

.stat-label {
  font-size: 13px;
  color: var(--mist);
  line-height: 1.2;
}

/* ---------- App promo ---------- */

.app {
  max-width: 1440px;
  margin: 0 auto;
  padding: var(--section-gap) var(--gutter) 0;
}

.app-panel {
  background: var(--ink);
  border-radius: var(--radius-panel);
  padding: 56px 52px;
}

.app-panel h2 {
  color: var(--white);
  margin-bottom: 20px;
}

.app-copy {
  font-size: var(--body-size);
  color: var(--mist);
  margin-bottom: 32px;
}

.store-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-block;
  background: var(--lime);
  color: var(--ink);
  font-size: 17px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  padding: 16px 40px;
  border-radius: 26px;
  transition: transform 0.15s ease;
}

.store-btn:hover {
  transform: translateY(-2px);
}

.store-btn:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 2px;
}

/* ---------- Contact / salon finder ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  padding-bottom: 80px;
}

.contact-copy {
  font-size: var(--body-size);
  margin-top: 24px;
}

.contact-copy a {
  color: var(--coral);
}

.contact-phone {
  font-size: var(--body-size);
  margin-top: 12px;
}

.contact-phone a {
  text-decoration: none;
  font-weight: bold;
}

.contact-cta {
  font-size: 20px;
  padding: 24px 40px;
  border-radius: 36px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--lime);
  margin-top: 80px;
  padding: 20px 0;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: var(--small-size);
}

.footer-inner a {
  text-decoration: none;
  font-weight: bold;
}

/* ============================================================
   Tablet: 768px canvas, 28px gutters
   ============================================================ */

@media (max-width: 1024px) {
  :root {
    --h1-size: 54px;
    --h2-size: 36px;
    --body-size: 20px;
    --small-size: 16px;
    --caps-size: 14px;
    --caps-tracking: 2px;
    --gutter: 28px;
    --radius-panel: 24px;
    --radius-card: 16px;
    --header-height: 88px;
    --section-gap: 48px;
  }

  .header-inner {
    gap: 16px;
  }

  .site-nav {
    display: none;
  }

  .site-nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--ink);
    padding: 16px var(--gutter) 24px;
    border-top: 1px solid rgba(215, 239, 84, 0.25);
  }

  .site-nav.open > a:not(.btn) {
    padding: 14px 4px;
    font-size: 18px;
  }

  .site-nav.open .btn {
    margin-top: 12px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .brand-badge {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }

  .brand-name {
    font-size: 22px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-panel {
    min-height: 510px;
    padding: 40px 32px;
  }

  .hero-text { max-width: 520px; }

  .hero-art {
    right: 28px;
    max-width: 320px;
  }

  .eyebrow {
    margin-bottom: 20px;
  }

  .hero h1 {
    margin-bottom: 24px;
  }

  .hero-copy {
    margin-bottom: 32px;
  }

  .cards {
    margin-top: 28px;
    gap: 14px;
  }

  .card {
    padding: 28px 22px;
    min-height: 170px;
    gap: 10px;
  }

  .card h3 {
    font-size: 19px;
  }

  .card .price {
    font-size: 18px;
  }

  .why-panel {
    padding: 44px 28px;
    gap: 32px;
  }

  .why-text h2 {
    margin-bottom: 18px;
  }

  .why-copy {
    margin-bottom: 28px;
  }

  .why-stats {
    grid-template-columns: repeat(3, auto);
    justify-content: flex-end;
    gap: 12px;
  }

  .stat {
    width: 112px;
    min-height: 112px;
  }

  .stat-value {
    font-size: 19px;
  }

  .stat-label {
    font-size: 11px;
  }

  .app-panel {
    padding: 40px 28px;
  }

  .app-panel h2 {
    margin-bottom: 16px;
  }

  .app-copy {
    margin-bottom: 24px;
  }

  .store-btn {
    font-size: 16px;
    padding: 14px 30px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 64px;
  }

  .contact-cta {
    width: 100%;
  }

  .footer-inner {
    font-size: 17px;
  }
}

/* ============================================================
   Mobile: 390px canvas, 16px gutters
   ============================================================ */

@media (max-width: 640px) {
  :root {
    --h1-size: 39px;
    --h2-size: 29px;
    --body-size: 17px;
    --small-size: 15px;
    --caps-size: 11px;
    --caps-tracking: 1.3px;
    --gutter: 16px;
    --radius-panel: 22px;
    --radius-card: 14px;
    --header-height: 72px;
    --section-gap: 40px;
  }

  .brand-badge {
    width: 42px;
    height: 42px;
    font-size: 15px;
  }

  .brand-name {
    font-size: 20px;
  }

  .menu-toggle {
    font-size: 14px;
    padding: 8px 0;
  }

  .menu-label {
    display: none;
  }

  .menu-icon {
    font-size: 24px;
  }

  .hero {
    padding-top: 20px;
  }

  .hero-panel {
    min-height: 540px;
    padding: 56px 22px 120px;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-art {
    right: 12px;
    top: auto;
    bottom: 64px;
    max-width: 216px;
    opacity: 1;
  }

  .eyebrow {
    margin-bottom: 24px;
  }

  .hero h1 {
    margin-bottom: 20px;
  }

  .hero-copy {
    margin-bottom: 28px;
    max-width: 280px;
  }

  .btn {
    font-size: 17px;
    padding: 17px 28px;
  }

  .cards {
    grid-template-columns: 1fr;
    margin-top: 24px;
    gap: 16px;
  }

  .card {
    min-height: 112px;
    padding: 24px 20px;
  }

  .card h3 {
    font-size: 18px;
  }

  .card .price {
    font-size: 16px;
  }

  .why-panel {
    padding: 36px 20px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .why-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .stat {
    width: 100%;
    min-height: 104px;
    aspect-ratio: auto;
  }

  .stat-value {
    font-size: 17px;
  }

  .stat-label {
    font-size: 11px;
  }

  .app-panel {
    padding: 32px 20px;
  }

  .store-buttons {
    gap: 12px;
  }

  .store-btn {
    font-size: 14px;
    padding: 14px 16px;
    flex: 1 1 auto;
  }

  .contact-grid {
    gap: 24px;
    padding-bottom: 56px;
  }

  .contact-cta {
    width: 100%;
    padding: 20px 24px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 15px;
  }
}
