/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img, picture, video { display: block; max-width: 100%; }

/* ===== VARIABLES ===== */
:root {
  --primary: #1a2e4a;
  --primary-dark: #111f33;
  --primary-light: #243d60;
  --accent: #c8973a;
  --accent-light: #d9aa55;
  --bg: #f5f4f0;
  --bg-alt: #eceae4;
  --surface: #ffffff;
  --surface-2: #f0ede6;
  --ink: #1c1c1e;
  --ink-mute: #6b6b6b;
  --ink-light: #9a9a9a;
  --border: #ddd9d0;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-6: 24px;
  --s-8: 32px;
  --s-12: 48px;
  --s-16: 64px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --transition: 0.2s ease;
}

/* ===== BASE ===== */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1,h2,h3,h4 { margin: 0; line-height: 1.2; }
p { margin: 0; }

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--s-6);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-3) var(--s-8);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  border: 2px solid transparent;
  text-align: center;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn--primary:hover { background: var(--accent-light); border-color: var(--accent-light); }
.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn--ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--full { width: 100%; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary);
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: var(--s-4);
}

/* ===== LOGO ===== */
.logo {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  color: #fff;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}
.logo-icon { display: flex; align-items: center; }
.logo--light { color: #fff; }

/* ===== NAV ===== */
.site-nav { display: flex; }
.nav-list {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.nav-link {
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  font-weight: 500;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-link--cta {
  background: var(--accent);
  color: #fff;
  padding: var(--s-2) var(--s-4);
  margin-left: var(--s-2);
}
.nav-link--cta:hover { background: var(--accent-light); }

/* ===== BURGER ===== */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--s-2);
  border-radius: var(--radius);
  flex-shrink: 0;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(15,25,40,0.88) 0%, rgba(15,25,40,0.55) 60%, rgba(15,25,40,0.30) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-top: var(--s-16);
  padding-bottom: var(--s-16);
  max-width: 680px;
}
.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-4);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--s-6);
  line-height: 1.15;
}
.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.82);
  margin-bottom: var(--s-8);
  max-width: 520px;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  gap: var(--s-4);
  flex-wrap: wrap;
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--primary);
  padding: var(--s-8) 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
  text-align: center;
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  padding: var(--s-4);
  border-right: 1px solid rgba(255,255,255,0.12);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  font-weight: 400;
}

/* ===== SECTION COMMON ===== */
.section { padding: var(--s-16) 0; }
.section--alt { background: var(--bg-alt); }
.section-header {
  text-align: center;
  margin-bottom: var(--s-12);
}
.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-3);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--s-4);
}
.section-sub {
  font-size: 16px;
  color: var(--ink-mute);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ===== CARDS GRID ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-6);
  align-items: stretch;
}
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--s-8);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card__body { flex: 1 1 auto; }
.card__footer { margin-top: auto; padding-top: var(--s-4); }
.card__image { aspect-ratio: 4/3; object-fit: cover; width: 100%; display: block; border-radius: var(--radius); }
.card__text {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--ink-mute);
  font-size: 15px;
  line-height: 1.65;
}

/* ===== SERVICE CARDS ===== */
.card-icon-wrap {
  margin-bottom: var(--s-6);
  display: flex;
}
.card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--s-3);
}
.card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  transition: color var(--transition);
}
.card-link:hover { color: var(--primary); }

/* ===== CASE CARDS ===== */
.case-card { position: relative; }
.case-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--s-1) var(--s-3);
  border-radius: 4px;
  margin-bottom: var(--s-4);
}
.case-tag--win { background: #e8f5e9; color: #2e7d32; }
.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-4);
}
.case-meta-item {
  font-size: 12px;
  color: var(--ink-mute);
  background: var(--surface-2);
  padding: var(--s-1) var(--s-3);
  border-radius: 4px;
}
.case-result {
  font-size: 13px;
  font-weight: 600;
  color: #2e7d32;
}

/* ===== ABOUT ===== */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--s-16);
  align-items: center;
}
.about-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about-desc {
  color: var(--ink-mute);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: var(--s-4);
}
.about-credentials {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-top: var(--s-6);
}
.about-credentials li {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
  align-items: stretch;
  margin-bottom: var(--s-12);
}
.price-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--s-8);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: box-shadow var(--transition);
}
.price-card:hover { box-shadow: var(--shadow-md); }
.price-card--featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: scale(1.02);
}
.price-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--s-1) var(--s-4);
  border-radius: 20px;
  white-space: nowrap;
}
.price-card__header { margin-bottom: var(--s-6); }
.price-card__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--s-3);
}
.price-card__price {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: var(--s-2);
}
.price-card__price span { font-size: 22px; }
.price-card__period {
  font-size: 13px;
  color: var(--ink-mute);
}
.price-card__features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-bottom: var(--s-8);
}
.price-card__features li {
  font-size: 14px;
  color: var(--ink-mute);
  padding-left: var(--s-6);
  position: relative;
  line-height: 1.5;
}
.price-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.price-card .btn { margin-top: auto; }

/* ===== PRICING TABLE ===== */
.pricing-table-wrap { margin-top: var(--s-8); }
.pricing-table-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--s-6);
}

/* ===== DATA TABLE ===== */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; }
.data-table thead { background: var(--surface-2); }
.data-table th { font-weight: 600; color: var(--primary); font-size: 14px; }
.data-table tbody tr { border-bottom: 1px solid var(--border); background: var(--surface); }
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background: var(--bg); }
.data-table td { font-size: 14px; color: var(--ink-mute); }
.data-table td:first-child { font-weight: 600; color: var(--ink); }
.data-table td:last-child { font-weight: 700; color: var(--primary); white-space: nowrap; }

/* ===== TESTIMONIALS ===== */
.testimonial-card { background: var(--surface); }
.stars {
  font-size: 18px;
  color: var(--accent);
  margin-bottom: var(--s-4);
  letter-spacing: 2px;
}
.testimonial-text {
  font-size: 15px;
  font-style: italic;
  color: var(--ink-mute);
  line-height: 1.7;
  -webkit-line-clamp: 5;
}
.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  border-top: 1px solid var(--border);
  padding-top: var(--s-4);
}
.testimonial-author strong { font-size: 15px; color: var(--ink); }
.testimonial-author span { font-size: 13px; color: var(--ink-light); }

/* ===== FAQ ===== */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s-6);
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  list-style: none;
  gap: var(--s-4);
  transition: background var(--transition);
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s;
}
.faq-item[open] .faq-question { background: var(--surface-2); }
.faq-item[open] .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  padding: 0 var(--s-6) var(--s-6);
  font-size: 15px;
  color: var(--ink-mute);
  line-height: 1.7;
}

/* ===== CONTACT ===== */
.contact { background: var(--bg); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-16);
  align-items: start;
}
.contact-desc {
  font-size: 16px;
  color: var(--ink-mute);
  line-height: 1.65;
  margin-bottom: var(--s-8);
  margin-top: var(--s-4);
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  font-size: 15px;
  color: var(--ink-mute);
  line-height: 1.5;
}
.contact-details li svg { flex-shrink: 0; margin-top: 2px; }
.contact-details a { color: var(--primary); font-weight: 600; }
.contact-details a:hover { color: var(--accent); }

/* ===== FORM ===== */
.contact-form-wrap {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--s-8);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.form-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--s-6);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
}
.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.form-input {
  width: 100%;
  padding: var(--s-3) var(--s-4);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,46,74,0.10);
}
.form-select { cursor: pointer; }
.form-textarea {
  resize: vertical;
  min-height: 100px;
}
.form-note {
  font-size: 12px;
  color: var(--ink-light);
  text-align: center;
  margin-top: var(--s-3);
  line-height: 1.5;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--s-8);
  padding-top: var(--s-12);
  padding-bottom: var(--s-12);
  align-items: start;
}
.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-top: var(--s-3);
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.footer-nav a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--accent); }
.footer-phone {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--s-2);
  transition: color var(--transition);
}
.footer-phone:hover { color: var(--accent); }
.footer-addr { font-size: 13px; color: rgba(255,255,255,0.45); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--s-6) 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: var(--s-8);
  }
  .about-img {
    aspect-ratio: 16/7;
    max-height: 360px;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
  .price-card--featured { transform: none; }
  .contact-inner {
    grid-template-columns: 1fr;
    gap: var(--s-8);
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid rgba(255,255,255,0.12); }
  .stat-item:nth-child(4) { border-right: none; }
}

@media (max-width: 640px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    padding: var(--s-4);
    box-shadow: var(--shadow-md);
    z-index: 99;
  }
  .site-nav.is-open { display: flex; }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-2);
    width: 100%;
  }
  .nav-link {
    display: block;
    padding: var(--s-3) var(--s-4);
    font-size: 16px;
  }
  .nav-link--cta { text-align: center; }
  .burger { display: flex; }
  .site-header { position: sticky; }

  .hero { min-height: 520px; }
  .hero-content { padding-top: var(--s-12); padding-bottom: var(--s-12); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-bottom: none; }

  .cards { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: var(--s-6); }
  .footer-bottom .container { flex-direction: column; gap: var(--s-2); }

  .pricing-grid { grid-template-columns: 1fr; max-width: 100%; }

  /* TABLE RESPONSIVE */
  .data-table thead { position: absolute; left: -9999px; }
  .data-table tr {
    display: block;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 12px;
    background: var(--surface);
  }
  .data-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border: none;
    gap: 12px;
    font-size: 14px;
    color: var(--ink-mute);
  }
  .data-table td:first-child { font-weight: 600; color: var(--ink); }
  .data-table td:last-child { white-space: normal; font-weight: 700; color: var(--primary); }
  .data-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--ink-mute);
    flex: 0 0 auto;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .section { padding: var(--s-12) 0; }
  .section-header { margin-bottom: var(--s-8); }
  .contact-form-wrap { padding: var(--s-6); }
  .card { padding: var(--s-6); }
}
