/* palette: scarlet-navy */
:root {
  --primary-color: #A50022;
  --secondary-color: #C82B2B;
  --accent-color: #1A3A6B;
  --background-color: #FFF0F2;
  --dark-color: #111111;
  --text-color: #333333;
  --border-color: rgba(0,0,0,0.12);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.16);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --main-font: 'Nunito', sans-serif;
  --alt-font: 'Inter', sans-serif;
}

/* Base Styles & WARM-MINIMAL preset rules */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #FDFAF5;
  color: #2C2416;
  line-height: 1.8;
  font-family: var(--alt-font);
  font-size: clamp(14px, 1.6vw, 17px);
  overflow-x: hidden;
}

section {
  padding: 60px 16px;
  margin: 0;
}

@media (min-width: 1024px) {
  section {
    padding: 72px 24px;
  }
}

section:nth-child(even) {
  background: #F8F2E8;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(44,36,22,0.08);
  border: none;
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(44,36,22,0.12);
}

h1, h2, h3, h4 {
  color: var(--primary-color);
  font-family: var(--main-font);
}

h1 {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.25;
}

h2 {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.3;
}

h3 {
  font-size: clamp(18px, 2.8vw, 28px);
  font-weight: 600;
  line-height: 1.35;
}

p {
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  min-height: 44px;
  border-radius: 8px;
  background: var(--primary-color);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--primary-color);
  transition: transform 0.15s, box-shadow 0.15s, background-color 0.15s;
  cursor: pointer;
  font-family: var(--main-font);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: #87001b;
  border-color: #87001b;
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: #fff;
}

.btn-block {
  width: 100%;
}

hr {
  border: none;
  border-top: 1px solid rgba(44,36,22,0.12);
  margin: 32px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px auto;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  color: #554a3a;
}

/* Animations (@property) */
@property --bar {
  syntax: '<integer>';
  initial-value: 0;
  inherits: false;
}

@keyframes fill-bar {
  from { --bar: 0; }
  to { --bar: var(--pct); }
}

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  animation: reveal-up linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}

.card:nth-child(1) { animation-delay: 0s; }
.card:nth-child(2) { animation-delay: .12s; }
.card:nth-child(3) { animation-delay: .24s; }
.card:nth-child(4) { animation-delay: .36s; }

/* Header & Mobile Nav */
header {
  position: relative;
  background: #fff;
  box-shadow: var(--shadow-sm);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 1001;
}

.burger-btn .bar {
  height: 3px;
  width: 100%;
  background: var(--dark-color);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: var(--shadow-md);
  padding: 20px;
  z-index: 999;
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.site-nav a {
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 600;
  font-family: var(--main-font);
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--primary-color);
}

#menu-toggle:checked ~ .site-nav {
  display: block;
}

#menu-toggle:checked ~ .burger-btn .bar:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

#menu-toggle:checked ~ .burger-btn .bar:nth-child(2) {
  opacity: 0;
}

#menu-toggle:checked ~ .burger-btn .bar:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

@media (min-width: 768px) {
  .burger-btn {
    display: none;
  }
  .site-nav {
    display: flex !important;
    position: static;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }
  .site-nav ul {
    flex-direction: row;
    gap: 28px;
  }
}

/* HERO: oversized-word */
.hero-section {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 16px;
  background: var(--background-color);
  overflow: hidden;
}

.hero-watermark {
  font-size: clamp(5rem, 20vw, 16rem);
  opacity: 0.06;
  font-weight: 900;
  position: absolute;
  z-index: 0;
  white-space: nowrap;
  user-select: none;
  color: var(--primary-color);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(165, 0, 34, 0.1);
  color: var(--primary-color);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-subtitle {
  margin: 20px auto 32px auto;
  max-width: 600px;
  font-size: clamp(15px, 2vw, 19px);
  color: #4a3e30;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

@media (min-width: 600px) {
  .hero-buttons {
    flex-direction: row;
  }
}

/* Mid-section 1: How It Works */
.section-how-works {
  min-height: 420px;
}

.how-works-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.how-works-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.step-card {
  padding: 28px;
  position: relative;
}

.step-num {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--primary-color);
  opacity: 0.25;
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--main-font);
}

.step-icon {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 16px;
}

.step-card h3 {
  margin-bottom: 10px;
}

.how-works-image img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .how-works-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .how-works-wrapper {
    display: grid;
    grid-template-columns: 3fr 2fr;
    align-items: center;
    gap: 40px;
  }
}

/* Mid-section 2: Timeline */
.section-timeline {
  min-height: 480px;
}

.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 3px;
  background: var(--accent-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
  padding-left: 50px;
}

.timeline-marker {
  position: absolute;
  left: 13px;
  top: 20px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--accent-color);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--accent-color);
}

.timeline-content {
  padding: 24px;
}

.time-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-color);
  background: rgba(26, 58, 107, 0.08);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .timeline-container::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline-item {
    width: 50%;
    padding-left: 0;
    margin-bottom: 40px;
  }

  .timeline-item.left {
    left: 0;
    padding-right: 40px;
  }

  .timeline-item.right {
    left: 50%;
    padding-left: 40px;
  }

  .timeline-item.left .timeline-marker {
    left: auto;
    right: -9px;
  }

  .timeline-item.right .timeline-marker {
    left: -8px;
  }
}

/* Mid-section 3: Progress Bars */
.section-progress {
  min-height: 380px;
}

.progress-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.progress-card {
  padding: 24px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.progress-label {
  font-weight: 700;
  color: var(--dark-color);
}

.progress-pct {
  font-weight: 800;
  color: var(--primary-color);
}

.bar-track {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  overflow: hidden;
  height: 12px;
  margin-bottom: 12px;
}

.bar-fill {
  width: calc(var(--bar) * 1%);
  animation: fill-bar 1.5s ease-out forwards;
  animation-timeline: view();
  animation-range: entry 0% entry 50%;
  background: var(--accent-color);
  height: 12px;
  border-radius: 999px;
}

.progress-desc {
  font-size: 0.9rem;
  color: #555;
}

@media (min-width: 768px) {
  .progress-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mid-section 4: Dense Icon Grid */
.section-dense {
  min-height: 280px;
}

.dense-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.dense-card {
  padding: 20px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.dense-card i {
  font-size: 2rem;
  color: var(--accent-color);
}

.dense-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark-color);
}

@media (min-width: 600px) {
  .dense-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .dense-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Mid-section 5: CTA Banner */
.cta-banner {
  min-height: 200px;
  background-image: linear-gradient(rgba(26, 58, 107, 0.88), rgba(165, 0, 34, 0.88)), url('./img/bg.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-content {
  max-width: 700px;
}

.cta-content h2 {
  color: #fff;
  margin-bottom: 12px;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
}

.btn-cta {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-cta:hover {
  background: #fff;
  color: var(--primary-color);
}

/* Section 6: Contact + FAQ */
.section-contact-faq {
  padding-bottom: 72px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.contact-info, .contact-form-wrapper {
  padding: 32px;
}

.contact-info h3, .contact-form-wrapper h3 {
  margin-bottom: 16px;
}

.contact-details {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: var(--text-color);
}

.contact-details i {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-top: 4px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: 12px;
  min-height: 44px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--alt-font);
  font-size: 0.95rem;
}

.checkbox-group {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-group input {
  margin-top: 4px;
  min-width: 18px;
  min-height: 18px;
}

.checkbox-group label {
  font-size: 0.85rem;
  font-weight: 400;
  color: #555;
  line-height: 1.4;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* FAQ Styles */
.faq-container h3 {
  text-align: center;
  margin-bottom: 32px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  padding: 24px;
}

.faq-item h4 {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.faq-item p {
  color: #444;
}

/* Footer */
footer {
  background: var(--dark-color);
  color: #fff;
  padding: 48px 20px 32px 20px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

footer img[alt="logo"] {
  filter: brightness(0) invert(1);
  height: 36px;
  width: auto;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}