@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap"
);

/* =========================================================
   CORALPATHS DESIGN TOKENS

   Shared variables used by:
   - header.css
   - hero.css
   - footer.css
   - other section stylesheets
   ========================================================= */

:root {
  /* Brand colors */
  --color-primary: #ff6b6b;
  --color-primary-hover: #f45555;
  --color-secondary: #ffba80;
  --color-deep-ocean: #0f4b5f;
  --color-warm-sand: #f6f4ef;
  --color-soft-coral: #ffd6cc;

  /* Light surfaces */
  --color-surface: #ffffff;
  --color-surface-secondary: #f2f2f2;
  --color-surface-elevated: #fff7f3;
  --color-border: #eeddd6;

  /* Dark surfaces */
  --color-surface-dark: #181818;
  --color-surface-dark-elevated: #242426;

  /* Text colors */
  --color-text: #111111;
  --color-text-muted: #6b7280;
  --color-text-light: #ffffff;
  --color-text-light-muted: rgba(255, 255, 255, 0.68);

  /* Layout */
  --content-width: 1440px;
  --page-padding: clamp(24px, 6vw, 96px);

  /* Shape */
  --button-radius: 999px;
  --card-radius: 32px;

  /* Shadows */
  --button-shadow:
    0 12px 30px rgba(255, 107, 107, 0.25);

  --card-shadow:
    0 24px 60px rgba(15, 75, 95, 0.16);

  /* Transitions */
  --transition-fast: 180ms ease;
  --transition-normal: 300ms ease;
}

/* =========================================================
   DOCUMENT RESET
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;

  overflow-x: hidden;

  background: var(--color-surface);
  color: var(--color-text);

  font-family: "Poppins", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;

  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================================================
   MAIN PAGE
   ========================================================= */

main {
  display: block;
  width: 100%;
}

/* Shared centred page container. */
.page-container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding-right: var(--page-padding);
  padding-left: var(--page-padding);
}

/* =========================================================
   TYPOGRAPHY RESET
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: inherit;
  font-family: inherit;
}

p {
  color: inherit;
}

strong,
b {
  font-weight: 600;
}

/* =========================================================
   LINKS
   ========================================================= */

a {
  color: inherit;
  font: inherit;
  text-decoration: none;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

/* =========================================================
   BUTTONS AND FORM ELEMENTS
   ========================================================= */

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button {
  padding: 0;

  background: none;
  border: 0;

  cursor: pointer;
}

/* =========================================================
   MEDIA
   ========================================================= */

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

:focus-visible {
  outline: 3px solid rgba(255, 107, 107, 0.35);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

/* Screen-reader-only content. */
.visually-hidden {
  position: absolute;

  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;

  overflow: hidden;
  clip: rect(0, 0, 0, 0);

  white-space: nowrap;

  border: 0;
}

/* =========================================================
   RESPONSIVE GLOBAL VALUES
   ========================================================= */

@media (max-width: 600px) {
  :root {
    --page-padding: 20px;
    --card-radius: 24px;
  }
}

@media (max-width: 380px) {
  :root {
    --page-padding: 16px;
  }
}

/* =========================================================
   REDUCED MOTION ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}