@import url("/assets/css/shared.css");

:root {
  --primary: #0f2a44;
  --secondary: #1e40af;
  --accent: #c9a24d;
  --bg: #f8fafc;
  --white: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e5e7eb;
  --dark: #020617;
}

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

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

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 200;
}

.skip-link:focus {
  top: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================================
   LAYOUT
========================================= */

.container {
  max-width: 1280px;
  margin: auto;
  padding: 0 1.25rem;
}

a {
  text-decoration: none;
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(30, 64, 175, 0.35);
  outline-offset: 3px;
}

/* =========================================
   HEADER
========================================= */

header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-weight: 800;
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 1.6rem;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--muted);
}

.nav-links a[aria-current="page"] {
  color: var(--primary);
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--primary);
}

.menu-btn {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  background: none;
  border: none;
}

/* =========================================
   MOBILE MENU
========================================= */

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: #fff;
  padding: 1.5rem;
  overflow-y: auto;
  z-index: 150;
}

.mobile-menu.active {
  display: block;
}

.mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.mobile-links a {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .menu-btn {
    display: block;
  }
}

/* =========================================
   HERO
========================================= */

.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

/* Ensure hero image stays centered */
.hero-grid img {
  max-width: 100%;
  margin-inline: auto;
  justify-self: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
}

.hero p {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 720px;
  font-size: clamp(1rem, 2vw, 1.125rem);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.75rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary);
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

/* =========================================
   TRUSTED
========================================= */

.trusted {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trusted .container {
  display: grid;
  gap: 2rem;
}

.trusted h3 {
  text-align: center;
  color: var(--muted);
  margin-bottom: 2rem;
}

.trusted-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  align-items: center;
}

.trusted-logos a {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================
   METRICS
========================================= */

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.metric {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.8rem;
  text-align: center;
}

.metric strong {
  font-size: 1.9rem;
  color: #0f766e;
}

/* =========================================
   SECTIONS
========================================= */

section {
  padding: 4.5rem 0;
}

.section-title {
  max-width: 820px;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.1rem;
  font-weight: 800;
}

.section-title p {
  margin-top: 0.6rem;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.review p,
.faq-item p,
footer p {
  color: var(--muted);
}

.card,
.review {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.2rem;
}

.post-card .post-meta-line {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.post-card .post-meta-line span {
  display: inline-flex;
  align-items: center;
}

/* =========================================
   REVIEWS
========================================= */

.reviews {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stars {
  color: var(--accent);
}

/* =========================================
   FAQ
========================================= */

.faqs {
  background: #fff;
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.2rem;
}

/* =========================================
   CTA
========================================= */

.cta {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #fff;
}

.cta-inner {
  max-width: 820px;
  margin: auto;
  text-align: center;
}

.cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
}

.cta-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta .btn-primary {
  background: #fff;
  color: var(--primary);
}

/* =========================================
   FOOTER
========================================= */

footer {
  background: var(--dark);
  color: #9ca3af;
  padding: 40px 5% 28px;
  font-size: 13px;
}

footer .footer-grid {
  max-width: 1280px;
  margin: 0 auto;
}

footer .copyright {
  max-width: 1280px;
  margin-inline: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

footer h4 {
  color: #ffffff;
  margin-bottom: 10px;
  font-size: 15px;
}

footer a {
  display: block;
  margin-bottom: 6px;
  color: #cbd5e1;
}

footer a:hover {
  text-decoration: underline;
}

.copyright {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid #1f2937;
  padding-top: 18px;
}

@media (max-width: 767px) {
  .container {
    padding: 0 1rem;
  }

  section {
    padding: 3.5rem 0;
  }

  .hero {
    padding: 3.5rem 0 2.5rem;
  }

  .nav {
    height: 64px;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
  }

  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }

  .metric,
  .card,
  .review,
  .faq-item {
    padding: 1.4rem;
  }

  .section-title {
    margin-bottom: 2rem;
  }

  .section-title h2 {
    font-size: 1.7rem;
  }
}

/* =========================================
   SCROLLBAR
========================================= */

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}
