/* 
   MedsCastle Professional Clinical Redesign
   A clean, high-performance, and trustworthy aesthetic for medical distribution.
   Focus: Clarity, precision, and professional authority.
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&family=Cairo:wght@400;600;700&family=Noto+Kufi+Arabic:wght@400;600;700&display=swap');

:root {
  /* Professional Clinical Palette */
  --color-primary: #0f172a;
  /* Deep Slate / Obsidian */
  --color-accent: #d4af37;
  /* Muted Gold */
  --color-accent-soft: rgba(212, 175, 55, 0.05);

  --color-text-main: #334155;
  /* Slate 700 */
  --color-text-title: #0f172a;
  /* Slate 950 */
  --color-text-muted: #64748b;
  /* Slate 500 */

  --color-bg: #fdfdfd;
  /* Near-white Clinical */
  --color-surface: #ffffff;
  --color-surface-alt: #f8fafc;
  /* Soft porcelain */
  --color-border: #e2e8f0;
  /* Slate 200 */
  --color-divider: rgba(15, 23, 42, 0.03);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-arabic-heading: 'Noto Kufi Arabic', sans-serif;
  --font-arabic-body: 'Cairo', sans-serif;

  /* Layout */
  --content-width: min(1200px, 92vw);
  --section-padding: clamp(4rem, 10vw, 8rem);

  /* Spacing */
  --radius-xl: 32px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;

  /* Elevation */
  --shadow-subtle: 0 4px 20px -5px rgba(15, 23, 42, 0.02);
  --shadow-hover: 0 40px 80px -20px rgba(15, 23, 42, 0.08);

  /* Animation */
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-default: 0.5s var(--ease-in-out);
}

/* Dark Mode Overrides */
[data-theme="dark"] {
  --color-bg: #0f172a;
  /* Deep Charcoal / Slate 900 */
  --color-surface: #1e293b;
  /* Slate 800 */
  --color-surface-alt: #334155;
  /* Slate 700 */
  --color-text-main: #f8fafc;
  --color-text-title: #ffffff;
  --color-text-muted: #94a3b8;
  --color-border: rgba(255, 255, 255, 0.08);
}

/* Dark Mode Button Sharpness */
[data-theme="dark"] .button--primary {
  background: #ffffff;
  color: #0f172a;
}

[data-theme="dark"] .button--primary:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .button--ghost {
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

[data-theme="dark"] .button--ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #ffffff;
}

[data-theme="dark"] #catalog-search:focus {
  background: rgba(255, 255, 255, 0.03);
}

.catalog-actions {
  display: flex;
  justify-content: center;
  margin-top: 5rem;
  padding-bottom: 2rem;
}

/* Dark Mode Chatbot Panel */
[data-theme="dark"] .chatbot__body {
  background: #1e293b;
}

[data-theme="dark"] .chatbot__header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

[data-theme="dark"] .chatbot__message--assistant {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

[data-theme="dark"] .chatbot__composer {
  background: #0f172a;
  border-top-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .chatbot__input {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
  color: white;
}

[data-theme="dark"] .chatbot__input:focus {
  background: rgba(15, 23, 42, 0.8);
}

[data-theme="dark"] .chatbot__typing {
  background: rgba(255, 255, 255, 0.05);
}

/* Dark Mode Widget Enhancements */
[data-theme="dark"] .chatbot__launcher,
[data-theme="dark"] .whatsapp-launcher {
  box-shadow: none; /* Shadow removed for clean look */
}

[data-theme="dark"] .chatbot__launcher {
  background: #ffffff;
  color: #0f172a;
}

[data-theme="dark"] .chatbot__panel,
[data-theme="dark"] .whatsapp-panel {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .chatbot__header {
  background: #0f172a;
}

[data-theme="dark"] .chatbot__message--assistant,
[data-theme="dark"] .whatsapp-bubble {
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc;
}

[data-theme="dark"] .chatbot__message--user {
  background: #ffffff;
  color: #0f172a;
  font-weight: 600;
}

[data-theme="dark"] .chatbot__composer,
[data-theme="dark"] .whatsapp-composer {
  border-top-color: rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .chatbot__input,
[data-theme="dark"] .whatsapp-input {
  color: #ffffff;
}

/* Base Reset */
[hidden] {
  display: none !important;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
}

/* Typography Scale */
h1,
h2,
h3 {
  font-family: var(--font-heading);
  color: var(--color-text-title);
  font-weight: 700;
  margin: 0;
}

h1 {
  font-size: clamp(2.75rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

/* Arabic Support */
html[dir="rtl"] body {
  font-family: var(--font-arabic-body);
}


html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 {
  font-family: var(--font-arabic-heading);
  font-weight: 600;
  line-height: 1.35;
}

/* Global Components */
.section {
  width: var(--content-width);
  margin: 0 auto;
  padding: var(--section-padding) 0;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s var(--ease-in-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, #334155 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 800;
  font-size: 0.7rem;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}

/* Navigation - World-Class Premium Structure */
.site-header {
  position: absolute;
  top: 1.5rem;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: min(calc(100% - 3rem), 1100px);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(15, 23, 42, 0.04);
  border-radius: 999px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.02),
    0 4px 16px rgba(0, 0, 0, 0.03),
    0 12px 32px rgba(0, 0, 0, 0.03);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body.has-scrolled .site-header {
  position: fixed;
  top: 1rem;
  background: rgba(255, 255, 255, 0.85);
  width: min(calc(100% - 3rem), 1000px);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.04),
    0 16px 40px rgba(0, 0, 0, 0.06);
  animation: slideDownFloating 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDownFloating {
  0% {
    transform: translateY(-150%) scale(0.98);
    opacity: 0;
  }

  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.site-header .header-layout {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem 0.5rem 1rem;
  width: 100%;
}

/* Switches in Header (Right side - Modern Segmented Pill) */
.header-settings {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  background: rgba(15, 23, 42, 0.03);
  padding: 0.25rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.02);
}

.header-settings .lang-switcher {
  display: flex;
  gap: 0.25rem;
}

.header-settings .lang-switcher a,
.header-settings .theme-switcher button {
  background: transparent;
  border: none;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--color-text-muted);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-settings .lang-switcher a:hover,
.header-settings .theme-switcher button:hover {
  color: var(--color-primary);
}

.header-settings .lang-switcher a.is-active,
.header-settings .theme-switcher button.is-active {
  color: var(--color-primary);
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  font-weight: 700;
}

/* Branding (Left Side) */
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.brand:hover {
  opacity: 0.8;
}

.brand img {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 6px;
  object-fit: cover;
}

.brand__copy strong {
  font-size: 1.05rem;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  font-weight: 800;
  display: block;
}

/* Navigation List (Center Perfect Space) */
.site-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.site-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-nav a:hover {
  color: var(--color-primary);
  background: rgba(15, 23, 42, 0.03);
}

.site-nav a.is-active {
  color: var(--color-primary);
  font-weight: 700;
  background: rgba(15, 23, 42, 0.04);
}

/* RTL Headers Setup */
html[dir="rtl"] .header-layout {
  padding: 0.5rem 1rem 0.5rem 0.75rem;
}

@media (max-width: 1024px) {
  .site-header {
    width: min(calc(100% - 2rem), 100vw);
    border-radius: 24px;
    top: 1rem;
  }

  body.has-scrolled .site-header {
    width: min(calc(100% - 2rem), 100vw);
  }

  .site-header .header-layout {
    flex-direction: column !important;
    gap: 1.25rem;
    padding: 1.5rem;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }
}

/* Dark Mode Overrides for Header */
[data-theme="dark"] .site-header {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] body.has-scrolled .site-header {
  background: rgba(15, 23, 42, 0.85);
}

[data-theme="dark"] .header-settings {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.02);
}

[data-theme="dark"] .header-settings .lang-switcher a:hover,
[data-theme="dark"] .header-settings .theme-switcher button:hover {
  color: #fff;
}

[data-theme="dark"] .header-settings .lang-switcher a.is-active,
[data-theme="dark"] .header-settings .theme-switcher button.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .site-nav a:hover,
[data-theme="dark"] .site-nav a.is-active {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

[data-theme="dark"] .brand__copy strong {
  color: #fff;
}

/* Hero Section - Full Page Parallax Typography */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 14rem;
  padding-bottom: 2rem;
  min-height: 80vh;
  /* Override global .section defaults to go edge-to-edge */
  width: 100% !important;
  max-width: 100% !important;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1.5rem;
  /* Ensure text doesn't touch edges on mobile */
}

.hero__content h1 {
  margin-bottom: 2rem;
  max-width: 800px;
}

.hero__lede {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  max-width: 600px;
  text-align: center;
}

.hero-tags {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
}

.hero-tags li {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  background: var(--color-surface);
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 4rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 2.5rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all var(--transition-default);
  cursor: pointer;
  border: 1px solid transparent;
}

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

.button--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.15);
}

.button--ghost {
  border: 1px solid var(--color-border);
  color: var(--color-primary);
}

.button--ghost:hover {
  background: var(--color-surface-alt);
  border-color: var(--color-primary);
}

/* Visual Background (Parallax Repeater) */
.hero__visual {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.hero-repeater {
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 150%;
  /* background-image applied inline via HTML */
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0.5;
  /* Richer opacity for strong hero presence */
  transform: translateY(0px) translateZ(0);
  will-change: transform;
}

/* Story Section */
.story.section {
  padding-top: 4rem; /* Pull section much closer to the hero tab */
  padding-bottom: 2rem; /* Tighten gap to footer */
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.story-card {
  padding: 3.5rem 2.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-default);
}

.story-card.reveal:nth-child(1) { transition-delay: 0.1s; }
.story-card.reveal:nth-child(2) { transition-delay: 0.2s; }
.story-card.reveal:nth-child(3) { transition-delay: 0.3s; }

.story-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-accent);
}

.story-card__index {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-accent);
  font-weight: 900;
  opacity: 0.4;
  display: block;
  margin-bottom: 1.5rem;
}

.story-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.section-actions {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 6rem; /* Increased space before buttons */
}

/* Stats - Shadow Tab Layout */
.hero__stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 4rem;
  list-style: none;
  padding: 1.5rem 4rem;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  box-shadow: 
    0 10px 30px rgba(15, 23, 42, 0.06),
    0 4px 6px rgba(15, 23, 42, 0.02);
}

.hero__stats li {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center text inside each stat tab naturally */
}

.hero__stats strong {
  font-size: 3rem;
  color: var(--color-primary);
  font-family: var(--font-heading);
  margin-bottom: 0.25rem;
  letter-spacing: -0.04em;
}

.hero__stats span {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-align: center;
}

/* Ensure Dark Theme handles the frosted stats tab */
[data-theme="dark"] .hero__stats {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}
[data-theme="dark"] .hero__stats strong {
  color: #ffffff;
}
/* About Us & Generic Content Grids */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  margin-top: 1rem; /* Tightened even further to 1rem */
}

.section--compact {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}

.content-panel {
  padding: 4rem 3.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-default);
  position: relative;
  overflow: hidden;
}

.content-panel:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-accent);
}

.content-panel h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.content-panel p {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.content-panel ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.content-panel li {
  color: var(--color-text-muted);
  font-size: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.content-panel li::before {
  content: "→";
  color: var(--color-accent);
  font-weight: 900;
}

/* About Hero - Unified Intelligence Tab */
.about-hero-tab {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  padding: 2rem 3rem;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 
    0 20px 40px rgba(15, 23, 42, 0.08),
    0 1px 3px rgba(15, 23, 42, 0.04);
  text-align: left;
  max-width: 1000px;
  margin-inline: auto;
}

[data-theme="dark"] .about-hero-tab {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.about-hero-tab__main {
  flex: 1.5;
  border-right: 1px solid var(--color-divider);
  padding-right: 3rem;
}

.about-hero-tab__main p:last-child {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

.about-hero-tab__tags {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
}

.about-hero-tab__tags li {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.about-hero-tab__tags li::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  background: var(--color-accent);
  border-radius: 50%;
}

/* RTL Adjustments for the Tab */
html[dir="rtl"] .about-hero-tab {
  text-align: right;
}

html[dir="rtl"] .about-hero-tab__main {
  border-right: none;
  border-left: 1px solid var(--color-divider);
  padding-right: 0;
  padding-left: 3rem;
}

@media (max-width: 900px) {
  .about-hero-tab {
    flex-direction: column;
    padding: 2.5rem;
    gap: 2rem;
  }
  .about-hero-tab__main {
    padding: 0;
    border: none;
    text-align: center;
  }
  html[dir="rtl"] .about-hero-tab__main {
    padding: 0;
    border: none;
  }
  .about-hero-tab__tags {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }
}

/* --- Contact page --- */
.page--contact .contact-main.section {
  padding-top: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: var(--section-padding);
}

/* Prevent Contact page from creating extra horizontal width */
.page--contact {
  overflow-x: clip;
}

/* Keep Contact page layout at original size (no hover zoom/shift effects) */
.page--contact .contact-main .button:hover,
.page--contact .contact-main .button--primary:hover,
.page--contact .contact-main .app-links a:hover {
  transform: none;
}

/* Keep the contact form full-width in its column */
.page--contact .contact-form {
  width: 100%;
  max-width: none;
  justify-self: center;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 560px);
  gap: 0.5rem;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
  align-items: start;
  justify-content: center;
}

.contact-layout > * {
  min-width: 0;
}

.contact-main {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 0;
}

.contact-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.office-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.contact-panel {
  padding: 2rem 2rem 2.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-subtle);
  transition:
    border-color 0.35s var(--ease-in-out),
    box-shadow 0.35s var(--ease-in-out);
}

.contact-panel:hover {
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: var(--shadow-hover);
}

.office-card.contact-panel {
  position: relative;
  overflow: hidden;
}

.office-card.contact-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-accent) 0%, transparent 100%);
  opacity: 0.9;
  pointer-events: none;
}

html[dir="rtl"] .office-card.contact-panel::before {
  left: auto;
  right: 0;
}

.contact-panel__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  margin-bottom: 0.65rem;
}

.contact-panel h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.contact-panel > p:not(.contact-panel__label) {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0 0 1.25rem;
}

.contact-panel ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.contact-panel li {
  font-size: 0.9rem;
  color: var(--color-text-main);
  line-height: 1.5;
}

.contact-panel li strong {
  color: var(--color-text-title);
  font-weight: 600;
}

.contact-panel a {
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

.contact-panel a:hover {
  border-bottom-color: var(--color-accent);
  color: var(--color-accent);
}

[data-theme="dark"] .contact-panel a {
  color: #e2e8f8;
}

[data-theme="dark"] .contact-panel a:hover {
  color: var(--color-accent);
}

.office-card__actions {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  align-items: center;
}

.office-card__actions .button {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
}

.office-card__actions .button--primary {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #ffffff;
  border: 1px solid #2563eb;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
  transition: all 0.2s ease;
}

.office-card__actions .button--primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #ffffff;
  border-color: #1d4ed8;
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}

.office-card__actions .button--primary:active {
  background: linear-gradient(135deg, #1e40af, #1d4ed8);
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

/* Dark mode enhancements for Call office button */
[data-theme="dark"] .office-card__actions .button--primary {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  color: #ffffff;
  border: 1px solid #3b82f6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

[data-theme="dark"] .office-card__actions .button--primary:hover {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.4);
  transform: translateY(-1px);
}

[data-theme="dark"] .office-card__actions .button--primary:active {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.office-card__actions .button--ghost {
  background: transparent;
  color: #2563eb;
  border: 2px solid #2563eb;
  font-weight: 600;
  transition: all 0.2s ease;
}

.office-card__actions .button--ghost:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
  transform: translateY(-1px);
}

.office-card__actions .button--ghost:active {
  background: #1d4ed8;
  border-color: #1d4ed8;
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
}

/* Dark mode enhancements for Email button */
[data-theme="dark"] .office-card__actions .button--ghost {
  background: transparent;
  color: #60a5fa;
  border: 2px solid #60a5fa;
  font-weight: 600;
}

[data-theme="dark"] .office-card__actions .button--ghost:hover {
  background: #60a5fa;
  color: #ffffff;
  border-color: #60a5fa;
  box-shadow: 0 2px 4px rgba(96, 165, 250, 0.3);
  transform: translateY(-1px);
}

[data-theme="dark"] .office-card__actions .button--ghost:active {
  background: #3b82f6;
  border-color: #3b82f6;
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(96, 165, 250, 0.2);
}

.app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 0.35rem;
}

.contact-panel .app-links a,
.contact-panel .app-links a:hover {
  border-bottom: none;
}

.app-links a {
  display: inline-flex;
  align-items: center;
  border-bottom: none;
  transition:
    transform 0.25s var(--ease-in-out),
    opacity 0.25s ease;
}

.app-links a:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.app-links img {
  height: 48px;
  width: auto;
  border-radius: 8px;
  vertical-align: middle;
}

.contact-form {
  padding: 2.5rem 2.5rem 2.75rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

[data-theme="dark"] .contact-form {
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.form-intro {
  margin-bottom: 0.15rem;
}

.form-intro h3 {
  font-size: 1.35rem;
  margin-top: 0.35rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.contact-form label > span {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text-main);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.14);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

/* Enhanced Send button */
.contact-form .button--primary {
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  color: #ffffff;
  border: 2px solid #2563eb;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.contact-form .button--primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.contact-form .button--primary:hover::before {
  left: 100%;
}

.contact-form .button--primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #ffffff;
  border-color: #1d4ed8;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  transform: translateY(-2px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.contact-form .button--primary:active {
  background: linear-gradient(135deg, #1e40af, #1d4ed8);
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}

/* Dark mode enhancements for Send button */
[data-theme="dark"] .contact-form .button--primary {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  color: #ffffff;
  border: 2px solid #60a5fa;
  box-shadow: 0 4px 15px rgba(96, 165, 250, 0.3);
}

[data-theme="dark"] .contact-form .button--primary:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 6px 20px rgba(96, 165, 250, 0.4);
}

[data-theme="dark"] .contact-form .button--primary:active {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 2px 10px rgba(96, 165, 250, 0.3);
}

/* Send button loading state */
.contact-form .button--primary:disabled {
  background: linear-gradient(135deg, #999, #666);
  border-color: #999;
  color: #ffffff;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.contact-form .button--primary:disabled::before {
  display: none;
}

/* Form progress indicator */
.form-progress {
  margin-bottom: 1rem;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: var(--color-surface-alt);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: var(--color-accent);
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 0%;
}

.progress-text {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: right;
  transition: color 0.3s ease;
}

/* Character counter */
.character-counter {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: right;
  margin-top: 0.25rem;
  transition: color 0.2s ease;
}

/* Success animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Page animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animations for multiple elements */
.reveal:nth-child(1) { transition-delay: 0.1s; }
.reveal:nth-child(2) { transition-delay: 0.2s; }
.reveal:nth-child(3) { transition-delay: 0.3s; }
.reveal:nth-child(4) { transition-delay: 0.4s; }

/* Hero section animations */
.hero__content {
  animation: slideInLeft 1s ease-out;
}

.hero__visual {
  animation: slideInRight 1s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Form animations */
.contact-form {
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Input field animations */
.contact-form input,
.contact-form textarea {
  transition: all 0.3s ease;
  transform: translateY(0);
}

.contact-form input:focus,
.contact-form textarea:focus {
  transform: translateY(-2px);
}

/* Button animations */
.button {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.button:hover::before {
  width: 300px;
  height: 300px;
}

/* Branch card animations */
.branch-location {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.branch-location:hover {
  transform: translateY(-8px) scale(1.02);
}

.branch-location__map iframe {
  transition: transform 0.4s ease;
}

.branch-location:hover .branch-location__map iframe {
  transform: scale(1.05);
}

/* Office card animations */
.office-card {
  animation: fadeInScale 0.6s ease-out;
  transition: all 0.3s ease;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.office-card:hover {
  transform: translateY(-4px);
}

/* Captcha animations */
.contact-captcha__refresh {
  transition: all 0.3s ease;
}

.contact-captcha__refresh:hover {
  animation: rotate 0.6s ease;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.contact-captcha input {
  transition: all 0.3s ease;
}

.contact-captcha input:focus {
  animation: pulse 0.3s ease;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Progress bar animations */
.progress-fill {
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Success animation enhancements */
@keyframes checkmark {
  0% {
    stroke-dashoffset: 100;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

/* Loading animation */
.button:disabled {
  position: relative;
}

.button:disabled::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Back to Top - Minimalist Style */
.back-to-top {
  position: fixed;
  top: 85%;
  right: 2rem;
  transform: translateY(-50%) scale(0.8);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.95);
  color: #2563eb;
  border: 2px solid #e2e8f0;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top:hover {
  background: #ffffff;
  color: #1d4ed8;
  border-color: #2563eb;
  transform: translateY(-50%) scale(1);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.back-to-top:active {
  background: #f1f5f9;
  color: #1e40af;
  border-color: #1d4ed8;
  transform: translateY(-50%) scale(0.95);
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.1);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1);
}

/* Dark mode */
[data-theme="dark"] .back-to-top {
  background: rgba(30, 41, 59, 0.95);
  color: #60a5fa;
  border-color: #334155;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .back-to-top:hover {
  background: #1e293b;
  color: #93c5fd;
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

[data-theme="dark"] .back-to-top:active {
  background: #0f172a;
  color: #60a5fa;
  border-color: #2563eb;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Mobile */
@media (max-width: 768px) {
  .back-to-top {
    top: 85%;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

/* Home Page Animations */

/* Hero section entrance animation */
.page--home .hero__content {
  animation: slideInUp 0.8s ease-out;
}

.page--home .hero__visual {
  animation: fadeInScale 1s ease-out 0.2s both;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Text gradient shimmer animation */
.page--home .text-gradient {
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* Hero stats counter animation */
.page--home .hero__stats strong {
  display: inline-block;
  animation: countUp 0.6s ease-out;
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero tags stagger animation */
.page--home .hero-tags li {
  opacity: 0;
  animation: fadeInRight 0.5s ease-out forwards;
}

.page--home .hero-tags li:nth-child(1) { animation-delay: 0.3s; }
.page--home .hero-tags li:nth-child(2) { animation-delay: 0.4s; }
.page--home .hero-tags li:nth-child(3) { animation-delay: 0.5s; }

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Hero buttons hover animation */
.page--home .hero__actions .button {
  transition: all 0.3s ease;
}

.page--home .hero__actions .button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

/* Story cards stagger reveal */
.page--home .story-card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.page--home .story-card.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.page--home .story-card:nth-child(1).reveal.is-visible { transition-delay: 0s; }
.page--home .story-card:nth-child(2).reveal.is-visible { transition-delay: 0.15s; }
.page--home .story-card:nth-child(3).reveal.is-visible { transition-delay: 0.3s; }

/* Story card index number animation */
.page--home .story-card__index {
  display: inline-block;
  transition: all 0.3s ease;
}

.page--home .story-card:hover .story-card__index {
  transform: scale(1.1);
  color: var(--color-accent);
}

/* Value list items animation */
.page--home .value-list li {
  opacity: 0;
  transform: translateX(-15px);
  transition: all 0.4s ease;
}

.page--home .story-card.reveal.is-visible .value-list li {
  opacity: 1;
  transform: translateX(0);
}

.page--home .story-card.reveal.is-visible .value-list li:nth-child(1) { transition-delay: 0.1s; }
.page--home .story-card.reveal.is-visible .value-list li:nth-child(2) { transition-delay: 0.2s; }
.page--home .story-card.reveal.is-visible .value-list li:nth-child(3) { transition-delay: 0.3s; }
.page--home .story-card.reveal.is-visible .value-list li:nth-child(4) { transition-delay: 0.4s; }
.page--home .story-card.reveal.is-visible .value-list li:nth-child(5) { transition-delay: 0.5s; }
.page--home .story-card.reveal.is-visible .value-list li:nth-child(6) { transition-delay: 0.6s; }

/* Section heading animation */
.page--home .section-heading {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.page--home .section-heading.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Section actions animation */
.page--home .section-actions {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease 0.3s;
}

.page--home .section-actions.reveal.is-visible,
.page--home .section:has(.section-heading.reveal.is-visible) .section-actions {
  opacity: 1;
  transform: translateY(0);
}

/* Hero repeater background subtle zoom */
.page--home .hero-repeater {
  animation: subtleZoom 20s ease-in-out infinite alternate;
}

@keyframes subtleZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

/* Eyebrow text slide in */
.page--home .eyebrow {
  opacity: 0;
  transform: translateX(-30px);
  animation: slideInLeft 0.6s ease-out 0.1s forwards;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Footer link hover animation */
.site-footer__list a {
  position: relative;
  transition: color 0.2s ease;
}

.site-footer__list a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.site-footer__list a:hover::after {
  width: 100%;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  
  .back-to-top:hover,
  .back-to-top:active {
    transform: none;
  }
}

/* Home page reduced motion */
@media (prefers-reduced-motion: reduce) {
  .page--home .hero__content,
  .page--home .hero__visual,
  .page--home .text-gradient,
  .page--home .hero__stats strong,
  .page--home .hero-tags li,
  .page--home .hero-repeater,
  .page--home .eyebrow {
    animation: none;
  }
  
  .page--home .story-card,
  .page--home .section-heading,
  .page--home .section-actions {
    opacity: 1;
    transform: none;
    transition: none;
  }
  
  .page--home .value-list li {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* About Page Content Animations */

/* Content panels (Vision, Mission, Operating values, etc.) stagger animation */
.page--about .content-panel {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.page--about .content-panel.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.page--about .content-panel:nth-child(1).reveal.is-visible { transition-delay: 0s; }
.page--about .content-panel:nth-child(2).reveal.is-visible { transition-delay: 0.15s; }
.page--about .content-panel:nth-child(3).reveal.is-visible { transition-delay: 0.3s; }
.page--about .content-panel:nth-child(4).reveal.is-visible { transition-delay: 0.45s; }
.page--about .content-panel:nth-child(5).reveal.is-visible { transition-delay: 0.6s; }

/* Content panel headings animation */
.page--about .content-panel h3 {
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s ease;
}

.page--about .content-panel.reveal.is-visible h3 {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.2s;
}

/* Content panel list items stagger */
.page--about .content-panel ul li {
  opacity: 0;
  transform: translateX(-15px);
  transition: all 0.4s ease;
}

.page--about .content-panel.reveal.is-visible ul li {
  opacity: 1;
  transform: translateX(0);
}

.page--about .content-panel.reveal.is-visible ul li:nth-child(1) { transition-delay: 0.3s; }
.page--about .content-panel.reveal.is-visible ul li:nth-child(2) { transition-delay: 0.4s; }
.page--about .content-panel.reveal.is-visible ul li:nth-child(3) { transition-delay: 0.5s; }
.page--about .content-panel.reveal.is-visible ul li:nth-child(4) { transition-delay: 0.6s; }
.page--about .content-panel.reveal.is-visible ul li:nth-child(5) { transition-delay: 0.7s; }
.page--about .content-panel.reveal.is-visible ul li:nth-child(6) { transition-delay: 0.8s; }
.page--about .content-panel.reveal.is-visible ul li:nth-child(7) { transition-delay: 0.9s; }

/* About hero tab animation */
.page--about .about-hero-tab {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  animation: slideUpFade 0.8s ease-out 0.3s forwards;
}

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

/* Hero tab tags stagger */
.page--about .about-hero-tab__tags li {
  opacity: 0;
  transform: translateX(-20px);
  animation: slideInRight 0.5s ease-out forwards;
}

.page--about .about-hero-tab__tags li:nth-child(1) { animation-delay: 0.5s; }
.page--about .about-hero-tab__tags li:nth-child(2) { animation-delay: 0.6s; }
.page--about .about-hero-tab__tags li:nth-child(3) { animation-delay: 0.7s; }

/* Section heading for about page */
.page--about .section-heading {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.page--about .section-heading.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion for about page */
@media (prefers-reduced-motion: reduce) {
  .page--about .content-panel,
  .page--about .content-panel h3,
  .page--about .content-panel ul li,
  .page--about .about-hero-tab,
  .page--about .about-hero-tab__tags li,
  .page--about .section-heading {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
}

/* Form validation styles */
.contact-form input.error,
.contact-form textarea.error {
  border-color: #e74c3c;
  background: rgba(231, 76, 60, 0.05);
  animation: shake 0.3s ease-in-out;
}

.contact-form input.error:focus,
.contact-form textarea.error:focus {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.contact-captcha input.error {
  border-color: #e74c3c;
  animation: shake 0.3s ease-in-out;
}

.contact-captcha input.error:focus {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Loading state for submit button */
.button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.button:disabled:hover {
  background: var(--color-accent);
  color: var(--color-surface);
  transform: none !important;
}

.form-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.55;
}

.contact-captcha {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  margin-top: 0.15rem;
}

.contact-captcha__header {
  display: contents;
}

.contact-captcha__header > div {
  display: contents;
}

.contact-captcha__header .contact-panel__label,
.contact-captcha__note {
  display: none;
}

.contact-captcha__note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0.35rem 0 0;
}

.contact-captcha__refresh {
  order: 3;
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  background: transparent;
  color: var(--color-accent);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.contact-captcha__refresh:hover {
  background: var(--color-accent);
  color: var(--color-surface);
  transform: rotate(90deg);
}

.contact-captcha__refresh:active {
  transform: rotate(180deg) scale(0.95);
}

.contact-captcha__challenge {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-title);
  padding: 0;
  margin: 0;
  white-space: nowrap;
  display: inline;
  order: 1;
}

.contact-captcha label {
  display: contents;
}

.contact-captcha label > span {
  display: none;
}

.contact-captcha input {
  order: 2;
  width: 50px;
  height: 50px;
  min-width: 0;
  padding: 0;
  margin: 0 0.5rem;
  text-align: center;
  border: 2px solid var(--color-accent);
  background: transparent;
  font: inherit;
  font-weight: 700;
  color: var(--color-text-title);
  transition: all 0.2s ease;
  border-radius: 8px;
  line-height: 50px;
  box-sizing: border-box;
}

.contact-captcha input:focus {
  outline: none;
  border-color: var(--color-accent);
  background: transparent;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.contact-captcha input:hover {
  background: transparent;
  border-color: var(--color-accent);
}

.contact-captcha input::placeholder {
  color: transparent;
}

@media (max-width: 520px) {
  .contact-captcha {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-captcha__challenge {
    text-align: center;
  }

  .contact-captcha input {
    width: 60px;
    height: 60px;
    line-height: 60px;
    margin: 0.5rem auto;
  }

  .contact-captcha__refresh {
    width: 40px;
    height: 40px;
    margin: 0.5rem auto;
  }
}

.map.section {
  padding-top: clamp(2rem, 6vw, 4rem);
}

.contact-main .map.section {
  padding-top: 0;
  padding-bottom: 0;
  width: 100%;
  min-width: 0;
  margin-top: 0;
}

.contact-main .map.section .section-heading {
  margin-bottom: 1.75rem;
  max-width: 100%;
}

.contact-main .map.section .section-heading h2 {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-heading .eyebrow {
  margin-bottom: 1rem;
}

.section-heading h2 {
  margin: 0;
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.map-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.25rem 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: box-shadow 0.35s var(--ease-in-out);
}

.map-card:hover {
  box-shadow: var(--shadow-hover);
}

.map-card .contact-panel__label {
  margin-bottom: 1rem;
}

.map-card iframe {
  display: block;
  width: 100%;
  height: 340px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--color-surface-alt);
}

/* One card per branch: map + office details */
.branch-locations {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  align-items: stretch;
  justify-items: center;
}

.branch-location {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 400px;
  width: 100%;
  box-shadow: var(--shadow-default);
  transition:
    transform 0.3s var(--ease-in-out),
    box-shadow 0.3s var(--ease-in-out);
}

.branch-location:hover {
  box-shadow: var(--shadow-hover);
}

.branch-location__map {
  position: relative;
  flex-shrink: 0;
  background: var(--color-surface-alt);
  border-bottom: 1px solid var(--color-divider);
}

.branch-location__map iframe {
  display: block;
  width: 100%;
  height: 200px;
  border: 0;
  background: var(--color-surface-alt);
}

.branch-location__details {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.branch-location .office-card.contact-panel {
  flex: 1;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 1rem 1.25rem 1.25rem;
}

.branch-location .office-card.contact-panel::before {
  display: none;
}

.branch-location .office-card.contact-panel:hover {
  border-color: transparent;
  box-shadow: none;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-form .button--primary {
    align-self: stretch;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .map-grid {
    grid-template-columns: 1fr;
  }

  .branch-locations {
    grid-template-columns: 1fr;
  }

  .branch-location {
    max-width: 100%;
  }

  .office-grid {
    grid-template-columns: 1fr;
  }

  .contact-captcha__header {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-captcha__refresh {
    align-self: flex-start;
  }
}

html[dir="rtl"] .contact-captcha__header {
  flex-direction: row-reverse;
}

@media (max-width: 768px) {
  html[dir="rtl"] .contact-captcha__header {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Footer Rendering */
/* Footer Rendering - Global Premium Refinement */
.site-footer {
  background: #0f172a; /* Deep Slate Background for Premium Feel */
  color: rgba(255, 255, 255, 0.6);
  padding: 5rem 0 3rem; /* Thinned Padding */
  margin-top: 4rem; /* Further reduced from 8rem */
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-accent), transparent);
  opacity: 0.3;
}

.site-footer__grid {
  width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 4rem; /* Slightly tighter gap */
  position: relative;
  z-index: 2;
}

.site-footer__title {
  font-family: var(--font-heading);
  color: #ffffff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem; /* Reduced from 2.5rem */
  font-weight: 800;
  display: block;
  opacity: 0.9;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.9rem;
  font-weight: 500;
}

.site-footer a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.site-footer__list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.site-footer__list li {
  font-size: 0.9rem;
  line-height: 1.5;
  display: flex;
  align-items: center;
}

/* Brand Column Enhancement */
.site-footer__column--brand .brand {
  margin-bottom: 1.5rem;
  display: inline-flex;
}

.site-footer__column--brand .brand img {
  width: 2.15rem;   /* Match header exactly */
  height: 2.15rem;
  border-radius: 6px; /* Match header exactly */
  object-fit: cover;
  /* No filter — show natural logo color like the header */
}

.site-footer__column--brand .brand__copy strong {
  color: #ffffff;
  font-size: 1.05rem; /* Match header exactly */
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-footer__lead {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 2rem; /* Reduced from 2.5rem */
  color: rgba(255, 255, 255, 0.5);
  max-width: 320px;
}

.site-footer__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.site-footer__actions a {
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-footer__actions a:hover {
  background: #ffffff;
  color: #0f172a;
  border-color: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Footer app badges: slim rail under email / WhatsApp */
.site-footer__apps {
  --footer-app-ease: cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  width: fit-content;
  max-width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 0 rgba(212, 175, 55, 0.28);
  animation: footerAppsRailIn 0.65s var(--footer-app-ease) both;
}

@keyframes footerAppsRailIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-footer .site-footer__apps a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  line-height: 0;
  padding: 0.45rem 0.6rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    transform 0.35s var(--footer-app-ease),
    border-color 0.35s var(--footer-app-ease),
    background 0.35s var(--footer-app-ease),
    box-shadow 0.35s var(--footer-app-ease);
}

.site-footer .site-footer__apps a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 40%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 60%
  );
  transform: translateX(-100%);
  transition: transform 0.6s var(--footer-app-ease);
  pointer-events: none;
}

.site-footer .site-footer__apps a:hover::before {
  transform: translateX(100%);
}

.site-footer .site-footer__apps a:hover {
  color: inherit;
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(212, 175, 55, 0.15);
}

.site-footer .site-footer__apps a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.site-footer .site-footer__apps img {
  position: relative;
  z-index: 1;
  height: 36px;
  width: auto;
  max-width: 100%;
  display: block;
  border-radius: 6px;
  transition: transform 0.35s var(--footer-app-ease);
}

.site-footer .site-footer__apps a:hover img {
  transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
  .site-footer__apps {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .site-footer .site-footer__apps a::before {
    display: none;
  }

  .site-footer .site-footer__apps a:hover {
    transform: none;
  }

  .site-footer .site-footer__apps a:hover img {
    transform: none;
  }
}

html[dir="rtl"] .site-footer__apps {
  justify-content: flex-end;
}

html[dir="rtl"] .site-footer .site-footer__apps a::before {
  transform: translateX(100%);
}

html[dir="rtl"] .site-footer .site-footer__apps a:hover::before {
  transform: translateX(-100%);
}

.site-footer__bottom {
  width: var(--content-width);
  margin: 4rem auto 0; /* Reduced from 6rem */
  padding-top: 2rem; /* Thinned from 3rem */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

.site-footer__legal {
  max-width: 50%;
}

@media (max-width: 1024px) {
  .site-footer { padding: 6rem 0 3rem; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .site-footer__bottom { flex-direction: column; gap: 1.5rem; text-align: center; }
  .site-footer__legal { max-width: 100%; }
}

@media (max-width: 640px) {
  .site-footer__grid { grid-template-columns: 1fr; text-align: center; }
  .site-footer__column--brand .brand,
  .site-footer__actions,
  .site-footer__apps {
    justify-content: center;
  }
  .site-footer__column--brand .site-footer__apps {
    margin-inline: auto;
  }
  .site-footer__lead { margin-inline: auto; }
  .site-footer a:hover { transform: translateY(-2px); }
  .site-footer .site-footer__apps a:hover {
    transform: translateY(-2px);
  }
}

/* Partners & Collections Components */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* All 3 partners on the same line */
  gap: 1.5rem;
  margin-top: 3rem;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.partner-card,
.collection-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0;
  transition: all var(--transition-default);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.partner-card:hover,
.collection-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-accent);
}

.partner-card__media {
  height: 180px; /* Compact height to fit 3 in a line */
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-alt);
  border-bottom: 1px solid var(--color-divider);
  transition: all 0.5s var(--ease-in-out);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .partner-card__media {
  background: rgba(15, 23, 42, 0.3);
}

.partner-card:hover .partner-card__media {
  background: white;
}

.partner-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) opacity(0.35);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, filter;
}

/* Compact padding for the body below the smaller image */
.partner-card__body {
  padding: 1.75rem;
}

.partner-card:hover .partner-card__media img {
  filter: grayscale(0) opacity(1);
  transform: scale(1.1);
}

.partner-card:hover .partner-card__media img {
  filter: grayscale(0) opacity(1);
  transform: scale(1.05);
}

.partner-card__body span {
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  display: block;
  margin-bottom: 0.75rem;
}

.partner-card__body h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.partner-card__body p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.partner-card__actions {
  margin-top: 1.5rem;
}

.partner-card__link {
  padding: 0.6rem 2rem !important;
  font-size: 0.75rem !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Collection Card Premium Overrides */
.collection-card {
  padding: 0;
  min-height: 480px; /* Increased for deeper visual impact */
  justify-content: flex-end;
  background: var(--color-primary);
}

.collection-card__backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.collection-card__backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.collection-card:hover .collection-card__backdrop img {
  transform: scale(1.1);
  opacity: 0.7;
}

.collection-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 20%, rgba(15, 23, 42, 0.95) 100%);
  z-index: 2;
}

.collection-card__content {
  position: relative;
  z-index: 3;
  padding: 3.5rem 2.5rem;
  color: white;
  width: 100%;
}

.collection-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: auto;
  position: absolute;
  top: 2.5rem;
  left: 2.5rem;
  right: 2.5rem;
}

.collection-card__badge {
  background: var(--color-accent);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 99px;
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.collection-card__meta {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.collection-card h3 {
  color: white;
  font-size: 2.25rem; /* Large, authoritative heading */
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.collection-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.collection-card__button,
.collection-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: white;
  color: var(--color-primary);
  border-radius: 99px;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.4s var(--ease-in-out);
  border: none;
  cursor: pointer;
}

.collection-card:hover .collection-card__button,
.collection-card:hover .collection-card__link {
  background: var(--color-accent);
  color: white;
  transform: translateX(10px);
}

html[dir="rtl"] .collection-card:hover .collection-card__button,
html[dir="rtl"] .collection-card:hover .collection-card__link {
  transform: translateX(-10px);
}

/* Catalog Overrides */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0;
  transition: all var(--transition-default);
  overflow: hidden;
  height: 100%;
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-accent);
}

.product-card__button {
  width: 100%;
  height: 100%;
  text-align: inherit;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.product-card__media {
  height: 220px; /* Reduced for more compact product cards */
  width: 100%;
  background: #ffffff; /* Use pure white for clean product blending */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0; 
  transition: all 0.5s var(--ease-in-out);
  position: relative;
  overflow: hidden; 
}

[data-theme="dark"] .product-card__media {
  background: rgba(15, 23, 42, 0.3);
}

.product-card:hover .product-card__media {
  background: white;
}

[data-theme="dark"] .product-card:hover .product-card__media {
  background: rgba(255, 255, 255, 0.03);
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, filter;
  image-rendering: -webkit-optimize-contrast; /* Sharpness enhancement */
}

.product-card:hover .product-card__media img {
  transform: scale(1.15) translateY(-5px); /* Stronger hover prominence */
  filter: contrast(1.02) saturate(1.05); /* Subtle pop enhancement */
}

.product-card:hover .product-card__media img {
  transform: scale(1.1);
}

.product-card__body {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-card__meta {
  font-size: 0.7rem;
  color: var(--color-accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.product-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.product-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 4rem;
    text-align: center;
  }

  .hero__lede {
    margin: 0 auto 3rem;
  }

  .hero-tags,
  .hero__actions,
  .hero__stats {
    justify-content: center;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* Widgets: Chatbot (Bottom Right) & WhatsApp (Bottom Left) */
.chatbot,
.whatsapp-widget {
  position: fixed;
  bottom: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chatbot {
  right: 2rem;
  align-items: flex-end;
}

.whatsapp-widget {
  left: 2rem;
  align-items: flex-start;
}

/* Launchers - Clean Minimalist Setup */
.chatbot__launcher,
.whatsapp-launcher {
  width: 3.8rem;
  height: 3.8rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  color: var(--color-primary);
  position: relative;
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: widgetFloatVivid 3s infinite ease-in-out;
  box-shadow: none; /* Shadow deleted as requested */
}

.chatbot__launcher {
  border: 1px solid #000; /* Decreased from 2px */
}



/* Floating Animation (No Shadow) */
@keyframes widgetFloatVivid {
  0%, 100% { 
    transform: translateY(0); 
  }
  50% { 
    transform: translateY(-20px); 
  }
}

/* Radiant Beacon Pulse (Softened significantly) */
.chatbot__launcher::before,
.whatsapp-launcher::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  background: inherit;
  z-index: -1;
  opacity: 0.2; /* Softened from 0.5 */
  animation: beaconPulse 3s infinite ease-out;
}

@keyframes beaconPulse {
  0% { transform: scale(1); opacity: 0.3; } /* Start more subtle */
  100% { transform: scale(1.4); opacity: 0; } /* Reduced from 1.8x to 1.4x for a tighter glow */
}

.whatsapp-launcher {
  background: #25D366;
  color: white;
  border: none;
}

.chatbot__launcher:hover,
.whatsapp-launcher:hover {
  transform: scale(1.2) rotate(12deg) !important;
  animation-play-state: paused; /* Pause float so hover is steady */
  box-shadow: none !important;
}

.chatbot__launcher-icon,
.whatsapp-launcher img {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
}

.chatbot__launcher-label {
  display: none;
}

/* Hide text label for icon-only look */

/* Panels */
.chatbot__panel,
.whatsapp-panel {
  position: absolute;
  bottom: 4.5rem;
  width: min(360px, 85vw);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: panelSlide 0.4s var(--ease-in-out);
}

.chatbot__panel {
  right: 0;
  transform-origin: bottom right;
}

.whatsapp-panel {
  left: 0;
  transform-origin: bottom left;
}

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

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* --- Catalog UI & Toolbar --- */
.section--collection-context {
  padding-bottom: 2rem;
}

.catalog.section {
  padding-top: 2rem;
}

.catalog-toolbar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 4rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 2.5rem 3.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.04);
  position: relative;
  z-index: 10;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  transition: all 0.4s var(--ease-in-out);
}

[data-theme="dark"] .catalog-toolbar {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(255, 255, 255, 0.05);
}

@media (max-width: 1024px) {
  .catalog-toolbar {
    padding: 1.5rem 2rem;
    gap: 1.5rem;
  }
}

.filter-group {
  display: flex;
  gap: 2.5rem;
  border-bottom: 1px solid var(--color-divider);
  padding-bottom: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-group::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  background: none;
  border: none;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.4s var(--ease-in-out);
  white-space: nowrap;
}

.filter-chip:hover {
  color: var(--color-primary);
}

.filter-chip.is-active {
  color: var(--color-primary);
}

.filter-chip.is-active::after {
  content: "";
  position: absolute;
  bottom: -1rem;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-accent);
}

.filter-chip__label {
  transition: transform 0.3s ease;
}

.filter-chip.is-active .filter-chip__label {
  transform: translateY(-2px);
}

.filter-chip__count {
  font-size: 0.7rem;
  background: var(--color-surface-alt);
  color: var(--color-text-muted);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 900;
  transition: all 0.4s var(--ease-in-out);
}

.filter-chip.is-active .filter-chip__count {
  background: var(--color-primary);
  color: white;
}

.search-field {
  flex: 1;
  max-width: 500px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.search-field__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.search-field::after {
  content: "🔍";
  position: absolute;
  left: 1.5rem;
  bottom: 0.85rem;
  font-size: 1.25rem;
  pointer-events: none;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.search-field:focus-within::after {
  opacity: 1;
}

html[dir="rtl"] .search-field::after {
  left: auto;
  right: 1.5rem;
}

#catalog-search {
  width: 100%;
  padding: 1.1rem 1.5rem 1.1rem 3.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-divider);
  background: var(--color-surface-alt);
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  transition: all 0.4s var(--ease-in-out);
}

html[dir="rtl"] #catalog-search {
  padding: 1.1rem 3.75rem 1.1rem 1.5rem;
}

#catalog-search:focus {
  outline: none;
  border-color: var(--color-accent);
  background: white;
  box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.1);
}

.catalog-status {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-divider);
  margin-bottom: 3.5rem;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.catalog-status strong {
  color: var(--color-primary);
  font-weight: 800;
}

/* --- Product Preview Modal --- */
.product-modal {
  width: min(1100px, 95vw);
  max-height: 90vh;
  border: none;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: 0 60px 140px rgba(15, 23, 42, 0.35);
  padding: 0;
  overflow-y: auto;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  z-index: 1000;
}

.product-modal::backdrop {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.product-modal__close {
  position: absolute;
  top: 2.5rem;
  right: 2.5rem;
  z-index: 1010;
  background: white;
  border: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--color-primary);
}

.product-modal__close:hover {
  transform: rotate(90deg) scale(1.1);
  background: var(--color-accent);
  color: white;
}

@media (min-width: 900px) {
  .product-modal {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    overflow: hidden;
  }
}

.product-modal__media {
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem; /* Minimized padding to fill 'all space' */
  border-right: 1px solid var(--color-divider);
  position: relative;
}

[data-theme="dark"] .product-modal__media {
  background: rgba(15, 23, 42, 0.5);
}

html[dir="rtl"] .product-modal__media {
  border-right: none;
  border-left: 1px solid var(--color-divider);
}

.product-modal__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-modal__body {
  padding: 6rem 5rem;
  display: flex;
  flex-direction: column;
}

.product-modal__body h3 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.product-modal__line {
  font-size: 1.1rem;
  color: var(--color-accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 3rem;
}

.product-modal__description {
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--color-text-muted);
}

/* Chatbot Profile Form Styling */
.chatbot__profile-gate {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 0.5rem 0;
}

.chatbot__profile {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.chatbot__profile-copy {
  text-align: center;
  margin-bottom: 0.5rem;
}

.chatbot__profile-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 0.5rem;
}

.chatbot__profile-intro {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

.chatbot__profile-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chatbot__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.chatbot__field span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-title);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.chatbot__profile-input {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-alt);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--color-text);
  transition: all 0.25s ease;
}

.chatbot__profile-input:focus {
  outline: none;
  border-color: var(--color-accent);
  background: white;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.chatbot__profile-input::placeholder {
  color: var(--color-text-muted);
  opacity: 0.6;
}

.chatbot__profile-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.chatbot__profile-actions .button {
  padding: 0.6rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Chatbot Suggestions Enhancement */
.chatbot__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem 0;
  margin-bottom: 0.5rem;
}

.chatbot__chip {
  background: transparent;
  border: 1.5px solid var(--color-border);
  border-radius: 99px;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

.chatbot__chip:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
  transform: translateY(-2px);
}

/* Dark Mode Chatbot Profile */
[data-theme="dark"] .chatbot__profile-gate {
  background: rgba(30, 41, 59, 0.5);
}

[data-theme="dark"] .chatbot__profile-input {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
  color: white;
}

[data-theme="dark"] .chatbot__profile-input:focus {
  background: rgba(15, 23, 42, 0.8);
  border-color: var(--color-accent);
}

[data-theme="dark"] .chatbot__field span {
  color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .chatbot__chip {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .chatbot__chip:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
}

/* RTL Support for Chatbot Profile */
html[dir="rtl"] .chatbot__profile-actions {
  justify-content: flex-start;
}

/* Enhanced Chatbot Panel */
.chatbot__panel {
  max-height: 600px;
  display: flex;
  flex-direction: column;
}

.chatbot__body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Enhanced Chatbot Header */
.chatbot__header {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, #1e293b 100%);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.chatbot__header > div:first-child {
  flex: 1;
}

.chatbot__eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.35rem;
  color: var(--color-accent);
}

.chatbot__intro {
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0;
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.8);
}

.chatbot__header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.chatbot__profile-trigger,
.chatbot__close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s ease;
  font-family: inherit;
}

.chatbot__close {
  font-size: 1.25rem;
  padding: 0.35rem 0.6rem;
  line-height: 1;
}

.chatbot__profile-trigger:hover,
.chatbot__close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

/* Enhanced Chatbot Messages */
.chatbot__messages {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.5rem 0;
}

.chatbot__message {
  max-width: 88%;
  padding: 1rem 1.25rem;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.65;
  animation: messageSlide 0.35s ease-out;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

@keyframes messageSlide {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Welcome message special styling */
.chatbot__message--assistant:first-child {
  background: linear-gradient(135deg, var(--color-surface-alt) 0%, #f8fafc 100%);
  border: 1px solid var(--color-border);
  font-weight: 500;
}

.chatbot__message--assistant {
  background: var(--color-surface-alt);
  color: var(--color-text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border-top-left-radius: 18px;
}

.chatbot__message--user {
  background: linear-gradient(135deg, var(--color-accent) 0%, #c9a84c 100%);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  border-top-right-radius: 18px;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Message content enhancement */
.chatbot__message p {
  margin: 0;
  line-height: 1.7;
}

.chatbot__message strong {
  color: var(--color-accent);
  font-weight: 700;
}

.chatbot__message--user strong {
  color: white;
  font-weight: 700;
}

/* Links in messages */
.chatbot__message a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.chatbot__message a:hover {
  opacity: 0.8;
}

.chatbot__message--user a {
  color: white;
  text-decoration: underline;
}

/* Lists in messages */
.chatbot__message ul,
.chatbot__message ol {
  margin: 0.75rem 0;
  padding-left: 1.25rem;
}

.chatbot__message li {
  margin: 0.4rem 0;
  line-height: 1.6;
}

/* Enhanced Chatbot Composer */
.chatbot__composer {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--color-border);
  background: linear-gradient(to bottom, var(--color-surface) 0%, var(--color-surface-alt) 100%);
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}

.chatbot__input {
  flex: 1;
  padding: 1rem 1.25rem;
  border: 2px solid var(--color-border);
  border-radius: 24px;
  background: white;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-text);
  resize: none;
  min-height: 48px;
  max-height: 140px;
  transition: all 0.3s ease;
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.chatbot__input:focus {
  outline: none;
  border-color: var(--color-accent);
  background: white;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.chatbot__input::placeholder {
  color: var(--color-text-muted);
  opacity: 0.7;
  font-style: italic;
}

/* Send button enhancement */
.chatbot__send {
  padding: 1rem 1.5rem;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--color-accent) 0%, #c9a84c 100%);
  border: none;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.chatbot__send:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.chatbot__send:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

/* Typing Indicator */
.chatbot__typing {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.75rem 1rem;
  background: var(--color-surface-alt);
  border-radius: var(--radius-lg);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.chatbot__typing-dots {
  display: flex;
  gap: 0.2rem;
}

.chatbot__typing-dots span {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.chatbot__typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.chatbot__typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

/* Panel Header */
.chatbot__header,
.whatsapp-header {
  padding: 1.5rem;
  background: var(--color-primary);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.whatsapp-header {
  background: #128C7E;
}

.chatbot__eyebrow,
.whatsapp-eyebrow {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0 0 0.25rem;
}

.chatbot__intro,
.whatsapp-intro {
  font-size: 0.75rem;
  opacity: 0.8;
  margin: 0;
  line-height: 1.4;
}

.chatbot__close,
.whatsapp-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.chatbot__close:hover,
.whatsapp-close:hover {
  opacity: 1;
}

/* Panel Body */
.chatbot__body,
.whatsapp-body {
  padding: 1.5rem;
  flex: 1;
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chatbot__message,
.whatsapp-bubble {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  line-height: 1.5;
}

.chatbot__message--assistant,
.whatsapp-bubble {
  background: var(--color-surface-alt);
  color: var(--color-text-main);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chatbot__message--user {
  background: var(--color-primary);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

/* Composer */
.chatbot__composer,
.whatsapp-composer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--color-divider);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.chatbot__input,
.whatsapp-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.875rem;
  resize: none;
  padding: 0.5rem 0;
  max-height: 80px;
}

.chatbot__input:focus,
.whatsapp-input:focus {
  outline: none;
}

.chatbot__send,
.whatsapp-send {
  padding: 0.5rem 1rem !important;
  font-size: 0.75rem !important;
}

/* RTL Support for Widgets */
html[dir="rtl"] .chatbot {
  left: 2rem;
  right: auto;
  align-items: flex-start;
}

html[dir="rtl"] .whatsapp-widget {
  right: 2rem;
  left: auto;
  align-items: flex-end;
}

html[dir="rtl"] .chatbot__panel {
  left: 0;
  right: auto;
  transform-origin: bottom left;
}

html[dir="rtl"] .whatsapp-panel {
  right: 0;
  left: auto;
  transform-origin: bottom right;
}

.site-header .container {
  max-width: var(--content-width);
  margin: 0 auto;
  width: 100%;
  padding: 0 1rem;
}

/* ==========================================================================
   FINAL MENU & DROPDOWN STABILITY (CLICK-BASED)
   ========================================================================== */

.auth-dropdown {
  position: relative !important;
  display: inline-flex !important;
  overflow: visible !important;
  z-index: 5000 !important; /* Extremely high z-index */
}

.auth-dropdown-toggle {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0.6rem 1.25rem !important;
  border-radius: 999px !important;
  background: rgba(15, 23, 42, 0.05) !important;
  color: var(--color-text-main) !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  cursor: pointer !important;
  border: 1.5px solid transparent !important;
  transition: all 0.2s ease !important;
}

.auth-dropdown-toggle:hover {
  background: rgba(15, 23, 42, 0.08) !important;
}

.auth-dropdown-toggle::after {
  content: "▾" !important;
  font-size: 0.8rem !important;
  margin-left: 4px !important;
}

.auth-dropdown-menu {
  display: none !important;
  position: absolute !important;
  top: 100% !important;
  margin-top: 10px !important;
  right: 0 !important;
  min-width: 180px !important;
  background: white !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 1.25rem !important;
  padding: 0.5rem !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
  z-index: 5001 !important;
  flex-direction: column !important;
  gap: 4px !important;
  overflow: visible !important;
}

.auth-dropdown-menu.is-open {
  display: flex !important;
}

.auth-dropdown-item {
  display: block !important;
  padding: 0.75rem 1.25rem !important;
  color: var(--color-text-main) !important;
  text-decoration: none !important;
  border-radius: 0.75rem !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
  text-align: left !important;
}

.auth-dropdown-item:hover {
  background: var(--color-surface-alt) !important;
  color: var(--color-accent) !important;
}

/* Dark Mode */
[data-theme="dark"] .auth-dropdown-menu {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* RTL */
[dir="rtl"] .auth-dropdown-menu { right: auto !important; left: 0 !important; }
[dir="rtl"] .auth-dropdown-item { text-align: right !important; }
[dir="rtl"] .auth-dropdown-toggle::after { margin-left: 0 !important; margin-right: 4px !important; }

/* Site Header Overflow Fix */
.site-header, .site-header .container, .header-layout, #auth-nav-links {
  overflow: visible !important;
}

/* Checkbox & Captcha Stability */
.checkbox-group {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  white-space: nowrap !important;
  margin: 1.5rem 0 !important;
}
.checkbox-group label { font-size: 0.75rem !important; margin: 0 !important; }
.captcha-visual-wrapper { display: flex !important; align-items: center !important; gap: 15px !important; border: 2px solid var(--color-accent) !important; padding: 10px !important; border-radius: 12px !important; background: white !important; }

/* Enhanced Captcha UI */
.contact-captcha {
  background: rgba(15, 23, 42, 0.02) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 1.5rem !important;
  padding: 2rem !important;
  margin: 2rem 0 !important;
}

[data-theme="dark"] .contact-captcha {
 background: rgba(255, 255, 255, 0.03) !important;
}

.captcha-visual-wrapper, .contact-captcha__challenge {
 display: flex !important;
 align-items: center !important;
 gap: 1.5rem !important;
 margin: 1.5rem 0 !important;
}

#captcha-svg-container svg {
 width: 250px !important;
 height: 100px !important;
 border-radius: 1rem !important;
 background: white !important;
 box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
 border: 2px solid var(--color-accent) !important;
}

.contact-captcha__refresh, #refresh-captcha {
 width: 50px !important;
 height: 50px !important;
 border-radius: 50% !important;
 background: var(--color-accent) !important;
 color: white !important;
 border: none !important;
 font-size: 1.5rem !important;
 cursor: pointer !important;
 display: flex !important;
 align-items: center !important;
 justify-content: center !important;
 transition: transform 0.3s ease !important;
}

.contact-captcha__refresh:hover, #refresh-captcha:hover {
 transform: rotate(180deg) !important;
 background: var(--color-accent-dark) !important;
}

#contact-captcha-answer, #login-captcha, #reg-captcha {
 font-size: 1.25rem !important;
 letter-spacing: 0.25rem !important;
 text-align: center !important;
 font-weight: 800 !important;
 text-transform: uppercase !important;
}


/* --- Enhanced Auth UI/UX --- */

.auth-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 100px);
  padding: 4rem 1rem;
}

.auth-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 650px;
  padding: 3.5rem;
  box-shadow: 
    0 10px 25px -5px rgba(0, 0, 0, 0.05),
    0 25px 50px -12px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

[data-theme="dark"] .auth-card {
 background: rgba(30, 41, 59, 0.7);
 border-color: rgba(255, 255, 255, 0.1);
 box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.auth-card::before {
  content: "";
 position: absolute;
 top: 0;
 left: 0;
 right: 0;
 height: 4px;
 background: linear-gradient(90deg, var(--color-accent), #fcd34d);
}

.auth-card__header {
 text-align: center;
 margin-bottom: 3rem;
}

.auth-card__header h2 {
 font-size: 2.5rem;
 margin-bottom: 1rem;
}

.auth-info {
 color: var(--color-text-muted);
 font-size: 1rem;
 max-width: 400px;
 margin: 0 auto;
}

.form-group {
 margin-bottom: 1.75rem;
 display: flex;
 flex-direction: column;
 gap: 0.6rem;
}

.form-group label {
 font-weight: 600;
 font-size: 0.9rem;
 color: var(--color-text-title);
 display: flex;
 align-items: center;
 gap: 0.5rem;
}

.input-group {
 position: relative;
 display: flex;
 align-items: center;
}

.input-group .icon {
 position: absolute;
 left: 1.1rem;
 color: var(--color-text-muted);
 width: 1.25rem;
 height: 1.25rem;
 display: flex;
 align-items: center;
 justify-content: center;
 pointer-events: none;
 transition: color 0.3s ease;
}

.input-group input {
 padding-left: 3.2rem !important;
}

[dir="rtl"] .input-group .icon {
  left: auto;
  right: 1.1rem;
}

[dir="rtl"] .input-group input {
  padding-left: 1.1rem !important;
  padding-right: 3.2rem !important;
}

.input-group input:focus + .icon {
 color: var(--color-accent);
}

.captcha-visual-wrapper {
 background: var(--color-surface-alt);
 border: 1px solid var(--color-border);
 border-radius: var(--radius-md);
 padding: 1rem;
 display: flex;
 align-items: center;
 gap: 1rem;
 margin-bottom: 1rem;
}

#captcha-svg-container {
 flex: 1;
 display: flex;
 justify-content: center;
 background: white;
 border-radius: var(--radius-sm);
 padding: 0.5rem;
}

.checkbox-group {
 flex-direction: row !important;
 align-items: flex-start !important;
 gap: 0.75rem !important;
 margin-top: 1rem;
}

.checkbox-group input[type="checkbox"] {
 width: 1.2rem;
 height: 1.2rem;
 margin-top: 0.2rem;
 cursor: pointer;
 accent-color: var(--color-accent);
}

.checkbox-group label {
 font-weight: 500 !important;
 font-size: 0.85rem !important;
 color: var(--color-text-muted) !important;
 line-height: 1.4;
 cursor: pointer;
}

.checkbox-group a {
 color: var(--color-accent);
 text-decoration: none;
 font-weight: 600;
}

.checkbox-group a:hover {
 text-decoration: underline;
}

.auth-footer {
 text-align: center;
 margin-top: 2rem;
 font-size: 0.95rem;
 color: var(--color-text-muted);
}

.auth-footer a {
 color: var(--color-accent);
 font-weight: 700;
 text-decoration: none;
}

.auth-footer a:hover {
 text-decoration: underline;
}

/* Premium Button Overrides for Auth */
.auth-card .button--primary {
 width: 100%;
 height: 3.5rem;
 font-size: 1rem;
 letter-spacing: 0.05em;
 background: linear-gradient(135deg, var(--color-primary) 0%, #334155 100%);
 border: none;
 margin-top: 1rem;
}

.auth-card .button--primary:hover {
 background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
 box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
}

@media (max-width: 640px) {
 .auth-card {
 padding: 2rem 1.5rem;
 }
 
 .form-grid {
 grid-template-columns: 1fr !important;
 }
}


.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}


.auth-links {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
}

.auth-links a {
  font-size: 0.85rem;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}

.auth-links a:hover {
  text-decoration: underline;
}


/* --- Fixes for Checkbox and Labels --- */

.checkbox-group {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 0.75rem !important;
  text-align: left !important;
}

[dir="rtl"] .checkbox-group {
 text-align: right !important;
}

.checkbox-group label {
 display: block !important;
 flex-direction: row !important;
 margin: 0 !important;
 cursor: pointer !important;
 color: var(--color-text-muted) !important;
 font-weight: 500 !important;
}

.checkbox-group input[type="checkbox"] {
 flex-shrink: 0;
 margin-top: 0.25rem !important;
}


.input-group .icon svg {
  width: 100%;
  height: 100%;
}


.icon svg {
  width: 1em;
  height: 1em;
  fill: none;
}


.input-group .icon svg {
  width: 1.25rem !important;
  height: 1.25rem !important;
}


.input-group .icon {
  flex-shrink: 0;
}




/* --- CLEAN MOBILE NAVIGATION SYSTEM --- */
@media (max-width: 820px) {
  /* Prevent Background Scroll */
  body.nav-open {
    overflow: hidden !important;
  }

  /* Header Layout Reset */
  .site-header .header-layout {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.75rem 1rem !important;
    height: 70px !important;
  }

  /* Logo & Brand */
  .brand {
    order: 1 !important;
    flex: 1 !important;
  }

  /* Language & Theme Switchers */
  .header-settings {
    order: 2 !important;
    margin: 0 0.5rem !important;
    display: flex !important;
    gap: 0.5rem !important;
  }

  /* Menu Toggle Button */
  .menu-toggle {
    display: flex !important;
    order: 3 !important;
    position: relative !important;
    z-index: 10000 !important;
    width: 44px !important;
    height: 44px !important;
    background: var(--color-surface-alt) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: 12px !important;
    justify-content: center;
    align-items: center;
    cursor: pointer !important;
    pointer-events: auto !important;
  }

  /* Navigation Drawer */
  .site-nav {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: 300px !important;
    height: 100vh !important;
    background: var(--color-surface) !important;
    z-index: 9999 !important;
    flex-direction: column !important;
    padding: 100px 30px 40px !important;
    display: flex !important;
    transform: translateX(100%) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1) !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .nav-open .site-nav {
    transform: translateX(0) !important;
  }

  /* Background Overlay */
  .nav-open::after {
    content: "" !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0,0,0,0.4) !important;
    z-index: 9998 !important;
    display: block !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Links */
  .site-nav a {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    padding: 1rem 0 !important;
    color: var(--color-text-title) !important;
    border-bottom: 1px solid var(--color-divider) !important;
    width: 100% !important;
    text-align: left;
  }

  [dir="rtl"] .site-nav a {
    text-align: right;
  }

  .site-nav a.is-active {
    color: var(--color-accent) !important;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


/* --- FINAL CLEAN MOBILE SYSTEM --- */
@media (max-width: 820px) {
  body.nav-open { overflow: hidden !important; }

  .site-header .header-layout {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.75rem 1rem !important;
    height: 70px !important;
  }

  .menu-toggle {
    display: flex !important;
    order: 3 !important;
    position: relative !important;
    z-index: 10000 !important;
    width: 44px !important;
    height: 44px !important;
    background: var(--color-surface-alt) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: 12px !important;
    justify-content: center;
    align-items: center;
    cursor: pointer !important;
  }

  .site-nav {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: 300px !important;
    height: 100vh !important;
    background: var(--color-surface) !important;
    z-index: 9999 !important;
    flex-direction: column !important;
    padding: 100px 30px 40px !important;
    display: flex !important;
    transform: translateX(100%) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1) !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .nav-open .site-nav {
    transform: translateX(0) !important;
  }

  .nav-open::after {
    content: "" !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0,0,0,0.4) !important;
    z-index: 9998 !important;
    display: block !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .site-nav a {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    padding: 1rem 0 !important;
    color: var(--color-text-title) !important;
    border-bottom: 1px solid var(--color-divider) !important;
    width: 100% !important;
    text-align: left;
  }

  [dir="rtl"] .site-nav a { text-align: right; }
  .site-nav a.is-active { color: var(--color-accent) !important; }
}

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


/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}




.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 48px;
  height: 48px;
  cursor: pointer;
  position: relative;
  z-index: 1100;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.menu-toggle:hover {
  background-color: rgba(15, 23, 42, 0.05);
}

.hamburger {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--color-primary);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: background-color 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: "";
 display: block;
 width: 20px;
 height: 2px;
 background-color: var(--color-primary);
 position: absolute;
 left: 0;
 transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease;
}

.hamburger::before { top: -6px; }
.hamburger::after { bottom: -6px; }

/* Hamburger Animation */
.nav-open .hamburger {
 background-color: transparent !important;
}

.nav-open .hamburger::before {
 top: 0;
 transform: rotate(45deg);
}

.nav-open .hamburger::after {
 bottom: 0;
 transform: rotate(-45deg);
}

/* Mobile Responsive Adjustments */
@media (max-width: 820px) {
 .menu-toggle {
 display: flex;
 align-items: center;
 justify-content: center;
 order: 3;
 }

 .site-nav {
 position: fixed;
 top: 0;
 right: -100%;
 width: 280px;
 height: 100vh;
 background: var(--color-surface);
 flex-direction: column;
 justify-content: center;
 align-items: flex-start;
 padding: 8rem 3rem;
 gap: 1.5rem;
 box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
 transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
 z-index: 1050;
 display: flex !important; /* Override display: none from earlier */
 }

 .nav-open .site-nav {
 right: 0;
 }

 .nav-open::after {
  content: "";
 position: fixed;
 top: 0;
 left: 0;
 width: 100%;
 height: 100vh;
 background: rgba(15, 23, 42, 0.2);
 backdrop-filter: none;
 -webkit-backdrop-filter: none;
 z-index: 1040;
 animation: fadeIn 0.3s ease;
 }

 .site-nav a {
 font-size: 1.25rem;
 width: 100%;
 padding: 1rem 0;
 border-bottom: 1px solid var(--color-border);
 border-radius: 0;
 }

 .site-nav a:hover {
 background: transparent;
 color: var(--color-accent);
 }

 .header-settings {
 margin-right: 1rem;
 order: 2;
 }

 .brand {
 order: 1;
 flex: 1;
 }
}

/* Hero Typography Enhancement */
h1 {
 font-size: clamp(2.25rem, 8vw, 4rem) !important;
}

.hero__lede {
 font-size: clamp(1rem, 3vw, 1.125rem) !important;
}

@media (max-width: 640px) {
 .hero {
 padding-top: 10rem;
 padding-bottom: 4rem;
 }

 .hero__stats {
 flex-direction: column;
 gap: 2rem;
 padding: 2rem;
 width: calc(100% - 2rem);
 }

 .hero__stats li {
 width: 100%;
 }

 .hero__stats strong {
 font-size: 2.5rem;
 }

 .hero__actions {
 flex-direction: column;
 width: 100%;
 gap: 1rem;
 }

 .hero__actions .button {
 width: 100%;
 }
}

/* Animations */
@keyframes fadeIn {
 from { opacity: 0; }
 to { opacity: 1; }
}

/* Extra Media Query for small phones */
@media (max-width: 400px) {
 .header-settings .lang-switcher a, 
 .header-settings .theme-switcher button {
 padding: 0.4rem 0.6rem;
 font-size: 0.75rem;
 }
 
 .brand img {
 width: 1.75rem;
 height: 1.75rem;
 }
 
 .brand__copy strong {
 font-size: 0.95rem;
 }
}


/* --- Mobile Header UX Overrides --- */
@media (max-width: 820px) {
  .site-header .header-layout {
    flex-direction: row !important; /* Force row layout on mobile */
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.75rem 1.25rem !important;
    gap: 0.5rem !important;
  }

  .brand {
    flex: 1;
    justify-content: flex-start;
  }

  .header-settings {
    margin: 0 0.5rem !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    order: 2 !important;
  }

  .menu-toggle {
    order: 3 !important;
    margin-left: 0.25rem !important;
    display: flex !important;
    pointer-events: auto !important; /* Ensure clickability */
  }
  
  .site-header {
    height: auto !important;
    max-height: 80px;
  }
}


.menu-toggle {
  pointer-events: auto !important;
  cursor: pointer !important;
  z-index: 9999 !important;
  -webkit-tap-highlight-color: transparent;
}


.hamburger, .hamburger::before, .hamburger::after {
  pointer-events: none !important;
}


body.nav-open {
  overflow: hidden !important;
}

.nav-open .site-nav {
  right: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.site-nav {
  /* Ensure it has a base transition and visibility */
  visibility: hidden;
  opacity: 0;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s ease !important;
}

@media (min-width: 821px) {
  .site-nav {
    visibility: visible !important;
    opacity: 1 !important;
  }
}


/* --- Premium Mobile Menu Enhancements --- */
@media (max-width: 820px) {
  .site-nav {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6rem 2.5rem 3rem !important;
    width: 300px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    justify-content: flex-start !important;
  }

  [data-theme="dark"] .site-nav {
 background: rgba(15, 23, 42, 0.8) !important;
 border-left: 1px solid rgba(255, 255, 255, 0.05);
 }

 .site-nav a {
 font-size: 1.15rem !important;
 font-weight: 600 !important;
 color: var(--color-text-title) !important;
 padding: 1.25rem 0 !important;
 border-bottom: 1px solid var(--color-divider) !important;
 transition: all 0.3s ease !important;
 display: flex !important;
 align-items: center;
 justify-content: space-between;
 }

 .site-nav a::after {
  content: "→";
 font-family: serif;
 opacity: 0.3;
 transition: transform 0.3s ease;
 }

 [dir="rtl"] .site-nav a::after {
  content: "←";
 }

 .site-nav a:hover::after {
 transform: translateX(5px);
 opacity: 1;
 color: var(--color-accent);
 }

 .site-nav a.is-active {
 color: var(--color-accent) !important;
 border-bottom-color: var(--color-accent) !important;
 }

 #auth-nav-links {
 margin-top: 2rem;
 padding-top: 2rem;
 border-top: 2px solid var(--color-divider);
 width: 100%;
 }

 .auth-dropdown-toggle {
 background: var(--color-surface-alt) !important;
 padding: 1rem 1.5rem !important;
 border-radius: var(--radius-md) !important;
 font-weight: 700 !important;
 text-align: center;
 color: var(--color-primary) !important;
 border: 1px solid var(--color-border) !important;
 }


}


/* --- Mobile Menu Fixes for Blur and Interaction --- */
@media (max-width: 820px) {
  .site-nav {
    background: var(--color-surface) !important; /* Solid background to avoid text blur issues */
    backdrop-filter: none !important;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.1) !important;
    z-index: 2100 !important; /* Above everything including chatbot */
  }

  .nav-open::after {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 2050 !important;
  }

  .menu-toggle {
    z-index: 2200 !important; /* Highest z-index to ensure it is always clickable */
  }

  .site-nav a {
    opacity: 1 !important;
    filter: none !important;
  }
}


/* --- ULTRA ROBUST MOBILE UI --- */
@media (max-width: 820px) {
  /* Reset Header */
  .site-header .header-layout {
    flex-direction: row !important;
    justify-content: space-between !important;
    padding: 0.75rem 1rem !important;
    height: 70px !important;
  }

  /* Fixed Menu Toggle Position */
  .menu-toggle {
    display: flex !important;
    position: relative !important;
    z-index: 10000 !important;
    order: 3 !important;
    background: var(--color-surface-alt) !important;
    border: 1px solid var(--color-border) !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
  }

  /* Navigation Drawer */
  .site-nav {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 85% !important;
    max-width: 320px !important;
    height: 100vh !important;
    background: var(--color-surface) !important;
    z-index: 9999 !important;
    flex-direction: column !important;
    padding: 100px 30px 40px !important;
    display: flex !important;
    transition: right 0.3s ease-in-out !important;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1) !important;
    visibility: hidden;
  }

  .nav-open .site-nav {
    right: 0 !important;
    visibility: visible !important;
  }

  /* Overlay */
  .nav-open::after {
    content: "" !important;
 position: fixed !important;
 top: 0 !important;
 left: 0 !important;
 width: 100% !important;
 height: 100% !important;
 background: rgba(0,0,0,0.5) !important;
 z-index: 9998 !important;
 display: block !important;
 }

 /* Links in Drawer */
 .site-nav a {
 font-size: 1.25rem !important;
 font-weight: 700 !important;
 padding: 15px 0 !important;
 width: 100% !important;
 border-bottom: 1px solid var(--color-divider) !important;
 color: var(--color-text-title) !important;
 }

 .site-nav a.is-active {
 color: var(--color-accent) !important;
 }

 /* Settings re-ordering */
 .header-settings {
 order: 2 !important;
 background: transparent !important;
 border: none !important;
 padding: 0 !important;
 }

 .brand {
 order: 1 !important;
 flex: 1 !important;
 }
 
 body.nav-open {
 overflow: hidden !important;
 }
}



/* --- ULTRA ROBUST MOBILE UI (TRANSFORM VERSION) --- */
@media (max-width: 820px) {
  /* Parent Container Safety */
  #site-header, .site-header, .header-layout {
    overflow: visible !important;
  }

  /* Reset Header */
  .site-header .header-layout {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.75rem 1rem !important;
    height: 70px !important;
    gap: 0.5rem !important;
  }

  /* Fixed Menu Toggle Position */
  .menu-toggle {
    display: flex !important;
    position: relative !important;
    z-index: 10000 !important;
    order: 3 !important;
    background: var(--color-surface-alt) !important;
    border: 1px solid var(--color-border) !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    justify-content: center;
    align-items: center;
  }

  /* Navigation Drawer (Using Transforms) */
  .site-nav {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: 300px !important;
    height: 100vh !important;
    background: var(--color-surface) !important;
    z-index: 9999 !important;
    flex-direction: column !important;
    padding: 100px 30px 40px !important;
    display: flex !important;
    transform: translateX(100%) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1) !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .nav-open .site-nav {
    transform: translateX(0) !important;
  }

  /* Overlay */
  .nav-open::after {
    content: "" !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0,0,0,0.5) !important;
    z-index: 9998 !important;
    display: block !important;
    animation: fadeIn 0.3s ease !important;
  }

  /* Links in Drawer */
  .site-nav a {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    padding: 15px 0 !important;
    width: 100% !important;
    border-bottom: 1px solid var(--color-divider) !important;
    color: var(--color-text-title) !important;
    text-align: left;
  }

  [dir="rtl"] .site-nav a {
    text-align: right;
  }

  /* Brand and Settings re-ordering */
  .header-settings {
    order: 2 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
  }

  .brand {
    order: 1 !important;
    flex: 1 !important;
  }
  
  body.nav-open {
    overflow: hidden !important;
  }
}

@media (max-width: 820px) {
  /* Parent Container Safety */
  #site-header, .site-header, .header-layout {
    overflow: visible !important;
  }
  .site-header {
    z-index: 10000 !important;
  }

  /* Reset Header */
  .site-header .header-layout {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.75rem 1rem !important;
    height: 70px !important;
    gap: 0.5rem !important;
  }

  /* Fixed Menu Toggle Position */
  .menu-toggle {
    display: flex !important;
    position: relative !important;
    z-index: 10001 !important;
    order: 3 !important;
    background: var(--color-surface-alt) !important;
    border: 1px solid var(--color-border) !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    justify-content: center;
    align-items: center;
    top: 0 !important;
    transform: translateY(-2px);
  }

  /* Navigation Drawer (Using Transforms) */
  .site-nav {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: 300px !important;
    height: 100vh !important;
    background: var(--color-surface) !important;
    z-index: 9999 !important;
    flex-direction: column !important;
    padding: 100px 30px 40px !important;
    display: flex !important;
    transform: translateX(100%) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1) !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .nav-open .site-nav {
    transform: translateX(0) !important;
  }

  /* Overlay */
  .nav-open::after {
    content: "" !important;
 position: fixed !important;
 top: 0 !important;
 left: 0 !important;
 width: 100% !important;
 height: 100% !important;
 background: rgba(0,0,0,0.5) !important;
 z-index: 9998 !important;
 display: block !important;
 animation: fadeIn 0.3s ease !important;
 }

 /* Links in Drawer */
 .site-nav a {
 font-size: 1.25rem !important;
 font-weight: 700 !important;
 padding: 15px 0 !important;
 width: 100% !important;
 border-bottom: 1px solid var(--color-divider) !important;
 color: var(--color-text-title) !important;
 text-align: left;
 display: flex !important;
 position: relative !important;
 z-index: 10 !important;
 pointer-events: auto !important;
 }

  [dir="rtl"] .site-nav a {
 text-align: right;
 }

 /* Brand and Settings re-ordering */
 .header-settings {
 order: 2 !important;
 background: transparent !important;
 border: none !important;
 padding: 0 !important;
 }

 .brand {
 order: 1 !important;
 flex: 1 !important;
 }
 
 body.nav-open {
 overflow: hidden !important;
 }
}

