/* ==========================================================================
   Global Moving Experts — design tokens, reset, base typography, layout
   ========================================================================== */

:root {
  /* Colour system — premium European relocation brand: warm ivory as the dominant surface,
     deep navy reserved for accents/selected dark sections (NOT a dominant full-site background),
     muted bronze/gold as the one warm highlight. Calm and understated rather than bold/graphic —
     deliberately not another SaaS-bright primary colour. */
  --color-ink: #16233F;
  --color-ink-soft: #223257;
  --color-ink-70: rgba(22, 35, 63, 0.72);
  --color-ink-50: rgba(22, 35, 63, 0.5);

  --color-paper: #FAF6F0;
  --color-paper-dim: #F5F1E9;
  --color-sand: #F5F1E9;
  --color-line: #E1D9C8;
  /* Form-control borders need 3:1 against the white field (WCAG 1.4.11); --color-line (~1.4:1) is
     for decorative dividers only. */
  --color-field-border: #928977;

  --color-clay: #A9814E;
  --color-clay-dark: #826234;
  --color-clay-pale: #F1E8D8;
  /* Lighter gold used ONLY for text/small graphics on the dark ink background — --color-clay
     itself doesn't clear WCAG AA against --color-ink; this variant does. Never use for
     light-background text (too pale to read there). */
  --color-clay-bright: #D8BC8A;

  --color-blue-grey: #6B7280;
  --color-blue-grey-pale: #ECEAE5;

  --color-white: #FFFFFF;
  --color-success: #2E6B4F;
  --color-error: #A63A2E;

  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container-width: 1280px;
  --container-pad: clamp(1.25rem, 4vw, 2.5rem);

  /* Restrained radius — a premium brand doesn't read as a SaaS dashboard. */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(22, 35, 63, 0.06);
  --shadow-md: 0 6px 20px rgba(22, 35, 63, 0.08);
  --shadow-lg: 0 16px 40px rgba(22, 35, 63, 0.12);

  --transition: 200ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.68;
  color: var(--color-ink);
  background: var(--color-paper);
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  margin: 0 0 0.6em;
  color: var(--color-ink);
  letter-spacing: -0.01em;
}

/* Large but controlled — not an extreme-weight 70px display headline everywhere. */
h1 { font-size: clamp(2.1rem, 2.6vw + 1rem, 3.1rem); font-weight: 600; line-height: 1.12; }
h2 { font-size: clamp(1.6rem, 1.3vw + 1rem, 2.25rem); }
h3 { font-size: clamp(1.2rem, 0.6vw + 1rem, 1.45rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--color-clay-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { padding-left: 1.3em; }

button { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--color-clay-dark);
  outline-offset: 2px;
}

/* --color-clay-dark is ~2:1 against the navy — too faint as a focus ring on dark surfaces. */
.topbar :focus-visible, .hero :focus-visible, .destination-card:focus-visible, .cta-band :focus-visible,
.site-footer :focus-visible, .section--ink :focus-visible { outline-color: var(--color-clay-bright); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-ink);
  color: var(--color-white);
  padding: 0.6em 1em;
  z-index: 200;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-clay-dark);
  margin-bottom: 1em;
}
.eyebrow::before {
  content: '';
  width: 1.6em;
  height: 1px;
  background: var(--color-clay);
  display: inline-block;
}

.lede {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-ink-70);
  max-width: 42em;
}

section { position: relative; }
.section { padding: clamp(3.5rem, 7vw, 7rem) 0; }
.section--sand { background: var(--color-sand); }
.section--paper-dim { background: var(--color-paper-dim); }
.section--ink { background: var(--color-ink); color: var(--color-paper); }
.section--ink h2, .section--ink h3 { color: var(--color-white); }
.section--ink .lede { color: rgba(250, 246, 240, 0.82); }
.section--ink .eyebrow { color: var(--color-clay-bright); }
.section--ink .eyebrow::before { background: var(--color-clay-bright); }
.section--ink a:not(.btn) { color: var(--color-white); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.4); }

.section-head { max-width: 46em; margin-bottom: clamp(2rem, 3.5vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }

/* Buttons — restrained radius, calm hover (no lift/glow/pill). Primary is solid navy; secondary
   is an outline/text style with an animated arrow, not a second filled colour. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.85em 1.6em;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
  max-width: 100%;
}
@media (max-width: 420px) {
  /* nowrap is fine once there's room, but on a narrow phone a longer translated CTA label
     (e.g. "Compare groupage & dedicated transport") forces the button past the viewport edge
     instead of shrinking — let it wrap to a second line there instead of overflowing. */
  .btn { white-space: normal; text-align: center; }
}

.btn-primary {
  background: var(--color-ink);
  color: var(--color-white);
}
.btn-primary:hover { background: var(--color-ink-soft); text-decoration: none; }

.btn-secondary {
  background: transparent;
  border-color: var(--color-ink);
  color: var(--color-ink);
}
.btn-secondary:hover { background: var(--color-ink); color: var(--color-white); text-decoration: none; }

.btn-on-ink {
  background: transparent;
  border-color: rgba(250, 246, 240, 0.45);
  color: var(--color-white);
}
.btn-on-ink:hover {
  background: rgba(250, 246, 240, 0.1);
  border-color: rgba(250, 246, 240, 0.75);
  text-decoration: none;
}

.btn-block { width: 100%; }
.btn-sm { padding: 0.6em 1.1em; font-size: 0.86rem; }

/* Understated text/arrow link — the "secondary" style called for wherever a boxed button would
   feel too heavy (e.g. next to a primary CTA). Arrow nudges right on hover/focus. */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 600;
  font-size: 0.95rem;
  color: inherit;
}
.link-arrow:hover { text-decoration: none; }
.link-arrow::after {
  content: '→';
  transition: transform var(--transition);
  display: inline-block;
}
.link-arrow:hover::after { transform: translateX(3px); }

/* Forms */
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  margin-bottom: 0.4em;
  color: var(--color-ink);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75em 0.9em;
  border: 1px solid var(--color-field-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  font-family: inherit;
  font-size: 0.97rem;
  color: var(--color-ink);
  transition: border-color var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--color-clay-dark);
  outline: none;
  box-shadow: 0 0 0 3px rgba(130, 98, 52, 0.28);
}
.field textarea { min-height: 7em; resize: vertical; }
.field-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.field-error {
  color: var(--color-error);
  font-size: 0.85rem;
  margin-top: 0.35em;
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--color-error); }
.phone-field { display: flex; gap: 0.6em; }
.phone-field .phone-code { flex: 0 0 auto; width: 5.5em; }
.phone-field input { flex: 1; min-width: 0; }

.checkbox-field { display: flex; align-items: flex-start; gap: 0.6em; }
.checkbox-field input { width: auto; margin-top: 0.2em; }

.alert {
  padding: 1em 1.2em;
  border-radius: var(--radius-sm);
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}
.alert-success { background: #E5F0EA; color: var(--color-success); border: 1px solid #BFDBCC; }
.alert-error { background: #F5E4E0; color: var(--color-error); border: 1px solid #E4BEB5; }

/* Utility */
.text-muted { color: var(--color-ink-70); }
.mt-0 { margin-top: 0; }
