/* ==========================================================================
   Aina Takaful — Mobile-First Editorial Stylesheet
   ========================================================================== */

:root {
  --emerald-900: #064e3b;
  --emerald-800: #065f46;
  --emerald-700: #047857;
  --emerald-100: #d1fae5;
  --emerald-50: #ecfdf5;

  --wa-green: #16a34a;
  --wa-green-hover: #15803d;

  --gold-700: #b45309;
  --gold-100: #fef3c7;

  --bg-page: #fafaf9;
  --bg-white: #ffffff;
  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #475569;
  --border-subtle: #e2e8f0;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px rgba(6, 78, 59, 0.08);
  --shadow-lg: 0 18px 40px rgba(6, 78, 59, 0.12);

  --container-max: 1120px;
}

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

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

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-body);
  background-color: var(--bg-page);
}

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

h1, h2, h3, p, ul, ol, blockquote, figure {
  margin-top: 0;
}

h1, h2, h3 {
  color: var(--text-main);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold-700);
  outline-offset: 3px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--emerald-900);
  color: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 1000;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* Container & Section Spacing */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: 3.5rem;
}

.section-alt {
  background-color: var(--bg-white);
}

.section-mint {
  background-color: var(--emerald-50);
}

.section-header {
  max-width: 680px;
  margin-bottom: 2.25rem;
}

.kicker {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--emerald-700);
  margin-bottom: 0.65rem;
}

.section-header h2 {
  font-size: clamp(1.625rem, 4vw, 2.25rem);
  margin-bottom: 0.75rem;
}

.section-header p:last-child {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  min-height: 40px;
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  width: 100%;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-whatsapp {
  background-color: var(--wa-green);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.22);
}

.btn-whatsapp:hover {
  background-color: var(--wa-green-hover);
}

.btn-secondary {
  background-color: var(--bg-white);
  color: var(--emerald-800);
  border-color: var(--emerald-800);
}

.btn-secondary:hover {
  background-color: var(--emerald-50);
}

.btn-outline-wa {
  background-color: var(--emerald-50);
  color: var(--emerald-800);
  border-color: var(--emerald-100);
}

.btn-outline-wa:hover {
  background-color: var(--emerald-800);
  color: #ffffff;
  border-color: var(--emerald-800);
}

.wa-icon {
  display: inline-flex;
  align-items: center;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 250, 249, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-logo {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  color: var(--text-main);
  font-size: 1rem;
}

.brand-text small {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.main-nav {
  display: none;
  gap: 1.5rem;
}

.main-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-body);
}

.main-nav a:hover {
  color: var(--emerald-800);
}

/* Hero Section */
.hero {
  padding-block: 2.25rem 3.5rem;
  background: linear-gradient(180deg, var(--emerald-50) 0%, var(--bg-page) 100%);
}

.hero-grid {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(1.85rem, 5.5vw, 2.85rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.trust-strip {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--emerald-900);
}

.trust-strip li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.trust-strip svg {
  color: var(--emerald-700);
  flex-shrink: 0;
}

.hero-media {
  margin: 0;
  max-width: 440px;
  margin-inline: auto;
}

.hero-image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--emerald-100);
}

.hero-image-frame img {
  width: 100%;
  object-fit: cover;
}

.hero-caption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
}

.hero-caption strong {
  color: var(--text-main);
}

/* About Section (Borderless Hairline List) */
.about-grid {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

.about-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
}

.about-content h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 1rem;
}

.pillars {
  list-style: none;
  padding: 0;
  margin-block: 1.75rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.pillar-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding-block: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.pillar-num {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--emerald-700);
  letter-spacing: 0.04em;
  flex-shrink: 0;
  padding-top: 0.15rem;
}

.pillar-item h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.pillar-item p {
  font-size: 0.925rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.advisor-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.advisor-meta code {
  background: var(--emerald-50);
  color: var(--emerald-900);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-weight: 600;
}

/* Plans Grid (True Cards) */
.plans-grid {
  display: grid;
  gap: 1.5rem;
}

.plan-card {
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.plan-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.plan-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.plan-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--emerald-700);
  margin-bottom: 0.5rem;
}

.plan-kicker-gold {
  color: var(--gold-700);
}

.plan-svg-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--emerald-50);
  color: var(--emerald-800);
  margin-bottom: 0.85rem;
}

.plan-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.plan-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.plan-list {
  padding-left: 1.2rem;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  flex: 1;
}

.plan-list li + li {
  margin-top: 0.4rem;
}

/* Interactive Quote Builder */
.quote-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.quote-intro h2 {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  margin-bottom: 0.75rem;
}

.quote-intro p:last-child {
  color: var(--text-muted);
  margin-bottom: 0;
}

.quote-builder {
  background: var(--bg-white);
  border: 1px solid var(--emerald-100);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 1.25rem;
}

.qb-group {
  display: grid;
  gap: 0.55rem;
}

.qb-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
}

.qb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.qb-chip {
  appearance: none;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  min-height: 40px;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-page);
  color: var(--text-body);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.qb-chip:hover {
  border-color: var(--emerald-700);
  color: var(--emerald-800);
}

.qb-chip.is-selected {
  background: var(--emerald-800);
  border-color: var(--emerald-800);
  color: #ffffff;
}

.qb-preview {
  background: var(--bg-page);
  border-left: 3px solid var(--emerald-700);
  padding: 0.85rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.qb-preview-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.qb-preview p {
  font-size: 0.925rem;
  color: var(--text-main);
  margin-bottom: 0;
}

/* Steps (Borderless Editorial Rule Layout) */
.steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2rem;
}

.step-item {
  border-top: 2px solid var(--emerald-800);
  padding-top: 1.15rem;
}

.step-num {
  display: block;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--emerald-700);
  margin-bottom: 0.5rem;
}

.step-item h3 {
  font-size: 1.125rem;
  margin-bottom: 0.4rem;
}

.step-item p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Testimonials (Borderless Accent-Rule Quotes) */
.testimonials-grid {
  display: grid;
  gap: 2rem;
}

.testimonial-quote {
  margin: 0;
  padding-left: 1.15rem;
  border-left: 3px solid var(--emerald-700);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.testimonial-quote p {
  font-size: 0.975rem;
  margin-bottom: 0;
}

.testimonial-quote footer {
  display: flex;
  flex-direction: column;
  font-size: 0.875rem;
}

.testimonial-quote footer strong {
  color: var(--text-main);
}

.testimonial-quote footer span {
  color: var(--text-muted);
}

/* FAQ (Clean Hairline Rows) */
.faq-container {
  max-width: 820px;
}

.faq-list {
  border-top: 1px solid var(--border-subtle);
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text-main);
  padding-block: 1.15rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--emerald-800);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding-bottom: 1.15rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* Final CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--emerald-900) 0%, var(--emerald-700) 100%);
  color: #ffffff;
  padding-block: 3.5rem;
}

.cta-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

.cta-banner h2 {
  color: #ffffff;
  font-size: clamp(1.5rem, 4vw, 2.15rem);
  margin-bottom: 0.5rem;
}

.cta-banner p {
  color: var(--emerald-50);
  margin-bottom: 0.35rem;
}

.cta-hours {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold-100);
}

/* Footer */
.site-footer {
  background-color: #0f172a;
  color: #cbd5e1;
  padding-block: 2.75rem calc(5.75rem + env(safe-area-inset-bottom, 0px));
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand strong {
  display: block;
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.footer-brand p {
  margin-bottom: 0.25rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-links a {
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.disclaimer {
  color: #94a3b8;
  font-size: 0.8125rem;
  margin-bottom: 0;
}

.copyright {
  margin-bottom: 0;
  color: #cbd5e1;
}

/* Mobile Sticky Bottom Action Bar */
.mobile-sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-subtle);
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
}

.mobile-sticky-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.mobile-sticky-info strong {
  font-size: 0.9rem;
  color: var(--text-main);
}

.mobile-sticky-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive Breakpoints (Mobile-First)
   ========================================================================== */

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .btn-lg {
    width: auto;
  }

  .plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps-list,
  .testimonials-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .section {
    padding-block: 4.75rem;
  }

  .main-nav {
    display: flex;
  }

  .hero {
    padding-block: 3.5rem 4.75rem;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }

  .about-grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 3rem;
  }

  .quote-layout {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
  }

  .cta-banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .site-footer {
    padding-bottom: 3rem;
  }

  .mobile-sticky-bar {
    display: none;
  }
}
