/* fonts impport local */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-VariableFont_wght.woff2")
    format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Italic-VariableFont_wght.woff2")
    format("woff2-variations");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* test */
body {
  background-color: red;
}

html,
body {
  overflow-x: clip;
  overflow-anchor: auto;
}

/* Custom Scrollbar Global */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--color-brand-blue-bright) 30%, transparent);
  border-radius: var(--radius-md);
}
::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--color-brand-blue-bright) 60%, transparent);
}

/* Firefox Support */
* {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--color-brand-blue-bright) 30%, transparent) transparent;
}

body {
  background-color: var(--color-brand-navy-deep);
  color: var(--color-text-dark);
}

:root {
  /* ── COLORS ─────────────────────────────────────────────── */
  /* Brand palette (override these per project) */
  --color-brand-primary: #ffc756;
  --color-brand-primary-hover: #ffd67f;
  --color-brand-primary-text: #10253a;
  --color-brand-secondary: #3f5f85;
  --color-brand-accent: #8ad3fd;
  --color-brand-surface: #f7f6f3;
  --color-brand-surface-alt: #e5e3df;
  --color-brand-surface-inverse: #0f2a44;
  --color-brand-text-primary: #2b2b2b;
  --color-brand-text-inverse: #ffffff;

  /* Semantic tokens (use these in components) */
  --color-primary: var(--color-brand-primary);
  --color-primary-hover: var(--color-brand-primary-hover);
  --color-primary-text: var(--color-brand-primary-text);
  --color-secondary: var(--color-brand-secondary);
  --color-accent: var(--color-brand-accent);

  --color-surface: var(--color-brand-surface);
  --color-surface-alt: var(--color-brand-surface-alt);
  --color-surface-inverse: var(--color-brand-surface-inverse);
  --color-bg-card: #ffffff;

  --color-text-primary: var(--color-brand-text-primary);
  --color-text-secondary: #6b6b6b;
  --color-text-inverse: var(--color-brand-text-inverse);

  --color-border: var(--color-brand-surface-alt);
  --color-border-light: #e8e6e0;

  --color-link-default: var(--color-brand-secondary);
  --color-link-hover: var(--color-brand-surface-inverse);

  --color-success: #46b450;
  --color-error: #b32d2e;
  --color-warning: #f0ad4e;

  /* ── LEGACY ALIASES (backward compat) ──────────────────── */
  --color-brand-navy-deep: var(--color-brand-surface-inverse);
  --color-brand-navy: #1e3a5f;
  --color-brand-navy-soft: var(--color-brand-secondary);
  --color-brand-blue-bright: var(--color-brand-accent);
  --color-brand-gold: var(--color-brand-primary);
  --color-brand-ivory: var(--color-brand-surface);
  --color-brand-stone: var(--color-brand-surface-alt);
  --color-brand-charcoal: var(--color-brand-text-primary);
  --color-text-dark: var(--color-text-primary);
  --color-text-light: var(--color-text-inverse);
  --color-bg-light: var(--color-surface);
  --color-bg-medium: var(--color-surface-alt);
  --color-bg-dark: var(--color-surface-inverse);
  --color-cta-default: var(--color-primary);
  --color-cta-hover: var(--color-secondary);
  --color-cta-text: var(--color-primary-text);
  --color-gold-accent: #d8c49a;
  --color-gold-hover: var(--color-primary-hover);
  --color-navy-dark: #1b3550;
  --color-divider-dark: rgba(0, 0, 0, 0.1);

  /* ── FONTS ──────────────────────────────────────────────── */
  --font-display: "Playfair Display", serif;
  --font-secondary: "Montserrat", sans-serif;
  --font-body: "Libre Franklin", sans-serif;
  --font-sans: var(--font-body);

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 900;

  --lh-display: 1.1;
  --lh-body: 1.7;

  /* ── BREAKPOINTS (reference / JS-use) ───────────────────── */
  --bp-mobile: 360px;
  --bp-tablet: 768px;
  --bp-desktop: 1140px;
  --vw-min: 360;
  --vw-max: 1440;

  /* ── FLUID TYPE SCALE ───────────────────────────────────── */
  --fs-display-large: clamp(41px, calc(41px + (81 - 41) * ((100vw - 360px) / (1440 - 360))), 81px);
  --fs-display-medium: clamp(37px, calc(37px + (67 - 37) * ((100vw - 360px) / (1440 - 360))), 67px);
  --fs-sub-heading: clamp(24px, calc(24px + (33 - 24) * ((100vw - 360px) / (1440 - 360))), 33px);
  --fs-h1: clamp(33px, calc(33px + (56 - 33) * ((100vw - 360px) / (1440 - 360))), 56px);
  --fs-h2: clamp(30px, calc(30px + (47 - 30) * ((100vw - 360px) / (1440 - 360))), 47px);
  --fs-h3: clamp(27px, calc(27px + (39 - 27) * ((100vw - 360px) / (1440 - 360))), 39px);
  --fs-h4: clamp(24px, calc(24px + (33 - 24) * ((100vw - 360px) / (1440 - 360))), 33px);
  --fs-h5: clamp(22px, calc(22px + (27 - 22) * ((100vw - 360px) / (1440 - 360))), 27px);
  --fs-h6: clamp(20px, calc(20px + (23 - 20) * ((100vw - 360px) / (1440 - 360))), 23px);
  --fs-body-large: clamp(18px, calc(18px + (19 - 18) * ((100vw - 360px) / (1440 - 360))), 19px);
  --fs-body: 18px;
  --fs-body-small: 16px;
  --fs-cta: 16px;
  --fs-nav: 16px;
  --fs-form-caption: 11px;

  /* ── SPACING SCALE (8-point) ────────────────────────────── */
  --space-3xs: 2px;
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 80px;

  /* Legacy spacing (backward compat) */
  --space-1: 10px;
  --space-2: 20px;
  --space-3: 30px;

  --section-padding-y: 80px;
  --section-padding-x: clamp(16px, 5vw, 40px);
  --container-max-width: 1400px;
  --container-padding: var(--section-padding-x);

  /* ── BORDER RADIUS ──────────────────────────────────────── */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-card: 16px;
  --radius-button: 16px;
  --radius-full: 9999px;

  /* ── ELEVATION / SHADOW ──────────────────────────────────── */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 40px rgba(0, 0, 0, 0.15);

  /* ── Z-INDEX SCALE ──────────────────────────────────────── */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-nav-overlay: 300;
  --z-modal-backdrop: 700;
  --z-modal: 800;
  --z-header: 1000;
  --z-overlay: 1100;

  /* ── MOTION ──────────────────────────────────────────────── */
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --duration-slower: 800ms;

  /* ── OPACITY ──────────────────────────────────────────────── */
  --opacity-0: 0;
  --opacity-hover: 0.8;
  --opacity-muted: 0.6;
  --opacity-disabled: 0.4;
  --opacity-100: 1;

  /* ── LETTER SPACING ───────────────────────────────────────── */
  --ls-tight: -0.02em;
  --ls-normal: 0;
  --ls-wide: 0.05em;
  --ls-wider: 0.1em;
}

@media (max-width: 768px) {
  :root {
    --section-padding-y: 60px;
    --fs-display-large: clamp(34px, 11vw, 48px);
    --fs-display-medium: clamp(30px, 9vw, 42px);
    --fs-sub-heading: clamp(20px, 6vw, 26px);
    --fs-h1: clamp(30px, 9vw, 40px);
    --fs-h2: clamp(26px, 8vw, 34px);
    --fs-h3: clamp(23px, 7vw, 30px);
    --fs-h4: clamp(21px, 6vw, 26px);
    --fs-h5: clamp(19px, 5.5vw, 23px);
    --fs-h6: clamp(18px, 5vw, 21px);
    --fs-body-large: 16px;
  }
}

@media (max-width: 360px) {
  :root {
    --section-padding-y: 48px;
  }
}

/* UTILITY CLASSES */
.display-large {
  font-family: var(--font-display);
  font-size: var(--fs-display-large);
  line-height: 1.1;
  font-weight: var(--fw-black);
  text-wrap: balance;
}

.display-medium {
  font-family: var(--font-display);
  font-size: var(--fs-display-medium);
  line-height: 1.1;
  font-weight: var(--fw-black);
  text-wrap: balance;
}

.section-show-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: var(--space-md);
  padding: var(--space-xs) var(--space-lg);
  border: 1px solid currentColor;
  border-radius: var(--radius-md);
  background: transparent;
  color: currentColor;
  font-family: var(--font-secondary);
  font-size: var(--fs-body-small);
  font-weight: var(--fw-bold);
  cursor: pointer;
  transition:
    transform var(--duration-normal) var(--ease-out-expo),
    background-color var(--duration-normal) var(--ease-out-expo),
    color var(--duration-normal) var(--ease-out-expo);
}

.section-show-more:hover,
.section-show-more:focus-visible {
  transform: translateY(-2px);
}

.sub-heading {
  font-family: var(--font-secondary);
  font-size: var(--fs-sub-heading);
  line-height: 1.1;
  font-weight: var(--fw-regular);
  text-wrap: balance;
}

.h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: 1.1;
  font-weight: var(--fw-bold);
  text-wrap: balance;
}

.h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: 1.1;
  font-weight: var(--fw-bold);
  text-wrap: balance;
}

.h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  line-height: 1.1;
  font-weight: var(--fw-bold);
  text-wrap: balance;
}

.h4 {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  line-height: 1.1;
  font-weight: var(--fw-medium);
  text-wrap: balance;
}

.h5 {
  font-family: var(--font-display);
  font-size: var(--fs-h5);
  line-height: 1.1;
  font-weight: var(--fw-medium);
  text-wrap: balance;
}

.h6 {
  font-family: var(--font-display);
  font-size: var(--fs-h6);
  line-height: 1.1;
  font-weight: var(--fw-medium);
  text-wrap: balance;
}

/* GLOBAL HEADER TAGS */
h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: 1.1;
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-2);
  text-wrap: balance;
}
h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: 1.1;
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-2);
  text-wrap: balance;
}
h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  line-height: 1.1;
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-2);
  text-wrap: balance;
}
h4 {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  line-height: 1.1;
  font-weight: var(--fw-medium);
  margin-bottom: var(--space-1);
  text-wrap: balance;
}
h5 {
  font-family: var(--font-display);
  font-size: var(--fs-h5);
  line-height: 1.1;
  font-weight: var(--fw-medium);
  margin-bottom: var(--space-1);
  text-wrap: balance;
}
h6 {
  font-family: var(--font-display);
  font-size: var(--fs-h6);
  line-height: 1.1;
  font-weight: var(--fw-medium);
  margin-bottom: var(--space-1);
  text-wrap: balance;
}

.body-large {
  font-family: var(--font-body);
  font-size: var(--fs-body-large);
  line-height: 1.7;
  font-weight: var(--fw-regular);
  text-wrap: pretty;
}

.body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  font-weight: var(--fw-regular);
  text-wrap: pretty;
}

.body-small {
  font-family: var(--font-body);
  font-size: var(--fs-body-small);
  line-height: 1.7;
  font-weight: var(--fw-regular);
  text-wrap: pretty;
}

.body-bold {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  font-weight: var(--fw-bold);
  text-wrap: pretty;
}

.body-link {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  font-weight: var(--fw-bold);
  color: var(--color-link-default);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-wrap: pretty;
}

p,
li,
blockquote {
  text-wrap: pretty;
}

.body-link:hover {
  color: var(--color-link-hover);
}


.nav-link {
  font-family: var(--font-body);
  font-size: var(--fs-nav);
  line-height: 1.1;
  font-weight: var(--fw-bold);
}

.form-caption {
  font-family: var(--font-body);
  font-size: var(--fs-form-caption);
  line-height: 1.1;
  font-weight: var(--fw-regular);
}

.card {
  --start: 0;
  --gradient: conic-gradient(from 90deg at 50% 50%, white, white);

  position: relative;
  display: flex;
  margin: var(--space-xs);
  padding: var(--space-xs) var(--space-xl);
  background-color: rgba(4, 4, 4, 0.45);
  backdrop-filter: blur(3px);
  border-radius: var(--radius-lg);
  transition: border-color var(--duration-normal) var(--ease-in-out);
}

.card::before {
  position: absolute;
  pointer-events: none;
  content: "";
  width: 100%;
  height: 100%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: var(--radius-lg);
  border: 3px solid transparent;
  background: var(--gradient);
  background-attachment: fixed;
  mask: linear-gradient(#0000, #0000),
    conic-gradient(
      from calc((var(--start) - (20 * 1.4)) * 1deg),
      rgba(255, 255, 255, 0.12) 0deg,
      white,
      transparent 100deg
    );
  mask-composite: intersect;
  mask-clip: padding-box, border-box;
  opacity: var(--opacity-0);
  transition: var(--duration-slow) var(--ease-out);
}

.glow {
  pointer-events: none;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 50%;
  top: 50%;
  z-index: calc(var(--z-base) * -1);
  transform: translate(-50%, -50%);
  filter: blur(14px);
}

.glow::before {
  position: absolute;
  pointer-events: none;
  content: "";
  width: 98%;
  height: 98%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: var(--radius-lg);
  border: 15px solid transparent;
  background: var(--gradient);
  background-attachment: fixed;
  mask: linear-gradient(#0000, #0000),
    conic-gradient(
      from calc((var(--start) - (20 * 1.1)) * 1deg),
      #ffffff 0deg,
      #ffffff,
      transparent 100deg
    );
  mask-composite: intersect;
  mask-clip: padding-box, border-box;
  opacity: var(--opacity-0);
  transition: var(--duration-slower) var(--ease-out);
  z-index: calc(var(--z-base) * -1);
}

.card:hover > .glow::before {
  opacity: var(--opacity-100);
}
.card:hover::before {
  opacity: var(--opacity-hover);
}





/* SHOW MORE BUTTON */
.show-more-btn {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-brand-gold);
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin-bottom: 20px;
}

.show-more-btn::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-bottom: 3px;
  transition: transform 0.3s ease;
}

.paragraph:not(.hidden) + .show-more-btn::after {
  transform: rotate(225deg);
  margin-bottom: -3px;
}

/* ── ACCESSIBILITY 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;
}

/* ── LAYOUT UTILITIES ──────────────────────────────────────── */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2xs { gap: var(--space-2xs); }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

.text-center { text-align: center; }
.w-full { width: 100%; }
.h-full { height: 100%; }

/* ── RESPONSIVE HIDE/SHOW ───────────────────────────────────── */
.hide-mobile { display: none; }
@media (min-width: 768px) {
  .hide-mobile { display: revert; }
  .hide-desktop { display: none; }
}
