:root {
    /* ==========================================================================
       NEW MODERN DESIGN SYSTEM TOKENS
       ========================================================================== */

    /* Brand Colors */
    --primary-main: #0B132B;
    --primary-accent: #1D4ED8;
    --secondary-accent: #6e9fba;
    --secondary-hover: #B38E46;

    /* Surface & Background Hierarchy */
    --background-main: #FFFFFF;
    --background-alt: #F8FAFC;
    --background-subtle: #F1F5F9;
    --background-dark: #0B132B;

    /* Card Surfaces & Elevation */
    --surface-card: #FFFFFF;
    --surface-card-alt: #FAFAFA;

    /* Typography & Contrast */
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --text-on-dark: #F8FAFC;

    /* Borders & Dividers */
    --border-subtle: #F1F5F9;
    --border-color: #E2E8F0;
    --border-active: #C5A059;

    /* Modern Depth & Shadows */
    --shadow-sm: 0 2px 4px rgba(11, 19, 43, 0.04);
    --shadow-md: 0 10px 25px -5px rgba(11, 19, 43, 0.06), 0 4px 10px -2px rgba(11, 19, 43, 0.03);
    --shadow-lg: 0 20px 40px -12px rgba(11, 19, 43, 0.12);
    --shadow-glow: 0 0 20px rgba(197, 160, 89, 0.2);

    /* Transitions & Motion */
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.2s var(--ease-smooth);
    --transition-normal: 0.4s var(--ease-smooth);

    /* Typography Fonts */
    --font-display-ar: 'Amiri', serif;
    --font-display-en: 'Cormorant Garamond', serif;
    --font-body-ar: 'Tajawal', sans-serif;
    --font-body-en: 'Inter', sans-serif;

    /* ==========================================================================
       LEGACY MAPPING
       ========================================================================== */
    --burgundy-950: var(--primary-main);
    --burgundy-800: var(--primary-main);
    --burgundy-700: var(--primary-accent);
    --wood-950: var(--primary-main);
    --wood-800: var(--primary-main);
    --wood-600: var(--text-secondary);
    --beige-100: var(--background-subtle);
    --beige-200: var(--background-alt);
    --beige-300: var(--background-alt);
    --gold-600: var(--secondary-accent);
    --gold-400: var(--secondary-accent);
    --ink: var(--text-primary);
    --muted: var(--text-secondary);
    --white: #ffffff;
    --border-light: var(--border-color);
    --shadow: var(--shadow-md);
    --ease: var(--ease-smooth);
}

/* ==========================================================================
   GLOBAL RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html.lang-en {
  direction: ltr;
}

body {
  background: var(--beige-100);
  color: var(--ink);
  font-family: var(--font-body-ar);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  max-width: 100vw;
}

html.lang-en body {
  font-family: var(--font-body-en);
}

[data-ar], [data-en] {
  transition: opacity 0.25s var(--ease);
}

h1, h2, h3, .display {
  font-family: var(--font-display-ar);
  font-weight: 700;
}

html.lang-en h1,
html.lang-en h2,
html.lang-en h3,
html.lang-en .display {
  font-family: var(--font-display-en);
  font-weight: 600;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

section {
  position: relative;
  padding: clamp(64px, 10vw, 140px) clamp(20px, 6vw, 80px);
  transition: background-color var(--transition-normal);
}

.container {
  max-width: 1240px;
  margin-inline: auto;
  width: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--burgundy-700);
  font-weight: 700;
  margin-bottom: 14px;
}

html.lang-en .eyebrow {
  font-family: var(--font-body-en);
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--gold-600);
  display: inline-block;
  flex-shrink: 0;
}

h2.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  color: var(--wood-950);
  margin-bottom: 18px;
}

.section-sub {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.02rem;
  margin-bottom: 48px;
}

::selection {
  background: var(--gold-400);
  color: var(--wood-950);
}

:focus-visible {
  outline: 2px solid var(--gold-600);
  outline-offset: 3px;
  border-radius: 4px;
}

.sprite-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ==========================================================================
   UTILITY CLASSES & TRANSITIONS
   ========================================================================== */
.card-style {
  background-color: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal),
              box-shadow var(--transition-normal),
              border-color var(--transition-normal);
}

.card-style:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(197, 160, 89, 0.4);
}

.section-transition-top {
  position: relative;
}

.section-transition-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(180deg, var(--background-main) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Cursor Customization */
#cursor-dot, #cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}

#cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--gold-400);
}

#cursor-ring {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

#cursor-ring.hovering {
  width: 54px;
  height: 54px;
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--gold-400);
}

@media (pointer: coarse) {
  #cursor-dot, #cursor-ring { display: none; }
}

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 3px;
  z-index: 1001;
  background: linear-gradient(90deg, var(--gold-600), var(--burgundy-700));
  width: 0%;
  transform-origin: left;
  transition: width 0.08s linear;
}

html.lang-en #scroll-progress {
  transform-origin: right;
}

/* ==========================================================================
   FLOATING CAPSULE HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(92%, 1120px);
  z-index: 1000;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), top 0.3s ease;
}

.site-header.header-hidden {
  transform: translate(-50%, -130%);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.03);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.site-header.scrolled .header-container {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 32px -8px rgba(15, 23, 42, 0.15);
  border-color: rgba(169, 129, 63, 0.25);
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  height: clamp(32px, 4.4vw, 46px);
  width: auto;
  object-fit: contain;
  display: block;
  transition: height 0.3s ease, transform 0.3s ease;
  image-rendering: -webkit-optimize-contrast;
}

/* =========================================================
   MAIN NAVIGATION — DESKTOP
   ========================================================= */

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

nav.main-nav a {
  position: relative;

  font-size: 0.92rem;
  font-weight: 500;

  color: var(--ink, #1e293b);
  text-decoration: none;
  white-space: nowrap;

  padding: 4px 0;

  transition: color 0.3s ease;
}


/* Underline */
nav.main-nav a::after {
  content: "";

  position: absolute;
  bottom: -2px;
  inset-inline: 0;

  height: 2px;

  background: var(--gold-600, #c5a880);

  transform: scaleX(0);
  transform-origin: right;

  transition: transform 0.3s ease;
}


/* English / LTR */
html[lang="en"] nav.main-nav a::after,
[dir="ltr"] nav.main-nav a::after {
  transform-origin: left;
}


/* Desktop Hover */
nav.main-nav a:hover {
  color: var(--gold-600, #c5a880);
}

nav.main-nav a:hover::after {
  transform: scaleX(1);
}


.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.social-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border: 1px solid var(--wood-600, #78350f);
  border-radius: 999px;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--wood-950, #270e04);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.lang-toggle:hover {
  background: var(--wood-950, #270e04);
  color: #ffffff;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink, #1e293b);
  border: 1px solid rgba(71, 85, 105, 0.2);
  background: transparent;
  text-decoration: none;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.icon-btn svg {
  width: 16px;
  height: 16px;
}

.icon-btn.whatsapp:hover {
  background: #25d366;
  border-color: #25d366;
  color: #ffffff;
  transform: translateY(-2px);
}

.icon-btn.mail:hover {
  background: var(--burgundy-700, #800020);
  border-color: var(--burgundy-700, #800020);
  color: #ffffff;
  transform: translateY(-2px);
}

/* =========================================================
   BURGER BUTTON
   ========================================================= */

.burger {
  display: none;

  width: 40px;
  height: 40px;

  border: 1px solid rgba(71, 85, 105, 0.2);
  border-radius: 50%;

  background: transparent;

  cursor: pointer;

  flex-direction: column;
  justify-content: center;
  align-items: center;

  gap: 5px;
  padding: 0;

  position: relative;
  z-index: 1003;

  flex-shrink: 0;

  transition:
    background 0.3s ease,
    border-color 0.3s ease;
}


/* =========================================================
   BURGER HOVER
   ========================================================= */

.burger:hover {
  background: rgba(11, 19, 43, 0.06);
  border-color: rgba(71, 85, 105, 0.4);
}


/* =========================================================
   BURGER LINES
   ========================================================= */

.burger span {
  position: relative;
  z-index: 1004;

  display: block;

  width: 18px;
  height: 2px;

  background: var(--ink, #1e293b);

  border-radius: 2px;

  transform-origin: center;

  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.25s ease,
    background 0.3s ease;
}


/* =========================================================
   BURGER → X
   ========================================================= */

.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

  .header-actions {
    position: relative;
    z-index: 1001;
  }

  .burger {
    display: flex;
    z-index: 1003;
  }

  nav.main-nav {
    z-index: 999;
  }

}


/* =========================================================
   X COLOR
   ========================================================= */

.burger.open span {
  background: #ffffff;
}



/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      175deg,
      rgba(10, 20, 40, 0.88) 0%,
      rgba(15, 28, 54, 0.85) 50%,
      rgba(8, 15, 30, 0.92) 100%
    ),
    url('image/law-office.jpg') no-repeat center center / cover;
  padding-top: 120px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 15%, rgba(212, 175, 55, 0.16), transparent 45%),
    radial-gradient(circle at 88% 82%, rgba(20, 50, 90, 0.32), transparent 42%);
  pointer-events: none;
}

.hero-columns {
  display: none !important;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-copy .eyebrow {
  color: var(--gold-400);
}

.hero-copy .eyebrow::before {
  background: #fff;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 5.2vw, 4.1rem);
  line-height: 1.18;
  margin-bottom: 22px;
}

.hero h1 em {
  color: var(--gold-400);
  font-style: normal;
}

.hero p.lede {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  max-width: 520px;
  margin-bottom: 34px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

/* Button Components */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.btn > * {
  position: relative;
  z-index: 1;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: stroke 0.35s var(--ease), fill 0.35s var(--ease);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: #0a1428;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px -10px rgba(212, 175, 55, 0.55);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  background: transparent;
}

.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.btn-outline:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.9);
  color: #fff;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
}

.btn-outline:hover::before {
  opacity: 1;
}

.hero-stats {
  display: flex;
  gap: clamp(20px, 4vw, 48px);
  flex-wrap: wrap;
}

.stat b {
  display: block;
  font-family: var(--font-display-ar);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: #fff;
}

html.lang-en .stat b {
  font-family: var(--font-display-en);
}

.stat span {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.hero-medallion-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-medallion-wrap svg {
  width: min(340px, 78vw);
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.4));
}

.medallion-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.7);
  stroke-width: 1.6;
  stroke-dasharray: 720;
  stroke-dashoffset: 720;
  animation: draw 2.2s var(--ease) 0.3s forwards;
}

.medallion-fill {
  fill: url(#medallionGrad);
  opacity: 0;
  animation: fadein 1.3s var(--ease) 1.5s forwards;
}

.medallion-glint {
  transform-origin: center;
  animation: glint 2.8s ease-in-out 2.4s infinite;
}

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
@keyframes glint {
  0%, 100% { opacity: 0.5; filter: drop-shadow(0 0 0 rgba(212, 175, 55, 0)); }
  50% { opacity: 1; filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.9)); }
}

.hero-medallion-wrap.float {
  animation: floaty 6.5s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.scroll-cue {
  position: absolute;
  bottom: 32px;
  inset-inline: 0;
  margin: auto;
  width: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
}

.scroll-cue .line {
  width: 1px;
  height: 34px;
  background: rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
}

.scroll-cue .line::after {
  content: '';
  position: absolute;
  top: -100%;
  inset-inline: 0;
  height: 100%;
  background: var(--gold-400);
  animation: scrollline 2.2s ease-in-out infinite;
}

@keyframes scrollline {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

/* Loader Animation Elements */
.loader-line {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.loader-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--gold-600, #D4AF37), transparent);
  animation: loadingProgress 1.5s infinite ease-in-out;
}

@keyframes pulseLogo {
  0%, 100% { transform: scale(1); opacity: 0.88; }
  50% { transform: scale(1.05); opacity: 1; filter: drop-shadow(0 6px 20px rgba(197, 160, 89, 0.45)); }
}

@keyframes loadingProgress {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ==========================================================================
   ABOUT SECTION & SLIDER
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.about-grid p {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.about-illustration {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.slider-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border-light, rgba(255, 255, 255, 0.15));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  background-color: var(--wood-950, #0A192F);
  direction: ltr;
}

.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.slide {
  flex: 0 0 100%;
  min-width: 100%;
  width: 100%;
  height: 100%;
  position: relative;
  display: flex !important;
  justify-content: center;
  align-items: center;
  opacity: 1 !important;
  visibility: visible !important;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(71, 85, 105, 0.2);
  color: var(--wood-950, #0A192F);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s ease, transform 0.3s ease;
}

.slider-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
}

.slider-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.prev-btn { left: 16px !important; right: auto !important; }
.next-btn { right: 16px !important; left: auto !important; }

[dir="rtl"] .slider-btn svg {
  transform: none !important;
}

.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--gold-600, #D4AF37);
  width: 24px;
  border-radius: 12px;
}

/* ==========================================================================
   PRINCIPLES SECTION
   ========================================================================== */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.principle-card {
  position: relative;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.6) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: 20px;
  padding: 36px 28px;
  box-shadow: 0 10px 30px -10px rgba(11, 19, 43, 0.05), inset 0 1px 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  will-change: transform, box-shadow;
  z-index: 1;
}

.principle-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(197, 160, 89, 0.15), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: -1;
}

.principle-card:hover {
  transform: translateY(-8px) scale(1.015);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 100%);
  border-color: rgba(197, 160, 89, 0.5);
  box-shadow: 0 24px 48px -12px rgba(11, 19, 43, 0.12), 0 8px 24px -4px rgba(197, 160, 89, 0.2), inset 0 1px 1px 0 #ffffff;
}

.principle-card:hover::before {
  opacity: 1;
}

.principle-card .icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary-main, #0B132B), #1C2D5A);
  margin-bottom: 24px;
  box-shadow: 0 8px 18px rgba(11, 19, 43, 0.2);
  border: 1px solid rgba(197, 160, 89, 0.3);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, color 0.4s ease;
}

.principle-card:hover .icon-wrap {
  transform: scale(1.1) rotate(-3deg);
  box-shadow: 0 12px 24px rgba(197, 160, 89, 0.35);
  border-color: var(--secondary-accent, #C5A059);
  color: var(--secondary-accent, #C5A059);
}

.principle-card .icon-wrap svg {
  width: 26px;
  height: 26px;
  color: var(--secondary-accent, #C5A059);
}

.principle-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary, #0F172A);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.principle-card p {
  color: var(--text-secondary, #475569);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ==========================================================================
   TEAM BENTO GRID
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  grid-auto-flow: dense;
  gap: 24px;
}

.team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.55) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  padding: 32px 22px 28px;
  width: 100%;
  height: 100%;
  justify-content: center;
  box-shadow: 0 10px 30px -10px rgba(11, 19, 43, 0.06), inset 0 1px 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, box-shadow;
  cursor: pointer;
  overflow: hidden;
  z-index: 1;
}

.team-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(197, 160, 89, 0.15), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: -1;
}

.team-card:hover,
.team-card:focus-visible {
  transform: translateY(-6px) scale(1.01);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.75) 100%);
  border-color: rgba(197, 160, 89, 0.5);
  box-shadow: 0 22px 45px -12px rgba(11, 19, 43, 0.12), 0 6px 20px -2px rgba(197, 160, 89, 0.18), inset 0 1px 1px 0 #ffffff;
}

.team-card:hover::before {
  opacity: 1;
}

.team-card.card-lg {
  grid-column: span 2;
  grid-row: span 2;
  padding: 44px 32px 36px;
}

.avatar-ring {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  padding: 3px;
  margin-bottom: 18px;
  background: conic-gradient(from 180deg, var(--secondary-accent, #C5A059), var(--primary-accent, #1D4ED8), var(--primary-main, #0B132B), var(--secondary-accent, #C5A059));
  box-shadow: 0 8px 20px rgba(11, 19, 43, 0.12);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
}

.team-card.card-lg .avatar-ring {
  width: 136px;
  height: 136px;
  margin-bottom: 22px;
}

.team-card:hover .avatar-ring {
  transform: scale(1.08) rotate(12deg);
  box-shadow: 0 12px 28px rgba(197, 160, 89, 0.35);
}

.avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary-main, #0B132B), #1E293B);
  color: var(--secondary-accent, #5998c5);
  font-family: var(--font-display-ar, serif);
  font-size: 2.2rem;
  border: 3px solid #ffffff;
  overflow: hidden;
}

.team-card.card-lg .avatar-fallback { font-size: 3.2rem; }

.avatar-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
}

.team-card .role {
  display: inline-block;
  color: var(--secondary-accent, #C5A059);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
  background: rgba(197, 160, 89, 0.1);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(197, 160, 89, 0.2);
}

.team-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary, #0F172A);
  margin-bottom: 4px;
}

.team-card.card-lg h3 { font-size: 1.5rem; }

.team-card .specialty {
  color: var(--text-secondary, #475569);
  font-size: 0.88rem;
  margin-bottom: 12px;
}

.team-card .expand-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--primary-accent, #1D4ED8);
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card:hover .expand-hint,
.team-card:focus-visible .expand-hint {
  opacity: 1;
  transform: translateY(0);
}

.team-card .expand-hint svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.team-card:hover .expand-hint svg {
  transform: translateX(-3px);
}

/* ==========================================================================
   BIO MODAL
   ========================================================================== */
#bio-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

#bio-modal.open { display: flex; }

#bio-modal .backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 19, 43, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  animation: modalFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

#bio-modal .modal-card {
  position: relative;
  z-index: 2;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.82) 100%);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  max-width: 580px;
  width: 100%;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(197, 160, 89, 0.4);
  overflow: hidden;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 35px 70px -15px rgba(11, 19, 43, 0.35), 0 0 30px rgba(197, 160, 89, 0.15);
  animation: modalScaleUp 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 48px 36px 40px;
  text-align: center;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalScaleUp {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

#bio-modal .modal-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 20px;
  padding: 4px;
  background: conic-gradient(from 180deg, var(--secondary-accent, #C5A059), var(--primary-accent, #1D4ED8), var(--secondary-accent, #C5A059));
  box-shadow: 0 10px 25px rgba(11, 19, 43, 0.18);
}

#bio-modal .modal-avatar .avatar-fallback { font-size: 2.8rem; }

#bio-modal .modal-close {
  position: absolute;
  top: 20px;
  inset-inline-end: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: grid;
  place-items: center;
  z-index: 3;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#bio-modal .modal-close:hover {
  transform: rotate(90deg) scale(1.08);
  background: var(--primary-main, #0B132B);
}

#bio-modal .modal-close:hover svg { color: #ffffff; }

#bio-modal .modal-close svg {
  width: 18px;
  height: 18px;
  color: var(--text-primary, #0F172A);
  transition: color 0.3s ease;
}

#bio-modal .modal-body h3 {
  color: var(--text-primary, #0F172A);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
}

#bio-modal .modal-body .role {
  display: inline-block;
  color: var(--secondary-accent, #C5A059);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

#bio-modal .modal-body p {
  color: var(--text-secondary, #475569);
  font-size: 0.98rem;
  line-height: 1.85;
  text-align: start;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.service-card {
  position: relative;
  background: linear-gradient(145deg, rgba(10, 25, 47, 0.92) 0%, rgba(30, 10, 13, 0.95) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 16px;
  padding: 32px 24px;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(30, 10, 13, 0.15);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
  pointer-events: none;
  transition: opacity 0.4s ease;
  opacity: 0.5;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 16px 36px rgba(30, 10, 13, 0.3), 0 0 20px rgba(212, 175, 55, 0.15);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card .num {
  position: absolute;
  top: 20px;
  inset-inline-end: 24px;
  font-family: var(--font-display-ar);
  font-size: 0.78rem;
  color: var(--beige-300);
}

.service-card svg {
  width: 30px;
  height: 30px;
  color: var(--burgundy-700);
  margin-bottom: 18px;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.4;
}

.service-card p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin: 0;
}

.card-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

/* ==========================================================================
   ACHIEVEMENTS SECTION
   ========================================================================== */
.achieve-wrap {
  background: var(--wood-950);
  border-radius: 16px;
  padding: clamp(30px, 5vw, 64px);
  position: relative;
  overflow: hidden;
}

.achieve-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 8%, rgba(212, 175, 55, 0.18), transparent 50%);
}

.achieve-wrap .eyebrow { color: var(--gold-400); }
.achieve-wrap .eyebrow::before { background: #fff; }
.achieve-wrap h2 { color: #fff; }

.achieve-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 36px;
  position: relative;
  z-index: 1;
}

.achieve-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

.achieve-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-3px);
}

.achieve-item svg {
  width: 20px;
  height: 20px;
  color: var(--gold-400);
  flex-shrink: 0;
  margin-top: 3px;
}

.achieve-item span {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
}

/* ==========================================================================
   CONTACT SECTION & BENTO LAYOUT
   ========================================================================== */
.contact-section {
  padding: 100px 0;
  position: relative;
}

.contact-header {
  margin-bottom: 48px;
}

.contact-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}

.glass-card {
  background: linear-gradient(145deg, rgba(10, 25, 47, 0.88) 0%, rgba(30, 10, 13, 0.85) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom-color: rgba(197, 160, 89, 0.3);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 16px 40px -12px rgba(15, 3, 5, 0.5);
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease,
              background 0.4s ease;
  will-change: transform, opacity;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(197, 160, 89, 0.15), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: -1;
}

.glass-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.glass-card:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 24px 50px -10px rgba(10, 2, 3, 0.7);
}

.glass-card:hover::before {
  opacity: 1;
}

.card-cta     { grid-column: span 7; }
.card-address { grid-column: span 5; }
.card-phone   { grid-column: span 5; }

.card-meta {
  grid-column: span 7;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.card-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-card h3 {
  font-family: inherit;
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 10px;
  font-weight: 600;
}

.glass-card p {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  margin-bottom: 24px;
}

.card-info b,
.meta-item b {
  display: block;
  font-size: 0.88rem;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
  font-weight: 600;
  opacity: 0.95;
}

.card-info span,
.card-info a,
.meta-item span,
.meta-item a {
  font-size: 0.98rem;
  color: #ffffff;
  line-height: 1.6;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.card-info a:hover,
.meta-item a:hover {
  opacity: 0.8;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
}

.glass-card:hover .card-icon {
  transform: scale(1.12) rotate(-6deg);
  background: rgba(255, 255, 255, 0.22);
}

.card-icon.sm {
  width: 38px;
  height: 38px;
  margin-bottom: 0;
}

.card-icon svg {
  width: 20px;
  height: 20px;
}

.phone-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.meta-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-glass {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  isolation: isolate;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-glass > * {
  position: relative;
  z-index: 1;
}

.btn-glass svg {
  width: 18px;
  height: 18px;
}

.btn-wa {
  background: rgba(37, 211, 101, 0.436);
  color: #f8fbf9;
  border: 1px solid rgba(37, 211, 102, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px -2px rgba(37, 211, 102, 0.25);
}

.btn-wa::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 30px;
  background: #25D366;
  filter: blur(16px);
  opacity: 0.25;
  z-index: -1;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-wa:hover {
  background: #25D366;
  color: #ffffff;
  border-color: #25D366;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
}

.btn-wa:hover::before {
  opacity: 0.6;
  transform: scale(1.1);
}

.btn-mail {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-mail:hover {
  background: #ffffff;
  color: #0A192F;
  border-color: #ffffff;
  box-shadow: 0 8px 20px -6px rgba(255, 255, 255, 0.35);
}

.btn-map {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 24px;
  background-color: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.btn-map:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.btn-map svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.contact-bento .glass-card:nth-child(1) { transition-delay: 0.1s; }
.contact-bento .glass-card:nth-child(2) { transition-delay: 0.2s; }
.contact-bento .glass-card:nth-child(3) { transition-delay: 0.3s; }
.contact-bento .glass-card:nth-child(4) { transition-delay: 0.4s; }

/* ==========================================================================
   FOOTER (ULTRA-MODERN & INTERACTIVE)
   ========================================================================== */
footer, .site-footer {
  position: relative;
  background: radial-gradient(120% 100% at 50% 0%, #0d213a 0%, #06101e 100%);
  color: #ffffff;
  padding: 60px clamp(20px, 6vw, 80px) 24px;
  margin-top: 60px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  overflow: visible;
  text-align: center;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #D4AF37, transparent);
  box-shadow: 0 0 20px 2px rgba(212, 175, 55, 0.5);
  pointer-events: none;
}

.footer-crest-wrapper {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.footer-crest {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 18px rgba(212, 175, 55, 0.25);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.footer-crest:hover {
  transform: scale(1.15) rotate(5deg);
  border-color: #D4AF37;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7), 0 0 25px rgba(212, 175, 55, 0.6);
}

.footer-crest svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
}

.site-footer .brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
}

.site-footer .brand b {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #ffffff 0%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  max-width: 480px;
  line-height: 1.6;
}

.fnav {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.fnav a {
  position: relative;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 20px;
  transition: all 0.3s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.fnav a::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: rgba(212, 175, 55, 0.1);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
  z-index: -1;
}

.fnav a:hover {
  color: #D4AF37;
  transform: translateY(-2px);
}

.fnav a:hover::before {
  opacity: 1;
  transform: scale(1);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 12px;
}

.copy-text {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.3px;
}

.footer-meta-tag {
  font-size: 0.82rem;
  color: #D4AF37;
  font-weight: 600;
  padding: 4px 12px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 50px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* Floating Actions & Buttons */
.fab-group {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  z-index: 900;
  display: none;
  flex-direction: column;
  gap: 12px;
}

.fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fab:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 30px -6px rgba(0, 0, 0, 0.6);
}

.fab svg {
  width: 22px;
  height: 22px;
}

.fab.wa {
  background: linear-gradient(135deg, #D4AF37 0%, #AA820A 100%);
  color: #fff;
}

.fab.mail {
  background: var(--burgundy-700, #800020);
  color: #fff;
}

#back-to-top {
  position: fixed;
  bottom: 24px;
  inset-inline-start: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(10, 25, 47, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #D4AF37;
  display: grid;
  place-items: center;
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: opacity 0.4s var(--ease, ease), transform 0.4s var(--ease, ease), border-color 0.3s ease, color 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

#back-to-top:hover {
  border-color: #D4AF37;
  color: #ffffff;
  background: #D4AF37;
}

#back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#back-to-top svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS — MOBILE & TABLET
   ========================================================================== */

/* ── Tablet & Large Mobile (576px – 991px) ── */
@media (max-width: 991px) {

  /* FAB group */
  .fab-group {
    display: flex;
  }

  .social-actions {
    display: none;
  }

/* =========================================================
   MOBILE NAVIGATION
   ========================================================= */

@media (max-width: 768px) {

  /* Full-screen mobile menu */
  nav.main-nav {
    position: fixed;

    top: 0;
    inset-inline-start: 0;

    width: 100%;
    height: 100dvh;

    background: rgba(11, 19, 43, 0.97);

    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 0;

    z-index: 999;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(-20px);

    transition:
      opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0.4s ease;
  }


  /* OPEN STATE */
  nav.main-nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateY(0);
  }


  /* Mobile links */
  nav.main-nav a {
    width: 100%;
    min-height: 60px;

    padding: 18px 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1.5rem;
    font-weight: 600;

    color: rgba(255, 255, 255, 0.9);

    text-align: center;

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);

    transition:
      color 0.3s ease,
      background 0.3s ease;
  }


  /* Mobile hover / tap */
  nav.main-nav a:hover {
    color: var(--gold-400, #d4af37);

    background: rgba(212, 175, 55, 0.06);
  }


  /* Remove desktop underline on mobile */
  nav.main-nav a::after {
    display: none;
  }

}


  /* Hero: stack to single column */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .hero-copy .eyebrow::before {
    display: none;
  }

  .hero p.lede {
    margin-inline: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-medallion-wrap {
    order: -1;
  }

  .hero-medallion-wrap svg {
    width: min(260px, 60vw);
  }

  .scroll-cue {
    display: none;
  }

  /* About: stack */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Principles: 2 columns */
  .principles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Team: 2 columns, card-lg spans full width */
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
  }

  .team-card.card-lg {
    grid-column: span 2;
    grid-row: span 1;
  }

  /* Services: 2 columns */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Achievements: single column */
  .achieve-list {
    grid-template-columns: 1fr;
  }

  /* Contact bento: reflow */
  .contact-bento {
    grid-template-columns: 1fr;
  }

  .card-cta,
  .card-address,
  .card-phone,
  .card-meta {
    grid-column: span 1;
  }

  .card-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .meta-divider {
    width: 100%;
    height: 1px;
  }

  /* Footer */
  .fnav {
    gap: 8px;
  }

  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 10px;
  }
}

/* ── Small Mobile Portrait (< 576px) ── */
@media (max-width: 575px) {

  /* Global spacing */
  section {
    padding: 52px 18px;
  }

  .container {
    padding-inline: 16px;
  }

  /* Header */
  .site-header {
    top: 10px;
    width: calc(100% - 24px);
  }

  .header-container {
    height: 56px;
    padding: 0 16px;
    border-radius: 999px;
  }

  .brand-logo-img {
    height: 42px;
  }

  .lang-toggle {
    padding: 5px 10px;
    font-size: 0.72rem;
  }

  /* Hero */
  .hero {
    padding-top: 100px;
    min-height: 100svh;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
  }

  .hero p.lede {
    font-size: 0.97rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 36px;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 0.9rem;
  }

  .hero-stats {
    gap: 16px;
    justify-content: center;
  }

  .stat b {
    font-size: 1.6rem;
  }

  .hero-medallion-wrap svg {
    width: min(200px, 55vw);
  }

  /* About */
  .about-grid {
    gap: 28px;
  }

  h2.section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  /* Principles: single column */
  .principles-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .principle-card {
    padding: 28px 22px;
  }

  /* Team: single column */
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .team-card.card-lg {
    grid-column: span 1;
  }

  .team-card {
    padding: 28px 18px 24px;
  }

  /* Services: single column */
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 28px 20px;
  }

  /* Achievements */
  .achieve-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .achieve-item {
    padding: 14px 16px;
  }

  /* Contact */
  .contact-section {
    padding: 60px 0;
  }

  .glass-card {
    padding: 24px 20px;
    border-radius: 18px;
  }

  .glass-card h3 {
    font-size: 1.25rem;
  }

  .cta-actions {
    flex-direction: column;
  }

  .btn-glass {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
    min-height: 48px;
  }

  .btn-map {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .card-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .meta-divider {
    width: 100%;
    height: 1px;
  }

  /* Modal */
  #bio-modal {
    padding: 16px;
  }

  #bio-modal .modal-card {
    padding: 40px 20px 28px;
    border-radius: 20px;
    max-height: 90vh;
  }

  /* Footer */
  footer, .site-footer {
    padding-top: 50px;
    padding-inline: 16px;
  }

  .fnav {
    gap: 4px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .fnav a {
    font-size: 0.88rem;
    padding: 8px 10px;
    min-height: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 12px;
  }

  .brand-tagline {
    font-size: 0.84rem;
    padding: 0 10px;
  }

  /* FAB positioning */
  .fab-group {
    bottom: 16px;
    inset-inline-end: 16px;
  }

  #back-to-top {
    bottom: 16px;
    inset-inline-start: 16px;
    width: 42px;
    height: 42px;
  }
}

/* ── Very Small Screens (< 360px) ── */
@media (max-width: 359px) {
  .header-container {
    padding: 0 12px;
    gap: 8px;
  }

  .brand-logo-img {
    height: 36px;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .btn {
    padding: 12px 18px;
    font-size: 0.85rem;
  }

  .hero-stats {
    gap: 12px;
  }

  .stat b {
    font-size: 1.4rem;
  }
}
