/* ===========================
   Audifort Reviews – styles.css
   Clean, readable, fast, Google-Ads friendly
   =========================== */

/* ---- Base / Reset ---- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #0f1b2d;
  background: #f7fafc;
  line-height: 1.6;
  font-size: 18px;                /* slightly larger for 40+ audience */
}

/* ---- Color tokens ---- */
:root{
  --ink: #0f1b2d;      /* main text */
  --muted:#64748b;     /* secondary text */
  --navy:#0b3b69;      /* brand navy */
  --sky:#e6f0fb;       /* soft background */
  --card:#ffffff;      /* card bg */
  --stroke:#e5e7eb;    /* borders */
  --cta:#f7b500;       /* CTA yellow */
  --cta-dark:#c68f00;  /* CTA hover */
  --success:#16a34a;   /* accents */
}

/* ---- Helpers ---- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.section-spaced { padding: 72px 0; }                 /* Added: more breathing room */
h1,h2,h3 { line-height: 1.25; margin: 0 0 14px; color: var(--navy); }
h1 { font-size: 42px; font-weight: 800; }
h2 { font-size: 30px; font-weight: 800; }
h3 { font-size: 22px; font-weight: 700; }
p { margin: 0 0 14px; color: var(--ink); }
.subtitle { color: var(--muted); font-size: 20px; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  transition: transform .06s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(247,181,0,.35); }
.btn:active { transform: translateY(1px); }

.btn-primary {                           /* Unified CTA color */
  background: var(--cta);
  color: #1a1a1a;
}
.btn-primary:hover { background: var(--cta-dark); color: #111; }

.btn-secondary {
  background: #ffffff;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: #fff; }

.btn-lg { font-size: 20px; padding: 16px 26px; }

/* ---- Cards ---- */
.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(2, 26, 58, .06);
}

/* ===========================
   HERO
   =========================== */
.hero {
  background: linear-gradient(180deg, #eaf2fb 0%, #f7fafc 100%);
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--stroke);
}
.hero__grid {
  max-width: 1120px; margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center;
}
.hero__content h1 { margin-bottom: 10px; }
.hero__content .subtitle { margin-bottom: 20px; }
.hero__image img {
  width: 100%; height: auto; display: block;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(2, 26, 58, .12);
}

/* ===========================
   STORY
   =========================== */
.story .guarantee { color: var(--success); font-weight: 700; margin-top: 10px; }

/* ===========================
   BENEFITS
   =========================== */
.benefits { padding: 56px 0; }
.benefits h2 { text-align: center; margin-bottom: 22px; }
.benefits__list {
  list-style: none; padding: 0; margin: 0 auto 18px; max-width: 880px;
  display: grid; gap: 12px;
}
.benefits__list li {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--ink);
}

/* ===========================
   SOCIAL PROOF
   =========================== */
.social-proof { background: #fff; }
.social-card { padding: 20px; }
.social-metrics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; align-items: center; }
.metric { text-align: center; }
.metric strong { font-size: 28px; display: block; color: var(--navy); }
.metric span { color: var(--muted); }
.social-copy { text-align: center; margin-top: 12px; color: var(--ink); }

/* ===========================
   GUARANTEE / RISK-FREE
   =========================== */
.guarantee-block { background: #f8fafc; }
.guarantee-card {
  max-width: 960px; margin: 0 auto; padding: 24px; display: grid;
  grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  border: 1px solid var(--stroke); border-radius: 16px; background: #fff;
}
.guarantee-card .shield { color: var(--navy); }
.guarantee-points { margin: 12px 0 18px; padding-left: 18px; }

/* ===========================
   TESTIMONIALS (Carousel + Fallback)
   =========================== */
.testimonials {
  background: #f1f5f9;
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
}
.testimonials h2 { text-align: center; margin-bottom: 24px; }

/* Carousel container */
.testimonials__carousel {
  position: relative;
  max-width: 1120px; margin: 0 auto 12px; padding: 0 56px;
  overflow: hidden;
}

/* Track + slides */
.testimonials__track {
  display: flex; transition: transform .35s ease-in-out; will-change: transform;
}
.slide {
  min-width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px; padding: 0 4px;
}

/* Cards inside slides */
.testimonial.card,
.testimonials__grid .testimonial {
  padding: 18px; border: 1px solid var(--stroke);
  border-radius: 14px; background: #fff;
}
.testimonial img { width: 100%; height: auto; border-radius: 10px; margin-bottom: 10px; }
.testimonial p { font-size: 17px; }
.testimonial span { color: var(--muted); font-size: 15px; }

/* Carousel buttons */
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--stroke);
  background: #fff; cursor: pointer; font-size: 22px; line-height: 38px; text-align: center;
  box-shadow: 0 6px 20px rgba(2,26,58,.10);
}
.carousel-btn:hover { background: #f8fafc; }
.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }

/* Hide fallback grid when carousel is present */
.testimonials__grid { display: none; }

/* ===========================
   AUTHORITY
   =========================== */
.authority .authority-sub { color: var(--muted); max-width: 960px; }
.authority-logos { display: flex; justify-content: center; align-items: center; margin: 12px 0 8px; }
.authority-logos img { max-width: 100%; height: auto; display: block; }

/* ===========================
   CTA STRIP
   =========================== */
.cta {
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #eaf2fb 100%);
}
.cta h2 { margin-bottom: 8px; }
.cta p { margin-bottom: 16px; color: var(--ink); }
.guarantee { color: var(--success); font-weight: 700; margin-top: 10px; }

/* ===========================
   FOOTER
   =========================== */
.footer {
  text-align: center;
  padding: 36px 20px 44px;
  background: #0f172a;
  color: #cbd5e1;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-links { margin-bottom: 8px; }
.footer-links a { color: #e2e8f0; text-decoration: none; font-weight: 600; }
.footer-links a:hover { text-decoration: underline; }
.footer p { margin: 6px 0; }
.footer-disclaimer { font-size: 16px; line-height: 1.55; } /* Larger for readability */

/* ===========================
   Accessibility Tweaks
   =========================== */
a { color: #0b5dc8; }
a:hover { color: #073e84; }
img { max-width: 100%; height: auto; }

/* ===========================
   Responsive
   =========================== */
@media (max-width: 980px){
  h1 { font-size: 34px; }
  .hero__grid { grid-template-columns: 1fr; }
  .guarantee-card { grid-template-columns: 1fr; }
  .slide { grid-template-columns: 1fr; }  /* one card per row on tablet */
}
@media (max-width: 640px){
  body { font-size: 17px; }
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  .testimonials__carousel { padding: 0 44px; }
  .btn-lg { width: 100%; }
  .metric strong { font-size: 24px; }
}
/* ==== Narrow layout + alignment to unify STORY & BENEFITS ==== */
.section-spaced { padding: 72px 0; }                    /* nhịp đọc thoáng hơn */
.section-narrow .container { max-width: 880px; }        /* cùng bề rộng 880px */
.story h2, .benefits h2 { text-align: center; }

.story__body p { max-width: 880px; margin: 0 auto 14px; }
.section-cta { text-align: center; margin-top: 18px; }

/* đảm bảo list benefits khớp bề rộng và giữa trang */
.benefits__list { max-width: 880px; margin: 0 auto 18px; }

/* ===== Header ===== 
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--stroke);
  padding: 14px 0;
  position: sticky; top:0; z-index:100;
}*/
.header-grid {
  display: flex; align-items: center; justify-content: space-between;
}
.nav-links a {
  margin: 0 14px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}
.nav-links a:hover { color: var(--navy); }
.header-cta .btn-sm {
  padding: 10px 16px; font-size: 15px;
}

/* ===== Footer ===== 
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 48px 20px;
}*/
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}
.footer-col h4 { margin-bottom: 12px; color: #fff; }
.footer-links { display: flex; flex-direction: column; }
.footer-links a {
  color: #e2e8f0;
  margin-bottom: 8px;
  text-decoration: none;
}
.footer-links a:hover { text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 32px;
  padding-top: 18px;
  text-align: center;
  font-size: 14px;
  color: #94a3b8;
}


/* ===== Header (mobile-first) ===== */
.site-header{
  position: sticky; top:0; z-index:100;
  background:#fff; border-bottom:1px solid var(--stroke);
}
.header-bar{ display:flex; align-items:center; justify-content:space-between; padding:10px 0; }
.logo img{ display:block; }

/* Hamburger */
.nav-toggle{
  width:44px;height:44px; border:1px solid var(--stroke); border-radius:10px;
  background:#fff; display:flex; flex-direction:column; justify-content:center; gap:5px;
  padding:0 10px; cursor:pointer;
}
.nav-toggle span{ display:block; height:2px; background:#0f1b2d; }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* Nav drawer */
.site-nav{
  position: absolute; left:0; right:0; top:100%; background:#ffffff;
  border-bottom:1px solid var(--stroke); padding:10px 20px 14px;
  display:grid; gap:10px;
}
.site-nav a{ text-decoration:none; color:var(--ink); padding:12px 10px; border-radius:10px; }
.site-nav a:hover{ background:#f6f7fb; }
.nav-cta{ text-align:center; }

/* Desktop header */
@media (min-width: 980px){
  .nav-toggle{ display:none; }
  .site-nav{ position:static; display:flex !important; gap:14px; padding:0; border:0; background:transparent; }
  .site-nav a{ padding:8px 10px; }
  .nav-cta{ margin-left:6px; }
}

/* ===== Footer ===== */
.site-footer{ background:#0f172a; color:#cbd5e1; padding:28px 0 10px; }
.footer-wrap{ display:grid; gap:18px; }
.footer-brand .footer-cta{ margin-top:10px; }

.f-acc{ background:#0f1d38; border:1px solid rgba(255,255,255,.08); border-radius:12px; padding:8px 12px; }
.f-acc summary{
  list-style:none; cursor:pointer; font-weight:700; color:#e2e8f0; padding:10px 4px;
}
.f-acc[open] summary{ border-bottom:1px solid rgba(255,255,255,.08); }
.f-acc summary::-webkit-details-marker{ display:none; }

.footer-links{ display:flex; flex-direction:column; padding:8px 0; }
.footer-links a{ color:#e2e8f0; text-decoration:none; padding:8px 4px; border-radius:8px; }
.footer-links a:hover{ background:rgba(255,255,255,.06); }

.footer-bottom{ border-top:1px solid rgba(255,255,255,.1); margin-top:18px; padding:12px 0 6px; text-align:center; font-size:14px; color:#94a3b8; }

/* Desktop footer */
@media (min-width: 980px){
  .footer-wrap{ grid-template-columns: 1.2fr .9fr .9fr; align-items:start; }
  .f-acc{ background:transparent; border:0; padding:0; }
  .f-acc summary{ pointer-events:none; border:0; padding:0 0 8px; }
  .f-acc[open] summary{ border:0; }
  .footer-links{ padding:0; }
}

/* ===== Authority sub fix (wrap đẹp) ===== */
.authority-sub{
  text-align:center; max-width:960px; margin:0 auto 18px; font-size:18px; color:var(--muted);
}

/* Buttons: small variant */
.btn-sm{ padding:10px 14px; font-size:15px; }

/* BẮT BUỘC: ẩn nav khi có thuộc tính hidden */
.site-nav[hidden] { display: none !important; }

/* Drawer mặc định cho mobile */
.site-nav{
  position: absolute; left:0; right:0; top:100%;
  background:#fff; border-bottom:1px solid var(--stroke);
  padding:10px 20px 14px; display:grid; gap:10px;
}

/* Desktop: luôn hiện nav, ẩn hamburger */
@media (min-width: 980px){
  .nav-toggle{ display:none; }
  .site-nav{ position:static; display:flex !important; gap:14px; padding:0; border:0; background:transparent; }
}
