/* ============================================================
   HOME.CSS - Styles specific to index.html
   ============================================================ */

/* ========== HERO ========== */
.hero {
  height: 100svh;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 0 140px;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(201,169,97,0.12) 0%, transparent 50%),
    linear-gradient(180deg, #FAF8F2 0%, #F5F0E3 100%);
  position: relative; overflow: hidden;
}
.hero-deco { position: absolute; inset: 0; pointer-events: none; opacity: 0.5; }
.hero-deco::before {
  content: ''; position: absolute; top: 10%; left: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(10,22,40,0.08), transparent 70%); border-radius: 50%;
}
.hero-deco::after {
  content: ''; position: absolute; bottom: 30%; right: -150px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(201,169,97,0.1), transparent 70%); border-radius: 50%;
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 60px; align-items: center; padding: 0;
  width: 100%;
}
.hero h1 { margin: 16px 0 24px; }
.hero h1 span { color: var(--gold-3); }
.hero-lede { font-size: 18px; color: var(--text-dim); max-width: 540px; margin-bottom: 36px; line-height: 1.7; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-badges { display: flex; gap: 28px; align-items: center; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-badge { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-dim); font-weight: 500; }
.hero-badge svg { color: var(--gold); flex-shrink: 0; }

.hero-visual { position: relative; aspect-ratio: 4/5; max-height: calc(100svh - 200px); margin-inline: auto; width: 100%; }
.hero-visual-main {
  position: absolute; inset: 0; border-radius: 24px; overflow: hidden;
  background: url('/assets/images/hero/hero_image.webp') center center / cover no-repeat;
  /* PNG fallback for very old browsers */
  background: image-set(url('/assets/images/hero/hero_image.webp') type('image/webp'), url('/assets/images/hero/hero_image.png') type('image/png')) center center / cover no-repeat;
  box-shadow: 0 40px 80px -20px rgba(10,22,40,0.35);
}
.hero-float-card {
  position: absolute; background: #fff; border-radius: 20px;
  padding: 20px 24px; box-shadow: 0 20px 50px rgba(10,22,40,0.15);
  display: flex; align-items: center; gap: 14px;
}
.hero-float-card.top { top: 24px; right: -24px; }
.hero-float-card.bottom { bottom: 32px; left: -24px; }
.hero-float-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--bg-soft);
  display: grid; place-items: center; color: var(--gold-3); flex-shrink: 0;
}
.hero-float-label { font-size: 11px; color: var(--text-muted); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }
.hero-float-value { font-size: 18px; font-weight: 800; color: var(--navy); line-height: 1.2; }

/* ========== SERVICE CARDS STRIP ========== */
.service-cards-strip { position: relative; z-index: 5; margin-top: -60px; margin-bottom: 80px; }
.service-cards {
  background: #fff; border-radius: 24px;
  box-shadow: 0 30px 80px rgba(10,22,40,0.1);
  padding: 16px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px;
}
.service-card-mini {
  padding: 28px 20px; border-radius: 16px; text-align: center;
  cursor: pointer; transition: all 0.3s; border: 1px solid transparent;
}
.service-card-mini:hover { background: var(--bg-soft); transform: translateY(-4px); }
.service-card-mini.featured { background: var(--navy); color: #fff; }
.service-card-mini.featured .service-card-mini-title { color: #fff; }
.service-card-mini.featured .service-card-mini-desc { color: rgba(255,255,255,0.7); }
.service-card-mini.featured .service-card-mini-icon { background: var(--gold); color: var(--navy); }
.service-card-mini-icon {
  width: 56px; height: 56px; border-radius: 16px; background: var(--bg-soft);
  color: var(--gold-3); display: grid; place-items: center;
  margin: 0 auto 16px; transition: all 0.3s;
}
.service-card-mini:hover .service-card-mini-icon { background: var(--gold); color: var(--navy); transform: scale(1.05); }
.service-card-mini-title { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.service-card-mini-desc { font-size: 11px; color: var(--text-muted); }

/* ========== ABOUT (HOME) ========== */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: center; }
.about-visual { position: relative; }
.about-img {
  aspect-ratio: 5/6; border-radius: 24px; overflow: hidden;
  box-shadow: 0 40px 80px rgba(10,22,40,0.2);
}
.about-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-img-small {
  position: absolute; bottom: -40px; left: -40px;
  width: 55%; aspect-ratio: 1; border-radius: 20px; overflow: hidden;
  background: linear-gradient(135deg, var(--gold), var(--gold-3));
  border: 6px solid #fff; box-shadow: 0 30px 60px rgba(201,169,97,0.3);
  display: grid; place-items: center;
  color: var(--navy); font-weight: 800; font-size: 14px; text-align: center; padding: 20px; line-height: 1.4;
}
.about-badge {
  position: absolute; top: 24px; right: -24px;
  background: #fff; border-radius: 16px; padding: 16px 20px;
  box-shadow: 0 20px 40px rgba(10,22,40,0.12);
  display: flex; align-items: center; gap: 12px;
}
.about-badge-num { font-size: 28px; font-weight: 800; color: var(--gold-3); line-height: 1; }
.about-badge-label { font-size: 12px; color: var(--text-dim); font-weight: 500; }
.about-text h2 { margin: 16px 0 24px; }
.about-text h2 span { color: var(--gold-3); }
.about-text p { font-size: 16px; color: var(--text-dim); line-height: 1.8; margin-bottom: 16px; }
.about-features { margin: 32px 0; display: grid; gap: 14px; }
.about-feature { display: flex; align-items: center; gap: 14px; }
.about-feature-check {
  width: 28px; height: 28px; border-radius: 50%; background: var(--gold);
  color: var(--navy); display: grid; place-items: center; flex-shrink: 0;
}
.about-feature-text { font-size: 15px; font-weight: 600; color: var(--navy); }

/* ========== TESTIMONIALS ========== */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial {
  background: #fff; border-radius: 20px; padding: 36px;
  border: 1px solid var(--line); position: relative; transition: all 0.3s;
}
.testimonial:hover { transform: translateY(-4px); box-shadow: 0 30px 60px rgba(10,22,40,0.1); }
.testimonial-quote {
  width: 48px; height: 48px; border-radius: 14px; background: var(--gold); color: var(--navy);
  display: grid; place-items: center; margin-bottom: 20px;
  font-size: 26px; font-weight: 900; font-family: Georgia, serif;
}
.testimonial-text { font-size: 16px; color: var(--navy); line-height: 1.7; margin-bottom: 28px; min-height: 180px; }
.testimonial-author { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-3));
  display: grid; place-items: center; color: var(--navy); font-weight: 800; font-size: 16px;
}
.testimonial-name { font-weight: 700; font-size: 15px; color: var(--navy); }
.testimonial-role { font-size: 13px; color: var(--text-dim); margin-top: 2px; }

/* ========== FEATURED PARTNERS ========== */
.featured-partners-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
.featured-partner-card {
  background: #fff; border-radius: 24px; border: 1px solid var(--line);
  overflow: hidden; display: flex; flex-direction: column;
  transition: all 0.3s;
}
.featured-partner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(10,22,40,0.1);
  border-color: var(--gold);
}
.featured-partner-logo {
  height: 120px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft); padding: 24px; border-bottom: 1px solid var(--line);
}
.featured-partner-logo img { max-height: 60px; max-width: 200px; object-fit: contain; }
.featured-partner-body { padding: 32px; display: flex; flex-direction: column; align-items: center; gap: 16px; flex: 1; text-align: center; }
.featured-partner-body h3 { font-size: 20px; font-weight: 800; color: var(--navy); margin: 0; }
.featured-partner-body > p { font-size: 15px; color: var(--text-dim); line-height: 1.75; margin: 0; }
.featured-partner-perks {
  list-style: none; display: grid; gap: 10px; margin: 0;
}
.featured-partner-perks li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text-dim); font-weight: 500;
}
.featured-partner-perks li::before {
  content: '';
  flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A68948' stroke-width='2.5'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat, #F7F5EF;
  border: 1px solid rgba(201,169,97,0.3);
}
.featured-partner-body .btn {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
}

/* ========== TWEAKS PANEL ========== */
.tweaks-panel {
  position: fixed; bottom: 28px; right: 28px; z-index: 98;
  background: #fff; border: 1px solid var(--line); padding: 20px; width: 280px;
  box-shadow: 0 20px 60px rgba(10,22,40,0.2); border-radius: 16px; display: none;
}
.tweaks-panel.visible { display: block; }
.tweaks-panel h4 { font-size: 16px; font-weight: 800; margin-bottom: 4px; color: var(--navy); }
.tweaks-panel p { font-size: 11px; color: var(--text-muted); margin-bottom: 16px; }
.tweak-group { margin-bottom: 14px; }
.tweak-label { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 6px; font-weight: 700; }
.tweak-options { display: flex; gap: 4px; flex-wrap: wrap; }
.tweak-opt { padding: 6px 10px; font-size: 11px; background: var(--bg-soft); border: 1px solid transparent; color: var(--text-dim); cursor: pointer; transition: all 0.2s; border-radius: 6px; font-weight: 600; }
.tweak-opt.active { background: var(--navy); color: #fff; }
.tweak-toggle { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--navy); font-weight: 600; }
.switch { position: relative; width: 36px; height: 20px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: background 0.2s; }
.switch::after { content: ''; position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; background: var(--text-muted); border-radius: 50%; transition: all 0.2s; }
.switch.on { background: var(--gold); border-color: var(--gold); }
.switch.on::after { right: 18px; background: var(--navy); }

/* ========== TABLET ========== */
@media (min-width: 768px) and (max-width: 1120px) {
  /* Hero - 2 cols, scaled down */
  .hero { height: auto; min-height: 100svh; padding: 110px 0 60px; }
  .hero-inner { grid-template-columns: 1fr !important; gap: 36px; text-align: center; max-width: 80%; margin-inline: auto; }
  .hero h1 { font-size: clamp(30px, 4.5vw, 44px); margin: 12px 0 18px; }
  .hero-lede { font-size: 16px; margin-bottom: 28px; max-width: 100%; }
  .hero-cta { justify-content: center; }
  .hero-badges { justify-content: center; gap: 18px; flex-wrap: wrap; }
  .hero-visual { aspect-ratio: 16/9; max-height: 40vh; width: 100%; max-width: 100%; order: 2; }
  .hero-visual-main { border-radius: 20px; }
  .hero-float-card.top { top: 16px; right: -12px; }
  .hero-float-card.bottom { bottom: 20px; left: -12px; }
  .hero-float-value { font-size: 15px; }

  /* Service cards - 3 cols */
  .service-cards-strip { margin-top: -40px; margin-bottom: 60px; }
  .service-cards { grid-template-columns: repeat(3, 1fr); }
  .service-card-mini { padding: 22px 14px; }
  .service-card-mini-icon { width: 48px; height: 48px; margin-bottom: 12px; }
  .service-card-mini-title { font-size: 13px; }

  /* About - 1 col, hide visual */
  .about { grid-template-columns: 1fr !important; gap: 0; }
  .about-visual { display: none; }
  .about-text { text-align: center; max-width: 80%; margin-inline: auto; }
  .about-feature { justify-content: center; }
  .about-img { aspect-ratio: 5/6; }
  .about-img-small { width: 50%; bottom: -32px; left: -24px; }
  .about-badge { top: 20px; right: -16px; }
  .about-text p { font-size: 15px; }

  /* Testimonials - 2 cols */
  .testimonials { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .testimonial { padding: 28px; }
  .testimonial-text { font-size: 15px; min-height: unset; margin-bottom: 20px; }

  /* Featured partners - 2 cols (unchanged, already 2) */
  .featured-partners-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* ========== HOME PRINT STYLES ========== */
@media print {
  @page { size: A4; margin: 0; }
  html, body { background: #fff !important; -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  body { font-size: 12pt; }
  .nav, .whatsapp-fab, .tweaks-panel, .nav-dropdown, .hero-deco, .hero-float-card, .btn, .hero-cta, .contact-form-wrap, .faq-toggle { display: none !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; box-shadow: none !important; }
  .section { padding: 24pt 0 !important; break-inside: avoid-page; }
  .hero { padding: 20pt 0 0 !important; break-after: page; }
  .contact-strip { padding: 24pt 0 !important; break-before: page; }
  #values, #about, #services, .section-dark, #testimonials, #partners, #faq, #blog, #contact { break-before: page; }
  #values { break-before: auto; }
  .value-card, .service-full, .testimonial, .blog-card, .faq-item, .stat-cell, .contact-channel, .hero-badge { break-inside: avoid; page-break-inside: avoid; }
  .container { max-width: 100% !important; padding: 0 20pt !important; }
  .hero-inner { padding: 10pt 0 30pt !important; grid-template-columns: 1.2fr 1fr !important; gap: 30pt !important; }
  .hero-visual { aspect-ratio: 4/5; max-height: 360pt; }
  .service-cards-strip { margin-top: 0 !important; margin-bottom: 0 !important; break-inside: avoid; }
  .service-cards { box-shadow: none !important; border: 1px solid #ddd; }
  .values-grid { grid-template-columns: repeat(5, 1fr) !important; gap: 8pt !important; }
  .value-card { padding: 16pt 12pt !important; border: 1px solid #e5e5e5; }
  .services-full { grid-template-columns: repeat(3, 1fr) !important; gap: 12pt !important; }
  .service-full { padding: 18pt !important; border: 1px solid #e5e5e5; }
  .testimonials { grid-template-columns: repeat(3, 1fr) !important; gap: 12pt !important; }
  .testimonial { padding: 18pt !important; border: 1px solid #e5e5e5; }
  .testimonial-text { min-height: 0 !important; }
  .blog-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 12pt !important; }
  .blog-card { border: 1px solid #e5e5e5; }
  .partners-grid { grid-template-columns: repeat(4, 1fr) !important; }
  .section-dark { background: #0A1628 !important; color: #fff !important; }
  .contact-strip { background: #0A1628 !important; color: #fff !important; }
  .contact-strip::before { display: none !important; }
  .faq-item { border: 1px solid #e5e5e5 !important; }
  .faq-a { max-height: none !important; overflow: visible !important; }
  .about { grid-template-columns: 1fr 1.2fr !important; gap: 30pt !important; }
  .about-badge, .about-img-small { display: none !important; }
  .contact-channel { background: rgba(255,255,255,0.08) !important; border: 1px solid rgba(255,255,255,0.2) !important; }
  footer { padding: 24pt 0 !important; break-before: page; }
  .h1 { font-size: 32pt !important; }
  .h2 { font-size: 24pt !important; }
  .h3 { font-size: 16pt !important; }
  .hero-lede { font-size: 12pt !important; }
  .hero-visual-main, .about-img, .blog-img { background: #1C3057 !important; }
}

/* ========== HOME RESPONSIVE ========== */
@media (max-width: 1120px) {
  .featured-partners-grid { grid-template-columns: 1fr; }
  .hero { height: auto; min-height: 100svh; padding: 100px 0 40px; }
  .hero-inner, .about { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 5/4; max-width: 500px; max-height: none; }
  .service-cards { grid-template-columns: repeat(3, 1fr); }
  .testimonials { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .hero { padding: 90px 0 32px; min-height: 100svh; }
  .hero-inner { padding: 0 20px; gap: 24px; }
  .hero h1 { font-size: clamp(28px, 7vw, 40px); margin: 12px 0 16px; }
  .hero-lede { font-size: 15px; margin-bottom: 24px; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { padding: 13px 20px; font-size: 14px; }
  .hero-badges { gap: 14px; flex-wrap: wrap; padding-top: 20px; }
  .hero-badge { font-size: 12px; }
  .hero-visual { max-width: 100%; aspect-ratio: 4/3; }
  .hero-float-card { padding: 12px 14px; gap: 10px; }
  .hero-float-card.top { top: 12px; right: -8px; }
  .hero-float-card.bottom { bottom: 16px; left: -8px; }
  .hero-float-value { font-size: 14px; }
  .hero-float-label { font-size: 10px; }
  .hero-float-icon { width: 34px; height: 34px; }
  .service-cards-strip { margin-top: -30px; margin-bottom: 32px; }
  .service-cards { grid-template-columns: repeat(2, 1fr); padding: 10px; gap: 4px; border-radius: 16px; }
  .service-card-mini { padding: 18px 12px; }
  .service-card-mini-icon { width: 44px; height: 44px; margin-bottom: 10px; border-radius: 12px; }
  .service-card-mini-title { font-size: 13px; }
  .about { gap: 32px; }
  .about-img { aspect-ratio: 4/3; }
  .about-img-small { width: 45%; bottom: -24px; left: -12px; font-size: 12px; padding: 12px; }
  .about-badge { top: 12px; right: -8px; padding: 10px 14px; }
  .about-badge-num { font-size: 22px; }
  .about-text p { font-size: 14px; }
  .testimonials { grid-template-columns: 1fr; gap: 16px; }
  .testimonial { padding: 24px; border-radius: 16px; }
  .testimonial-text { min-height: unset; font-size: 14px; margin-bottom: 20px; }
  .tweaks-panel { width: calc(100% - 32px); left: 16px; right: 16px; bottom: 16px; }
}
