/* =============================================================================
   TRIPLANKA — MAIN CSS
   Global styles, CSS variables, typography, buttons, utilities
   Mobile-first responsive design
   ============================================================================= */

/* ---------------------------------------------------------------------------
   1. GOOGLE FONTS IMPORT
   --------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400&family=Open+Sans:wght@300;400;500;600;700&display=swap');

/* ---------------------------------------------------------------------------
   2. CSS CUSTOM PROPERTIES (Design Tokens)
   --------------------------------------------------------------------------- */
:root {
  /* Brand Colours — Deep Ocean Blue Palette */
  --blue-dark:     #000080;   /* Classic navy — footer, darkest sections */
  --blue-primary:  #0000CD;   /* Medium blue — main brand blue, section backgrounds */
  --blue-hero:     #4169E1;   /* Royal blue — hero sections */
  --blue-mid:      #3333D0;   /* Mid blue — hover states */
  --blue-light:    #6666E0;   /* Light blue — subtle accents */
  --blue-pale:     #EEF0FF;   /* Pale blue — light section backgrounds */

  --ocean:         #1A6B8A;   /* Ocean teal — secondary accent */
  --ocean-mid:     #0096C7;   /* Bright ocean */
  --ocean-light:   #90E0EF;   /* Shallow water */
  --ocean-pale:    #CAF0F8;   /* Pale sky */

  /* Accent — Warm Gold (CTAs & highlights) */
  --gold:          #C9A227;
  --gold-dark:     #A07C1A;
  --gold-light:    #E8C547;
  --gold-pale:     #FDF6DC;

  /* Neutrals */
  --cream:         #FAFAF5;   /* Primary background */
  --cream-dark:    #F0EDE4;   /* Section alternates */
  --cream-deeper:  #E8E4D9;   /* Borders, dividers */
  --white:         #FFFFFF;
  --text-dark:     #1A1A2E;   /* Primary text — near black */
  --text-body:     #3A3A52;   /* Body text */
  --text-mid:      #6A6A8A;   /* Secondary text */
  --text-light:    #9A9AB0;   /* Placeholder, muted */
  --text-inverse:  #FFFFFF;   /* Text on dark backgrounds */

  /* Semantic colours */
  --color-success: #0000CD;
  --color-error:   #C0392B;
  --color-warning: #C9A227;

  /* Typography */
  --font-heading:  'Merriweather', Georgia, 'Times New Roman', serif;
  --font-body:     'Open Sans', Arial, Helvetica, sans-serif;

  /* Font sizes — Mobile first (min 18px body for accessibility) */
  --text-xs:    0.75rem;    /* 12px */
  --text-sm:    0.875rem;   /* 14px */
  --text-base:  1.125rem;   /* 18px — base body */
  --text-md:    1.25rem;    /* 20px */
  --text-lg:    1.5rem;     /* 24px */
  --text-xl:    1.875rem;   /* 30px */
  --text-2xl:   2.25rem;    /* 36px */
  --text-3xl:   3rem;       /* 48px */
  --text-4xl:   3.75rem;    /* 60px */

  /* Font weights */
  --weight-light:   300;
  --weight-regular: 400;
  --weight-medium:  500;
  --weight-semi:    600;
  --weight-bold:    700;

  /* Line heights */
  --leading-tight:  1.25;
  --leading-snug:   1.4;
  --leading-normal: 1.6;
  --leading-relaxed:1.8;

  /* Spacing scale */
  --space-1:   0.25rem;   /* 4px */
  --space-2:   0.5rem;    /* 8px */
  --space-3:   0.75rem;   /* 12px */
  --space-4:   1rem;      /* 16px */
  --space-5:   1.25rem;   /* 20px */
  --space-6:   1.5rem;    /* 24px */
  --space-7:   1.75rem;   /* 28px */
  --space-8:   2rem;      /* 32px */
  --space-10:  2.5rem;    /* 40px */
  --space-12:  3rem;      /* 48px */
  --space-16:  4rem;      /* 64px */
  --space-20:  5rem;      /* 80px */
  --space-24:  6rem;      /* 96px */
  --space-32:  8rem;      /* 128px */

  /* Border radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs:  0 1px 3px rgba(0, 0, 139, 0.08);
  --shadow-sm:  0 2px 8px rgba(0, 0, 139, 0.10);
  --shadow-md:  0 4px 20px rgba(0, 0, 139, 0.13);
  --shadow-lg:  0 8px 40px rgba(0, 0, 139, 0.16);
  --shadow-xl:  0 16px 60px rgba(0, 0, 139, 0.20);
  --shadow-card:0 4px 24px rgba(0, 0, 0, 0.08);

  /* Transitions */
  --transition-fast:   0.15s ease;
  --transition-base:   0.25s ease;
  --transition-slow:   0.4s ease;
  --transition-spring: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --nav-height:       76px;
  --container-max:    1280px;
  --container-narrow: 860px;
  --container-wide:   1400px;

  /* Z-index layers */
  --z-base:     1;
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-overlay:  300;
  --z-modal:    400;
  --z-toast:    500;
}

/* ---------------------------------------------------------------------------
   Leaflet map containment — prevents map tiles/markers bleeding over navbar.
   isolation:isolate creates a new stacking context so Leaflet's internal
   z-indexes (up to 700) are scoped inside the map container.
   --------------------------------------------------------------------------- */
.segment-map,
.dest-intro__map,
.build-journey__map {
  isolation: isolate;
}

/* ---------------------------------------------------------------------------
   3. CSS RESET & BASE
   --------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;            /* 16px base — rem calculations work from here */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--text-body);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue-primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--blue-primary);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

ul, ol { list-style: none; }

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: var(--font-body);
  font-size: var(--text-base);
}

/* ---------------------------------------------------------------------------
   4. TYPOGRAPHY
   --------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }
h4 { font-size: var(--text-md); }
h5 { font-size: var(--text-base); }
h6 { font-size: var(--text-sm); }

@media (min-width: 768px) {
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl); }
  h4 { font-size: var(--text-lg); }
}

@media (min-width: 1024px) {
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
}

p {
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
}

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

strong { font-weight: var(--weight-semi); }

/* Decorative serif italic — used for taglines */
.text-serif-italic {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: var(--weight-light);
}

/* ---------------------------------------------------------------------------
   5. LAYOUT — Container & Section
   --------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 640px)  { .container { padding-inline: var(--space-6); } }
@media (min-width: 1024px) { .container { padding-inline: var(--space-10); } }
@media (min-width: 1280px) { .container { padding-inline: var(--space-12); } }

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: var(--container-wide);
}

/* Section spacing */
.section {
  padding-block: var(--space-16);
}

@media (min-width: 768px) {
  .section { padding-block: var(--space-20); }
}

@media (min-width: 1024px) {
  .section { padding-block: var(--space-24); }
}

.section--sm {
  padding-block: var(--space-10);
}

.section--lg {
  padding-block: var(--space-24);
}

@media (min-width: 1024px) {
  .section--lg { padding-block: var(--space-32); }
}

/* Alternate background sections */
.section--cream    { background-color: var(--cream); }
.section--cream-dk { background-color: var(--cream-dark); }
.section--tinted   { background-color: #F5F4F0; color: var(--text-dark); }
.section--blue     { background-color: var(--blue-dark); color: var(--text-inverse); }
.section--blue-dark { background-color: #000080; color: var(--text-inverse); }

/* ---------------------------------------------------------------------------
   6. SECTION HEADINGS
   --------------------------------------------------------------------------- */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-primary);
  margin-bottom: var(--space-3);
}

.section--tinted    .section-label { color: var(--blue-primary); }
.section--blue      .section-label { color: var(--gold-light); }
.section--blue-dark .section-label { color: var(--gold-light); }

.section-heading {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--text-dark);
  margin-bottom: var(--space-4);
  line-height: var(--leading-snug);
}

@media (min-width: 768px) {
  .section-heading { font-size: var(--text-2xl); }
}

@media (min-width: 1024px) {
  .section-heading { font-size: var(--text-3xl); }
}

.section--tinted    .section-heading { color: var(--text-dark); }
.section--blue      .section-heading { color: var(--white); }
.section--blue-dark .section-heading { color: var(--white); }

.section-subheading {
  font-size: var(--text-md);
  color: var(--text-mid);
  line-height: var(--leading-relaxed);
  max-width: 640px;
}

.section--tinted    .section-subheading { color: var(--text-mid); }
.section--blue      .section-subheading { color: rgba(255,255,255,0.75); }
.section--blue-dark .section-subheading { color: rgba(255,255,255,0.75); }

/* Centred heading block */
.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-header .section-subheading {
  margin-inline: auto;
}

/* Heading with decorative rule */
.section-heading--ruled::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-primary), var(--blue-hero));
  border-radius: var(--radius-full);
  margin-top: var(--space-4);
}

.section-header .section-heading--ruled::after {
  margin-inline: auto;
}

/* ---------------------------------------------------------------------------
   7. BUTTONS
   --------------------------------------------------------------------------- */

/* Base button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-semi);
  line-height: 1;
  letter-spacing: 0.02em;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  min-height: 52px;     /* Large tap target for seniors */
  text-decoration: none;
}

/* Primary — Gold CTA (main action) */
.btn--primary,
.btn--cta {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

.btn--primary:hover,
.btn--cta:hover {
  background-color: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.40);
}

/* Secondary — Blue */
.btn--green {
  background-color: var(--blue-primary);
  border-color: var(--blue-primary);
  color: var(--white);
}

.btn--green:hover {
  background-color: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 139, 0.40);
}

/* Outline — White (for use on dark/image backgrounds) */
.btn--outline-white {
  background-color: transparent;
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
}

.btn--outline-white:hover {
  background-color: rgba(255,255,255,0.15);
  border-color: var(--white);
  color: var(--white);
}

/* Outline — Navy */
.btn--outline-navy {
  background-color: transparent;
  border-color: var(--blue-dark);
  color: var(--blue-dark);
}

.btn--outline-navy:hover {
  background-color: var(--blue-dark);
  color: var(--white);
}

/* Outline — Blue */
.btn--outline-green {
  background-color: transparent;
  border-color: var(--blue-primary);
  color: var(--blue-primary);
}

.btn--outline-green:hover {
  background-color: var(--blue-primary);
  color: var(--white);
}

/* Ghost — subtle */
.btn--ghost {
  background-color: transparent;
  border-color: transparent;
  color: var(--text-body);
  padding-inline: var(--space-4);
}

.btn--ghost:hover {
  background-color: var(--cream-dark);
  color: var(--text-dark);
}

/* Size variants */
.btn--sm {
  padding: 0.625rem 1.25rem;
  font-size: var(--text-sm);
  min-height: 44px;
}

.btn--lg {
  padding: 1.1rem 2.5rem;
  font-size: var(--text-md);
  min-height: 60px;
}

/* Loading state */
.btn--loading {
  pointer-events: none;
  opacity: 0.75;
}

.btn--loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-left: var(--space-2);
}

/* ---------------------------------------------------------------------------
   8. CARDS
   --------------------------------------------------------------------------- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.card:hover .card__image {
  transform: scale(1.04);
}

.card__image-wrap {
  overflow: hidden;
  position: relative;
}

.card__body {
  padding: var(--space-6);
}

.card__label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-primary);
  margin-bottom: var(--space-2);
}

.card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--text-dark);
  margin-bottom: var(--space-3);
  line-height: var(--leading-snug);
}

.card__excerpt {
  font-size: var(--text-sm);
  color: var(--text-mid);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

.card__footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--cream-deeper);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
}

.badge--popular {
  background-color: var(--gold-pale);
  color: var(--gold-dark);
}

.badge--featured {
  background-color: var(--blue-pale);
  color: var(--blue-dark);
}

.badge--new {
  background-color: var(--blue-pale);
  color: var(--blue-dark);
}

/* ---------------------------------------------------------------------------
   9. FORMS
   --------------------------------------------------------------------------- */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-base);
  font-weight: var(--weight-semi);
  color: var(--text-dark);
  margin-bottom: var(--space-2);
}

.form-label .required {
  color: var(--color-error);
  margin-left: var(--space-1);
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.875rem 1.25rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  color: var(--text-dark);
  background-color: var(--white);
  border: 2px solid var(--cream-deeper);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  min-height: 52px;
  appearance: none;
  -webkit-appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 4px rgba(0, 0, 205, 0.12);
}

.form-control::placeholder {
  color: var(--text-light);
}

.form-control.is-invalid {
  border-color: var(--color-error);
}

.form-control.is-invalid:focus {
  box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.12);
}

.form-control.is-valid {
  border-color: var(--blue-primary);
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z' fill='%236A6A8A'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}

.form-error {
  display: none;
  font-size: var(--text-sm);
  color: var(--color-error);
  margin-top: var(--space-2);
  align-items: center;
  gap: var(--space-1);
}

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

.form-success {
  display: none;
  padding: var(--space-6);
  background: var(--blue-pale);
  border: 1px solid var(--blue-light);
  border-radius: var(--radius-md);
  color: var(--blue-dark);
  text-align: center;
  font-size: var(--text-base);
}

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

.form-submit-error {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-error);
  margin-bottom: var(--space-4);
}

.form-submit-error[hidden] { display: none; }

/* ---------------------------------------------------------------------------
   10. TAGS / PILLS
   --------------------------------------------------------------------------- */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--blue-primary);
  background-color: var(--blue-pale);
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
}

/* ---------------------------------------------------------------------------
   11. PAGE BANNER (inner pages hero)
   --------------------------------------------------------------------------- */
.page-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  background-color: var(--blue-dark);
  background-size: cover;
  background-position: center;
  padding-top: var(--nav-height);
  text-align: center;
  overflow: hidden;
}

@media (min-width: 768px) {
  .page-banner { min-height: 420px; }
}

.page-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 139, 0.75) 0%,
    rgba(65, 105, 225, 0.65) 100%
  );
}

.page-banner__content {
  position: relative;
  z-index: 2;
  padding: var(--space-10) var(--space-4);
}

.page-banner__label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: var(--space-3);
}

.page-banner__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--white);
  margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
  .page-banner__title { font-size: var(--text-3xl); }
}

.page-banner__subtitle {
  font-size: var(--text-md);
  color: rgba(255,255,255,0.82);
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: var(--weight-light);
}

/* ---------------------------------------------------------------------------
   12. BREADCRUMB
   --------------------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-light);
  padding-block: var(--space-4);
}

.breadcrumb__item a {
  color: var(--text-mid);
  text-decoration: none;
}

.breadcrumb__item a:hover { color: var(--blue-primary); }

.breadcrumb__separator {
  color: var(--text-light);
  font-size: var(--text-xs);
}

.breadcrumb__item--active { color: var(--text-body); font-weight: var(--weight-medium); }

/* ---------------------------------------------------------------------------
   13. LOADING SPINNER
   --------------------------------------------------------------------------- */
.spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-16);
}

.spinner__ring {
  width: 48px;
  height: 48px;
  border: 3px solid var(--cream-deeper);
  border-top-color: var(--blue-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------------------------------------------------------------------------
   14. UTILITY CLASSES
   --------------------------------------------------------------------------- */

/* Text colours */
.text-green   { color: var(--blue-primary); }
.text-blue    { color: var(--blue-primary); }
.text-gold    { color: var(--gold); }
.text-dark    { color: var(--text-dark); }
.text-mid     { color: var(--text-mid); }
.text-light   { color: var(--text-light); }
.text-white   { color: var(--white); }

/* Text alignment */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* Font family */
.font-heading { font-family: var(--font-heading); }
.font-body    { font-family: var(--font-body); }

/* Display */
.d-flex  { display: flex; }
.d-grid  { display: grid; }
.d-none  { display: none; }
.d-block { display: block; }

/* Flex utilities */
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap    { flex-wrap: wrap; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

/* Spacing */
.mb-0  { margin-bottom: 0; }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }

/* Width */
.w-full  { width: 100%; }
.w-auto  { width: auto; }

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* Rounded */
.rounded    { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

/* Visually hidden (accessible) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Fade-in animation for dynamic content */
.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

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

/* ---------------------------------------------------------------------------
   15. SCROLL TO TOP BUTTON
   --------------------------------------------------------------------------- */
.scroll-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 48px;
  height: 48px;
  background: var(--blue-primary);
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition-base);
  border: none;
  z-index: var(--z-sticky);
}

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

.scroll-top:hover {
  background: var(--blue-dark);
  transform: translateY(-3px);
}

/* ---------------------------------------------------------------------------
   16. DIVIDER
   --------------------------------------------------------------------------- */
.divider {
  width: 100%;
  height: 1px;
  background: var(--cream-deeper);
  border: none;
  margin: 0;
}

.divider--green {
  background: linear-gradient(90deg, transparent, var(--blue-light), transparent);
  height: 2px;
}
