/* Country landing page styles
   Pages live at /<cc>/en/<slug>/index.html — three levels deep.
   Loaded after shared.css; adds components specific to country pages. */

/* HERO — extends .page-hero with flag chip + dual CTA */
.country-hero { padding: 150px 24px 90px; }
.country-hero h1 {
  font-size: clamp(34px, 5vw, 60px);
  max-width: 920px;
  margin-bottom: 24px;
}
.country-hero p.lead {
  font-size: 19px;
  color: rgba(255,255,255,0.65);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.country-flag-chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 8px 18px 8px 12px;
  font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}
.country-flag-chip .flag { font-size: 20px; line-height: 1; }
.country-flag-chip .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green-light);
  animation: pulse 2s infinite;
}
.country-hero-actions {
  display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.country-hero-trust {
  display: flex; align-items: center; justify-content: center;
  gap: 28px; flex-wrap: wrap;
  color: rgba(255,255,255,0.45);
  font-size: 13px;
}
.country-hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.country-hero-trust svg { opacity: 0.7; }

/* MANDATE / REGULATION CARD — the "what the law says" panel */
.mandate-section { background: var(--off-white); }
.mandate-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 44px 48px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: start;
  box-shadow: 0 4px 24px rgba(7,13,26,0.04);
}
.mandate-card .mandate-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: oklch(55% 0.17 152 / 0.10);
  color: var(--green);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 100px;
  margin-bottom: 18px;
}
.mandate-card h2 {
  font-size: 30px; font-weight: 700;
  line-height: 1.2; letter-spacing: -0.8px;
  margin-bottom: 16px;
  text-wrap: balance;
}
.mandate-card .mandate-body p {
  font-size: 16px; color: var(--mid);
  line-height: 1.75; margin-bottom: 12px;
}
.mandate-card .mandate-body p strong { color: var(--text); }

.timeline {
  display: flex; flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 0;
}
.timeline-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.timeline-item:last-child { border-bottom: none; }
.timeline-date {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--green);
  text-transform: uppercase;
  padding-top: 2px;
}
.timeline-title {
  font-size: 14.5px; font-weight: 600;
  color: var(--text); margin-bottom: 2px;
  line-height: 1.4;
}
.timeline-sub {
  font-size: 13px; color: var(--mid);
  line-height: 1.6;
}
.timeline-item.done .timeline-date { color: oklch(58% 0.16 220); }
.timeline-item.live .timeline-date { color: var(--green); }
.timeline-item.upcoming .timeline-date { color: oklch(60% 0.13 60); }

/* Facts strip — quick stats specific to the country */
.facts-strip {
  background: var(--navy);
  padding: 44px 24px;
}
.facts-row {
  max-width: 1100px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.fact {
  text-align: center;
  padding: 8px 12px;
}
.fact-num {
  display: block;
  font-size: 36px; font-weight: 700;
  color: white;
  letter-spacing: -1.4px; line-height: 1;
  margin-bottom: 8px;
}
.fact-num .unit { font-size: 18px; font-weight: 500; opacity: 0.7; letter-spacing: 0; }
.fact-label {
  font-size: 12.5px;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

/* Format / standards row (XRechnung, ZUGFeRD, Peppol BIS etc.) */
.formats-row {
  display: flex; flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.format-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600;
  background: var(--off-white);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 14px; border-radius: 100px;
}
.format-pill::before {
  content: '';
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
}

/* Localised feature list — green checks, two-col */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 48px;
}
.benefit { display: flex; gap: 18px; }
.benefit-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--green-pale);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.benefit-icon svg { width: 18px; height: 18px; stroke: var(--green); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.benefit h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.benefit p { font-size: 14px; color: var(--mid); line-height: 1.7; }

/* Country picker — link out to other 6 */
.country-picker-section { background: white; }
.country-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
  justify-content: center;
}
.country-picker-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 10px;
  text-decoration: none;
  color: var(--text);
  text-align: center;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s, background 0.15s;
  background: white;
}
.country-picker-card .country-picker-sub { display: none; }
.country-picker-card .country-picker-name { font-size: 13px; }
.country-picker-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.country-picker-card.current {
  background: var(--off-white);
  border-color: var(--green);
  cursor: default;
  pointer-events: none;
}
/* Two-letter country code badge — rendered as a coloured square so it
   looks intentional everywhere (Windows has no native colour flag emoji,
   so we don't rely on the unicode flag glyph). */
.country-code-badge {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; letter-spacing: 0.04em;
  color: white;
  background: var(--navy);
  font-family: 'DM Sans', sans-serif;
}
.country-code-badge.cc-gb { background: linear-gradient(135deg, #012169 0%, #c8102e 100%); }
.country-code-badge.cc-de { background: linear-gradient(135deg, #1c1c1c 0%, #dd0000 50%, #ffce00 100%); }
.country-code-badge.cc-be { background: linear-gradient(135deg, #1c1c1c 0%, #fae042 50%, #ef3340 100%); }
.country-code-badge.cc-lu { background: linear-gradient(135deg, #ed2939 0%, #ffffff 50%, #00a3e0 100%); color: var(--text); }
.country-code-badge.cc-se { background: linear-gradient(135deg, #006aa7 0%, #fecc00 100%); }
.country-code-badge.cc-ie { background: linear-gradient(135deg, #169b62 0%, #ffffff 50%, #ff883e 100%); color: var(--text); }
.country-code-badge.cc-nl { background: linear-gradient(135deg, #ae1c28 0%, #ffffff 50%, #21468b 100%); color: var(--text); }

.country-picker-card .country-code-badge { width: 44px; height: 44px; font-size: 14px; }

.country-picker-name { font-size: 14px; font-weight: 600; color: var(--text); }
.country-picker-sub { font-size: 12px; color: var(--mid); margin-top: 2px; }

/* Footer country list — small inline badge before the country name */
.footer-col .cc-mini {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 16px; border-radius: 3px;
  font-size: 9px; font-weight: 700; letter-spacing: 0.04em;
  color: white; margin-right: 8px; vertical-align: -2px;
  font-family: 'DM Sans', sans-serif;
}

/* Inline "related country" link — used inside body copy */
.also-row {
  margin-top: 18px;
  display: flex; flex-wrap: wrap; gap: 8px 10px;
  align-items: center;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
  font-size: 13.5px; color: var(--mid);
}
.also-row strong { color: var(--text); margin-right: 2px; }
.also-row a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--green);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 4px 10px 4px 6px;
  border-radius: 100px;
  background: white;
  transition: border-color 0.15s, background 0.15s;
}
.also-row a:hover { border-color: var(--green); background: var(--green-pale); }
.also-row a .cc-mini { width: 20px; height: 14px; font-size: 8px; margin-right: 0; }

/* FAQ — same look as homepage, lighter background here */
.country-faq { background: var(--off-white); }
.country-faq .faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 0; }
.country-faq .faq-item { border-bottom: 1px solid var(--border); }
.country-faq .faq-q {
  width: 100%; text-align: left; padding: 22px 0;
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 16px; font-weight: 600;
  color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.country-faq .faq-q:hover { color: var(--green); }
.country-faq .faq-icon {
  width: 24px; height: 24px; border-radius: 50%;
  background: white; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 18px; color: var(--mid);
  transition: transform 0.2s, background 0.2s;
}
.country-faq .faq-item.open .faq-icon { transform: rotate(45deg); background: var(--green); color: white; border-color: var(--green); }
.country-faq .faq-a {
  font-size: 15px; color: var(--mid); line-height: 1.75;
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s;
  padding-bottom: 0;
}
.country-faq .faq-item.open .faq-a { max-height: 800px; padding-bottom: 24px; }

/* CTA */
.country-cta {
  background: var(--navy);
  text-align: center; padding: 100px 24px;
  position: relative; overflow: hidden;
}
.country-cta .glow {
  position: absolute; width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(55% 0.17 152 / 0.15) 0%, transparent 70%);
  top: -200px; left: 50%; transform: translateX(-50%);
  pointer-events: none;
}
.country-cta h2 {
  position: relative;
  font-size: clamp(30px, 4.5vw, 48px); font-weight: 700;
  color: white; letter-spacing: -1.2px;
  margin-bottom: 18px; text-wrap: balance;
  max-width: 800px; margin-left: auto; margin-right: auto;
}
.country-cta p {
  position: relative;
  font-size: 18px; color: rgba(255,255,255,0.6);
  margin: 0 auto 36px; max-width: 580px;
}
.country-cta .cta-actions {
  position: relative;
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* MOBILE */
@media (max-width: 860px) {
  .country-hero { padding: 110px 18px 56px; }
  .country-hero p.lead { font-size: 16px; }
  .mandate-card {
    grid-template-columns: 1fr !important;
    padding: 32px 24px;
    gap: 32px;
  }
  .facts-row { grid-template-columns: 1fr 1fr !important; gap: 20px; }
  .benefits-grid { grid-template-columns: 1fr !important; gap: 22px; }
  .country-picker-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .country-hero-trust { gap: 14px 18px; }
}

@media (max-width: 480px) {
  .country-picker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline-item { grid-template-columns: 90px 1fr; gap: 12px; }
}


/* ===== Inline SVG flag rendering — replaces the gradient code badges ===== */
.country-flag-svg {
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border-radius: 3px;
  overflow: hidden;
  background: white;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
}
.country-flag-svg svg { display: block; }
/* Sizes */
.country-flag-svg.size-lg { width: 48px; height: 32px; }
.country-flag-svg.size-md { width: 36px; height: 24px; }
.country-flag-svg.size-sm { width: 22px; height: 15px; }
.country-flag-svg.size-xs { width: 18px; height: 12px; }

/* Country picker: replace the old square code badge with a flag */
.country-picker-card { gap: 16px; }
.country-picker-card .country-flag-svg.size-lg { width: 48px; height: 32px; }

/* Hero chip flag */
.country-flag-chip .country-flag-svg { background: transparent; box-shadow: 0 0 0 1px rgba(255,255,255,0.18); }

/* Footer mini-flag in the country list */
.footer-col li .country-flag-svg {
  margin-right: 9px; vertical-align: -3px;
  background: rgba(255,255,255,0.02);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12);
}

/* "Also explore:" pill row — small flag chips */
.also-row a .country-flag-svg { background: transparent; box-shadow: 0 0 0 1px var(--border); }
