/* ============================================================
   Nordic Jet Detailing — base.css
   Design System: Variables, Reset, Typography, Utilities
   ============================================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@200;300;400;500;600;700&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Brand Colors */
  --color-navy-deep:    #0A1628;
  --color-navy-mid:     #162444;
  --color-navy-light:   #1E3060;
  --color-navy-border:  #243556;
  --color-gold:         #C9A84C;
  --color-gold-light:   #E0C170;
  --color-gold-dark:    #A88A38;
  --color-platinum:     #C0C0C0;
  --color-white:        #FFFFFF;
  --color-off-white:    #F5F0E8;
  --color-text-light:   rgba(255, 255, 255, 0.80);
  --color-text-muted:   rgba(255, 255, 255, 0.45);
  --color-overlay:      rgba(10, 22, 40, 0.72);

  /* Typography */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:    'Cormorant Garamond', Georgia, 'Times New Roman', serif;

  /* Font Weights */
  --fw-extralight: 200;
  --fw-light:      300;
  --fw-regular:    400;
  --fw-medium:     500;
  --fw-semibold:   600;
  --fw-bold:       700;

  /* Type Scale */
  --text-xs:   0.75rem;     /* 12px */
  --text-sm:   0.875rem;    /* 14px */
  --text-base: 1.125rem;    /* 18px */
  --text-lg:   1.25rem;     /* 20px */
  --text-xl:   1.5rem;      /* 24px */
  --text-2xl:  1.75rem;     /* 28px */
  --text-3xl:  2.25rem;     /* 36px */
  --text-4xl:  3rem;        /* 48px */
  --text-5xl:  4rem;        /* 64px */
  --text-6xl:  5.5rem;      /* 88px */
  --text-hero: clamp(2.6rem, 6.5vw, 5.5rem);
  --text-display: clamp(3rem, 7vw, 6.5rem);

  /* Spacing Scale */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Responsive Section Padding */
  --section-pad: clamp(4.5rem, 9vw, 9rem);
  --section-pad-sm: clamp(3rem, 6vw, 6rem);

  /* Border Radius */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-xl: 16px;

  /* Shadows */
  --shadow-card:       0 2px 32px rgba(0, 0, 0, 0.40);
  --shadow-card-hover: 0 12px 56px rgba(0, 0, 0, 0.60);
  --shadow-gold:       0 0 32px rgba(201, 168, 76, 0.25);
  --shadow-gold-sm:    0 0 16px rgba(201, 168, 76, 0.15);
  --shadow-nav:        0 4px 32px rgba(0, 0, 0, 0.5);

  /* Transitions */
  --ease-premium:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:    cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:   180ms;
  --dur-med:    400ms;
  --dur-slow:   700ms;
  --dur-xslow:  1100ms;

  /* Z-index Layers */
  --z-base:    1;
  --z-card:    10;
  --z-sticky:  100;
  --z-modal:   200;
  --z-toast:   300;

  /* Nav */
  --nav-height: 80px;

  /* Container */
  --container-max: 1300px;
  --container-pad: clamp(1.25rem, 4vw, 3rem);
}

/* ============================================================
   MODERN CSS RESET
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  scroll-padding-top: var(--nav-height);
}

body {
  background-color: var(--color-navy-deep);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--fw-regular);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100dvh;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: var(--color-navy-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--color-gold-dark);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}

/* ============================================================
   TEXT SELECTION
   ============================================================ */
::selection {
  background-color: var(--color-gold);
  color: var(--color-navy-deep);
}

/* ============================================================
   FOCUS STYLES (Accessibility)
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   SKIP LINK (Accessibility)
   ============================================================ */
.skip-link {
  position: absolute;
  top: -200%;
  left: 1rem;
  background: var(--color-gold);
  color: var(--color-navy-deep);
  padding: var(--space-3) var(--space-8);
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: var(--text-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: calc(var(--z-modal) + 10);
  transition: top var(--dur-fast);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
}

/* ============================================================
   SCREEN READER ONLY
   ============================================================ */
.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;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-extralight);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-white);
}

h1 {
  font-size: var(--text-hero);
  font-weight: var(--fw-extralight);
  line-height: 1.1;
}
h2 {
  font-size: var(--text-4xl);
  font-weight: var(--fw-light);
  letter-spacing: -0.02em;
}
h3 {
  font-size: var(--text-2xl);
  font-weight: var(--fw-light);
  letter-spacing: -0.01em;
}
h4 {
  font-size: var(--text-xl);
  font-weight: var(--fw-regular);
}
h5 {
  font-size: var(--text-lg);
  font-weight: var(--fw-medium);
}
h6 {
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
}

p {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-light);
  line-height: 1.80;
  max-width: 68ch;
}
p + p {
  margin-top: var(--space-4);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-premium);
}

ul, ol {
  list-style: none;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */

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

/* Section Spacing */
.section {
  padding-block: var(--section-pad);
}
.section--sm {
  padding-block: var(--section-pad-sm);
}

/* Section Background Variants */
.section--dark {
  background-color: var(--color-navy-mid);
}
.section--deeper {
  background-color: #070f1e;
}

/* Grid Utilities */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

/* Flex Utilities */
.flex {
  display: flex;
}
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Images */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Text Alignment */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* Text Colors */
.text-gold     { color: var(--color-gold); }
.text-platinum { color: var(--color-platinum); }
.text-muted    { color: var(--color-text-muted); }
.text-light    { color: var(--color-text-light); }
.text-white    { color: var(--color-white) !important; }

/* ============================================================
   LABEL / OVERLINE
   ============================================================ */
.label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
}

/* ============================================================
   GOLD LINE DIVIDER
   ============================================================ */
.gold-line {
  display: block;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-gold), transparent);
  margin-block: var(--space-6);
  transition: width var(--dur-slow) var(--ease-out-expo);
}
.gold-line.visible,
.gold-line--static {
  width: 4rem;
}
.gold-line--center {
  margin-inline: auto;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  list-style: none;
  padding: var(--space-6) 0 var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.breadcrumb li + li::before {
  content: '/';
  margin-inline-end: var(--space-2);
  color: var(--color-gold);
  opacity: 0.6;
}
.breadcrumb a {
  color: var(--color-platinum);
  transition: color var(--dur-fast);
}
.breadcrumb a:hover {
  color: var(--color-gold);
}
.breadcrumb [aria-current="page"] {
  color: var(--color-gold);
}

/* ============================================================
   SECTION HEADING BLOCK
   ============================================================ */
.section-heading {
  margin-bottom: var(--space-16);
}
.section-heading--center {
  text-align: center;
}
.section-heading--center .gold-line {
  margin-inline: auto;
}
.section-heading--center p {
  margin-inline: auto;
}
.section-heading h2 {
  margin-top: var(--space-4);
}
.section-heading p {
  margin-top: var(--space-6);
  font-size: var(--text-lg);
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 68px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  h2 {
    font-size: var(--text-3xl);
  }
  h3 {
    font-size: var(--text-xl);
  }

  .section-heading {
    margin-bottom: var(--space-12);
  }
}

@media (max-width: 480px) {
  h2 {
    font-size: 1.9rem;
  }
}
