/* ================================================================
   QuoteHub.ie Core Design System
   Tokens / Reset / Typography / Layout / Utilities
   ================================================================ */
:root {
  --color-primary: #1A56DB;
  --color-primary-hover: #1344B5;
  --color-primary-light: #EBF0FB;
  --color-primary-dark: #0F3A8A;
  --color-secondary: #2A864C;
  --color-secondary-hover: #237A41;
  --color-secondary-light: #E6F4EB;
  --color-accent: #F59E0B;
  --color-accent-hover: #D97706;
  --color-accent-light: #FEF3C7;
  --color-danger: #DC2626;
  --color-danger-light: #FEE2E2;
  --color-text: #1F2937;
  --color-text-secondary: #4B5563;
  --color-text-tertiary: #9CA3AF;
  --color-border: #E5E7EB;
  --color-bg-page: #F9FAFB;
  --color-bg-white: #FFFFFF;
  --color-bg-alt: #F3F4F6;
  --color-bg-section-alt: #F3F4F6;
  --color-bg-hero: #0F172A;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Source Serif 4', Georgia, serif;
  --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: 2rem; --text-4xl: 2.5rem; --text-5xl: 3.25rem;
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.25rem; --sp-6: 1.5rem; --sp-8: 2rem; --sp-10: 2.5rem;
  --sp-12: 3rem; --sp-16: 4rem; --sp-20: 5rem; --sp-24: 6rem;
  --max-w: 1200px; --max-w-narrow: 720px; --header-h: 64px;
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 14px; --radius-xl: 20px; --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.07);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.09);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.12);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 150ms; --dur-base: 250ms; --dur-slow: 400ms;
  --z-header: 100; --z-dropdown: 110; --z-overlay: 120; --z-modal: 130;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans); font-size: var(--text-base); font-weight: 400;
  line-height: 1.6; color: var(--color-text); background: var(--color-bg-page);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--color-primary-hover); }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-sans); font-weight: 700; line-height: 1.2; color: var(--color-text); letter-spacing: -0.01em; }
p + p { margin-top: var(--sp-4); }
h1 { font-size: var(--text-3xl); margin-bottom: var(--sp-4); }
h2 { font-size: var(--text-2xl); margin-bottom: var(--sp-3); }
h3 { font-size: var(--text-xl); margin-bottom: var(--sp-2); }
h4 { font-size: var(--text-lg); margin-bottom: var(--sp-2); }
@media (min-width: 768px) {
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
}

/* Layout */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--sp-5); }
@media (min-width: 768px) { .container { padding: 0 var(--sp-8); } }
.section { padding: var(--sp-16) 0; }
@media (min-width: 768px) { .section { padding: var(--sp-20) 0; } }
.section-header { text-align: center; margin-bottom: var(--sp-12); }
.section-header p { font-size: var(--text-lg); color: var(--color-text-secondary); max-width: 540px; margin: var(--sp-3) auto 0; }
.section-footer { text-align: center; margin-top: var(--sp-10); }
.grid { display: grid; gap: var(--sp-6); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.two-col { display: grid; grid-template-columns: 1fr; gap: var(--sp-8); }
@media (min-width: 1024px) { .two-col { grid-template-columns: 1fr 400px; gap: var(--sp-10); } }

/* Utilities */
.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; }
.text-lg { font-size: var(--text-lg); line-height: 1.7; }
.mt-6 { margin-top: var(--sp-6); }
.skip-link { position: absolute; top: -100px; left: var(--sp-4); background: var(--color-primary); color: #fff; padding: var(--sp-2) var(--sp-4); border-radius: var(--radius-sm); z-index: 9999; font-size: var(--text-sm); font-weight: 600; }
.skip-link:focus { top: var(--sp-4); color: #fff; }
.animate-on-scroll { opacity: 0; transform: translateY(24px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
::selection { background: var(--color-primary-light); color: var(--color-primary-dark); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .animate-on-scroll { opacity: 1; transform: none; }
}
@media print {
  .site-header, .site-footer, .floating-cta, .cookie-banner, .exit-intent-modal, .menu-overlay, .mobile-nav { display: none !important; }
  body { background: #fff; color: #000; }
}
