/* ═══════════════════════════════════════════════════════════
   emeraldtile · clean e-commerce landing
   Design tokens · Reset · Layout · Components
   ═══════════════════════════════════════════════════════════ */

/* ──── DESIGN TOKENS ──── */
:root {
  /* Palette */
  --bg:           #FFFFFF;
  --surface:      #FAFAF8;
  --surface-2:    #F2F2EE;
  --text:         #0F1411;
  --text-muted:   #6B7570;
  --border:       #E8E9E5;
  --accent:       #2F5D4F;       /* emerald from product */
  --accent-dark:  #1F4538;
  --accent-soft:  #EAF2EE;
  --cta:          #0F1411;
  --cta-hover:    #2A302C;
  --warning:      #C5564E;
  --gold:         #C9A227;

  /* Type */
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15,20,17,.04);
  --shadow-md: 0 1px 2px rgba(15,20,17,.04), 0 4px 12px rgba(15,20,17,.05);
  --shadow-lg: 0 1px 2px rgba(15,20,17,.04), 0 16px 40px rgba(15,20,17,.08);

  /* Layout */
  --max-w: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* ──── RESET ──── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }
em { font-style: italic; }

/* ──── LAYOUT PRIMITIVES ──── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 12px;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-header__desc {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 16px;
}

/* ──── BUTTONS ──── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  background: var(--cta);
  color: #fff;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: background .18s ease, transform .18s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: var(--cta-hover); }
.btn:active { transform: scale(.98); }

.btn--sm { padding: 10px 16px; font-size: 14px; border-radius: var(--r-sm); }
.btn--lg { padding: 18px 30px; font-size: 17px; }
.btn--full { width: 100%; }
.btn--accent { background: var(--accent); }
.btn--accent:hover { background: var(--accent-dark); }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* ──── NAV ──── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.nav__logo-mark {
  width: 24px;
  height: 24px;
  background: var(--accent);
  border-radius: 6px;
  position: relative;
}
.nav__logo-mark::after {
  content: '';
  position: absolute;
  inset: 6px;
  background: var(--bg);
  border-radius: 2px;
}
.nav__logo-text em { color: var(--accent); font-style: italic; }
.nav__links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
.nav__links a {
  color: var(--text-muted);
  transition: color .15s;
}
.nav__links a:hover { color: var(--text); }

@media (max-width: 720px) {
  .nav__links { display: none; }
}

/* ──── HERO ──── */
.hero {
  padding: clamp(40px, 7vw, 80px) 0 clamp(48px, 8vw, 100px);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; }
}

.hero__rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.hero__rating .stars { color: var(--gold); letter-spacing: 1px; }

.hero__title {
  font-size: clamp(34px, 5.2vw, 60px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.hero__title em {
  color: var(--accent);
  font-weight: 700;
}

.hero__sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero__cta { margin-bottom: 24px; }

.hero__perks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.hero__perks li::before { color: var(--accent); margin-right: 2px; }

.hero__media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1;
  background: var(--surface);
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ──── TRUST STRIP ──── */
.trust-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.trust-strip__list {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 500;
}
.trust-strip__list li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.trust-strip__list svg { color: var(--accent); flex-shrink: 0; }

@media (max-width: 720px) {
  .trust-strip__list { justify-content: flex-start; }
  .trust-strip__list li { width: calc(50% - 14px); }
}

/* ──── FEATURES ──── */
.features { padding: clamp(60px, 9vw, 100px) 0; }

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 920px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .features__grid { grid-template-columns: 1fr; }
}

.feature-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.feature-card__icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--accent);
  margin-bottom: 18px;
}
.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ──── GALLERY ──── */
.gallery { padding: clamp(40px, 7vw, 80px) 0; background: var(--surface); }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 800px) {
  .gallery__grid { grid-template-columns: 1fr 1fr; }
  .gallery__grid figure:nth-child(3) { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__grid figure:nth-child(3) { grid-column: auto; }
}

.gallery__grid figure {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--surface-2);
}
.gallery__grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery__grid figure:hover img { transform: scale(1.04); }

/* ──── STEPS ──── */
.steps { padding: clamp(60px, 9vw, 100px) 0; }
.steps__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
@media (max-width: 720px) {
  .steps__list { grid-template-columns: 1fr; }
}

.steps__list li {
  position: relative;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.steps__num {
  display: inline-block;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--accent);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 12px;
}
.steps__list h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.steps__list p {
  font-size: 14.5px;
  color: var(--text-muted);
}

/* ──── PACKAGES ──── */
.packages { padding: clamp(60px, 9vw, 100px) 0; background: var(--surface); }
.packages__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 880px;
  margin-inline: auto;
}
@media (max-width: 720px) {
  .packages__grid { grid-template-columns: 1fr; }
}

.package {
  position: relative;
  padding: 36px 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.package--featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-md);
}
.package__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.package__head h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.package__desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.5;
}
.package__price {
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.price-main {
  display: block;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}
.price-main em { font-style: normal; font-weight: 600; color: var(--text-muted); font-size: 26px; }
.price-per {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ──── REVIEWS ──── */
.reviews { padding: clamp(60px, 9vw, 100px) 0; }
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 880px) {
  .reviews__grid { grid-template-columns: 1fr; }
}
.review {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.review__stars {
  color: var(--gold);
  letter-spacing: 2px;
  font-size: 14px;
  margin-bottom: 14px;
}
.review__text {
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 16px;
}
.review__author {
  font-size: 13.5px;
  color: var(--text-muted);
}
.review__author strong { color: var(--text); font-weight: 600; }

/* ──── FAQ ──── */
.faq { padding: clamp(60px, 9vw, 100px) 0; background: var(--surface); }
.faq__container { max-width: 760px; }
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq details {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .2s;
}
.faq details[open] { border-color: var(--accent); }
.faq summary {
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background .15s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: var(--accent);
  transition: transform .3s ease;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { background: var(--surface); }
.faq__answer {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ──── ORDER FORM ──── */
.order { padding: clamp(60px, 9vw, 100px) 0; }
.order__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  max-width: 1040px;
  margin-inline: auto;
}
@media (max-width: 880px) {
  .order__inner { grid-template-columns: 1fr; }
}

.order__text h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 8px 0 16px;
}
.order__text p {
  color: var(--text-muted);
  margin-bottom: 24px;
}
.order__perks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-muted);
}

.order__form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}
.field input[type="text"],
.field input[type="tel"] {
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field--radios { border: none; }
.field--radios legend { padding: 0; margin-bottom: 8px; }
.field--radios .radio {
  display: inline-flex;
  width: 100%;
}

.field__label + .radio-group { display: flex; gap: 10px; }

.field--radios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.field--radios legend { grid-column: 1 / -1; }
.radio {
  cursor: pointer;
  position: relative;
}
.radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.radio__box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 14px;
  transition: all .15s;
}
.radio__box strong { font-weight: 600; }
.radio__box em { font-style: normal; color: var(--text-muted); font-weight: 500; }
.radio input:checked + .radio__box {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.radio input:checked + .radio__box em { color: var(--accent); font-weight: 700; }

.order__legal {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}
.order__legal a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ──── FOOTER ──── */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.footer__links {
  display: flex;
  gap: 20px;
}
.footer__links a:hover { color: var(--text); }

/* ──── TOAST ──── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  padding: 14px 22px;
  background: var(--cta);
  color: #fff;
  border-radius: var(--r-md);
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 100;
  max-width: calc(100% - 32px);
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast strong { color: #fff; margin-right: 4px; }

/* ──── REDUCED MOTION ──── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
