/* ============================================================
   Karta Polaka Website — Main Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Lato:wght@300;400;600;700&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --red:        #DC143C;
  --red-dark:   #A50E2D;
  --red-light:  #f5c6cf;
  --white:      #FFFFFF;
  --off-white:  #FAF9F7;
  --cream:      #FFF4EA;
  --rose-mist:  #FFF0F4;
  --gold:       #C9A84C;
  --gold-light: #F0D98B;
  --navy:       #1A2744;
  --navy-mid:   #263660;
  --navy-deep:  #10192F;
  --gray:       #6B7280;
  --gray-light: #F3F4F6;
  --gray-border:#E5E7EB;
  --text:       #1F2937;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.16);
  --radius:     12px;
  --radius-lg:  20px;
  --transition: 0.25s ease;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Lato', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(255,207,227,0.18), transparent 22%),
    radial-gradient(circle at 82% 8%, rgba(185,214,255,0.2), transparent 20%),
    linear-gradient(180deg, rgba(248,250,255,0.95), rgba(255,248,248,0.92)),
    url('../img/meadow.png') top center / cover fixed no-repeat;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.82), transparent 24%),
    radial-gradient(circle at 82% 12%, rgba(220,20,60,0.05), transparent 18%),
    url('../img/image%20overlay%20eagle.png') center 140px / min(70vw, 720px) auto no-repeat;
  opacity: 0.28;
  pointer-events: none;
  z-index: -1;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
  color: var(--navy);
}

a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-dark); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Layout Utilities ──────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

.section { padding: 80px 0; position: relative; }
.section > .container,
.section > .container--wide { position: relative; z-index: 1; }
.section--gray {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.78), rgba(246,249,255,0.84)),
    linear-gradient(135deg, rgba(245,250,247,0.86), rgba(255,244,248,0.88));
}
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(22,34,58,0.78), rgba(31,51,83,0.64)),
    url('../img/village.png') center/cover no-repeat;
  opacity: 0.5;
}

.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: 2.4rem; margin-bottom: 12px; }
.section-header p { font-size: 1.1rem; color: var(--gray); max-width: 600px; margin: 0 auto; }

/* ── Polish Stripe Accent ──────────────────────────────────── */
.polish-stripe {
  display: flex;
  height: 6px;
  width: 100%;
}
.polish-stripe span:first-child { background: var(--white); flex: 1; border: 1px solid #eee; }
.polish-stripe span:last-child  { background: var(--red);   flex: 1; }

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.84);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 45px rgba(26,39,68,0.08);
  border-bottom: 1px solid rgba(220,20,60,0.16);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}

.nav__logo-eagle {
  width: 42px;
  height: 42px;
  display: inline-block;
  flex-shrink: 0;
  background: url('../img/eagle.png') center/contain no-repeat;
  font-size: 0;
  line-height: 0;
  filter: drop-shadow(0 10px 20px rgba(220,20,60,0.18));
}

.nav__logo-tag {
  font-size: 0.65rem;
  font-family: 'Lato', sans-serif;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  font-weight: 400;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  border-radius: 8px;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.nav__link:hover,
.nav__link.active {
  color: var(--red);
  background: var(--red-light);
}

.nav__cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 8px 18px !important;
  border-radius: 8px;
}

.nav__cta:hover {
  background: var(--red-dark) !important;
  color: var(--white) !important;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav__hamburger span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(26,39,68,0.8) 0%, rgba(44,66,99,0.64) 38%, rgba(100,118,150,0.42) 100%),
    url('../img/village.png') center/cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.22), rgba(16,25,47,0.08) 34%, rgba(255,255,255,0.12) 70%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero::after {
  content: '';
  position: absolute;
  right: -4%;
  bottom: -10%;
  width: min(44vw, 620px);
  height: min(42vw, 520px);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.02)),
    url('../img/meadow.png') center/cover no-repeat;
  border-radius: 40px 0 0 0;
  box-shadow: -24px 24px 70px rgba(0,0,0,0.28);
  opacity: 0.88;
  transform: rotate(-6deg);
}

.hero__flag-stripe {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40%;
  opacity: 0.07;
  background: linear-gradient(to bottom, var(--white) 50%, var(--red) 50%);
}

.hero__content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 680px;
  padding: 44px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(10,15,28,0.42), rgba(10,15,28,0.2));
  border: 1px solid rgba(255,255,255,0.24);
  box-shadow: 0 30px 60px rgba(0,0,0,0.2);
  backdrop-filter: blur(10px);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.2);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 900;
}

.hero h1 span { color: var(--gold-light); }

.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 36px;
  max-width: 560px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__eagle {
  position: absolute;
  right: 10%;
  top: 10%;
  width: clamp(180px, 22vw, 320px);
  height: clamp(180px, 22vw, 320px);
  background: url('../img/eagle.png') center/contain no-repeat;
  transform: none;
  font-size: 0;
  line-height: 0;
  opacity: 0.18;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 0 40px rgba(255,255,255,0.1));
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Lato', sans-serif;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(26,39,68,0.08);
}

.btn--red {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn--red:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220,20,60,0.35);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--outline-red {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}
.btn--outline-red:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn--gold:hover {
  background: #B8933E;
  border-color: #B8933E;
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.4);
}

.btn--navy {
  background: linear-gradient(135deg, #6c7fa8, #8ea6c8);
  color: var(--white);
  border-color: rgba(108,127,168,0.8);
}
.btn--navy:hover {
  background: linear-gradient(135deg, #60749d, #839bbd);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--lg { padding: 16px 36px; font-size: 1.05rem; }
.btn--sm { padding: 8px 18px; font-size: 0.85rem; }

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.88));
  border-radius: var(--radius-lg);
  box-shadow: 0 22px 45px rgba(26,39,68,0.08);
  padding: 32px;
  transition: all var(--transition);
  border: 1px solid rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 28px 50px rgba(26,39,68,0.12); }

.card__icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  display: block;
}

.card__title {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--navy);
}

.card__text { color: var(--gray); font-size: 0.95rem; }

/* ── Info Boxes ────────────────────────────────────────────── */
.info-box {
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.info-box--blue  { background: #EFF6FF; border-left: 4px solid #3B82F6; }
.info-box--green { background: #F0FDF4; border-left: 4px solid #22C55E; }
.info-box--amber { background: #FFFBEB; border-left: 4px solid #F59E0B; }
.info-box--red   { background: #FFF5F5; border-left: 4px solid var(--red); }

.info-box__icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.info-box__title { font-weight: 700; margin-bottom: 4px; }
.info-box__text  { font-size: 0.92rem; color: var(--gray); line-height: 1.6; }

/* ── Steps ─────────────────────────────────────────────────── */
.steps { counter-reset: step; }
.step {
  display: flex;
  gap: 24px;
  margin-bottom: 48px;
  position: relative;
}
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 27px;
  top: 56px;
  bottom: -48px;
  width: 2px;
  background: linear-gradient(to bottom, var(--red) 0%, var(--red-light) 100%);
}
.step__num {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(220,20,60,0.3);
  position: relative;
  z-index: 1;
}
.step__content { padding-top: 8px; }
.step__title { font-size: 1.25rem; margin-bottom: 8px; }
.step__text  { color: var(--gray); font-size: 0.95rem; }

/* ── Checklist ─────────────────────────────────────────────── */
.checklist { display: flex; flex-direction: column; gap: 10px; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,248,248,0.9));
  border-radius: 8px;
  font-size: 0.93rem;
  line-height: 1.5;
  border: 1px solid rgba(220,20,60,0.08);
}
.checklist li::before {
  content: '✓';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 900;
  margin-top: 1px;
}

/* ── Badge / Tag ───────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.badge--red   { background: var(--red-light); color: var(--red-dark); }
.badge--gold  { background: #FEF3C7; color: #92400E; }
.badge--green { background: #D1FAE5; color: #065F46; }
.badge--blue  { background: #DBEAFE; color: #1E40AF; }

/* ── FAQ Accordion ─────────────────────────────────────────── */
.faq-item {
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: var(--white);
  border: none;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  text-align: left;
  transition: background var(--transition);
  gap: 12px;
}
.faq-item__q:hover { background: var(--off-white); }
.faq-item__q.open  { background: var(--off-white); color: var(--red); }

.faq-item__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--gray-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--gray);
  transition: all var(--transition);
}
.faq-item__q.open .faq-item__icon {
  background: var(--red-light);
  color: var(--red);
  transform: rotate(45deg);
}

.faq-item__a {
  display: none;
  padding: 0 24px 20px;
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.7;
}
.faq-item__a.open { display: block; }

/* ── Consulate Cards ───────────────────────────────────────── */
.consulate-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 28px;
  border: 2px solid var(--gray-border);
  transition: all var(--transition);
}
.consulate-card.highlighted {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(220,20,60,0.08), var(--shadow-lg);
}
.consulate-card__flag {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
}
.consulate-card__flag span:first-child { background: var(--white); border: 1px solid #eee; flex: 1; }
.consulate-card__flag span:last-child  { background: var(--red); flex: 1; }

.consulate-card__title { font-size: 1.2rem; margin-bottom: 6px; }
.consulate-card__type  { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--gray); margin-bottom: 16px; }
.consulate-card__info  { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.consulate-card__row   { display: flex; gap: 10px; font-size: 0.9rem; color: var(--gray); align-items: flex-start; }
.consulate-card__row strong { color: var(--text); white-space: nowrap; }

/* ── Quiz / Questionnaire ──────────────────────────────────── */
.quiz-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 48px;
  max-width: 720px;
  margin: 0 auto;
}

.quiz-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}
.quiz-progress__bar {
  flex: 1;
  height: 6px;
  background: var(--gray-light);
  border-radius: 3px;
  overflow: hidden;
}
.quiz-progress__fill {
  height: 100%;
  background: var(--red);
  border-radius: 3px;
  transition: width 0.4s ease;
}
.quiz-progress__label { font-size: 0.85rem; color: var(--gray); white-space: nowrap; }

.quiz-question { display: none; }
.quiz-question.active { display: block; }

.quiz-question h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--navy);
}
.quiz-question p {
  color: var(--gray);
  margin-bottom: 28px;
  font-size: 0.95rem;
}

.quiz-options { display: flex; flex-direction: column; gap: 12px; }
.quiz-option {
  padding: 16px 20px;
  border: 2px solid var(--gray-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  background: var(--white);
}
.quiz-option:hover { border-color: var(--red); background: #fff5f6; }
.quiz-option.selected { border-color: var(--red); background: #fff5f6; }
.quiz-option__dot {
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-border);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.quiz-option.selected .quiz-option__dot {
  border-color: var(--red);
  background: var(--red);
}
.quiz-option.selected .quiz-option__dot::after {
  content: '';
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  gap: 12px;
}

/* ── Result Box ────────────────────────────────────────────── */
.result-box {
  text-align: center;
  padding: 20px 0;
}
.result-box__icon { font-size: 4rem; margin-bottom: 16px; }
.result-box h3    { font-size: 1.8rem; margin-bottom: 12px; }
.result-box p     { color: var(--gray); font-size: 1rem; margin-bottom: 24px; }

/* ── App Teaser Section ────────────────────────────────────── */
.app-teaser {
  background:
    linear-gradient(135deg, rgba(33,49,79,0.82) 0%, rgba(78,94,122,0.64) 100%),
    url('../img/village.png') center/cover no-repeat;
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  gap: 48px;
  position: relative;
  overflow: hidden;
}
.app-teaser::before {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(201,168,76,0.08);
}
.app-teaser::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20,31,52,0.2), rgba(20,31,52,0.45));
}
.app-teaser__content { flex: 1; color: var(--white); position: relative; z-index: 1; }
.app-teaser__content h2 { color: var(--white); font-size: 2rem; margin-bottom: 12px; }
.app-teaser__content h2 span { color: var(--gold-light); }
.app-teaser__content p { color: rgba(255,255,255,0.8); margin-bottom: 24px; font-size: 1rem; }
.app-teaser__phone {
  flex-shrink: 0;
  width: 160px;
  height: 280px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.05)),
    url('../img/Consulate.png') center/cover no-repeat;
  border: 2px solid rgba(255,255,255,0.22);
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  z-index: 1;
}

/* ── Table ─────────────────────────────────────────────────── */
.doc-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.doc-table th, .doc-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--gray-border);
  font-size: 0.92rem;
}
.doc-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-family: 'Lato', sans-serif;
  letter-spacing: 0.5px;
}
.doc-table th:first-child { border-radius: 8px 0 0 0; }
.doc-table th:last-child  { border-radius: 0 8px 0 0; }
.doc-table tr:hover td    { background: var(--off-white); }
.doc-table tr:last-child td { border-bottom: none; }

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background:
    linear-gradient(180deg, rgba(26,39,68,0.94), rgba(45,59,87,0.9)),
    url('../img/village.png') center/cover no-repeat;
  color: rgba(255,255,255,0.75);
  padding: 64px 0 32px;
}
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer__brand { }
.footer__brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.footer__brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 280px;
}
.footer__col h4 {
  color: var(--white);
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 8px; }
.footer__col a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color var(--transition);
}
.footer__col a:hover { color: var(--white); }

.footer__divider {
  height: 1px;
  background: rgba(255,255,255,0.12);
  margin-bottom: 28px;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}
.footer__disclaimer {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin-top: 12px;
  line-height: 1.6;
}

/* ── Page Hero (inner pages) ───────────────────────────────── */
.page-hero {
  background:
    linear-gradient(115deg, rgba(31,48,77,0.78) 0%, rgba(57,79,113,0.62) 40%, rgba(146,164,191,0.32) 100%),
    url('../img/village.png') center/cover no-repeat;
  padding: 64px 0;
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.14), rgba(16,25,47,0.08) 55%, rgba(255,255,255,0.04)),
    url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M20 20.5V18H0v5h5v5H0v5h20v-9.5zm-2 4.5H4v-4h14v4zm-6-14.5V0H0v5h5v5H0v5h18v-9.5zM16 9H4V5h12v4zm-6 14.5V40H0v-5h5v-5H0v-5h10v9.5zM8 35H4v-4h4v4z'/%3E%3C/g%3E%3C/svg%3E");
}
.page-hero::after {
  content: '';
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(130px, 14vw, 220px);
  height: clamp(130px, 14vw, 220px);
  background: url('../img/image%20overlay%20eagle.png') center/contain no-repeat;
  opacity: 0.16;
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__breadcrumb {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 12px;
}
.page-hero__breadcrumb a { color: rgba(255,255,255,0.7); }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--white); margin-bottom: 12px; }
.page-hero__sub { font-size: 1.05rem; color: rgba(255,255,255,0.75); max-width: 560px; margin: 0 auto; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .app-teaser  { flex-direction: column; padding: 40px; }
  .app-teaser__phone { width: 120px; height: 210px; font-size: 3.5rem; }
}

@media (max-width: 768px) {
  .nav__links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); padding: 16px; box-shadow: var(--shadow-md); z-index: 999; gap: 0; }
  .nav__links.open { display: flex; }
  .nav__link { padding: 12px 16px; border-radius: 6px; }
  .nav__hamburger { display: flex; }
  .nav__inner { position: relative; }
  .nav__logo { max-width: calc(100% - 64px); }
  .nav__logo-tag { display: none; }

  .section { padding: 56px 0; }
  .section-header h2 { font-size: 1.9rem; }
  .section-header p { font-size: 1rem; }
  .hero { min-height: 560px; padding: 40px 0; }
  .hero::after { width: 78vw; height: 46vw; right: -18%; bottom: -6%; opacity: 0.42; }
  .hero__content { padding: 28px; }
  .hero__eagle { display: none; }
  .page-hero::after { display: none; }
  .page-hero { padding: 52px 0; }
  .quiz-container { padding: 28px 20px; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }

  .step::after { left: 27px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .hero__actions { flex-direction: column; }
  .hero__content { padding: 24px 20px; }
  .btn--lg { width: 100%; justify-content: center; }
  .btn { width: 100%; justify-content: center; }
  .quiz-nav { flex-direction: column; }
  .container,
  .container--wide { padding: 0 18px; }
  .page-hero__breadcrumb { line-height: 1.5; }
  .page-hero__sub { font-size: 0.98rem; }
  .scroll-top { right: 18px; bottom: 18px; }
}

/* ── Utility ───────────────────────────────────────────────── */
.text-red   { color: var(--red); }
.text-gold  { color: var(--gold); }
.text-navy  { color: var(--navy); }
.text-gray  { color: var(--gray); }
.text-white { color: var(--white); }
.text-center { text-align: center; }

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

/* ── Scroll to top ─────────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  z-index: 500;
}
.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top:hover   { background: var(--red-dark); transform: translateY(-2px); }

/* ── Animate on scroll ─────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}
