/* ================================
   Global Styles & Components
   File: assets/css/global.css
   
   Contains:
   - CSS Custom Properties (:root)
   - Global resets
   - Typography foundations
   - Body & HTML base styles
   - Header & Navigation
   - Footer
   - Container utilities
   - Global animations
   - Utility classes
   - Accessibility
   ================================ */

:root {
  /* ================================
     Color Palette
     ================================ */
  --color-ivory: #f8f6f2;
  --color-warm-gray: #e8e4dd;
  --color-mid-gray: #9b9388;
  --color-charcoal: #2d2d2d;
  --color-black: #1a1a1a;

  /* Accent Colors */
  --color-deep-navy: #1b3a52;
  --color-gold-accent: #c9a961;

  /* Divisional Accents */
  --color-hospitality: #8b6f47;
  --color-coconut: #5a7f5e;
  --color-doors: #6b4e71;

  /* ================================
     Typography - Fonts
     ================================ */
  --font-serif: "Cormorant Garamond", serif;
  --font-sans:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-arabic: "Tajawal", "Segoe UI", sans-serif;

  /* ================================
     Typography - Font Sizes (in rems, 1rem = var(--space-sm))
     var(--space-sm) / var(--space-sm) / 20px / var(--space-md) / 32px / var(--space-lg-xl) / 48px / 62px
     ================================ */
  --fs-2xs: 0.7rem; /* 11.2px - extra small for badges/labels */
  --fs-xs: 0.75rem; /* var(--space-sm) */
  --fs-sm: 1rem; /* var(--space-sm) */
  --fs-sm-lg: 1.1rem; /* 17.6px - small-large for subheadings */
  --fs-md: 1.25rem; /* 20px */
  --fs-lg: 1.5rem; /* var(--space-md) */
  --fs-xl: 2rem; /* 32px */
  --fs-2xl: 2.5rem; /* var(--space-lg-xl) */
  --fs-3xl: 3rem; /* 48px */
  --fs-4xl: 3.875rem; /* 62px */

  /* ================================
     Typography - Font Weights
     ================================ */
  --fw-regular: 400;
  --fw-bold: 700;

  /* ================================
     Typography - Line Heights
     ================================ */
  --lh-tight: 1.2;
  --lh-normal: 1.5;

  /* ================================
     Typography - Letter Spacing
     ================================ */
  --ls-normal: 0;
  --ls-tight: -0.06em; /* Equivalent to -1px at var(--space-sm) */
  --ls-wide: 0.05em;
  --ls-tracked: 0.0625em; /* Equivalent to 1px at 16px root */

  /* ================================
     Spacing
     ================================ */
  --space-2xs: 0.625rem;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-sm-lg: 1.125rem;
  --space-md: 1.5rem;
  --space-md-lg: 1.75rem;
  --space-lg-sm: 1.875rem;
  --space-lg: 2rem;
  --space-lg-xl: 2.5rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-2xl-lg: 5.625rem;
  --space-2xl-3xl: 5.9375rem;
  --space-3xl: 6rem;
  /* ================================
     Color & Opacity System
     ================================ */
  --color-white: #ffffff;
  --color-black: #000000;

  /* Opacity Scale (for rgba values) */
  --opacity-xs: 0.06; /* 6% */
  --opacity-sm: 0.12; /* 12% */
  --opacity-md: 0.18; /* 18% */
  --opacity-lg: 0.3; /* 30% */
  --opacity-xl: 0.6; /* 60% */
  --opacity-2xl: 0.8; /* 80% */

  /* ================================
     Transitions
     ================================ */
  --transition: 0.3s ease; /* Standard timing */
  --transition-fast: 0.25s ease; /* Snappy interactions */
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Smooth easing */
  --transition-slow: 0.5s ease; /* Slow for opacity/subtle effects */
  --transition-timing-color: color 0.3s ease; /* Property-specific */
  --transition-timing-transform: transform 0.3s ease; /* Property-specific */

  /* ================================
     Border Radius Scale
     ================================ */
  --radius-xs: 0.25rem; /* 4px */
  --radius-sm: 0.625rem; /* 10px */
  --radius-md: 0.875rem; /* 14px */
  --radius-lg: 1rem; /* 16px */
  --radius-full: 999px; /* Circle */

  /* ================================
     Border Width System
     ================================ */
  --border-width-xs: 0.0625rem; /* 1px */
  --border-width-sm: 0.125rem; /* 2px */
  --border-width-md: 0.1875rem; /* 3px */

  /* ================================
     Box Shadow System
     ================================ */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 6px 20px rgba(0, 0, 0, 0.18);
  --shadow-xl: 0 10px 30px rgba(0, 0, 0, 0.25);

  /* ================================
     Icon & Element Sizing
     ================================ */
  --size-xs: 20px; /* Extra small sizing */
  --size-sm: 60px; /* Small icons */
  --size-md: 90px; /* Medium icons */
  --size-lg: 200px; /* Large containers */
  --size-xl: 280px; /* Extra large containers */

  /* ================================
     Container Max-Widths
     ================================ */
  --max-width-input: 200px; /* Form inputs */
  --max-width-card: 560px; /* Card containers */
  --max-width-narrow: 700px; /* Narrow sections/text blocks */
  --max-width-section: 900px; /* Section content */
  --max-width-wide: 1200px; /* Wide layouts */
  --max-width-full: 1450px; /* Full page width */

  /* ================================
     Height Scaling
     ================================ */
  --height-xs: 20px; /* Extra small height */
  --height-sm: 45rem; /* 720px - small hero */
  --height-md: 50px; /* Medium element */
  --height-lg: 80px; /* Large element */
  --height-xl: 60rem; /* 960px - large hero */

  /* ================================
     Section Heights
     ================================ */
  --height-section: 640px;
  --height-section-lg: 950px;
  --height-container-min: 410px; /* Minimum container height */
  --width-input-min: 250px; /* Minimum input width */

  /* ================================
     Homepage Circle Variables
     ================================ */
  /* Default: Large screens (1500px+) */
  --outer-size: 18rem; /* 288px */
  --center-size: 24rem; /* 384px */
  --circle-gap: 2.5rem; /* var(--space-lg-xl) */

  /* distance from center to outer circles */
  --offset: calc(
    (var(--outer-size) / 2) + (var(--center-size) / 2) + var(--circle-gap)
  );

  /* ================================
     Padding System
     ================================ */
  --btn-padding: 0.875rem 2rem; /* 14px 32px */
  --btn-padding-tablet: 0.75rem 1.75rem; /* 12px 28px */
  --btn-padding-mobile: 0.625rem 1.5rem; /* 10px 24px */

  --card-padding: 3rem; /* 48px */
  --card-padding-tablet: 2.25rem; /* 36px */
  --card-padding-mobile: 1.5rem; /* 24px */

  --section-padding: 5rem 0; /* 80px */
  --section-padding-lg: 5.3125rem 0; /* 85px */
  --section-padding-tablet: 3.75rem 0; /* 60px */
  --section-padding-mobile: 2.5rem 0; /* 40px */

  /* ================================
     Margin System
     ================================ */
  --margin-bottom-heading: 1.25rem; /* 20px - for h3/mini titles */

  /* ================================
     Color Utilities
     ================================ */
  --color-border-light: #e5e7eb;
  --color-bg-light: #f9fafb;
  --color-text-secondary: rgba(0, 0, 0, 0.7);
}

/* ================================
   Screens below 1500px (93.75rem) - Reduced Circle Sizes
   ================================ */
@media (max-width: 93.75rem) {
  :root {
    --outer-size: 15rem; /* 240px */
    --center-size: 20rem; /* 320px */
    --circle-gap: 1.75rem; /* var(--space-md-lg) */
  }
}

/* ================================
   Reset & Base Styles
   ================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: var(--font-sans);
  font-size: 100%; /* var(--space-sm) base */
  scroll-behavior: smooth;
}

/* Arabic Language Font Override */
html[dir="rtl"] {
  font-family: var(--font-arabic);
}

/* ================================
   Responsive Font Scaling
   Automatically scales all rem-based elements
   ================================ */
@media (max-width: 62rem) {
  /* Tablet: 992px */
  html {
    font-size: 95%; /* 15.2px */
  }
}

@media (max-width: 48rem) {
  /* Mobile: 768px */
  html {
    font-size: 90%; /* 14.4px */
  }
}

@media (max-width: 37.5rem) {
  /* Small Mobile: 600px */
  html {
    font-size: 87.5%; /* 14px */
  }
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--color-charcoal);
  background: var(--color-ivory);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ================================
   Typography - Headings
   ================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-md);
  letter-spacing: var(--ls-normal);
}

/* H1: Display/Hero heading - 62px (3.875rem) */
h1 {
  font-size: clamp(2.5rem, 5vw, var(--fs-4xl));
  letter-spacing: var(--ls-tight);
}

/* H2: Section heading - 48px (3rem) */
h2 {
  font-size: clamp(2rem, 4vw, var(--fs-3xl));
}

/* H3: Subsection heading - var(--space-lg-xl) (2.5rem) */
h3 {
  font-size: clamp(1.5rem, 3vw, var(--fs-2xl));
}

/* H4: Minor heading - 32px (2rem) */
h4 {
  font-size: var(--fs-xl);
}

/* H5: Small heading - var(--space-md) (1.5rem) */
h5 {
  font-size: var(--fs-lg);
}

/* H6: Extra small heading - 20px (1.25rem) */
h6 {
  font-size: var(--fs-md);
}

/* ================================
   Typography - Body Text
   ================================ */

p {
  font-size: var(--fs-sm);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  margin-bottom: var(--space-md);
}

p.p-large {
  font-size: var(--fs-md);
}

p.p-small {
  font-size: var(--fs-xs);
}

/* ================================
   Typography - Links
   ================================ */

a {
  color: inherit;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: inherit;
  font-weight: var(--fw-regular);
  transition: all var(--transition);
}

a:hover {
  opacity: 0.8;
}

/* ================================
   Typography - Lists
   ================================ */

ul,
ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

li {
  font-size: var(--fs-sm);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  margin-bottom: 0.5rem;
}

/* ================================
   Typography - Buttons
   ================================ */

button,
.btn {
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-normal);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

button:focus,
.btn:focus {
  outline: 2px solid var(--color-gold-accent);
  outline-offset: 2px;
}

/* ================================
   Typography - Form Elements
   ================================ */

input,
textarea,
select {
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
}

label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
}

/* ================================
   Typography - Additional Elements
   ================================ */

blockquote {
  font-size: var(--fs-md);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
  border-left: 4px solid var(--color-gold-accent);
}

code,
pre {
  font-family: "Courier New", monospace;
  font-size: var(--fs-xs);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
}

small {
  font-size: var(--fs-xs);
}

strong,
b {
  font-weight: var(--fw-bold);
}

em,
i {
  font-style: italic;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ================================
   Typography - Responsive Adjustments
   ================================ */

@media (max-width: 48rem) {
  /* Mobile: 768px - Adjust font sizes for small screens */
  h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
  }

  h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
  }

  h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  }

  h4 {
    font-size: var(--fs-lg);
  }

  p {
    font-size: var(--fs-sm);
  }
}

/* ================================
   Global Animations
   ================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(1.875rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes rotateGentle {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.02);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(var(--space-sm-lg));
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================
   Site Header
   ================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: var(--space-md) var(--space-xl);
  background: rgba(248, 246, 242, 0.95);
  backdrop-filter: blur(var(--space-2xs));
  border-bottom: 1px solid rgba(155, 147, 136, 0.15);
  z-index: 1000;
}

.header__content {
  max-width: 87.5rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header__logo-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header__logo {
  font-family: var(--font-sans);
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  color: var(--color-deep-navy);
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.header__logo:hover {
  color: var(--color-gold-accent);
}

.header__nav {
  display: flex;
  gap: var(--space-lg);
}

.header__nav-link {
  font-size: var(--fs-sm);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  position: relative;
  padding-bottom: 0.25rem;
}

.header__nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-deep-navy);
  transition: width var(--transition-smooth);
}

.header__nav-link:hover::after {
  width: 100%;
}

/* ================================
   Language Switcher
   ================================ */

.header__lang-switcher {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.header__lang-btn {
  padding: 0.5rem 0.875rem;
  background-color: transparent;
  border: 2px solid var(--color-mid-gray);
  color: var(--color-charcoal);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-xs);
  white-space: nowrap;
  transition: all var(--transition-smooth);
}

.header__lang-btn:not(.header__lang-btn--active):hover {
  border-color: var(--color-gold-accent);
  color: var(--color-gold-accent);
  transform: translateY(-1px);
}

.header__lang-btn--active {
  background-color: var(--color-gold-accent);
  border-color: var(--color-gold-accent);
  color: var(--color-ivory);
  box-shadow: 0 2px var(--space-2xs) rgba(201, 169, 97, 0.2);
  cursor: default;
  pointer-events: none;
}

/* ================================
   Hamburger Menu Button
   ================================ */

.hamburger-btn {
  display: none;
  background: rgba(45, 45, 45, 0.85);
  border: none;
  cursor: pointer;
  padding: var(--space-sm) var(--space-md);
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  transition: all var(--transition-smooth);
  border-radius: var(--radius-xs);
  backdrop-filter: blur(5px);
}

.hamburger-btn:hover {
  background: rgba(45, 45, 45, 1);
  transform: translateY(-2px);
}

.hamburger-btn:active {
  transform: translateY(0);
}

.hamburger-btn__icon {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: var(--space-md);
  height: var(--height-xs);
  justify-content: center;
}

.hamburger-btn__line {
  display: block;
  width: 100%;
  height: 2.5px;
  background: white;
  border-radius: 0.063rem; /* 1px - hairline */
  transition: all var(--transition);
}

.hamburger-btn__line--middle {
  width: 70%;
  align-self: center;
}

.hamburger-btn__text {
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  color: var(--color-gold-accent);
  margin-top: 0.2rem;
  transition: all var(--transition-smooth);
}

.hamburger-btn[aria-expanded="true"] .hamburger-btn__line--top {
  transform: rotate(45deg) translate(var(--space-xs), var(--space-xs));
}

.hamburger-btn[aria-expanded="true"] .hamburger-btn__line--middle {
  opacity: 0;
  transform: translateX(-var(--space-xs));
}

.hamburger-btn[aria-expanded="true"] .hamburger-btn__line--bottom {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ================================
   Mobile Menu
   ================================ */

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(248, 246, 242, 0.98);
  backdrop-filter: blur(var(--space-2xs));
  border-bottom: 1px solid rgba(155, 147, 136, 0.15);
  padding: var(--space-lg) var(--space-xl);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
}

.mobile-menu[aria-hidden="false"] {
  display: block;
  max-height: var(--max-width-card);
}

.mobile-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.mobile-menu__item {
  margin: 0;
  padding: 0;
}

.mobile-menu__link {
  display: block;
  padding: 0.75rem 0;
  font-size: var(--fs-sm);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-charcoal);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all var(--transition-smooth);
  width: 100%;
  text-align: left;
}

.mobile-menu__link:hover {
  color: var(--color-gold-accent);
  transform: translateX(var(--space-xs));
}

.mobile-menu__link--services {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-menu__arrow {
  display: inline-block;
  width: var(--space-xs);
  height: var(--space-xs);
  border: solid var(--color-charcoal);
  border-width: 0 2px 2px 0;
  transform: rotate(-45deg);
  transition: var(--transition-timing-transform);
  margin-left: auto;
}

.mobile-menu__link--services[aria-expanded="true"] .mobile-menu__arrow {
  transform: rotate(45deg);
}

.mobile-menu__submenu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  flex-direction: column;
  gap: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu__submenu.active {
  display: flex;
  max-height: var(--max-width-input);
}

.mobile-menu__link--submenu {
  font-size: var(--fs-sm);
  text-transform: capitalize;
  transform: none !important;
}

.mobile-menu__link--submenu:hover {
  transform: translateX(4px) !important;
}

/* ================================
   Site Footer
   ================================ */

.footer {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: var(--color-charcoal);
  color: var(--color-warm-gray);
  padding: var(--space-3xl) var(--space-xl) var(--space-md);
  margin-top: var(--space-3xl);
  position: relative;
}

.footer__content {
  max-width: 87.5rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.625rem, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-section h4 {
  font-size: var(--fs-sm-lg);
  color: var(--color-ivory);
  margin-bottom: var(--space-sm);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  transition: color var(--transition-fast);
}

.footer-section h4:hover {
  opacity: 0.8;
}

.footer-section p {
  font-size: var(--fs-sm);
  margin-bottom: var(--space-xs);
}

.footer-link {
  color: var(--color-warm-gray);
  border-bottom: 1px solid transparent;
}

.footer-link:hover {
  color: var(--color-gold-accent);
  border-bottom-color: var(--color-gold-accent);
}

.footer__social-list {
  display: flex;
  gap: var(--space-md);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  background: rgba(201, 169, 97, 0.1);
  color: var(--color-gold-accent);
  transition: all var(--transition-smooth);
  text-decoration: none;
}

.social-link svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.social-link:hover {
  background: var(--color-gold-accent);
  color: var(--color-charcoal);
  transform: translateY(-0.25rem);
  box-shadow: 0 0.375rem 1rem rgba(201, 169, 97, 0.3);
}

.footer__bottom {
  max-width: 87.5rem;
  margin: 0 auto;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(155, 147, 136, 0.3);
  text-align: center;
  font-size: var(--fs-xs);
  opacity: 0.7;
}

/* ================================
   Container & Layout Utilities
   ================================ */

.container {
  max-width: 87.5rem;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ================================
   Utility Classes
   ================================ */

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.invisible {
  visibility: hidden;
}

.hidden {
  display: none !important;
}

/* ================================
   Responsive Design - Header/Footer
   ================================ */

@media (max-width: 68.75rem) {
  /* Desktop to Tablet: 1100px */
  .header__content {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 5rem;
  }

  .header__logo-group {
    flex: 0 1 auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
  }

  .hamburger-btn {
    display: flex;
    flex-shrink: 0;
    margin-left: auto;
  }

  .header__nav {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .mobile-menu {
    display: none;
  }

  .mobile-menu[aria-hidden="false"] {
    display: block;
  }
}

@media (max-width: 48rem) {
  /* Mobile: 768px */
  .header {
    padding: var(--space-md) var(--space-md);
  }

  .header__logo {
    font-size: var(--fs-md);
  }

  .header__nav {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    gap: var(--space-md);
  }

  .header__nav-link {
    font-size: var(--fs-xs);
  }

  .footer {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: var(--space-2xl) var(--space-md) var(--space-md);
    position: relative;
  }

  .footer__content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 30rem) {
  /* Extra Small: 480px - automatically scales via html font-size: 87.5% */
  .header__content {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .header__nav {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* ================================
   Responsive Design - Base
   ================================ */

/* Root variables now automatically scale with html font-size percentages at media queries above */
/* Circle sizes scale down automatically: 15rem, 20rem, 1.75rem adjust proportionally */

/* Respect user's reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ================================
   Accessibility: Focus States
   ================================ */

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-gold-accent);
  outline-offset: 2px;
}

button:focus-visible {
  position: relative;
  z-index: 1;
}

/* ================================
   Skip to Content Link
   ================================ */

.skip-to-content {
  position: fixed;
  z-index: 99999;
  top: -100vh;
  left: 0;
  width: 100%;
  background: var(--color-deep-navy);
  color: white;
  padding: 0.75rem 1rem;
  text-decoration: none;
  border-radius: 0 0 var(--radius-xs) 0;
  font-weight: 500;
}

.skip-to-content:focus {
  top: 0;
  outline: 3px solid var(--color-gold-accent);
}

/* ================================
   Page Transition Overlay
   ================================ */

.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-ivory);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.page-transition.active {
  opacity: 1;
  pointer-events: all;
}

/* Loading indicator dot animation */
.page-transition.active::before {
  content: "";
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: var(--space-sm);
  height: var(--space-sm);
  background: var(--color-deep-navy);
  border-radius: var(--radius-full);
  animation: pulse 1.5s ease-in-out infinite;
}

/* ================================
   Scroll-to-Top Button
   ================================ */

#scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--color-deep-navy);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px var(--space-sm) rgba(0, 0, 0, var(--opacity-sm));
  font-size: var(--fs-lg);
  line-height: 1;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    background-color var(--transition-smooth),
    box-shadow var(--transition-smooth);
}

#scroll-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#scroll-to-top:hover {
  background: var(--color-gold-accent);
  transform: translateY(-3px);
  box-shadow: 0 6px var(--space-sm) rgba(0, 0, 0, 0.2);
}

#scroll-to-top.visible:hover {
  transform: translateY(-6px);
}

#scroll-to-top:focus-visible {
  outline: 3px solid var(--color-gold-accent);
  outline-offset: -3px;
}

/* ================================
   RTL Support (Global Header/Footer)
   ================================ */

html[dir="rtl"] .header__content {
  flex-direction: row-reverse;
}

html[dir="rtl"] .header__logo-group {
  order: 2;
}

html[dir="rtl"] .header__nav {
  flex-direction: row-reverse;
}

html[dir="rtl"] .header__nav-link::after {
  left: auto;
  right: 0;
}

html[dir="rtl"] .footer__content {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .footer-section h4,
html[dir="rtl"] .footer-section p {
  text-align: right;
  direction: rtl;
}

html[dir="rtl"] .footer__social-list {
  flex-direction: row;
}

html[dir="rtl"] .footer-link {
  border-bottom-color: transparent;
}

html[dir="rtl"] .footer-link:hover {
  border-bottom-color: var(--color-gold-accent);
}

@media (max-width: 68.75rem) {
  /* 1100px */
  html[dir="rtl"] .footer__content {
    text-align: center;
  }

  html[dir="rtl"] .footer-section h4,
  html[dir="rtl"] .footer-section p {
    text-align: center;
  }

  html[dir="rtl"] .footer__social-list {
    justify-content: center;
  }

  html[dir="rtl"] .header__content {
    direction: rtl;
  }

  html[dir="rtl"] .header__logo-group {
    flex-direction: row-reverse;
  }

  html[dir="rtl"] .hamburger-btn {
    margin-left: 0;
    margin-right: auto;
  }

  html[dir="rtl"] .mobile-menu {
    left: 0;
    right: 0;
  }

  html[dir="rtl"] .mobile-menu__link {
    text-align: right;
  }

  html[dir="rtl"] .mobile-menu__link:hover {
    transform: translateX(-var(--space-xs));
  }

  html[dir="rtl"] .mobile-menu__link--services {
    text-align: right;
    direction: rtl;
  }

  html[dir="rtl"] .mobile-menu__arrow {
    margin-left: 0;
    margin-right: auto;
  }

  html[dir="rtl"] .mobile-menu__link--submenu {
    padding: 0.5rem 1.5rem 0.5rem 0;
  }

  html[dir="rtl"] .mobile-menu__link--submenu:hover {
    transform: translateX(-4px) !important;
  }
}

html[dir="rtl"] #scroll-to-top {
  right: auto;
  left: 2rem;
}
/* ================================
   Swiper Gallery Styles
   ================================ */
.doors-gallery-section,
.coconut-gallery-section,
.hospitality-gallery-section {
  width: 100%;
  padding: 60px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.doors-swiper,
.coconut-swiper,
.hospitality-swiper {
  width: 90%;
  max-width: 1200px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}

.swiper-slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
  border-radius: 18px;
}

/* =====================================
   Swiper Arrow Buttons
===================================== */
.swiper-button-next,
.swiper-button-prev {
  width: 52px !important;
  height: 52px !important;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  transition: 0.25s ease;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 18px !important;
  font-weight: bold;
  color: #e9fff1;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(82, 255, 160, 0.22);
  transform: scale(1.08);
}

.doors-swiper .swiper-button-prev,
.coconut-swiper .swiper-button-prev,
.hospitality-swiper .swiper-button-prev {
  left: 20px !important;
}

.doors-swiper .swiper-button-next,
.coconut-swiper .swiper-button-next,
.hospitality-swiper .swiper-button-next {
  right: 20px !important;
}

/* =====================================
   Swiper Pagination Dots
===================================== */
.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  width: 10px;
  height: 10px;
  transition: 0.2s ease;
}

.swiper-pagination-bullet-active {
  background: #52ffa0;
  width: 14px;
  height: 14px;
}

/* =====================================
   Responsive Fix (Tablets)
===================================== */
@media (max-width: 900px) {
  .swiper-slide img {
    height: 380px;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 46px !important;
    height: 46px !important;
  }

  .doors-swiper .swiper-button-prev,
  .coconut-swiper .swiper-button-prev,
  .hospitality-swiper .swiper-button-prev {
    left: 12px !important;
  }

  .doors-swiper .swiper-button-next,
  .coconut-swiper .swiper-button-next,
  .hospitality-swiper .swiper-button-next {
    right: 12px !important;
  }
}

/* =====================================
   Responsive Fix (Mobile)
===================================== */
@media (max-width: 600px) {
  .doors-gallery-section,
  .coconut-gallery-section,
  .hospitality-gallery-section {
    padding: 40px 0;
  }

  .swiper-slide img {
    height: 280px;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 42px !important;
    height: 42px !important;
  }

  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 16px !important;
  }
}
