/* ===========================
   DOMEI — styles.css
   Mobile-first
   =========================== */

:root {
  --navy:        #1D3461;
  --navy-light:  #264278;
  --orange:      #C8813A;
  --orange-light:#D9924A;
  --slate:       #536175;
  --slate-light: #6B7C8D;
  --off-white:   #F7F8FA;
  --white:       #FFFFFF;
  --border:      #E2E8F0;
  --text:        #1A2B47;
  --text-muted:  #718096;
  --radius:      12px;
  --radius-sm:   6px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:   0 16px 48px rgba(0,0,0,0.14);
  --transition:  0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── UTILITIES ── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 640px) {
  .container { padding: 0 24px; }
}

.section { padding: 64px 0; }

@media (min-width: 768px) {
  .section { padding: 96px 0; }
}

.section__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

@media (min-width: 768px) {
  .section__header { margin-bottom: 64px; }
}

.section__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section__desc {
  color: var(--text-muted);
  font-size: 1.0625rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .btn { padding: 13px 28px; }
}

.btn--primary { background: var(--orange); color: var(--white); }
.btn--primary:hover {
  background: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,129,58,0.4);
}
.btn--primary:active { transform: translateY(0); box-shadow: none; }

.btn--outline {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn--outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(29,52,97,0.2);
}
.btn--outline:active { transform: translateY(0); }

.btn--ghost {
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
  background: transparent;
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-2px);
}
.btn--ghost:active { transform: translateY(0); }

.btn--full { width: 100%; }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: var(--shadow-md); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: 0.06em;
}
.logo--light { color: var(--white); }

@media (min-width: 640px) {
  .logo { font-size: 1.25rem; }
}

/* Mobile nav — hidden by default, shown as dropdown */
.nav__links {
  display: none;
  position: absolute;
  top: 64px; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  padding: 24px 20px;
  gap: 20px;
  align-items: flex-start;
  box-shadow: var(--shadow-md);
}
.nav__links.open { display: flex; }

.nav__links a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--slate);
  transition: color var(--transition);
  position: relative;
}
.nav__links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--orange);
  border-radius: 2px;
  transition: width 0.25s ease;
}
.nav__links a:not(.btn):hover { color: var(--navy); }
.nav__links a:not(.btn):hover::after { width: 100%; }
.nav__links .btn { width: 100%; justify-content: center; }

/* Burger visible on mobile */
.nav__burger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav__burger span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Desktop nav — inline links, no burger */
@media (min-width: 768px) {
  .nav__links {
    display: flex;
    position: static;
    flex-direction: row;
    background: transparent;
    border: none;
    padding: 0;
    gap: 32px;
    box-shadow: none;
    align-items: center;
  }
  .nav__links a { font-size: 0.9375rem; }
  .nav__links .btn { width: auto; }
  .nav__links .btn { margin-left: 8px; }
  .nav__burger { display: none; }
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 64px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, #0F1E35 55%, #1A2B47 100%);
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 58px,
    rgba(255,255,255,0.025) 58px, rgba(255,255,255,0.025) 60px
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-top: 32px;
  padding-bottom: 80px;
}

.hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .hero__eyebrow { margin-bottom: 20px; }
}

.hero__headline {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .hero__headline { margin-bottom: 24px; }
}

.hero__sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.65;
}

@media (min-width: 768px) {
  .hero__sub { margin-bottom: 40px; }
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero__actions .btn { width: 100%; }

@media (min-width: 480px) {
  .hero__actions { flex-direction: row; flex-wrap: wrap; }
  .hero__actions .btn { width: auto; }
}

.hero__scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero__scroll span {
  display: block;
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 0.8; transform: scaleY(1.1); }
}

/* ── TRUST BAR ── */
.trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 36px 20px;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .trust {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0;
    padding: 40px 24px;
  }
}

.trust__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s ease;
}
.trust__item:hover { transform: translateY(-2px); }
.trust__item:hover strong { color: var(--orange); }

.trust__item strong {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--navy);
  transition: color 0.2s ease;
}

@media (min-width: 768px) {
  .trust__item { padding: 0 40px; }
  .trust__item strong { font-size: 1.5rem; }
}

.trust__item span {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.trust__divider {
  display: none;
}
@media (min-width: 768px) {
  .trust__divider {
    display: block;
    width: 1px; height: 40px;
    background: var(--border);
  }
}

/* ── SERVICES ── */
.services { background: var(--off-white); }

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 560px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (min-width: 1024px) {
  .services__grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
}

@media (min-width: 768px) {
  .service-card { padding: 32px; }
}

.service-card:hover {
  border-color: var(--orange);
  box-shadow: 0 8px 32px rgba(29,52,97,0.12);
  transform: translateY(-4px);
}
.service-card:hover .service-card__icon {
  background: var(--orange);
  color: var(--white);
}

.service-card__icon {
  width: 48px; height: 48px;
  background: var(--off-white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  margin-bottom: 16px;
  transition: background 0.2s ease, color 0.2s ease;
}

@media (min-width: 768px) {
  .service-card__icon { width: 52px; height: 52px; margin-bottom: 20px; }
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .service-card h3 { font-size: 1.0625rem; margin-bottom: 10px; }
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

@media (min-width: 768px) {
  .service-card p { font-size: 0.9375rem; }
}

/* ── ABOUT ── */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 768px) {
  .about__grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

.about__visual { display: flex; justify-content: center; }

.about__deck-preview {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 420px;
  padding: 28px;
  background: var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
  .about__deck-preview {
    padding: 40px;
    transform: perspective(800px) rotateY(-8deg) rotateX(4deg);
  }
}

.deck-plank {
  height: 34px;
  border-radius: 4px;
  background: linear-gradient(90deg, #6B4C2A 0%, #8B6340 30%, #7A5530 65%, #6B4C2A 100%);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .deck-plank { height: 38px; }
}

.deck-plank::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 30%;
  width: 1px;
  background: rgba(0,0,0,0.15);
}
.deck-plank::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 70%;
  width: 1px;
  background: rgba(0,0,0,0.1);
}
.deck-plank:nth-child(even) {
  background: linear-gradient(90deg, #7A5530 0%, #9B7350 30%, #8A6040 65%, #7A5530 100%);
}

.about__copy h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .about__copy h2 { margin-bottom: 20px; }
}

.about__copy p {
  color: var(--text-muted);
  margin-bottom: 14px;
  font-size: 1rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .about__copy p { font-size: 1.0625rem; margin-bottom: 16px; }
}

.about__list {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--navy);
  font-size: 0.9375rem;
}

/* ── WHY ── */
.why { background: var(--navy); }
.why .section__eyebrow { color: var(--orange); }
.why .section__title { color: var(--white); }

.why__table {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Mobile: stacked cards */
.why__row {
  display: grid;
  grid-template-columns: 1fr;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.why__row:last-child { border-bottom: none; }

.why__row--header { display: none; }

.why__feature {
  padding: 20px 20px 8px;
  font-weight: 600;
  color: var(--orange);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}
.why__detail {
  padding: 0 20px 20px;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Desktop: table layout */
@media (min-width: 768px) {
  .why__row {
    grid-template-columns: 200px 1fr;
  }
  .why__row--header {
    display: grid;
    background: rgba(255,255,255,0.05);
  }
  .why__row--header div {
    padding: 16px 28px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
  }
  .why__feature {
    padding: 24px 28px;
    font-size: 0.9375rem;
    border-right: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
  }
  .why__detail {
    padding: 24px 28px;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
  }
}

.why__row:not(.why__row--header):hover {
  background: rgba(255,255,255,0.06);
  cursor: default;
}
.why__row:not(.why__row--header):hover .why__feature {
  color: var(--orange-light);
}

/* ── CALCULATOR ── */
.calc { background: var(--off-white); }

.calc__card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .calc__card {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 48px;
  }
}

.calc__inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .calc__inputs { gap: 20px; }
}

.calc__result {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 24px;
  background: var(--navy);
  border-radius: var(--radius-sm);
  text-align: center;
}

@media (min-width: 768px) {
  .calc__result { padding: 40px; }
}

.calc__result-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}

.calc__result-price {
  font-size: clamp(1.375rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
  min-height: 2.4em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calc__result-note {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ── FORMS ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

/* Prevent iOS zoom on focus (font-size must be ≥ 16px on mobile) */
@media (max-width: 767px) {
  .form-group input,
  .form-group select,
  .form-group textarea { font-size: 16px; }
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234A5568' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232,122,45,0.12);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 480px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
}

.form-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  color: #166534;
  font-size: 0.9375rem;
  font-weight: 500;
  margin-top: 16px;
}
.form-success[hidden] { display: none; }

/* ── CONTACT ── */
.contact { background: var(--white); }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

@media (min-width: 768px) {
  .contact__grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
  }
}

.contact__copy h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .contact__copy h2 { margin-bottom: 20px; }
}

.contact__copy p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

@media (min-width: 768px) {
  .contact__copy p { font-size: 1.0625rem; margin-bottom: 32px; }
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact__detail {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--slate);
  font-size: 0.9375rem;
}
.contact__detail svg { flex-shrink: 0; color: var(--orange); }

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 768px) {
  .contact__form { gap: 18px; }
}

/* ── ANIMATIONS ── */

/* Hero entrance */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__eyebrow  { animation: heroFadeUp 0.6s ease both 0.1s; }
.hero__headline { animation: heroFadeUp 0.7s ease both 0.25s; }
.hero__sub      { animation: heroFadeUp 0.6s ease both 0.45s; }
.hero__actions  { animation: heroFadeUp 0.6s ease both 0.62s; }

/* Deck planks slide in */
.about__deck-preview .deck-plank {
  opacity: 0;
  transform: translateX(-18px);
  transition: opacity 0.38s ease, transform 0.38s ease;
}
.about__deck-preview.animate .deck-plank { opacity: 1; transform: translateX(0); }
.about__deck-preview.animate .deck-plank:nth-child(1) { transition-delay: 0.00s; }
.about__deck-preview.animate .deck-plank:nth-child(2) { transition-delay: 0.07s; }
.about__deck-preview.animate .deck-plank:nth-child(3) { transition-delay: 0.14s; }
.about__deck-preview.animate .deck-plank:nth-child(4) { transition-delay: 0.21s; }
.about__deck-preview.animate .deck-plank:nth-child(5) { transition-delay: 0.28s; }
.about__deck-preview.animate .deck-plank:nth-child(6) { transition-delay: 0.35s; }
.about__deck-preview.animate .deck-plank:nth-child(7) { transition-delay: 0.42s; }

/* Calculator price pulse */
@keyframes pricePulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.08); color: var(--orange); }
  100% { transform: scale(1); color: var(--white); }
}
.calc__result-price.pulse { animation: pricePulse 0.35s ease; }

/* ── FOOTER ── */
.footer {
  background: var(--navy);
  padding: 32px 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer__copy {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
}

.footer__links {
  display: flex;
  gap: 24px;
}
.footer__links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
  position: relative;
}
.footer__links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--orange);
  transition: width 0.25s ease;
}
.footer__links a:hover { color: var(--white); }
.footer__links a:hover::after { width: 100%; }
