/* ===== CSS CUSTOM PROPERTIES - CLINICIQ SOLUTIONS THEME ===== */
:root {
  /* New Color Scheme */
  --uranian-blue: #a9cef4;
  --outer-space: #36494e;
  --black: #000000;
  --air-superiority-blue: #7ea0b7;
  --paynes-gray: #597081;

  /* Primary Color Palette */
  --primary-navy: var(--outer-space);
  --primary-blue: var(--air-superiority-blue);
  --primary-blue-light: var(--uranian-blue);

  /* Secondary Color Palette */
  --secondary-light-blue: var(--paynes-gray);
  --secondary-mint: rgba(169, 206, 244, 0.1);
  --accent-blue: var(--air-superiority-blue);

  /* Background Colors */
  --background-mint: rgba(169, 206, 244, 0.05);
  --background-white: #FEFEFE;
  --background-light: rgba(169, 206, 244, 0.03);
  --background-cream: #FEFEFE;

  /* Text Colors */
  --text-primary: var(--black);
  --text-secondary: var(--outer-space);
  --text-muted: var(--paynes-gray);
  --text-white: #FFFFFF;

  /* Border & Accent Colors */
  --border-light: rgba(169, 206, 244, 0.2);
  --border-medium: rgba(169, 206, 244, 0.4);
  --accent-light: var(--uranian-blue);
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.15);

  /* Typography */
  --font-primary: 'Ubuntu', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Ubuntu Mono', 'Courier New', 'Courier', monospace;

  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Z-index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1040;
  --z-popover: 1050;
  --z-tooltip: 1060;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
  position: fixed;
  position: relative;
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

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

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

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

input,
textarea {
  font-family: inherit;
}

/* ===== UTILITY CLASSES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-lg);
  }
}

@media (min-width: 1200px) {
  .container {
    padding: 0 var(--space-xl);
  }
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
  padding-top: var(--space-lg);
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem; /* Kept at 2.5rem for section headings */
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-size: 1.125rem; /* Increased from 1rem - Better readability */
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem; /* Increased from 1.75rem - Better mobile hierarchy */
  }

  .section-subtitle {
    font-size: 1rem; /* Body text size on mobile */
  }
}

/* ===== BUTTON STYLES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  min-height: 48px;
}

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

.btn-primary:hover {
  background-color: var(--accent-blue);
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-navy);
  border-color: var(--primary-navy);
}

.btn-secondary:hover {
  background-color: var(--primary-navy);
  color: var(--text-white);
  transform: translateY(-2px);
}

/* Hero section button overrides */
.hero .btn-primary {
  background-color: var(--primary-navy);
  color: var(--text-white);
  border-color: var(--primary-navy);
  box-shadow: 0 4px 12px rgba(54, 73, 78, 0.3);
}

.hero .btn-primary:hover {
  background-color: #2a3d42;
  border-color: #2a3d42;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(54, 73, 78, 0.4);
}

.hero .btn-secondary {
  background-color: var(--text-white);
  color: var(--primary-navy);
  border-color: var(--primary-navy);
  border-width: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero .btn-secondary:hover {
  background-color: var(--primary-navy);
  color: var(--text-white);
  border-color: var(--primary-navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(54, 73, 78, 0.4);
}

/* Two-line button text styling */
.hero .btn-primary,
.hero .btn-secondary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 14px 28px;
}

.btn-main-text {
  font-size: 1.125rem; /* Increased from 1rem - Better prominence */
  font-weight: 600;
  line-height: 1.2;
}

.btn-sub-text {
  font-size: 0.75rem; /* Reduced from 0.875rem - Less prominent */
  font-weight: 400;
  opacity: 0.9;
  line-height: 1;
}

.btn:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: none;
  z-index: var(--z-fixed);
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: none;
}


.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo .logo-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  transition: transform var(--transition-fast);
  gap: 0.15rem;
  color: inherit;
}

.nav-logo .logo-link:hover {
  transform: translateY(-1px);
}

.logo-text {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1;
  color: var(--primary-green, #2C4A3C);
  font-family: "Ubuntu", "Segoe UI", system-ui, sans-serif;
}

.logo-text-main {
  display: inline-flex;
  align-items: baseline;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.32rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.logo-text-highlight {
  color: var(--secondary-gold, #C4A661);
  margin-left: 0.15rem;
}

.logo-text-tagline {
  font-size: 0.62rem;
  letter-spacing: 0.4rem;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(44, 74, 60, 0.85);
  white-space: nowrap;
}

/* Logo Image Styles */
.logo-image {
  height: 45px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
}

/* Dropdown Styles */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--background-white);
  min-width: 180px;
  box-shadow: 0 8px 25px var(--shadow-medium);
  border-radius: var(--radius-lg);
  padding: var(--space-xs);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-normal);
  z-index: var(--z-dropdown);
  border: 1px solid var(--border-light);
  margin-top: var(--space-xs);
}

.nav-item.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: var(--space-xs) var(--space-sm);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  font-weight: 500;
}

.dropdown-item:hover {
  background-color: var(--background-mint);
  color: var(--primary-blue);
}

.dropdown-item.active {
  background-color: var(--primary-blue);
  color: var(--text-white);
}

.nav-link {
  font-weight: 500;
  color: var(--text-primary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-blue);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background-color: var(--primary-blue);
  transition: all var(--transition-normal);
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Mobile Navigation */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: var(--space-xs);
}

.hamburger .bar {
  width: 25px;
  height: 3px;
  background-color: var(--primary-navy);
  margin: 3px 0;
  transition: var(--transition-normal);
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 var(--space-sm);
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--background-white);
    width: 100%;
    text-align: center;
    transition: var(--transition-normal);
    box-shadow: 0 10px 27px var(--shadow-light);
    padding: var(--space-lg) 0;
    gap: var(--space-md);
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Mobile dropdown positioning */
  .dropdown-menu {
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    min-width: 200px;
  }

  .nav-item.dropdown:hover .dropdown-menu,
  .dropdown-menu:hover {
    transform: translateX(-50%) translateY(0);
  }
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 20px;
  padding-bottom: 300px; /* Add padding to accommodate sponsors */
  background: linear-gradient(135deg, #e5ebef 0%, #d0dae1 100%);
  overflow: visible; /* Changed from hidden to visible */
}

.hero-container {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  width: 100%;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  min-height: 600px;
}

.hero-text {
  position: relative;
  z-index: 5;
  padding-left: var(--space-md);
  padding-right: var(--space-lg);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.5rem; /* Increased from 2.5rem - Hero prominence */
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.hero-title-part-1 {
  color: var(--primary-navy);
  display: block;
}

.hero-title-part-2 {
  color: #4a6a7f;
  display: block;
  font-weight: 800;
}

.hero-subtitle {
  font-size: 1.125rem; /* Increased from 1rem - Better readability */
  color: #1a202c;
  margin-bottom: var(--space-2xl);
  line-height: 1.6;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: var(--space-lg);
}

.hero-device {
  position: relative;
  z-index: 2;
  max-width: 250px;
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
  transition: transform var(--transition-slow);
}

.hero-device:hover {
  transform: perspective(1000px) rotateY(-10deg) rotateX(2deg) translateY(-10px);
}

.hero-device img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-xl);
  opacity: 0.95;
  mix-blend-mode: multiply;
  background: transparent;
}

.hero-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.decoration-circle {
  position: absolute;
  border: 3px solid #ffffff;
  border-radius: 50%;
  opacity: 0.4;
  animation: floatGrow 10s ease-in-out infinite;
}

.decoration-circle-1 {
  width: 400px;
  height: 400px;
  top: 15%;
  left: 40%;
  animation-delay: 0s;
}

.decoration-circle-2 {
  width: 200px;
  height: 300px;
  bottom: 12%;
  right: 60%;
  animation-delay: -5s;
}


.decoration-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: #ffffff;
  border-radius: 50%;
  opacity: 0.6;
  animation: pulseShrink 6s ease-in-out infinite;
}

.decoration-dot-1 {
  top: 18%;
  left: 35%;
  animation-delay: 0s;
}

.decoration-dot-2 {
  top: 45%;
  left: 12%;
  animation-delay: -3s;
}

.decoration-dot-3 {
  bottom: 20%;
  left: 28%;
  animation-delay: -1.5s;
}


@keyframes floatGrow {
  0%, 100% {
    transform: translateY(0) translateX(0) rotate(0deg) scale(1);
  }
  25% {
    transform: translateY(-35px) translateX(20px) rotate(90deg) scale(1.15);
  }
  50% {
    transform: translateY(-20px) translateX(-25px) rotate(180deg) scale(0.85);
  }
  75% {
    transform: translateY(25px) translateX(15px) rotate(270deg) scale(1.1);
  }
}

@keyframes pulseShrink {
  0%, 100% {
    transform: scale(1) translateY(0) translateX(0);
    opacity: 0.6;
  }
  25% {
    transform: scale(1.6) translateY(-15px) translateX(10px);
    opacity: 0.5;
  }
  50% {
    transform: scale(0.7) translateY(10px) translateX(-12px);
    opacity: 0.4;
  }
  75% {
    transform: scale(1.3) translateY(-8px) translateX(8px);
    opacity: 0.55;
  }
}


@media (max-width: 1024px) {
  .hero {
    padding-top: 120px; /* Add more space from header for iPad */
    padding-bottom: 250px; /* Adjust padding for tablets */
  }

  .hero-content {
    gap: var(--space-2xl);
    min-height: 500px; /* Reduce min-height for better proportions */
  }

  .hero-text {
    padding-left: var(--space-sm);
    padding-right: var(--space-md);
  }

  .hero-visual {
    padding-left: var(--space-md);
  }

  .hero-title {
    font-size: 2.5rem; /* Tablet size - scaled from 3.5rem desktop */
    margin-bottom: var(--space-md); /* Reduce bottom margin */
  }

  .hero-subtitle {
    font-size: 1.125rem; /* Maintained for readability on tablet */
    margin-bottom: var(--space-lg); /* Reduce bottom margin */
  }

  .hero-device {
    max-width: 200px;
  }

  .hero-sponsors {
    bottom: -150px; /* Moved 150px down on tablets */
    padding: var(--space-md) 0;
  }

  .sponsors-container {
    padding: 0 var(--space-sm);
  }

  .sponsor-item {
    width: 100px;
    height: 50px;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 90vh;
    padding-top: 70px;
    padding-bottom: 200px; /* Adjust padding for mobile */
  }

  .hero-container {
    padding: 0 var(--space-md);
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: center;
  }

  .hero-text {
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
    order: 2;
  }

  .hero-visual {
    padding-left: 0;
    order: 1;
  }

  .hero-title {
    font-size: 2rem; /* Mobile size - scaled from 3.5rem desktop */
  }

  .hero-subtitle {
    font-size: 1rem; /* Smaller on mobile for better fit */
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
    gap: var(--space-sm);
  }

  .hero-buttons .btn {
    flex: 1;
    max-width: 280px;
  }

  .hero-device {
    max-width: 150px;
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
  }

  .hero-device:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateY(-5px);
  }

  .hero-sponsors {
    bottom: -120px; /* Moved 120px down on mobile */
    padding: var(--space-sm) 0;
  }

  .sponsor-item {
    width: 80px;
    height: 40px;
  }

  .sponsors-track {
    gap: var(--space-lg);
  }
}

/* ===== SPECIALTIES SECTION ===== */
.specialties {
  padding: var(--space-3xl) 0;
  background-color: var(--background-white);
}

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.specialty-card {
  background-color: var(--background-white);
  border-radius: var(--radius-lg);
  overflow: visible;
  box-shadow: 0 4px 20px var(--shadow-light);
  transition: all var(--transition-normal);
  position: relative;
}

.dropdown-card {
  overflow: visible;
}

.specialty-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px var(--shadow-medium);
}

.specialty-image {
  position: relative;
  height: 250px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.specialty-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.specialty-card:hover .specialty-image img {
  transform: scale(1.1);
}

.specialty-content {
  padding: var(--space-xl);
}

.specialty-content h3 {
  font-family: var(--font-display);
  font-size: 1.313rem; /* Increased from 1rem - Card title prominence */
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.specialty-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.875rem; /* Reduced for less prominence */
}

/* Link Card Styles */
.link-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.link-card:hover {
  text-decoration: none;
  color: inherit;
}

.specialty-cta {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-light);
}

.cta-text {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem; /* Reduced from 0.95rem - Less prominent CTA */
  transition: color var(--transition-normal);
}

.link-card:hover .cta-text {
  color: var(--primary-dark);
}

/* Specialty Card Dropdown Styles */
.specialty-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--background-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 25px var(--shadow-medium);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-normal);
  z-index: var(--z-dropdown);
  margin-top: var(--space-sm);
}

.specialty-card:hover .specialty-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.specialty-dropdown .dropdown-item {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  border-bottom: 1px solid var(--border-light);
}

.specialty-dropdown .dropdown-item:last-child {
  border-bottom: none;
}

.specialty-dropdown .dropdown-item:hover {
  background-color: var(--background-mint);
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .specialties-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .specialty-content {
    padding: var(--space-lg);
  }

  .specialty-cta {
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
  }
}

/* ===== MENU SECTION ===== */
.menu {
  padding: var(--space-3xl) 0;
  background-color: var(--background-white);
}

.menu-filter {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-3xl);
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  background-color: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-navy);
  color: var(--text-white);
  border-color: var(--primary-navy);
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  max-width: 800px;
  margin: 0 auto;
}

.menu-item {
  background-color: var(--background-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow-light);
  transition: all var(--transition-normal);
  opacity: 1;
  transform: scale(1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.menu-item.hidden {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

.menu-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px var(--shadow-medium);
}

.menu-item-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.menu-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.menu-item:hover .menu-item-image img {
  transform: scale(1.1);
}

.menu-item-content {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-sm);
}

.menu-item-header h3 {
  font-family: var(--font-display);
  font-size: 1rem; /* Reduced from 1.25rem - 3-tier system: Medium */
  font-weight: 600;
  color: var(--text-primary);
}

.price {
  font-family: var(--font-display);
  font-size: 1rem; /* Reduced from 1.25rem - 3-tier system: Medium */
  font-weight: 700;
  color: var(--primary-blue);
}

.menu-item-content p {
  color: var(--text-secondary);
  margin-bottom: auto;
  line-height: 1.6;
  flex-grow: 1;
}

.category-btn {
  display: inline-block;
  background-color: var(--primary-blue);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  margin-top: var(--space-sm);
  align-self: flex-start;
}

.category-btn:hover {
  background-color: var(--accent-blue);
  transform: translateY(-1px);
}

/* Star Rating Styles */
.rating {
  display: flex;
  gap: 0.125rem;
  margin-top: 0.25rem;
}

.star {
  color: #FFD700;
  font-size: 1.25rem;
  line-height: 1;
}

/* Update menu item header for testimonials */
.menu-item-header .rating {
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .menu-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    max-width: 100%;
  }

  .menu-item-content {
    padding: var(--space-md);
  }
}

/* ===== ABOUT SECTION ===== */
.about {
  padding: var(--space-3xl) 0;
  background-color: var(--background-white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about-text {
  max-width: 600px;
}

.about-text .section-title {
  text-align: left;
  margin-bottom: var(--space-lg);
}

.about-intro {
  font-size: 1rem; /* Reduced from 1.25rem - 3-tier system: Medium */
  font-weight: 500;
  color: var(--primary-navy);
  margin-bottom: var(--space-lg);
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.highlight {
  text-align: center;
}

.highlight h4 {
  font-family: var(--font-display);
  font-size: 2.5rem; /* 3-tier system: Large - for stats/highlights */
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: var(--space-xs);
}

.highlight p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.about-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 60px var(--shadow-medium);
  max-width: 70%;
  margin: 0 auto;
}

.about-image img {
  width: 100%;
  height: auto;
  transition: transform var(--transition-slow);
}

.about-image:hover img {
  transform: scale(1.05);
}

@media (max-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: center;
  }

  .about-text .section-title {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .about-highlights {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

/* ===== NEWSLETTER SECTION ===== */
.newsletter {
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-blue) 100%);
  color: var(--text-white);
}

.newsletter-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.newsletter p {
  font-size: 1.125rem;
  margin-bottom: var(--space-xl);
  opacity: 0.9;
}

.newsletter-form {
  max-width: 400px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.form-group input {
  flex: 1;
  padding: 0.875rem 1rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  background-color: var(--background-white);
  color: var(--text-primary);
  box-sizing: border-box;
}

.form-group input:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

.form-group .btn {
  padding: 0.875rem 1.5rem;
  white-space: nowrap;
}

.privacy-note {
  font-size: 0.875rem;
  opacity: 0.8;
  margin-top: var(--space-sm);
}

.form-message {
  margin-top: var(--space-md);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  font-weight: 500;
  display: none;
}

.form-message.success {
  background-color: #10b981;
  border: 1px solid #059669;
  color: var(--text-white);
  display: block;
}

.form-message.error {
  background-color: #ef4444;
  border: 1px solid #dc2626;
  color: var(--text-white);
  display: block;
}

@media (max-width: 768px) {
  .newsletter h2 {
    font-size: 1.75rem; /* Reduced from 2rem - 3-tier system: Large (mobile) */
  }

  .form-group {
    flex-direction: column;
  }

  .form-group .btn {
    padding: 0.875rem 2rem;
  }
}

/* ===== CONTACT SECTION ===== */
.contact {
  padding: var(--space-3xl) 0;
  background-color: var(--background-white);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-3xl);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.contact-item h3 {
  font-family: var(--font-display);
  font-size: 1rem; /* Reduced from 1.25rem - 3-tier system: Medium */
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.contact-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.map-container {
  margin-top: var(--space-md);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow-light);
  background-color: var(--background-white);
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: none;
}

.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-xl);
  min-height: 300px;
  text-align: center;
}

.map-placeholder-text {
  color: var(--text-secondary);
  max-width: 18rem;
}

.map-placeholder-link {
  color: var(--accent-blue);
  font-weight: 500;
  text-decoration: underline;
}

.contact-form {
  background-color: var(--background-white);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px var(--shadow-light);
  max-width: 100%;
  width: 100%;
}

.contact-form .form-group {
  margin-bottom: var(--space-lg);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-sm);
  align-items: start;
}

.contact-form label {
  display: block;
  font-weight: 500;
  color: var(--text-primary);
  padding-top: 1rem;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: border-color var(--transition-normal);
  background-color: var(--background-white);
  color: var(--text-primary);
  box-sizing: border-box;
  min-width: 0;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
}

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

.contact-form .btn {
  width: 100%;
  margin-top: var(--space-lg);
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

@media (max-width: 1024px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

@media (max-width: 768px) {
  .contact-form {
    padding: var(--space-xl);
  }

  .contact-form .form-group {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }

  .contact-form label {
    padding-top: 0;
    margin-bottom: var(--space-xs);
  }

  .contact-form input,
  .contact-form textarea {
    padding: 1rem;
  }
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--primary-navy);
  color: var(--text-white);
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1rem; /* Reduced from 1.75rem - 3-tier system: Medium */
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--primary-blue);
}

.footer-brand p {
  opacity: 0.9;
  font-style: italic;
  font-size: 0.875rem; /* 3-tier system: Small */
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.footer-column h4 {
  font-size: 0.875rem; /* Reduced from 1.125rem - 3-tier system: Small */
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--primary-blue);
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: var(--space-xs);
}

.footer-column a {
  color: var(--text-white);
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.footer-column a:hover {
  opacity: 1;
  color: var(--primary-blue);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  opacity: 0.8;
}

.footer-legal {
  display: flex;
  gap: var(--space-lg);
}

.footer-legal a {
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.footer-legal a:hover {
  opacity: 1;
  color: var(--primary-blue);
}

@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: center;
  }

  .footer-brand h3 {
    font-size: 1rem; /* Reduced from 1.75rem - 3-tier system: Medium */
  }

  .footer-column h4 {
    font-size: 0.875rem; /* Reduced from 1.125rem - 3-tier system: Small */
  }

  .footer-column a,
  .footer-brand p {
    font-size: 0.875rem; /* 3-tier system: Small */
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .footer-links {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

.fade-in-up {
  animation: fadeInUp 0.4s ease forwards;
}

.fade-in-left {
  animation: fadeInLeft 0.4s ease forwards;
}

.fade-in-right {
  animation: fadeInRight 0.4s ease forwards;
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus indicators */
*:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-navy);
  color: var(--text-white);
  padding: 8px;
  z-index: 1000;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 6px;
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --shadow-light: rgba(0, 0, 0, 0.3);
    --shadow-medium: rgba(0, 0, 0, 0.5);
    --border-light: #000000;
    --border-medium: #000000;
  }
}

/* ===== LOADING STATES ===== */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.spinner {
  border: 2px solid transparent;
  border-top: 2px solid var(--primary-blue);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-right: var(--space-xs);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== RESPONSIVE IMAGE OPTIMIZATION ===== */
@media (max-width: 768px) {
  .hero-image img,
  .specialty-image img,
  .menu-item-image img,
  .about-image img {
    object-position: center;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .hamburger,
  .hero-buttons,
  .newsletter,
  .contact-form,
  .footer {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .hero-title,
  .section-title {
    color: black !important;
  }
}

/* Menu filter hidden state */
.hidden {
  display: none !important;
}

.portfolio-item.hidden {
  display: none !important;
}

/* ===== PORTFOLIO STYLES ===== */
.portfolio-hero {
  min-height: 70vh;
}

.portfolio-filter-section {
  padding: calc(80px + var(--space-xl)) 0 var(--space-lg);
  background: var(--background-white);
  border: none;
}

.portfolio-grid-section {
  padding: 0 0 var(--space-3xl);
  background: var(--background-white);
  border: none;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-lg);
}

.portfolio-item {
  background: var(--background-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 6px var(--shadow-light);
  transition: all var(--transition-normal);
  opacity: 1;
  transform: translateY(0);
}

.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px var(--shadow-medium);
}

.portfolio-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(22, 25, 37, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
  visibility: visible;
}

.portfolio-actions {
  display: flex;
  gap: var(--space-sm);
}

.portfolio-actions .btn {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.875rem 1.5rem;
  border-width: 2px;
  transition: all var(--transition-normal);
  text-shadow: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.portfolio-actions .btn-primary {
  background-color: var(--primary-blue);
  color: var(--text-white);
  border-color: var(--primary-blue);
  font-weight: 600;
}

.portfolio-actions .btn-primary:hover {
  background-color: var(--primary-navy);
  color: var(--text-white);
  border-color: var(--primary-navy);
  transform: translateY(-2px);
}

.portfolio-actions .btn-secondary {
  background-color: var(--text-white);
  color: var(--primary-navy);
  border-color: var(--text-white);
  backdrop-filter: blur(10px);
  font-weight: 600;
}

.portfolio-actions .btn-secondary:hover {
  background-color: var(--primary-navy);
  color: var(--text-white);
  border-color: var(--primary-navy);
  transform: translateY(-2px);
}

.portfolio-content {
  position: relative;
  padding: var(--space-lg);
  padding-bottom: 4rem; /* Add extra padding to account for the absolute positioned label */
}

.portfolio-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.portfolio-description {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  font-size: 0.95rem;
  line-height: 1.5;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.tag {
  background: var(--background-mint);
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-lg);
  font-size: 0.8rem;
  font-weight: 500;
}

.portfolio-category {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* Status-based styling for portfolio categories */
.portfolio-category.ready {
  background: #10B981; /* Green for ready */
  color: white;
}

.portfolio-category.in-progress {
  background: #F59E0B; /* Orange for in progress */
  color: white;
}

.portfolio-category.beta {
  background: #8B5CF6; /* Purple for beta */
  color: white;
}

.portfolio-category.deprecated {
  background: #EF4444; /* Red for deprecated */
  color: white;
}

.portfolio-cta {
  background: var(--primary-navy);
  color: var(--text-white);
  padding: var(--space-3xl) 0;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  color: var(--text-white);
}

.cta-content p {
  font-size: 1.15rem;
  margin-bottom: var(--space-xl);
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  min-width: 200px;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.portfolio-cta .btn-primary {
  background-color: var(--primary-blue);
  color: var(--text-white);
  border-color: var(--primary-blue);
  font-weight: 600;
}

.portfolio-cta .btn-primary:hover {
  background-color: var(--primary-navy);
  color: var(--text-white);
  border-color: var(--primary-navy);
  transform: translateY(-3px);
}

.portfolio-cta .btn-secondary {
  background-color: transparent;
  color: var(--text-white);
  border-color: var(--text-white);
  font-weight: 600;
}

.portfolio-cta .btn-secondary:hover {
  background-color: var(--text-white);
  color: var(--primary-navy);
  border-color: var(--text-white);
  transform: translateY(-3px);
}

/* Filter animation for portfolio items */
.portfolio-item.fade-out {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.portfolio-item.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile responsiveness for portfolio */
@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

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

  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* ===== DOWNLOADS TABLE STYLES ===== */
.downloads-tables {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xl);
  margin-top: var(--space-xl);
}

.download-category {
  background-color: var(--background-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px var(--shadow-light);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.download-category:hover {
  box-shadow: 0 8px 30px var(--shadow-medium);
}

.category-header {
  background: linear-gradient(135deg, var(--primary-navy), var(--primary-blue));
  color: var(--text-white);
  padding: var(--space-lg) var(--space-xl);
  text-align: center;
}

.category-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 var(--space-xs) 0;
  font-family: var(--font-display);
}

.category-header p {
  margin: 0;
  opacity: 0.9;
  font-size: 1rem;
}

.download-table-container {
  padding: 0;
  overflow-x: auto;
}

.download-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.download-table th {
  background-color: var(--background-mint);
  color: var(--text-primary);
  font-weight: 600;
  padding: 1rem var(--space-lg);
  text-align: left;
  border-bottom: 2px solid var(--border-light);
  font-family: var(--font-display);
}

.download-table th:first-child {
  width: 60%;
}

.download-table th:nth-child(2) {
  width: 20%;
  text-align: center;
}

.download-table th:last-child {
  width: 20%;
  text-align: center;
}

.download-table td {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}

.download-table td:nth-child(2),
.download-table td:last-child {
  text-align: center;
  vertical-align: middle;
}

.download-table tr:hover {
  background-color: var(--background-light);
}

.download-table tr:last-child td {
  border-bottom: none;
}

.download-table strong {
  display: block;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  line-height: 1.3;
}

.download-table .description {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.4;
}

.download-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
  color: var(--text-white);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--transition-normal);
  border: none;
  cursor: pointer;
  min-width: 90px;
}

.download-btn:hover {
  background: linear-gradient(135deg, var(--primary-navy), var(--primary-blue));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--shadow-light);
}

.download-btn:active {
  transform: translateY(0);
}

/* Filter functionality for download categories */
.download-category.hidden {
  display: none !important;
}

/* Mobile responsiveness for download tables */
@media (max-width: 1024px) {
  .download-table th:first-child {
    width: 50%;
  }

  .download-table th:nth-child(2) {
    width: 25%;
  }

  .download-table th:last-child {
    width: 25%;
  }

  .category-header {
    padding: var(--space-md) var(--space-lg);
  }

  .category-header h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .downloads-tables {
    gap: var(--space-xl);
  }

  .download-table-container {
    padding: 0;
    margin: 0 -var(--space-sm);
  }

  .download-table {
    font-size: 0.85rem;
  }

  .download-table th,
  .download-table td {
    padding: var(--space-sm);
  }

  .download-table th:first-child {
    width: 45%;
  }

  .download-table th:nth-child(2) {
    width: 25%;
  }

  .download-table th:last-child {
    width: 30%;
  }

  .download-table strong {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
  }

  .download-table .description {
    font-size: 0.8rem;
    line-height: 1.3;
  }

  .download-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    min-width: 75px;
  }

  .category-header {
    padding: var(--space-sm) var(--space-md);
  }

  .category-header h3 {
    font-size: 1.2rem;
  }

  .category-header p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .download-table th:nth-child(2) {
    display: none;
  }

  .download-table td:nth-child(2) {
    display: none;
  }

  .download-table th:first-child {
    width: 65%;
  }

  .download-table th:last-child {
    width: 35%;
  }
}

/* ===== CHAT BOT STYLES ===== */
.chat-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  font-family: var(--font-primary);
}

.chat-toggle {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-navy), var(--primary-blue));
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  box-shadow: 0 4px 20px var(--shadow-medium);
  transition: all var(--transition-smooth);
}

.chat-toggle:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-navy));
}

.chat-container {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 400px;
  height: 580px;
  background: var(--background-white);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-light);
  display: none;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition-smooth);
}

.chat-container.active {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.chat-header {
  background: linear-gradient(135deg, var(--primary-navy), var(--primary-blue));
  color: var(--text-white);
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-title h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: var(--font-display);
}

.chat-status {
  font-size: 0.875rem;
  opacity: 0.9;
  margin-top: 0.25rem;
  display: block;
}

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

.chat-close,
.chat-end-conversation {
  background: none;
  border: none;
  color: var(--text-white);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-close:hover,
.chat-end-conversation:hover {
  background: rgba(255, 255, 255, 0.1);
}

.chat-end-conversation {
  position: relative;
}

.chat-end-conversation[title]:hover::after {
  content: attr(title);
  position: absolute;
  top: -30px;
  right: 0;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  white-space: nowrap;
  z-index: 1000;
}

.chat-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  background: var(--background-light);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-message {
  display: flex;
  flex-direction: column;
  max-width: 85%;
}

.bot-message {
  align-self: flex-start;
}

.user-message {
  align-self: flex-end;
}

.message-content {
  background: var(--background-white);
  padding: 0.875rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.user-message .message-content {
  background: linear-gradient(135deg, var(--primary-navy), var(--primary-blue));
  color: var(--text-white);
  border: none;
}

.message-content p {
  margin: 0;
  line-height: 1.5;
  font-size: 0.9rem;
}

.message-content p + p {
  margin-top: 0.5rem;
}

.message-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.375rem;
  text-align: left;
}

.user-message .message-time {
  text-align: right;
}

/* ===== CHAT IDENTIFICATION FORM STYLES ===== */
.chat-identification-form {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  height: 100%;
  justify-content: center;
  background: var(--background-light);
  overflow-y: auto;
}

.identification-form-content {
  text-align: center;
}

.identification-form-content h4 {
  margin: 0 0 0.75rem 0;
  color: var(--primary-navy);
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-display);
  line-height: 1.3;
}

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

.identification-form {
  text-align: left;
}

.identification-form .form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.375rem;
  color: var(--primary-navy);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.3;
}

.form-input {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 2px solid var(--border-medium);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-family: var(--font-primary);
  background: var(--background-white);
  transition: all var(--transition-smooth);
  outline: none;
  box-sizing: border-box;
}

.form-input:focus {
  border-color: var(--primary-blue);
  background: var(--background-white);
  box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.1);
}

.form-input:invalid {
  border-color: #e74c3c;
}

.form-input.error {
  border-color: #e74c3c;
  background: #fdf2f2;
}

.start-chat-button {
  width: 100%;
  background-color: var(--primary-blue);
  color: var(--text-white);
  border: 2px solid var(--primary-blue);
  border-radius: var(--radius-md);
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 48px;
  margin-top: 0.75rem;
}

.start-chat-button:hover:not(:disabled) {
  background-color: var(--accent-blue);
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}

.start-chat-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.button-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.button-loading::after {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.chat-form-error {
  margin-top: 0.75rem;
  padding: 0.625rem 0.875rem;
  background: #fdf2f2;
  border: 1px solid #e74c3c;
  border-radius: var(--radius-md);
  color: #e74c3c;
  font-size: 0.8rem;
  text-align: center;
  line-height: 1.3;
}

.chat-form-error:empty {
  display: none;
}

/* Start New Chat Button */
.start-new-chat-btn {
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  min-height: 40px;
  margin-top: 1rem;
}

.start-new-chat-btn:hover {
  transform: translateY(-1px);
}

.chat-input-container {
  padding: 1rem;
  background: var(--background-white);
  border-top: 1px solid var(--border-light);
}

.chat-form {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}

#chat-input {
  flex: 1;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-family: var(--font-primary);
  background: var(--background-light);
  transition: all var(--transition-smooth);
  resize: none;
  outline: none;
}

#chat-input:focus {
  border-color: var(--primary-navy);
  background: var(--background-white);
}

.chat-send {
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-light-blue));
  border: none;
  border-radius: var(--radius-lg);
  padding: 0.875rem;
  color: var(--text-white);
  cursor: pointer;
  transition: all var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
}

.chat-send:hover {
  background: linear-gradient(135deg, var(--secondary-light-blue), var(--primary-blue));
  transform: translateY(-1px);
}

.chat-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.chat-input-container.disabled #chat-input {
  background: var(--background-light);
  border-color: var(--border-light);
  color: var(--text-muted);
  cursor: not-allowed;
}

.chat-input-container.disabled .chat-send {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.chat-typing {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  background: var(--background-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  align-self: flex-start;
}

.typing-dots {
  display: flex;
  gap: 0.25rem;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-navy);
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 60%, 100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  30% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .chat-widget {
    bottom: 1rem;
    right: 1rem;
  }

  .chat-container {
    width: calc(100vw - 2rem);
    max-width: 350px;
    height: 500px;
  }

  .chat-toggle {
    width: 56px;
    height: 56px;
  }

  /* Chat form mobile optimizations */
  .chat-identification-form {
    padding: 0.875rem;
  }

  .identification-form-content h4 {
    font-size: 1.125rem;
    margin-bottom: 0.625rem;
  }

  .identification-intro {
    font-size: 0.825rem;
    margin-bottom: 1.25rem;
    line-height: 1.3;
  }

  .form-group {
    margin-bottom: 0.875rem;
  }

  .form-label {
    font-size: 0.825rem;
    margin-bottom: 0.3125rem;
  }

  .form-input {
    padding: 0.6875rem 0.75rem;
    font-size: 0.875rem;
  }

  .start-chat-button {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    min-height: 42px;
    margin-top: 0.625rem;
  }

  .chat-form-error {
    font-size: 0.775rem;
    padding: 0.5625rem 0.75rem;
  }
}

/* ===== FORM LOADING SPINNER ===== */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  margin-right: 8px;
}

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

/* ===== FORM MESSAGES ===== */
.form-message {
  margin-top: var(--space-sm);
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  line-height: 1.4;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.form-message.success {
  background-color: #10b981;
  color: var(--text-white);
  border: 1px solid #059669;
  opacity: 1;
}

.form-message.error {
  background-color: #ef4444;
  color: var(--text-white);
  border: 1px solid #dc2626;
  opacity: 1;
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary-navy);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: var(--z-fixed);
  box-shadow: var(--shadow-medium);
}

.scroll-to-top:hover {
  background: var(--primary-blue);
  transform: translateY(-2px);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* Tablet/Medium screens - gradual logo size reduction */
@media (max-width: 1024px) {
  .logo-text-main {
    font-size: 1rem;
    letter-spacing: 0.28rem;
  }

  .logo-text-tagline {
    font-size: 0.58rem;
    letter-spacing: 0.32rem;
  }
}

@media (max-width: 768px) {
  .nav-logo .logo-link {
    gap: 0.05rem;
  }

  .logo-text-main {
    font-size: 0.95rem;
    letter-spacing: 0.22rem;
  }

  .logo-text-highlight {
    margin-left: 0.1rem;
  }

  .logo-text-tagline {
    font-size: 0.55rem;
    letter-spacing: 0.26rem;
  }

  .scroll-to-top {
    bottom: 1rem;
    left: 1rem;
    width: 45px;
    height: 45px;
  }
}

/* ===== HERO SPONSORS CAROUSEL ===== */
.hero-sponsors {
  position: absolute;
  bottom: -200px; /* Moved 200px down from original position */
  left: 0;
  right: 0;
  background: transparent;
  padding: var(--space-lg) 0;
  height: auto;
}

.sponsors-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.sponsors-carousel {
  position: relative;
  overflow: hidden;
  mask: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  -webkit-mask: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.sponsors-track {
  display: flex;
  gap: var(--space-2xl);
  animation: sponsorScroll 30s linear infinite;
  width: max-content;
}

.sponsor-item {
  flex: none;
  width: 120px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity var(--transition-normal);
}

.sponsor-item:hover {
  opacity: 1;
}

.sponsor-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.7);
  transition: filter var(--transition-normal);
}

.sponsor-item:hover img {
  filter: grayscale(0%) brightness(1);
}

@keyframes sponsorScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ===== TESTIMONIALS CAROUSEL ===== */
.testimonials {
  padding: var(--space-3xl) 0;
  background-color: var(--secondary-mint);
}

.testimonials-carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.carousel-container {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-card {
  flex: 0 0 calc(33.333% - 1rem);
  margin: 0 0.5rem;
  background-color: var(--background-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: 0 4px 20px var(--shadow-light);
  transition: all var(--transition-normal);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px var(--shadow-medium);
}

.testimonial-content {
  text-align: center;
}

.testimonial-content .rating {
  justify-content: center;
  margin-bottom: var(--space-md);
}

.testimonial-content p {
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  font-size: 1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--background-mint);
}

.author-info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.author-info span {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.carousel-btn {
  width: 50px;
  height: 50px;
  border: 2px solid var(--border-light);
  background-color: var(--background-white);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  color: var(--text-muted);
}

.carousel-btn:hover {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  color: var(--text-white);
  transform: translateY(-2px);
}

.carousel-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--border-light);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.indicator.active {
  background-color: var(--primary-blue);
  transform: scale(1.2);
}

.indicator:hover {
  background-color: var(--accent-blue);
}

/* ===== CHAT BOT MOBILE RESPONSIVE STYLES ===== */
@media (max-width: 640px) {
  .chat-widget {
    bottom: 1rem;
    right: 1rem;
  }

  .chat-container {
    width: calc(100vw - 2rem);
    height: calc(100vh - 120px);
    max-height: 600px;
    bottom: 80px;
    right: -1rem;
  }

  .chat-header {
    padding: 1rem;
  }

  .chat-title h4 {
    font-size: 1rem;
  }

  .chat-messages {
    padding: 0.75rem;
  }

  /* Identification form mobile styles */
  .chat-identification-form {
    padding: 1rem;
  }

  .identification-form-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }

  .identification-intro {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  .form-input {
    padding: 0.75rem;
    font-size: 16px; /* Prevent zoom on iOS */
    min-height: 44px; /* Touch target size */
  }

  .form-label {
    font-size: 0.85rem;
    margin-bottom: 0.375rem;
  }

  .start-chat-button {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    min-height: 48px;
  }

  .chat-form-error {
    font-size: 0.85rem;
    padding: 0.625rem 0.75rem;
  }

  .chat-input-container {
    padding: 0.75rem;
  }

  #chat-input {
    padding: 0.75rem;
    font-size: 16px; /* Prevent zoom on iOS */
    min-height: 44px; /* Touch target size */
  }

  .chat-send {
    min-width: 44px;
    min-height: 44px;
    padding: 0.75rem;
  }
}

@media (max-width: 480px) {
  .chat-widget {
    bottom: 0.5rem;
    right: 0.5rem;
  }

  .chat-container {
    width: calc(100vw - 1rem);
    height: calc(100vh - 100px);
    bottom: 70px;
    right: -0.5rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .chat-identification-form {
    padding: 0.75rem;
  }

  .identification-form-content h4 {
    font-size: 1.125rem;
  }

  .form-input {
    padding: 0.625rem 0.75rem;
  }

  .start-chat-button {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
}

/* Mobile responsiveness for testimonials */
@media (max-width: 1024px) {
  .testimonial-card {
    flex: 0 0 calc(50% - 1rem);
  }
}

@media (max-width: 768px) {
  .testimonial-card {
    flex: 0 0 calc(100% - 1rem);
    margin: 0 0.5rem;
  }

  .testimonials-carousel {
    padding: 0 var(--space-sm);
  }

  .carousel-controls {
    margin-top: var(--space-lg);
  }

  .carousel-btn {
    width: 45px;
    height: 45px;
  }

  .testimonial-content p {
    font-size: 0.95rem;
  }

  .testimonial-author {
    flex-direction: column;
    text-align: center;
  }

  .testimonial-author img {
    width: 60px;
    height: 60px;
  }
}

/* ===== LEGAL CONTENT STYLES ===== */
.legal-content {
  padding: var(--space-3xl) 0;
  background-color: var(--background-white);
  min-height: calc(100vh - 200px);
}

.legal-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
  padding: 0 var(--space-md);
}

.legal-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.legal-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.legal-intro {
  max-width: 800px;
  margin: 0 auto var(--space-3xl);
  padding: 0 var(--space-md);
  text-align: center;
}

.legal-intro p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.legal-sections {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.legal-section {
  margin-bottom: var(--space-3xl);
  padding: var(--space-xl);
  background-color: #fafafa;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.legal-section h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--primary-mint);
}

.legal-section h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: var(--space-lg) 0 var(--space-md);
}

.legal-section p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.legal-section ul {
  margin: 0 0 var(--space-md) var(--space-lg);
  padding: 0;
}

.legal-section li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  list-style-type: none;
  position: relative;
  padding-left: var(--space-md);
}

.legal-section li::before {
  content: "•";
  color: var(--primary-mint);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.legal-section strong {
  color: var(--text-primary);
  font-weight: 600;
}

.contact-details {
  background-color: #f0f9ff;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary-blue);
  margin: var(--space-lg) 0;
}

.contact-details p {
  margin-bottom: var(--space-sm);
}

.legal-references {
  margin-top: var(--space-3xl);
  padding: var(--space-xl);
  background-color: #f8fafc;
  border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0;
}

.legal-references h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.legal-references p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.legal-references ul {
  margin: 0 0 var(--space-md) var(--space-lg);
  padding: 0;
}

.legal-references li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  list-style-type: none;
  position: relative;
  padding-left: var(--space-md);
}

.legal-references li::before {
  content: "✓";
  color: var(--primary-mint);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.legal-references a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
}

.legal-references a:hover {
  text-decoration: underline;
}

/* Mobile responsiveness for legal content */
@media (max-width: 768px) {
  .legal-content {
    padding: var(--space-2xl) 0;
  }

  .legal-header {
    margin-bottom: var(--space-2xl);
    padding: 0 var(--space-sm);
  }

  .legal-header h1 {
    font-size: 2rem;
  }

  .legal-subtitle {
    font-size: 0.9rem;
  }

  .legal-intro {
    margin: 0 auto var(--space-2xl);
    padding: 0 var(--space-sm);
  }

  .legal-intro p {
    font-size: 0.9rem;
  }

  .legal-sections {
    padding: 0 var(--space-sm);
  }

  .legal-section {
    margin-bottom: var(--space-2xl);
    padding: var(--space-lg);
  }

  .legal-section h2 {
    font-size: 1.2rem;
    margin-bottom: var(--space-md);
  }

  .legal-section h3 {
    font-size: 0.9rem;
    margin: var(--space-md) 0 var(--space-sm);
  }

  .legal-section p,
  .legal-section li,
  .legal-references p,
  .legal-references li {
    font-size: 0.9rem;
  }

  .contact-details {
    padding: var(--space-md);
  }

  .legal-references {
    padding: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .legal-header h1 {
    font-size: 1.75rem;
  }

  .legal-section {
    padding: var(--space-md);
  }

  .legal-section h2 {
    font-size: 1.1rem;
  }

  .legal-section ul,
  .legal-references ul {
    margin-left: var(--space-md);
  }

  .legal-section li,
  .legal-references li {
    padding-left: var(--space-sm);
  }
}
