/* ============================================================
   WebRevive v2 — style.css
   Bright, warm, professional. Playfair Display + DM Sans.
   ============================================================ */

/* Performance: contain-intrinsic-size for layout stability */
img { content-visibility: auto; }

/* Skip navigation */
.skip-nav {
  position: fixed;
  top: -60px;
  left: 0;
  background: #2C1A0E;
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 0 0 4px 0;
  z-index: 9999;
  transition: top 0.3s;
  font-size: 14px;
}
.skip-nav:focus { top: 0; }

/* Focus styles for keyboard navigation */
:focus-visible {
  outline: 3px solid #9B6A2F;
  outline-offset: 2px;
  border-radius: 2px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #9B6A2F;
  outline-offset: 2px;
}

/* --- Custom Properties --- */
:root {
  --color-bg:       #FAFAF8;
  --color-surface:  #F3F0EB;
  --color-text:     #1A1A1A;
  --color-muted:    #6B6B6B;
  --color-amber:    #C17A2E;
  --color-amber-dk: #A56823;
  --color-border:   #E0DDD8;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --section-py: clamp(3rem, 6vw, 5rem);
  --section-px: clamp(1.25rem, 5vw, 3rem);
  --container:  1100px;
  --nav-h:      72px;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --speed: 0.3s;
}

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

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

section[id] { scroll-margin-top: 80px; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }

::selection {
  background: var(--color-amber);
  color: #fff;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--section-px);
}


/* --- Reveal animation --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   1. NAVIGATION
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease),
              border-color var(--speed) var(--ease);
  border-bottom: 1px solid transparent;
}

.site-nav.scrolled {
  background: var(--color-bg);
  border-bottom-color: var(--color-border);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-badge {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--color-amber);
  letter-spacing: -0.5px;
}

.logo-wordmark {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-text);
  transition: color var(--speed);
}

/* Nav at top (over hero): white text */
.site-nav:not(.scrolled) .logo-wordmark { color: #fff; }
.site-nav:not(.scrolled) .nav-links a { color: #fff; }
.site-nav:not(.scrolled) .hamburger span { background: #fff; }

/* Nav scrolled: dark text on white background */
.site-nav.scrolled .logo-wordmark { color: var(--color-text); }
.site-nav.scrolled .nav-links a { color: var(--color-text); }
.site-nav.scrolled .hamburger span { background: var(--color-text); }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  transition: color var(--speed);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-amber);
  transition: width var(--speed) var(--ease);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

.nav-links a.active {
  color: var(--color-text);
}

.btn-nav-cta {
  padding: 0.5rem 1.25rem !important;
  font-size: 0.85rem !important;
  border-radius: 6px;
  margin-left: 0.5rem;
}

.btn-nav-cta::after { display: none !important; }

.site-nav:not(.scrolled) .btn-nav-cta {
  background: var(--color-amber);
  color: #fff !important;
  border: none;
}

.site-nav.scrolled .btn-nav-cta {
  background: var(--color-amber);
  color: #fff !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--speed), opacity var(--speed);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav — full-page white overlay */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--color-bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--speed), visibility var(--speed);
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-text);
  }

  /* Override hero white text when mobile overlay is open */
  .site-nav:not(.scrolled) .nav-links.open a { color: var(--color-text); }
  .site-nav:not(.scrolled) .hamburger.open span { background: var(--color-text); }

  .nav-links a::after { display: none; }
}


/* ============================================================
   2. HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to bottom, rgba(26,26,26,0.35) 50%, rgba(0,0,0,0.55) 100%),
              url('images/hero3.jpg') center/cover no-repeat;
  position: relative;
  padding-top: var(--nav-h);
  padding-bottom: 3rem;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-content {
  max-width: 680px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.8rem 1.75rem;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--speed), color var(--speed),
              border-color var(--speed), transform var(--speed);
}

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

.btn:focus-visible {
  outline: 2px solid var(--color-amber);
  outline-offset: 3px;
}

a:focus-visible {
  outline: 2px solid var(--color-amber);
  outline-offset: 2px;
  border-radius: 2px;
}

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

.btn-primary:hover {
  background: var(--color-amber-dk);
  border-color: var(--color-amber-dk);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

/* Trust strip */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  justify-content: center;
}

.trust-strip span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.trust-strip svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Scroll arrow */
.hero-scroll-arrow {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  opacity: 0.7;
  transition: opacity var(--speed);
  animation: bounce 2s ease infinite;
}

.hero-scroll-arrow:hover {
  opacity: 1;
  color: var(--color-amber);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .hero-content { max-width: 100%; }
}


/* ============================================================
   3. PROBLEM SECTION
   ============================================================ */
.problems {
  padding: var(--section-py) 0 2rem;
  background: #F3F0EB;
}

.section-header {
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--color-muted);
  font-size: 1.05rem;
  max-width: 560px;
}

.section-header.center {
  text-align: center;
}

.section-header.center p {
  margin: 0 auto;
}

/* Editorial numbered items */
.problem-list {
  max-width: 800px;
  margin: 0 auto;
}

.problem-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border);
}

.problem-item:first-child {
  border-top: 1px solid var(--color-border);
}

.problem-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 300;
  color: var(--color-amber);
  line-height: 1;
  grid-row: 1 / 3;
  padding-top: 0.1rem;
}

.problem-icon {
  grid-row: 1 / 3;
  padding-top: 0.2rem;
}

.problem-icon svg {
  width: 32px;
  height: 32px;
}

.problem-item h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.problem-item p {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.65;
}

@media (max-width: 600px) {
  .problem-item {
    grid-template-columns: 40px 1fr;
    gap: 0 1rem;
  }
  .problem-number { font-size: 1.5rem; }
}


/* ============================================================
   4. HOW IT WORKS
   ============================================================ */
.how-it-works {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: #FAFAF8;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

/* Connector line (desktop) */
.steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(12.5% + 1rem);
  right: calc(12.5% + 1rem);
  height: 2px;
  background: #D8D4CE;
  opacity: 1;
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Amber dot at each step */
.step::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-amber);
  margin: 0 auto 0.5rem;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--color-amber);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.step h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
    gap: 2rem;
  }
  .steps::before { display: none; }
  .step::before { display: none; }
}


/* ============================================================
   5. TESTIMONIALS
   ============================================================ */
.testimonials {
  padding: var(--section-py) 0;
  background: #FAFAF8;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: var(--color-bg);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid #D8D4CE;
}

.testimonial-quote-mark {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 300;
  color: var(--color-amber);
  line-height: 1;
  margin-bottom: -0.5rem;
  opacity: 0.5;
}

.testimonial-card blockquote {
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: normal;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-card cite {
  font-size: 0.85rem;
  color: var(--color-muted);
  font-style: normal;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
}


/* ============================================================
   6. PRICING
   ============================================================ */
.pricing {
  padding: var(--section-py) 0;
  background: #F3F0EB;
}

.pricing-single .pricing-card-inner {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.pricing-card {
  background: var(--color-bg);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  border: 1px solid var(--color-border);
  transition: transform var(--speed);
}

.pricing-card:hover {
  transform: translateY(-3px);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  right: 16px;
  background: var(--color-amber);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pricing-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-muted);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.pricing-amount {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.pricing-period {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--color-muted);
}

.pricing-term {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.pricing-card ul {
  text-align: left;
}

.pricing-card li {
  font-size: 0.9rem;
  color: var(--color-text);
  padding: 0.4rem 0;
  padding-left: 1.75rem;
  position: relative;
}

/* Amber checkmark */
.pricing-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--color-amber);
  border-bottom: 2px solid var(--color-amber);
  transform: rotate(-45deg);
}

.pricing-setup {
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: center;
  background: var(--color-surface);
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.pricing-setup p {
  font-size: 1.1rem;
  color: var(--color-text);
  line-height: 1.7;
  font-weight: 600;
}

.pricing-callout {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--color-border);
}

.pricing-callout p {
  font-size: 1rem;
  color: var(--color-muted);
  font-style: italic;
}

@media (max-width: 768px) {
  .pricing-cards {
    flex-direction: column !important;
    grid-template-columns: 1fr;
    max-width: 380px;
  }
}


/* Pricing cards v2 */
.pricing-cards-wrap {
  display: flex;
  flex-direction: row;
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.pc-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  flex: 1;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.pc-card--featured {
  border: 2px solid var(--color-amber);
  box-shadow: 0 4px 20px rgba(193,122,46,0.1);
}

.pc-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.pc-label {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}

.pc-price {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
}

.pc-period {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.pc-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.pc-list li {
  padding: 0.35rem 0 0.35rem 1.4rem;
  position: relative;
  font-size: 0.9rem;
  color: var(--color-text);
}

.pc-list li svg {
  position: absolute;
  left: 0;
  top: 0.45rem;
}

.pc-btn { width: 100%; text-align: center; }

.pc-footer {
  text-align: center;
  margin-top: 1.5rem;
}

.pc-footer p {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}

.pc-footer a {
  color: var(--color-amber);
  font-size: 0.85rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .pricing-cards-wrap {
    flex-direction: column;
    max-width: 380px;
  }
}

/* Three path cards (ratemywebsite) */
.path-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
}

.path-card--featured {
  border: 2px solid var(--color-amber);
  box-shadow: 0 4px 24px rgba(193,122,46,0.12);
  position: relative;
}

.path-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
  width: fit-content;
}

.path-badge--green { background: #dcfce7; color: #166534; }
.path-badge--amber { background: #fef3e2; color: #92400e; }
.path-badge--blue { background: #dbeafe; color: #1e40af; }

.path-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.path-price {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.path-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  flex: 1;
}

.path-list li {
  padding: 0.3rem 0 0.3rem 1.4rem;
  position: relative;
  font-size: 0.88rem;
  color: var(--color-text);
}

.path-list li svg {
  position: absolute;
  left: 0;
  top: 0.4rem;
}

.path-affiliate {
  font-size: 0.72rem;
  color: var(--color-muted);
  opacity: 0.7;
  margin-bottom: 1rem;
}

.path-btn {
  display: block;
  text-align: center;
  padding: 0.75rem 1rem;
  color: #fff;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
}

.path-btn--green { background: #22c55e; }
.path-btn--amber { background: var(--color-amber); }
.path-btn--blue { background: #2563eb; }

.path-featured-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-amber);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ============================================================
   7. CONTACT
   ============================================================ */
.contact {
  padding: var(--section-py) 0;
  background: #F3F0EB;
}

.contact .section-header p {
  max-width: 520px;
}

.contact-form-wrapper {
  max-width: 540px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  outline: none;
  transition: border-color var(--speed), box-shadow var(--speed);
  border-radius: 6px;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-amber);
  box-shadow: 0 0 0 3px rgba(193, 122, 46, 0.1);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #c0392b;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-error {
  font-size: 0.8rem;
  color: #c0392b;
  margin-top: 0.3rem;
  display: none;
}

.form-error.visible {
  display: block;
}

.btn-submit {
  width: 100%;
  padding: 0.9rem;
  font-size: 1rem;
  margin-top: 0.75rem;
}

#form-success {
  text-align: center;
  padding: 2rem 1rem;
}

#form-success p {
  font-size: 1.05rem;
  color: var(--color-text);
  line-height: 1.7;
}

#form-error {
  text-align: center;
  padding: 1rem;
}

#form-error p {
  font-size: 0.95rem;
  color: #c0392b;
  line-height: 1.6;
}

#form-error a {
  color: var(--color-amber);
  font-weight: 600;
}

.contact-alt {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.contact-alt a {
  color: var(--color-amber);
  font-weight: 600;
  transition: opacity var(--speed);
}

.contact-alt a:hover {
  opacity: 0.8;
}


/* ============================================================
   8. FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.6);
  padding: 3.5rem 0 0;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
}

.footer-brand .logo-badge {
  font-size: 15px;
  background: var(--color-amber);
  color: #fff;
}

.footer-brand .logo-wordmark {
  font-size: 18px;
  color: #fff;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 280px;
  margin-bottom: 1.25rem;
}

.footer-brand a {
  color: var(--color-amber);
  font-size: 0.85rem;
  font-weight: 500;
  transition: opacity var(--speed);
}

.footer-brand a:hover { opacity: 0.8; }

.footer-col-heading {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.85rem;
}

.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-col-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--speed);
}

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

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  font-size: 0.75rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--speed);
}

.footer-legal a:hover { color: rgba(255, 255, 255, 0.7); }

.footer-copyright {
  color: rgba(255, 255, 255, 0.4);
}


@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: left;
  }
  .footer-bottom-bar {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
  .footer-legal { justify-content: center; }
}


/* ============================================================
   9. BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--color-text);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--speed), visibility var(--speed),
              transform var(--speed), background var(--speed);
  z-index: 998;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-amber);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}


/* ============================================================
   10. COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--color-text);
  color: #fff;
  padding: 1.25rem var(--section-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.85rem;
  line-height: 1.5;
  z-index: 999;
  font-family: var(--font-body);
}

.cookie-banner-text { max-width: 600px; }

.cookie-banner-text p { margin-bottom: 0.3rem; }

.cookie-banner-text a {
  color: var(--color-amber);
  font-size: 0.8rem;
  transition: opacity var(--speed);
}

.cookie-banner-text a:hover { opacity: 0.8; }

.cookie-banner-buttons {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cookie-banner button {
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--speed), opacity var(--speed);
}

.cookie-btn-accept {
  background: var(--color-amber);
  color: #fff;
}

.cookie-btn-accept:hover { background: var(--color-amber-dk); }

.cookie-btn-essential {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.cookie-btn-essential:hover { background: rgba(255, 255, 255, 0.25); }

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
    padding: 1rem;
  }
  .cookie-banner-buttons { justify-content: center; }
}


/* ============================================================
   11. FOOTER — EXTENDED
   ============================================================ */
.footer-countries {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

.footer-countries a {
  color: var(--color-muted);
  transition: color var(--speed);
}

.footer-countries a:hover { color: var(--color-amber); }

.footer-legal {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

.footer-legal a {
  color: var(--color-muted);
  transition: color var(--speed);
}

.footer-legal a:hover { color: var(--color-amber); }

.footer-legal span { margin: 0 0.5rem; opacity: 0.5; }


/* ============================================================
   12. INNER PAGES — shared styles
   ============================================================ */
.page-hero {
  padding: calc(var(--nav-h) + 3rem) 0 3rem;
  background: var(--color-surface);
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
  max-width: 700px;
}

.page-hero p {
  font-size: 1.05rem;
  color: var(--color-muted);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 1.5rem;
}

.page-hero .hero-buttons {
  justify-content: flex-start;
}

/* Centered hero variant (FAQ, compare, etc) */
.page-hero [style*="text-align: center"] h1,
.page-hero [style*="text-align:center"] h1,
.page-hero [style*="text-align: center"] p,
.page-hero [style*="text-align:center"] p {
  margin-left: auto;
  margin-right: auto;
}

.page-hero [style*="text-align: center"] .hero-buttons,
.page-hero [style*="text-align:center"] .hero-buttons {
  justify-content: center;
}

.page-section {
  padding: var(--section-py) 0;
}

.page-section:nth-child(even) { background: var(--color-surface); }
.page-section:nth-child(odd)  { background: var(--color-bg); }

.page-section h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

.page-section p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
  max-width: 700px;
  margin-bottom: 1rem;
}

.page-section p:last-child { margin-bottom: 0; }

/* FAQ accordion */
.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 0;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  gap: 1rem;
}

.faq-question:hover { color: var(--color-amber); }

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--color-amber);
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

/* Hide ::after if SVG icon is present */
.faq-question .faq-icon ~ *::after { display: none; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 0 1.25rem;
}

.faq-answer-inner p,
.faq-answer p {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.7;
  max-width: 700px;
  margin-bottom: 0;
}

/* Comparison Table */
.comparison-table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 10px;
  border: 1px solid #E8E4DF;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 640px;
}

.comparison-table thead th {
  font-family: var(--font-heading);
  font-weight: 600;
  text-align: center;
  padding: 14px 16px;
  color: var(--color-muted);
  border-bottom: 2px solid #E8E4DF;
  border-right: 1px solid #E8E4DF;
  background: #fff;
  font-size: 0.9rem;
}

.comparison-table thead th:first-child {
  text-align: left;
  width: 24%;
  color: var(--color-text);
}

.comparison-table thead th:last-child {
  border-right: none;
}

.comparison-table thead th.col-wr {
  background: #FAF3E8;
  color: var(--color-amber);
  border-top: 3px solid var(--color-amber);
  border-left: 1px solid var(--color-amber);
  border-right: 1px solid var(--color-amber);
  box-shadow: 0 0 8px rgba(193, 122, 46, 0.08);
}

.comparison-table td {
  padding: 14px 16px;
  color: var(--color-muted);
  border-bottom: 1px solid #E8E4DF;
  border-right: 1px solid #E8E4DF;
  text-align: center;
  vertical-align: middle;
  line-height: 1.5;
  font-size: 0.9rem;
}

.comparison-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--color-text);
}

.comparison-table td:last-child {
  border-right: none;
}

.comparison-table tr:nth-child(even) td {
  background: #FAFAF8;
}

.comparison-table td.col-wr {
  background: #FAF3E8;
  color: var(--color-text);
  font-weight: 600;
  border-left: 1px solid var(--color-amber);
  border-right: 1px solid var(--color-amber);
  box-shadow: inset 0 0 0 0 transparent, 0 0 8px rgba(193, 122, 46, 0.05);
}

.comparison-table tr:nth-child(even) td.col-wr {
  background: #F7EDD9;
}

.comparison-table tbody tr:last-child td.col-wr {
  border-bottom: 2px solid var(--color-amber);
}

/* CTA section on inner pages */
.page-cta {
  padding: var(--section-py) 0;
  text-align: center;
  background: var(--color-surface);
}

.page-cta h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 0.75rem;
}

.page-cta p {
  color: var(--color-muted);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

.page-cta .btn { margin: 0 0.5rem 0.5rem; }

.page-cta .secondary-link {
  display: block;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--color-amber);
  font-weight: 500;
  transition: opacity var(--speed);
}

.page-cta .secondary-link:hover { opacity: 0.7; }

/* Grader link in hero */
.hero-rater-link {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.hero-rater-link a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: color var(--speed), border-color var(--speed);
}

.hero-rater-link a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

/* Inner page nav — always dark text */
.page-nav .logo-wordmark { color: var(--color-text) !important; }
.page-nav .nav-links a { color: var(--color-text) !important; }
.page-nav .hamburger span { background: var(--color-text) !important; }
.page-nav { background: var(--color-bg); border-bottom-color: var(--color-border); }

/* Legal pages */
.legal-content {
  padding: var(--section-py) 0;
  background: var(--color-bg);
}

.legal-content h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin: 2rem 0 0.75rem;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text);
  max-width: 700px;
  margin-bottom: 1rem;
}

.legal-content .date-line {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
}
