/* === Base CSS: Variables, Reset, Typography, Scrollbar, Utilities === */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

/* ── CSS Custom Properties ── */
:root {
  /* Colors */
  --color-primary: #0088a5;
  --color-primary-light: #e0f4f8;
  --color-primary-dark: #006880;
  --color-secondary: #D9AF62;
  --color-secondary-light: #f5e8c8;
  --color-secondary-dark: #b8903e;
  --color-accent: #D9AF62;

  /* Neutral Scale */
  --color-neutral-50:  #f9f9f9;
  --color-neutral-100: #f3f3f3;
  --color-neutral-200: #e8e8e8;
  --color-neutral-300: #d1d1d1;
  --color-neutral-400: #a8a8a8;
  --color-neutral-500: #808080;
  --color-neutral-600: #5c5c5c;
  --color-neutral-700: #3d3d3d;
  --color-neutral-800: #252525;
  --color-neutral-900: #111111;
  --color-neutral-950: #080808;

  /* Background & Text */
  --color-bg: #ffffff;
  --color-bg-alt: #f7f5f2;
  --color-bg-rgb: 255,255,255;
  --color-text: #1e1e1e;
  --color-text-muted: #5c5c5c;
  --color-text-on-dark: #ffffff;
  --color-text-on-light: #1e1e1e;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  --font-size-xs:   0.75rem;
  --font-size-sm:   0.875rem;
  --font-size-base: 1rem;
  --font-size-lg:   1.125rem;
  --font-size-xl:   1.25rem;
  --font-size-2xl:  1.5rem;
  --font-size-3xl:  1.875rem;
  --font-size-4xl:  2.25rem;
  --font-size-5xl:  3rem;
  --font-size-6xl:  3.75rem;
  --font-line-height: 1.65;
  --font-weight-normal:   400;
  --font-weight-medium:   500;
  --font-weight-semibold: 600;
  --font-weight-bold:     700;

  /* Spacing */
  --section-padding-y:    5rem;
  --section-padding-x:    1.5rem;
  --card-padding:         1.75rem;
  --container-max-width:  1200px;
  --header-height:        80px;
  --gap-xs:  0.25rem;
  --gap-sm:  0.5rem;
  --gap-md:  1rem;
  --gap-lg:  1.5rem;
  --gap-xl:  2rem;
  --gap-2xl: 3rem;
  --gap-3xl: 4rem;

  /* Border & Radius */
  --radius-sm:   0.25rem;
  --radius-md:   0.5rem;
  --radius-lg:   0.75rem;
  --radius-xl:   1rem;
  --radius-2xl:  1.5rem;
  --radius-full: 9999px;
  --border-width: 1px;
  --border-color: var(--color-neutral-200);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.09), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow:   500ms ease;
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

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

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

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

ul, ol {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--color-text);
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-neutral-100); }
::-webkit-scrollbar-thumb {
  background: var(--color-neutral-300);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }

/* ── Utility Classes ── */
.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-primary   { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-muted     { color: var(--color-text-muted); }
.text-white     { color: #fff; }

.bg-primary   { background-color: var(--color-primary); }
.bg-secondary { background-color: var(--color-secondary); }
.bg-alt       { background-color: var(--color-bg-alt); }
.bg-dark      { background-color: var(--color-neutral-900); }

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

.divider {
  width: 60px;
  height: 3px;
  background: var(--color-secondary);
  border-radius: var(--radius-full);
  margin: 0.75rem 0 1.5rem;
}

.divider-center {
  width: 60px;
  height: 3px;
  background: var(--color-secondary);
  border-radius: var(--radius-full);
  margin: 0.75rem auto 1.5rem;
}
