/* ==================================================================
   Variables
   ================================================================== */
:root {
  /* Color Palette - light, cheerful, Danube-inspired */
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-surface-soft: #f9fbff;

  --color-text: #183047; /* deep slate blue instead of black */
  --color-text-soft: #4a6278;
  --color-text-muted: #7c8fa3;

  --color-primary: #1ec5c6; /* turquoise */
  --color-primary-soft: #e0f9f9;

  --color-accent-mint: #7ee6c8;
  --color-accent-peach: #ffb8a1;
  --color-accent-sky: #74c7ff;
  --color-accent-yellow: #ffe58a;

  --color-success: #39c88b;
  --color-warning: #ffb347;
  --color-danger: #ff6b6b;

  --color-gray-50: #f7f9fc;
  --color-gray-100: #edf1f7;
  --color-gray-200: #dde3f0;
  --color-gray-300: #c8d0e0;
  --color-gray-400: #a5b1c7;
  --color-gray-500: #8695b0;
  --color-gray-600: #6b7a95;
  --color-gray-700: #56627a;
  --color-gray-800: #3b465b;
  --color-gray-900: #263246;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Poppins", "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-md: 1rem;      /* 16px */
  --font-size-lg: 1.125rem;  /* 18px */
  --font-size-xl: 1.25rem;   /* 20px */
  --font-size-2xl: 1.5rem;   /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem;  /* 36px */
  --font-size-5xl: 2.75rem;  /* 44px */

  --line-height-tight: 1.15;
  --line-height-snug: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Spacing Scale (0–96px) */
  --space-0: 0;
  --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 */

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Shadows - soft, airy */
  --shadow-xs: 0 1px 3px rgba(15, 35, 52, 0.06);
  --shadow-sm: 0 4px 12px rgba(15, 35, 52, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 35, 52, 0.10);
  --shadow-lg: 0 16px 40px rgba(15, 35, 52, 0.12);

  /* Transitions */
  --transition-fast: 120ms ease-out;
  --transition-base: 180ms ease-out;
  --transition-slow: 280ms ease-out;
}

/* Larger display sizes for desktop */
@media (min-width: 768px) {
  :root {
    --font-size-3xl: 2.1rem;
    --font-size-4xl: 2.6rem;
    --font-size-5xl: 3.2rem;
  }
}

/* ==================================================================
   Reset / Normalize
   ================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

h1, h2, h3, h4, h5, h6,
figure, picture,
blockquote, p,
ol, ul, dl {
  margin: 0;
}

ol, ul {
  padding: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

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

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

button {
  border: none;
  background: none;
  padding: 0;
}

a {
  color: inherit;
}

html:focus-within {
  scroll-behavior: smooth;
}

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

/* ==================================================================
   Base Styles
   ================================================================== */
body {
  font-family: var(--font-sans);
  font-size: var(--font-size-md);
  line-height: var(--line-height-normal);
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

main {
  min-height: 60vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.01em;
}

h1 {
  font-size: var(--font-size-4xl);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
}

h2 {
  font-size: var(--font-size-3xl);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-3);
}

h3 {
  font-size: var(--font-size-2xl);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-2);
}

h4 {
  font-size: var(--font-size-xl);
  line-height: var(--line-height-normal);
  margin-bottom: var(--space-2);
}

p {
  margin-bottom: var(--space-4);
  color: var(--color-text-soft);
}

p.lead {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: var(--color-text);
}

strong {
  font-weight: 600;
}

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

a:hover {
  color: var(--color-accent-sky);
}

a:focus-visible {
  outline: 2px solid var(--color-accent-peach);
  outline-offset: 2px;
}

hr {
  border: none;
  border-top: 1px solid var(--color-gray-200);
  margin: var(--space-6) 0;
}

code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* ==================================================================
   Accessibility Helpers
   ================================================================== */
:focus-visible {
  outline: 3px solid var(--color-accent-sky);
  outline-offset: 3px;
}

.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;
}

.sr-only-focusable:active,
.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* ==================================================================
   Layout Utilities
   ================================================================== */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
  max-width: 1120px;
}

@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
}

.section {
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
}

.section--soft {
  background: linear-gradient(135deg,
    rgba(30, 197, 198, 0.06),
    rgba(255, 229, 138, 0.12),
    rgba(116, 199, 255, 0.08)
  );
}

.section__heading {
  text-align: center;
  margin-bottom: var(--space-6);
}

.section__eyebrow {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

/* Flex helpers */
.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.flex-col {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

.gap-2 {
  gap: var(--space-2);
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

/* Grid helpers */
.grid {
  display: grid;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: var(--space-6);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }

.py-6 {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

.px-4 {
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.w-full { width: 100%; }

/* ==================================================================
   Buttons
   ================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast),
    border-color var(--transition-base);
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-sky));
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn--secondary {
  background-color: var(--color-primary-soft);
  color: var(--color-text);
  border-color: rgba(30, 197, 198, 0.25);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-gray-200);
}

.btn--accent-peach {
  background: linear-gradient(135deg, var(--color-accent-peach), var(--color-accent-yellow));
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(116, 199, 255, 0.75);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* ==================================================================
   Form Elements
   ================================================================== */
label {
  display: inline-block;
  margin-bottom: var(--space-1);
  font-size: var(--font-size-sm);
  color: var(--color-text-soft);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gray-200);
  background-color: #ffffff;
  color: var(--color-text);
  font-size: var(--font-size-md);
  line-height: 1.4;
  transition: border-color var(--transition-base),
              box-shadow var(--transition-base),
              background-color var(--transition-base);
}

input::placeholder,
textarea::placeholder {
  color: var(--color-gray-400);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 0;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30, 197, 198, 0.25);
}

input[disabled],
select[disabled],
textarea[disabled] {
  background-color: var(--color-gray-50);
  color: var(--color-gray-400);
  cursor: not-allowed;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

@media (min-width: 640px) {
  .form-row--inline {
    flex-direction: row;
  }

  .form-row--inline > * {
    flex: 1;
  }
}

.form-help {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

.form-error {
  font-size: var(--font-size-xs);
  color: var(--color-danger);
  margin-top: var(--space-1);
}

/* ==================================================================
   Card Component
   ================================================================== */
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(201, 217, 238, 0.5);
  box-shadow: var(--shadow-xs);
  padding: var(--space-5);
  transition:
    box-shadow var(--transition-base),
    transform var(--transition-base),
    border-color var(--transition-base),
    background-color var(--transition-base);
}

.card--soft {
  background: radial-gradient(circle at top left,
      rgba(30, 197, 198, 0.06) 0,
      rgba(255, 184, 161, 0.09) 25%,
      #ffffff 55%);
}

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

.card__header {
  margin-bottom: var(--space-3);
}

.card__title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-1);
}

.card__eyebrow {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.card__body {
  font-size: var(--font-size-sm);
  color: var(--color-text-soft);
}

.card__footer {
  margin-top: var(--space-4);
}

/* ==================================================================
   Hero & Slider Shell (for homepage)
   ================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top,
      rgba(30, 197, 198, 0.12) 0,
      rgba(116, 199, 255, 0.08) 28%,
      rgba(255, 229, 138, 0.12) 52%,
      #ffffff 80%);
}

.hero__inner {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-8);
  align-items: center;
}

.hero__eyebrow {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.hero__title span {
  background: linear-gradient(120deg, var(--color-primary), var(--color-accent-peach));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-soft);
  margin-bottom: var(--space-5);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.hero__meta {
  margin-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.hero-tag {
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  background-color: rgba(255, 229, 138, 0.4);
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: var(--color-text);
}

.hero-tag--mint {
  background-color: rgba(126, 230, 200, 0.4);
}

.hero-slider {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background-color: var(--color-surface-soft);
  min-height: 260px;
}

@media (min-width: 768px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr);
  }

  .hero {
    border-bottom-left-radius: 48px;
    border-bottom-right-radius: 48px;
  }
}

/* ==================================================================
   Navigation & Header Shell
   ================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(215, 226, 242, 0.8);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--font-size-lg);
  color: var(--color-text);
}

.site-logo__mark {
  width: 32px;
  height: 32px;
  border-radius: 40% 60% 55% 45%;
  background: conic-gradient(from 120deg,
    var(--color-primary),
    var(--color-accent-sky),
    var(--color-accent-peach),
    var(--color-accent-yellow),
    var(--color-primary));
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-primary__list {
  display: none;
  list-style: none;
  gap: var(--space-4);
}

.nav-primary__link {
  font-size: var(--font-size-sm);
  font-weight: 500;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  color: var(--color-text-soft);
  transition:
    background-color var(--transition-base),
    color var(--transition-base);
}

.nav-primary__link:hover {
  background-color: var(--color-primary-soft);
  color: var(--color-text);
}

.nav-primary__link--active {
  background-color: rgba(30, 197, 198, 0.12);
  color: var(--color-text);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--color-gray-200);
  background-color: #ffffff;
}

@media (min-width: 960px) {
  .nav-primary__list {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }
}

/* ==================================================================
   Badges / Chips
   ================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  font-weight: 500;
  background-color: var(--color-primary-soft);
  color: var(--color-text);
}

.badge--mint {
  background-color: rgba(126, 230, 200, 0.4);
}

.badge--peach {
  background-color: rgba(255, 184, 161, 0.4);
}

.badge--yellow {
  background-color: rgba(255, 229, 138, 0.6);
}

.badge--outline {
  background-color: transparent;
  border: 1px dashed rgba(30, 197, 198, 0.5);
}

/* ==================================================================
   Footer Shell
   ================================================================== */
.site-footer {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  padding-bottom: var(--space-6);
  background: linear-gradient(180deg,
    rgba(30, 197, 198, 0.08),
    rgba(255, 229, 138, 0.16));
}

.site-footer__meta {
  margin-top: var(--space-4);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.site-footer__notice {
  font-size: var(--font-size-xs);
  color: var(--color-text-soft);
  line-height: var(--line-height-relaxed);
}

/* ==================================================================
   Misc Utility
   ================================================================== */
.tagline {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.pill-highlight {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-pill);
  background-color: rgba(255, 184, 161, 0.22);
}
