/* Variables */
:root {
  /* Neutral grays */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Brand - Light Blue */
  --color-primary-50: #eef7ff;
  --color-primary-100: #d8edff;
  --color-primary-200: #b9ddff;
  --color-primary-300: #8cc7ff;
  --color-primary-400: #5eb0ff;
  --color-primary-500: #3499ff;
  --color-primary-600: #1f7fe6;
  --color-primary-700: #1865b8;
  --color-primary-800: #134f8f;
  --color-primary-900: #0f3a66;

  /* Success - Soft Green */
  --success-50: #eefaf1;
  --success-100: #d6f5df;
  --success-200: #b6eacc;
  --success-300: #87dbae;
  --success-400: #57c98e;
  --success-500: #34b37a;
  --success-600: #2b9968;
  --success-700: #237a53;
  --success-800: #1b5d40;
  --success-900: #12402c;

  /* Warning - Pastel Yellow */
  --warning-50: #fffbeb;
  --warning-100: #fef3c7;
  --warning-200: #fde68a;
  --warning-300: #fcd34d;
  --warning-400: #fbbf24;
  --warning-500: #f59e0b;
  --warning-600: #d97706;
  --warning-700: #b45309;
  --warning-800: #92400e;
  --warning-900: #78350f;

  /* Danger - Soft Coral */
  --danger-50: #fff1f2;
  --danger-100: #ffe4e6;
  --danger-200: #fecdd3;
  --danger-300: #fda4af;
  --danger-400: #fb7185;
  --danger-500: #f43f5e;
  --danger-600: #e11d48;
  --danger-700: #be123c;
  --danger-800: #9f1239;
  --danger-900: #881337;

  /* Core tokens */
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-text: var(--gray-800);
  --color-heading: var(--gray-900);
  --color-muted: var(--gray-600);
  --color-border: var(--gray-300);
  --color-primary: var(--color-primary-600);
  --color-success: var(--success-600);
  --color-warning: var(--warning-500);
  --color-danger: var(--danger-600);
  --color-focus: var(--color-primary-500);

  /* Typography */
  --font-sans: "Inter", "Nunito", "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, -apple-system, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;

  --leading-tight: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;

  /* Spacing scale (0–96px) */
  --space-0: 0px;
  --space-1: 2px;
  --space-2: 4px;
  --space-3: 8px;
  --space-4: 12px;
  --space-5: 16px;
  --space-6: 20px;
  --space-7: 24px;
  --space-8: 32px;
  --space-9: 40px;
  --space-10: 48px;
  --space-11: 56px;
  --space-12: 64px;
  --space-13: 72px;
  --space-14: 80px;
  --space-15: 88px;
  --space-16: 96px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-sm: 0 2px 4px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 6px 12px rgba(16, 24, 40, 0.08), 0 2px 4px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 12px 24px rgba(16, 24, 40, 0.12), 0 6px 12px rgba(16, 24, 40, 0.08);

  /* Transitions */
  --dur-fast: 120ms;
  --dur-normal: 200ms;
  --dur-slow: 320ms;
  --ease-out: cubic-bezier(.2, .8, .2, 1);

  /* Layout */
  --container-max: 72rem;
  --container-padding: var(--space-8);
}

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

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

html, body {
  height: 100%;
}

body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
  margin: 0;
}

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

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

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

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

/* Base */
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main {
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-heading);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
  margin-block: 0 var(--space-6);
}

h1 { font-size: clamp(2rem, 4vw + 1rem, 3rem); }
h2 { font-size: clamp(1.5rem, 2.5vw + 0.75rem, 2.25rem); }
h3 { font-size: clamp(1.25rem, 1.8vw + 0.5rem, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-block: 0 var(--space-6);
  color: var(--color-text);
}

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1.5px;
  transition: color var(--dur-fast) var(--ease-out), text-decoration-color var(--dur-fast) var(--ease-out);
}

a:hover {
  color: var(--color-primary-700);
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  text-decoration: none;
}

small { font-size: var(--text-sm); color: var(--color-muted); }

hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin-block: var(--space-8);
}

::selection {
  background: var(--color-primary-200);
}

/* Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.flow > * + * {
  margin-top: var(--space-6);
}

/* Flex helpers */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-5); }
.gap-md { gap: var(--space-7); }
.gap-lg { gap: var(--space-9); }

/* Grid helpers */
.grid { display: grid; gap: var(--space-7); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-center { place-items: center; }

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

/* Components */
/* Buttons */
.btn {
  --_btn-bg: var(--color-primary);
  --_btn-bg-hover: var(--color-primary-700);
  --_btn-text: #ffffff;
  --_btn-border: transparent;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: calc(var(--space-5) - 1px) var(--space-8);
  border-radius: var(--radius-pill);
  border: 1px solid var(--_btn-border);
  background-color: var(--_btn-bg);
  color: var(--_btn-text);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.btn:hover {
  background-color: var(--_btn-bg-hover);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-xs);
}

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

/* Button variants */


.btn--secondary {
  --_btn-bg: var(--gray-800);
  --_btn-bg-hover: var(--gray-900);
  --_btn-text: #ffffff;
}

.btn--success {
  --_btn-bg: var(--success-600);
  --_btn-bg-hover: var(--success-700);
  --_btn-text: #ffffff!important;
  color:#fff !important;
}

.btn--warning {
  --_btn-bg: var(--warning-400);
  --_btn-bg-hover: var(--warning-500);
  --_btn-text: #111827;
}

.btn--danger {
  --_btn-bg: var(--danger-600);
  --_btn-bg-hover: var(--danger-700);
  --_btn-text: #ffffff;
}

.btn--outline {
  --_btn-bg: transparent;
  --_btn-bg-hover: var(--color-primary-50);
  --_btn-text: var(--color-primary);
  --_btn-border: var(--color-primary);
  box-shadow: none;
}

/* Inputs */
.input,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="url"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: var(--space-5) var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: #fff;
  color: var(--color-text);
  line-height: 1.5;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}

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

input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-primary);
  outline: 3px solid transparent;
  box-shadow: 0 0 0 3px var(--color-primary-100);
}

input:disabled,
textarea:disabled,
select:disabled {
  background-color: var(--gray-100);
  cursor: not-allowed;
}

/* Cards */
.card {
  background-color: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-8);
}

.card--elevated {
  box-shadow: var(--shadow-md);
}

.card > *:first-child { margin-top: 0; }
.card > * + * { margin-top: var(--space-6); }

/* Accessibility */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Motion reduction and user preferences */
@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Header & Footer styles */

/* Accessibility - skip link for nav/header */
.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: static; width: auto; height: auto; padding: var(--space-5) var(--space-7); background: var(--color-primary-100); border-radius: var(--radius-md); z-index: 1000; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-xs); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand-link { display: inline-flex; align-items: center; gap: var(--space-4); font-weight: 800; letter-spacing: -0.02em; font-size: 1.05rem; color: var(--color-heading); text-decoration: none; }

.nav-toggle { display: inline-flex; flex-direction: column; gap: 4px; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: var(--radius-md); border: 1px solid var(--color-border); background: #fff; box-shadow: var(--shadow-xs); cursor: pointer; }
.nav-toggle:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.nav-toggle-bar { width: 22px; height: 2px; background: var(--gray-800); border-radius: 2px; transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out); }

.site-nav { position: fixed; inset: 0 0 0 30%; background: #fff; transform: translateX(100%); transition: transform var(--dur-normal) var(--ease-out); padding: var(--space-10) var(--space-8); display: flex; flex-direction: column; gap: var(--space-8); }
.site-nav.open { transform: translateX(0); }
.nav-list { display: flex; flex-direction: column; gap: var(--space-6); }
.nav-list a { text-decoration: none; font-weight: 600; color: var(--gray-800); }
.nav-list a:hover { color: var(--color-primary); }
.nav-cta-wrap { margin-top: auto; }
.nav-cta { width: 100%; color: #fff !important;}

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav { position: static; inset: auto; transform: none; background: transparent; flex-direction: row; align-items: center; padding: 0; gap: var(--space-8); }
  .nav-list { flex-direction: row; gap: var(--space-7); }
  .nav-cta { width: auto; }
}

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--color-border); }
.footer-grid { display: grid; gap: var(--space-9); grid-template-columns: 1fr; padding-block: var(--space-10); }
.footer-heading { font-size: var(--text-lg); margin-bottom: var(--space-4); }
.footer-list { display: grid; gap: var(--space-3); }
.footer-brand p { color: var(--color-muted); }
.copyright { padding-bottom: var(--space-9); color: var(--color-muted); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.2fr .8fr .8fr; } }

/* Cookie banner */
.cookie-banner { position: sticky; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--color-border); box-shadow: 0 -4px 20px rgba(0,0,0,.06); padding-block: var(--space-5); display: none; }
.cookie-banner.show { display: block; }
.cookie-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); }
.cookie-actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }
@media (max-width: 720px) { .cookie-inner { flex-direction: column; align-items: flex-start; } }
