/* Critical CSS - Loaded first for better performance */

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

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100;
  font-display: swap;
  src: url("/public/frontend/assets/fonts/montserrat/Montserrat-Thin.woff2")
    format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
    U+FFFD;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url("/public/frontend/assets/fonts/montserrat/Montserrat-ExtraLight.woff2")
    format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
    U+FFFD;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/public/frontend/assets/fonts/montserrat/Montserrat-Light.woff2")
    format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
    U+FFFD;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/public/frontend/assets/fonts/montserrat/Montserrat-Regular.woff2")
    format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
    U+FFFD;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/public/frontend/assets/fonts/montserrat/Montserrat-Medium.woff2")
    format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
    U+FFFD;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/public/frontend/assets/fonts/montserrat/Montserrat-SemiBold.woff2")
    format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
    U+FFFD;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/public/frontend/assets/fonts/montserrat/Montserrat-SemiBold.woff2")
    format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
    U+FFFD;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/public/frontend/assets/fonts/montserrat/Montserrat-Bold.woff2")
    format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
    U+FFFD;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/public/frontend/assets/fonts/montserrat/Montserrat-ExtraBold.woff2")
    format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
    U+FFFD;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/public/frontend/assets/fonts/montserrat/Montserrat-Black.woff2")
    format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
    U+FFFD;
}

:root {
  /* Color Variables - Light Theme */
  --color-primary: #0f4c59;
  --color-primary-rgb: 45, 142, 174;
  --color-primary-dark: #011f26;
  --color-primary-light: #dbeafe;
  --color-secondary: #f26e50;
  --color-light: #f9fafb;
  --color-dark: #011f26;

  --color-background: #ffffff;
  --color-background-alt: #f3f4f6;
  --color-background-alt2: #827f7e;
  --color-card-bg: #ffffff;
  --color-input-bg: #ffffff;
  --color-border: #e5e7eb;

  --color-text: #374151;
  --color-text-light: #6d6d6d;
  --color-heading: #011f26;

  --color-text-white: #b4bcbf;

  --font-primary: "Montserrat", sans-serif;
  --font-heading: "Montserrat", sans-serif;

  --transition-fast: 0.2s;
  --transition-normal: 0.3s;
  --transition-slow: 0.5s;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
  --box-shadow-hover:
    0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --border-radius: 8px;

  /* Neutrals */
  --color-white: #ffffff;
  --color-off-white: #f8f9fc;
  --color-gray-50: #f1f3f8;
  --color-gray-100: #e2e6ef;
  --color-gray-200: #c5cde0;
  --color-gray-300: #a0abca;
  --color-gray-400: #7b89ad;
  --color-gray-500: #5a6785;
  --color-gray-600: #455068;
  --color-gray-700: #333d52;
  --color-gray-800: #222a3a;
  --color-gray-900: #141924;
  --color-black: #0a0f1a;

  /* Semantic Tokens — Light Mode */
  --bg-body: var(--color-off-white);
  --bg-surface: var(--color-white);
  --bg-surface-alt: var(--color-gray-50);
  --bg-hero-overlay: rgba(10, 15, 26, 0.65);
  --text-heading: var(--color-gray-900);
  --text-body: var(--color-gray-600);
  --text-muted: var(--color-gray-400);
  --text-inverse: var(--color-white);
  --border-color: var(--color-gray-100);
  --shadow-sm: 0 1px 3px rgba(10, 15, 26, 0.06);
  --shadow-md: 0 4px 12px rgba(10, 15, 26, 0.08);
  --shadow-lg: 0 12px 32px rgba(10, 15, 26, 0.1);
  --shadow-xl: 0 24px 48px rgba(10, 15, 26, 0.12);
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Dark Mode Variables */
  
  /* Primary palette */
  --clr-primary: #0f4c59;
  --clr-primary-light: color-mix(in oklch, var(--clr-primary), white 30%);
  --clr-primary-dark: color-mix(in oklch, var(--clr-primary), black 20%);
  --clr-primary-subtle: color-mix(in oklch, var(--clr-primary), white 85%);

  /* Secondary palette */
  --clr-secondary: #f26e50;
  --clr-secondary-light: color-mix(in oklch, var(--clr-secondary), white 30%);
  --clr-secondary-dark: color-mix(in oklch, var(--clr-secondary), black 20%);
  --clr-secondary-subtle: color-mix(in oklch, var(--clr-secondary), white 80%);

  /* Backgrounds & Surfaces */
  --clr-bg: #faf8f3;
  --clr-surface: #f2ede4;
  --clr-surface-elevated: #ffffff;

  /* Text */
  --clr-text: #1a1c14;
  --clr-text-muted: #5c5f52;
  --clr-text-inverse: #faf8f3;

  /* Borders & Dividers */
  --clr-border: #d4d0c8;
  --clr-border-light: color-mix(in oklch, var(--clr-border), white 40%);

  /* Hero overlay */
  --hero-overlay: rgba(26, 28, 20, 0.55);

  /* Functional */
  --clr-success: #3a7d2c;
  --clr-error: #b5332e;
  --clr-focus: var(--clr-secondary);

  /* Spacing scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-section: clamp(3rem, 8vw, 7rem);

  /* Typography scale (fluid) */
  --fs-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
  --fs-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.9rem);
  --fs-base: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  --fs-md: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  --fs-lg: clamp(1.25rem, 1.1rem + 0.75vw, 1.6rem);
  --fs-xl: clamp(1.5rem, 1.2rem + 1.5vw, 2.2rem);
  --fs-2xl: clamp(2rem, 1.5rem + 2.5vw, 3rem);
  --fs-3xl: clamp(2.5rem, 1.8rem + 3.5vw, 4rem);
  --fs-display: clamp(3rem, 2rem + 5vw, 5.5rem);

  /* Line heights */
  --lh-tight: 1.15;
  --lh-heading: 1.25;
  --lh-body: 1.6;

  /* Letter spacing */
  --ls-tight: -0.02em;
  --ls-normal: 0;
  --ls-wide: 0.05em;
  --ls-wider: 0.1em;

  /* Border radius */
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-theme: 500ms ease;

  /* Container widths */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1200px;
  --container-max: 1400px;

  /* Header height */
  --header-h: 72px;

  /* Allow height interpolation for animations */
  interpolate-size: allow-keywords;
}

body.dark-mode {
  --color-primary-light: #11271dff !important;
  --color-primary-dark: #011f26 !important;
  --color-background: #1c1d1d !important;
  --color-background-alt: #222222 !important;
  --color-background-alt2: #000000 !important;
  --color-card-bg: #141515ff !important;
  --color-input-bg: #141515ff !important;
  --color-border: #334155 !important;
  --color-text: #efefefff !important;
  --color-text-light: #cbcbcbff !important;
  --color-heading: #f8fafc !important;
  --box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2) !important;
  --box-shadow-hover:
    0 10px 15px rgba(0, 0, 0, 0.4), 0 4px 6px rgba(0, 0, 0, 0.3) !important;

  --bg-body: var(--color-gray-900);
  --bg-surface: var(--color-gray-800);
  --bg-surface-alt: var(--color-gray-700);
  --bg-hero-overlay: rgba(10, 15, 26, 0.78);
  --text-heading: var(--color-gray-50);
  --text-body: var(--color-gray-300);
  --text-muted: var(--color-gray-400);
  --text-inverse: var(--color-gray-900);
  --border-color: var(--color-gray-700);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.35);
}

/* ---- Dark Mode ---- */
html.dark {
  --clr-primary: #0f4c59;
  --clr-primary-light: color-mix(in oklch, #0f4c59, white 25%);
  --clr-primary-dark: color-mix(in oklch, #0f4c59, black 15%);
  --clr-primary-subtle: color-mix(in oklch, #0f4c59, black 75%);

  --clr-secondary: #f26e50;
  --clr-secondary-light: color-mix(in oklch, #f26e50, white 20%);
  --clr-secondary-dark: color-mix(in oklch, #f26e50, black 15%);
  --clr-secondary-subtle: color-mix(in oklch, #f26e50, black 70%);

  --clr-bg: #111310;
  --clr-surface: #1a1c14;
  --clr-surface-elevated: #222518;

  --clr-text: #e8e6df;
  --clr-text-muted: #9a9d90;
  --clr-text-inverse: #1a1c14;

  --clr-border: #2e3124;
  --clr-border-light: color-mix(in oklch, #2e3124, black 30%);

}

/* Base HTML Elements */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  transition: background-color var(--transition-normal) ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
  transition: color var(--transition-normal) ease;
}

ul {
  color: var(--color-text);
}

p {
  margin-bottom: 1rem;
  color: var(--color-text-light);
}

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

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

img {
  max-width: 100%;
  height: auto;
}

/* Accessibility */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: 8px 15px;
  z-index: 100;
  transition: top var(--transition-normal) ease;
}

.skip-to-content:focus {
  top: 0;
}

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

/* Critical Layout Elements */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: var(--color-background);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all var(--transition-normal) ease;
}

.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.logo {
  display: block;
  z-index: 1001;
}

.logo img {
  display: block;
  transition: all var(--transition-normal) ease;
}

body.dark-mode .logo img {
  filter: invert(1) grayscale(100%);
}

/* Critical Navigation Styles */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 1001;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  margin: 5px auto;
  transition:
    transform var(--transition-fast) ease,
    opacity var(--transition-fast) ease;
}

/* Mobile menu toggle animation */
.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
  margin: 0 5px;
}

.nav-link {
  display: block;
  padding: 10px 15px;
  color: var(--color-text);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-normal) ease;
}

/* Critical Hero Section */
.hero-section {
  position: relative;
  height: 80vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-background-alt) !important;
  color: var(--color-text) !important;
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  padding: 40px;
  color: white;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 20px;
  color: white;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text) !important;
}

/* Critical Utility Classes */
.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  transition: all var(--transition-normal) ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: white;
}

/* Critical Responsive Styles */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (max-width: 991px) {
  .nav-toggle {
    display: block;
  }

  .nav-container {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--color-background);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    padding: 80px 0 30px;
    overflow-y: auto;
    z-index: 1000;
    transition: right var(--transition-normal) ease;
  }

  .nav-container.active {
    display: block;
    right: 0;
  }

  .nav-list {
    flex-direction: column;
  }

  .hero-title {
    font-size: 2.2rem;
  }
}

/* Dark Mode Critical Styles */
/* body.dark-mode {
  background-color: var(--dark-color-background);
  color: var(--dark-color-text);
}

body.dark-mode .header {
  background-color: var(--dark-color-background-alt);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode .nav-toggle span {
  background-color: var(--dark-color-text);
}

body.dark-mode .nav-link {
  color: var(--dark-color-text);
} */

/* Utility classes for mobile navigation */
.d-none {
  display: none !important;
}

.d-flex {
  display: flex !important;
}

.align-items-center {
  align-items: center !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.footer-contact {
  p {
    color: var(--color-text-white);
  }
}

.section-padding {
  padding: 5rem 0;
}

/* ===== COOKIE CONSENT ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background-color: var(--clr-surface-elevated);
  border-top: 1px solid var(--clr-border);
  box-shadow: var(--shadow-xl);
  padding: var(--space-lg);
  transform: translateY(100%);
  transition: transform var(--transition-slow);
}

@starting-style {
  .cookie-banner.is-visible {
    transform: translateY(100%);
  }
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: var(--container-xl);
  margin-inline: auto;
}

@media (min-width: 768px) {
  .cookie-inner {
    flex-direction: row;
    align-items: center;
  }
}

.cookie-text {
  flex: 1;
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: var(--lh-body);
}

.cookie-text a {
  color: var(--clr-secondary);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
  flex-wrap: wrap;
}
