:root {
  /* Color */
  --bg-base: #FFFFFF;
  --bg-soft: #F5F1EA;
  --surface-card: #FFFFFF;
  --surface-tint: #EAF4F4;
  --primary: #034F62;
  --primary-deep: #022E3D;
  --accent: #00A896;
  --accent-warm:    #C9A678;
  --accent-bright: #02C39A;
  --neutral-warm:   #FBFCFC;
  --text-strong: #022E3D;
  --text-body: #1F2937;
  --text-muted: #475569;
  --border-soft: rgba(3,79,98,0.12);

  /* Radius */
  --r-card: 24px;
  --r-image: 28px;
  --r-pill: 999px;
  --r-input: 14px;

  /* RGB Values */
  --primary-deep-rgb: 2, 46, 61;
  --bg-soft-rgb: 245, 241, 234;

  /* Shadow */
  --shadow-card: 0 20px 60px rgba(var(--primary-deep-rgb), 0.10);
  --shadow-soft: 0 8px 24px rgba(var(--primary-deep-rgb), 0.06);

  /* Layout */
  --max-width: 1200px;
  --pad-y: 96px;
  --pad-x: 24px;

  /* Type */
  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --accent-gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 55%, var(--accent-bright) 100%);
  --accent-gradient-soft: linear-gradient(135deg, rgba(3,79,98,0.12), rgba(2,195,154,0.12));

  /* Motion + Interaction */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --focus-ring: 0 0 0 3px rgba(3,79,98,0.45);

  /* Icon sizing */
  --icon-sm: 18px;
  --icon-md: 24px;
  --icon-lg: 32px;

}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-display);
  color: var(--text-body);
  background: var(--bg-soft);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }

/* ============ ICON HELPER ============ */
.icon {
  width: var(--icon-md);
  height: var(--icon-md);
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
.icon-sm { width: var(--icon-sm); height: var(--icon-sm); }
.icon-lg { width: var(--icon-lg); height: var(--icon-lg); }

/* ============ SKIP LINK ============ */
.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  background: var(--primary);
  color: #FFFFFF;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: top 160ms var(--ease-out);
}
.skip-link:focus { top: 16px; }
:target { scroll-margin-top: 96px; }

/* ============ GLOBAL FOCUS-VISIBLE ============ */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
.btn:focus-visible,
.twf-card:focus-visible,
.bg-card:focus-visible,
.sct-link:focus-visible,
.btn-pill-light:focus-visible,
.nav-dropdown-menu a:focus-visible,
.ft-socials a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
/* Form fields: focus must add a ring/shadow, not only border-color */
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}

/* ============ PRESS FEEDBACK (tappable elements) ============ */
.btn,
.twf-card,
.bg-card,
.sct-link,
.btn-pill-light,
.nav-lang {
  -webkit-tap-highlight-color: transparent;
}
.btn:active,
.twf-card:active,
.bg-card:active,
.sct-link:active,
.btn-pill-light:active,
.nav-lang:active {
  transform: scale(0.97);
  transition: transform 120ms var(--ease-out);
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    /* keep opacity/color/shadow transitions, drop motion */
    transition-property: opacity, color, background-color, border-color, box-shadow, fill, filter !important;
    animation: none !important;
  }
  .btn:active,
  .twf-card:active,
  .bg-card:active,
  .sct-link:active,
  .btn-pill-light:active,
  .nav-lang:active,
  .btn:hover,
  .twf-card:hover,
  .bg-card:hover,
  .scm-play:hover,
  .skip-link,
  .skip-link:focus {
    transform: none !important;
  }
}
