/* ======================================
   Karte Global — Homepage Styles
   Page-specific; always load after base.css
   ====================================== */

/* ===== Typography overrides (homepage uses a larger scale) ===== */
h1 { font-size: 2.5rem;  margin-bottom: 1.5rem; }
h2 { font-size: 2.25rem; margin-bottom: 1.5rem; }
h4 { font-size: 1.375rem; }

@media (min-width: 768px) {
  h1 { font-size: 3.75rem; }
  h2 { font-size: 2.75rem; }
}

/* Homepage .lead has a tighter max-width for the hero column */
.lead { max-width: 38ch; }

/* ===== Section intro (centered on homepage) ===== */
.section-intro {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section-intro p { margin-left: auto; margin-right: auto; }

/* ===== Hero (full-bleed, rotating images) ===== */
.hero {
  position: relative;
  width: 100%;
  min-height: 65vh;
  overflow: hidden;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: flex-end;
  background: var(--headline);
}

@media (min-width: 768px) {
  .hero { min-height: 82vh; }
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0;
  animation: heroFade 28s infinite;
}

.hero-image:nth-child(1) { animation-delay: 0s; }
.hero-image:nth-child(2) { animation-delay: 7s; }
.hero-image:nth-child(3) { animation-delay: 14s; }
.hero-image:nth-child(4) { animation-delay: 21s; }

@keyframes heroFade {
  0%   { opacity: 0; }
  3%   { opacity: 1; }
  25%  { opacity: 1; }
  28%  { opacity: 0; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-image { animation: none; }
  .hero-image:nth-child(1) { opacity: 1; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(15, 31, 61, 0.62) 0%,
      rgba(15, 31, 61, 0.28) 45%,
      rgba(15, 31, 61, 0.04) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(15, 31, 61, 0.45) 0%,
      rgba(15, 31, 61, 0.12) 22%,
      rgba(15, 31, 61, 0.32) 55%,
      rgba(15, 31, 61, 0.90) 100%
    );
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 0 3rem;
}

@media (min-width: 768px) {
  .hero-content { padding: 0 0 5rem; }
}

.hero-content .eyebrow {
  color: #C49B5C;
  margin-bottom: 1rem;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.75);
}

.hero-content h1 {
  color: var(--bg);
  max-width: 18ch;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.hero-content h1 em {
  color: #E8C794;
  font-style: italic;
  font-weight: 400;
}

.hero-content .lead {
  color: rgba(250, 247, 242, 0.94);
  max-width: 44ch;
  margin-bottom: 2rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}

.hero-content .btn {
  background: var(--accent);
  color: var(--bg);
  padding: 1rem 1.75rem;
  font-size: 0.9375rem;
}

.hero-content .btn:hover { background: var(--accent-hover); }

.hero-content .link-arrow {
  color: var(--bg);
  border-color: rgba(196, 155, 92, 0.7);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.hero-content .link-arrow:hover { color: #E8C794; }

/* ===== Hero quote band ===== */
.hero-quote-band {
  padding: 2rem 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

@media (min-width: 768px) {
  .hero-quote-band { padding: 4.5rem 0; }
}

.hero-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.375rem;
  line-height: 1.4;
  color: var(--headline);
  max-width: 48ch;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .hero-quote { font-size: 1.75rem; }
}

.hero-quote::before,
.hero-quote::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 0.75rem auto;
}

@media (min-width: 768px) {
  .hero-quote::before,
  .hero-quote::after { margin: 1rem auto; }
}

/* ===== Countries / Pathways section ===== */
#countries { padding-top: 3rem; }

@media (min-width: 768px) {
  #countries { padding-top: 5rem; }
}

.countries-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .countries-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .countries-grid { grid-template-columns: repeat(4, 1fr); }
}

.country-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2rem 1.75rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.country-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.country-card-flag {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.country-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--headline);
  margin-bottom: 0.75rem;
}

.country-card-desc {
  font-size: 0.9375rem;
  color: var(--text-soft);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.country-card-meta {
  font-size: 0.8125rem;
  color: var(--secondary);
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  letter-spacing: 0.02em;
}

/* ===== Cross-link band (MoveMeTo.EU) ===== */
.cross-link-band {
  padding: 2rem 0 2.25rem;
  border-top: 1px solid var(--border);
}

.cross-link-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .cross-link-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
  }
}

.cross-link-text { max-width: 58ch; }

.cross-link-statement {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--text);
  margin: 0;
}

@media (min-width: 800px) {
  .cross-link-statement { font-size: 1.375rem; }
}

.cross-link-cta {
  flex-shrink: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* ===== Services / Tiers ===== */
.services-section { background: var(--bg-alt); }

.tiers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .tiers { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  .tiers { grid-template-columns: repeat(4, 1fr); }
}

.tier {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
}

.tier-featured {
  border-color: var(--accent);
  position: relative;
}

.tier-featured::before {
  content: 'Most popular';
  position: absolute;
  top: -12px;
  left: 1.75rem;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
}

.tier-name {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.tier-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--headline);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.tier-price-meta {
  font-size: 0.8125rem;
  color: var(--text-soft);
  margin-bottom: 1.5rem;
}

.tier-price-add {
  font-size: 0.8125rem;
  color: var(--accent);
  font-style: italic;
  line-height: 1.45;
  margin-top: 0.3rem;
  margin-bottom: 1.5rem;
}

.tier-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--headline);
  margin-bottom: 0.75rem;
}

.tier-desc {
  font-size: 0.9375rem;
  color: var(--text-soft);
  line-height: 1.55;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

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

.tier-features li {
  font-size: 0.875rem;
  color: var(--text-soft);
  padding: 0.4rem 0 0.4rem 1.25rem;
  position: relative;
  line-height: 1.5;
}

.tier-features li::before {
  content: '\2022';
  position: absolute;
  left: 0.25rem;
  top: 0.4rem;
  color: var(--accent);
  font-size: 1rem;
  line-height: 1.5;
}

/* ===== Process ===== */
#process { padding: 3.5rem 0; }

@media (min-width: 768px) {
  #process { padding: 5.5rem 0; }
}

#process .section-intro { margin-bottom: 2.5rem; }

@media (min-width: 768px) {
  #process .section-intro { margin-bottom: 3.5rem; }
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 800px) {
  .process-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}

.process-step { text-align: center; }

.process-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

@media (min-width: 800px) {
  .process-number { font-size: 3.25rem; margin-bottom: 1rem; }
}

.process-step h3 { font-size: 1.375rem; margin-bottom: 0.5rem; }

@media (min-width: 800px) {
  .process-step h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
}

.process-step p {
  font-size: 0.9375rem;
  color: var(--text-soft);
  margin: 0 auto;
  max-width: 32ch;
}

/* ===== About teaser ===== */
.about-section { background: var(--bg-alt); }

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

@media (min-width: 800px) {
  .about-grid { grid-template-columns: 1fr 1.2fr; gap: 4rem; }
}

.about-portrait {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--headline) 0%, #2D3E5C 100%);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

.about-portrait::after {
  content: '[ Portrait of Justin Fuhrmann ]';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(250, 247, 242, 0.55);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
}

.about-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.375rem;
  color: var(--text);
  line-height: 1.45;
  margin: 1.5rem 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--accent);
}

/* ===== CTA section (homepage: centered, btn override) ===== */
.cta-section {
  color: var(--bg);
  text-align: center;
}

.cta-section p {
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
  color: rgba(250, 247, 242, 0.85);
}

.cta-section .btn {
  background: var(--accent);
  color: var(--bg);
}

.cta-section .btn:hover { background: var(--accent-hover); }

/* ===== Footer overrides (homepage has slightly different footer) ===== */
footer { padding: 4rem 0 2.5rem; }

.footer-brand { font-size: 1.5rem; }

.footer-tagline { font-size: 0.9375rem; max-width: 38ch; }

/* Homepage contact-line uses underline link style */
.contact-line { margin-top: 1rem; }

.contact-line a {
  color: var(--text);
  border-bottom: 1px solid var(--accent);
}

.contact-line a:hover {
  color: var(--accent);
  border-color: var(--accent-hover);
}

/* Homepage footer heading is secondary-coloured, not headline */
.footer-heading { color: var(--secondary); }

/* Homepage footer links are text-coloured, not text-soft */
.footer-list a {
  color: var(--text);
  min-height: unset;
  display: inline;
}

/* Homepage puts border on .footer-disclaimer, not .footer-grid */
.footer-grid {
  margin-bottom: 3rem;
  padding-bottom: 0;
  border-bottom: none;
}

.footer-disclaimer {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.footer-meta { margin-top: 1.5rem; }
