/* ── EMIT Yachts – Base ──────────────────────────── */
/* Fonts, custom properties, a11y essentials */
/* Loaded on every page */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&display=swap');

@font-face {
  font-family: 'Eurostile';
  src: url('/assets/web/fonts/eurostile.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Protrakt';
  src: url('/assets/web/fonts/Protrakt.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Protrakt-Semi-Bold-Exp-One';
  src: url('/assets/web/fonts/protrakt-semi-bold-exp-one.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette */
  --color-obsidian: #16181d;
  --color-gunmetal: #353e43;
  --color-pearl: #f2f0ef;
  --color-accent-pearl: #f2f0ef;

  /* Typography */
  --font-brand: 'Protrakt-Semi-Bold-Exp-One', sans-serif;
  --font-body: 'Eurostile', sans-serif;

  /* Typography Scale */
  --h1-size: clamp(2.5rem, 8vw, 5rem);
  --h2-size: clamp(1.5rem, 5vw, 2.5rem);
  --h3-size: clamp(1.2rem, 4vw, 1.8rem);

  /* Mobile Typography Scale */
  --h1-size-mobile: clamp(1.5rem, 12vw, 2.5rem);
  --h2-size-mobile: clamp(1.2rem, 8vw, 1.8rem);
  --h3-size-mobile: clamp(1rem, 6vw, 1.4rem);

  /* Layout & Spacing */
  --section-padding: clamp(80px, 15vw, 140px);
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;

  /* Typography Scale (base sizes) */
  --text-xs: 0.75rem; /* 12px */
  --text-sm: 0.875rem; /* 14px */
  --text-base: 1rem; /* 16px */
  --text-lg: 1.25rem; /* 20px */
  --text-xl: 2rem; /* 32px */
  --text-2xl: 3rem; /* 48px */

  /* Components */
  --slider-base-max-width: 1400px;
  --care-container-min-height: 600px;

  /* Shadows */
  --shadow-luxury: 0 30px 60px rgba(0, 0, 0, 0.5);
  --shadow-accent: 0 10px 20px rgba(242, 240, 239, 0.2);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.3);

  /* Radii */
  --radius-standard: 8px;
  --radius-pill: 50px;
  --radius-large: 24px;

  /* Transitions */
  --transition-smooth: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: all 0.3s ease;

  /* ── Safe Area Insets (iOS notch/Dynamic Island) ─── */
  --safe-area-top: env(safe-area-inset-top, 0px);
  --visual-viewport-height: 100vh;
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --safe-area-left: env(safe-area-inset-left, 0px);
  --safe-area-right: env(safe-area-inset-right, 0px);
}

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

/* ── Skip-to-Content Link ───────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 10000;
  padding: 8px 16px;
  background: var(--color-pearl);
  color: var(--color-obsidian);
  font-size: 0.875rem;
  font-family: var(--font-body);
  text-decoration: none;
  border-radius: 0 0 var(--radius-standard) 0;
  transition: top 0.2s ease;
}
.skip-link:focus {
  position: fixed;
  top: 0;
  outline: 3px solid var(--color-accent-pearl);
  outline-offset: 2px;
}

/* ── Focus Indicators (global enhancement) ──────────── */
:focus-visible {
  outline: 2px solid var(--color-accent-pearl) !important;
  outline-offset: 2px !important;
}

html {
  overscroll-behavior: none;
}

/* ── iOS Keyboard Safe Height ─────────────────────────── */
.full-height-safe {
  min-height: 100vh;
  min-height: calc(var(--visual-viewport-height, 1vh) * 100);
}

section {
  position: relative;
  margin-bottom: var(--space-xl);
  clear: both;
  scroll-margin-top: 100px;
}

.global-bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/assets/web/images/website-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

body {
  background-color: var(--color-obsidian);
  margin: 0;
  padding: 0;
}
