/**
 * Étoile Lash Studio - Custom Improvements
 * Modern, elegant design system for beauty & lash extensions
 * Optimized for user experience, accessibility, and local SEO
 */

:root {
  /* Primary Color Palette - Calm teal inspired by the studio logo */
  --primary-50: #f4f9fb;
  --primary-100: #dfeef5;
  --primary-200: #c6e0ec;
  --primary-300: #9ec7dc;
  --primary-400: #6ea9c8;
  --primary-500: #3f8cb3;
  --primary-600: #104966;
  --primary-700: #0c3a52;
  --primary-800: #072b3d;
  --primary-900: #041c29;

  /* Accent - Soft coral for approachable warmth */
  --accent-50: #fff7f3;
  --accent-100: #fdebe1;
  --accent-200: #fad3c0;
  --accent-300: #f4b194;
  --accent-400: #ec8a6c;
  --accent-500: #dd6a4e;
  --accent-600: #c2533d;
  --accent-700: #a14232;
  --accent-800: #7f3227;
  --accent-900: #592019;

  /* Neutral Palette - Cool greige undertones */
  --neutral-50: #f5f8fa;
  --neutral-100: #e7eef2;
  --neutral-200: #d4e1e8;
  --neutral-300: #bccdd7;
  --neutral-400: #98b0bd;
  --neutral-500: #7692a0;
  --neutral-600: #5c7685;
  --neutral-700: #445966;
  --neutral-800: #2c3c47;
  --neutral-900: #1a252d;

  /* Surface & Text Tokens */
  --surface-page: #f5f8fa;
  --surface-muted: #ecf3f7;
  --surface-card: #ffffff;
  --surface-elevated: #f9fcfd;
  --surface-contrast: #d6e6ef;
  --text-heading: #0f2a3b;
  --text-body: #2f4b59;
  --text-muted: #56707c;
  --text-on-primary: #ffffff;

  /* Semantic Colors */
  --color-success: #0f9960;
  --color-warning: #e0952a;
  --color-error: #d64545;
  --color-info: #4f74c9;

  /* Shadows - Soft & subtle */
  --shadow-xs: 0 1px 2px 0 rgba(20, 8, 14, 0.05);
  --shadow-sm: 0 2px 6px rgba(16, 7, 13, 0.08);
  --shadow-md: 0 10px 30px rgba(34, 16, 26, 0.12);
  --shadow-lg: 0 20px 45px rgba(33, 17, 26, 0.15);
  --shadow-xl: 0 35px 70px rgba(33, 17, 26, 0.18);

  /* Border Radius - Modern, soft */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-pill: 999px;
  --radius-full: 9999px;

  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Typography */
  --font-sans: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  --font-serif: "Vollkorn", Georgia, serif;
  --font-mono: "SF Mono", Monaco, "Cascadia Code", monospace;
  --max-text-width: 65ch;

  /* Transitions */
  --transition-all: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, var(--primary-700), var(--primary-400));
  --gradient-soft: linear-gradient(
    135deg,
    rgba(16, 73, 102, 0.08),
    rgba(63, 140, 179, 0.14)
  );
}

/* ===================================
   GLOBAL BASE STYLES
   =================================== */

body {
  background-color: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-sans);
  line-height: 1.75;
  font-size: 1rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  color: var(--text-heading);
  line-height: 1.2;
}

p {
  margin-bottom: var(--space-4);
}

p.lead {
  font-size: 1.2rem;
  color: var(--text-body);
  line-height: 1.8;
}

a {
  color: var(--primary-700);
  transition: var(--transition-fast);
  text-decoration: underline;
  text-decoration-color: rgba(16, 73, 102, 0.4);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover,
a:focus-visible {
  color: var(--primary-800);
  text-decoration-color: currentColor;
  text-decoration-thickness: 2px;
}

/* Ensure white/light text links are accessible */
.text-white a,
.bg-primary a,
a.text-white {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.6);
  text-decoration-thickness: 1px;
  font-weight: 500;
}

.text-white a:hover,
.text-white a:focus-visible,
.bg-primary a:hover,
.bg-primary a:focus-visible,
a.text-white:hover,
a.text-white:focus-visible {
  color: #ffffff;
  text-decoration-color: #ffffff;
  text-decoration-thickness: 2px;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Phone number links - ensure they're always distinguishable */
a[href^="tel:"],
a[href^="sms:"] {
  color: var(--primary-700);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(16, 73, 102, 0.4);
  text-decoration-thickness: 1.5px;
}

a[href^="tel:"]:hover,
a[href^="tel:"]:focus-visible,
a[href^="sms:"]:hover,
a[href^="sms:"]:focus-visible {
  color: var(--primary-800);
  text-decoration-color: currentColor;
  text-decoration-thickness: 2px;
}

/* Phone links in primary/white backgrounds */
.bg-primary a[href^="tel:"],
.bg-primary a[href^="sms:"],
.text-white a[href^="tel:"],
.text-white a[href^="sms:"] {
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.7);
  text-decoration-thickness: 2px;
}

.bg-primary a[href^="tel:"]:hover,
.bg-primary a[href^="sms:"]:hover,
.text-white a[href^="tel:"]:hover,
.text-white a[href^="sms:"]:hover,
.bg-primary a[href^="tel:"]:focus-visible,
.bg-primary a[href^="sms:"]:focus-visible,
.text-white a[href^="tel:"]:focus-visible,
.text-white a[href^="sms:"]:focus-visible {
  color: #ffffff;
  text-decoration-color: #ffffff;
  text-decoration-thickness: 2.5px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.text-muted {
  color: var(--text-muted) !important;
}

section {
  padding: var(--space-16) 0;
  background-color: transparent;
}

.section-eyebrow,
.section-id {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-600);
  background: rgba(16, 73, 102, 0.08);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-3);
}

.section-title {
  margin-bottom: var(--space-4);
  font-size: clamp(2rem, 3vw, 2.75rem);
}

.section-description {
  color: var(--text-body);
  margin-bottom: var(--space-6);
}

.service-hero {
  position: relative;
}

.service-hero-highlight {
  background: var(--surface-card);
  border: 1px solid rgba(16, 73, 102, 0.12);
  box-shadow: var(--shadow-xs);
}

.service-hero-highlight .h6 {
  color: var(--text-heading);
}

.service-hero-card .card-body {
  padding: var(--space-6);
}

.service-hero-card .btn {
  width: 100%;
}

@media (max-width: 767.98px) {
  .service-hero-card .card-body {
    padding: var(--space-5);
  }
}

.local-service-areas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.local-service-areas .badge {
  background: var(--surface-card);
  border: 1px solid rgba(16, 73, 102, 0.16);
  color: var(--primary-700);
  padding: var(--space-1) var(--space-3);
  font-size: 0.85rem;
}

.local-service-highlight {
  background: var(--surface-card);
  border: 1px solid rgba(16, 73, 102, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-xs);
}

.local-service-highlight p {
  margin-bottom: 0;
}

.local-service-map {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  min-height: 240px;
}

.local-service-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 767.98px) {
  .local-service-map {
    min-height: 200px;
  }
}

.surface-muted {
  background: var(--surface-muted);
}

.surface-card {
  background: var(--surface-card);
}

.surface-soft-gradient {
  background: var(--gradient-soft);
}

/* ===================================
   BOOTSTRAP OVERRIDES - Primary Color
   =================================== */

/* Override Bootstrap primary color with our logo teal */
.text-primary {
  color: var(--primary-600) !important;
}

.bg-primary {
  background-image: var(--gradient-brand) !important;
  color: var(--text-on-primary);
}

.bg-primary .section-title,
.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary p,
.bg-primary .lead {
  color: var(--text-on-primary);
}

.btn {
  border-radius: var(--radius-pill);
  padding: var(--space-3) var(--space-6);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: var(--transition-all);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: 1px solid transparent;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--primary-600);
  border-color: var(--primary-600);
  color: var(--text-on-primary);
  box-shadow: var(--shadow-xs);
}

.btn-primary:hover {
  background: var(--primary-700);
  border-color: var(--primary-700);
  box-shadow: var(--shadow-md);
}

.btn-outline-primary {
  color: var(--primary-700);
  border-color: rgba(16, 73, 102, 0.35);
  background: transparent;
}

.btn-outline-primary:hover {
  background: rgba(16, 73, 102, 0.08);
  color: var(--primary-800);
  border-color: var(--primary-600);
}

.btn-light {
  color: var(--text-on-primary);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-light:hover {
  color: var(--text-on-primary);
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light {
  color: var(--text-on-primary);
  border-color: rgba(255, 255, 255, 0.6);
  background: transparent;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-on-primary);
}

.btn--tra-white {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--text-on-primary);
  background: transparent;
}

.btn--tra-white:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-on-primary);
}

.btn--tra-black {
  color: var(--text-heading);
  border-color: rgba(15, 42, 59, 0.4);
  background: transparent;
}

.btn--tra-black:hover,
.hover--black:hover {
  color: var(--primary-700);
  border-color: var(--primary-600);
  background: rgba(16, 73, 102, 0.08);
}

.bg-light {
  background-color: var(--neutral-50) !important;
}

/* ===================================
   CARD IMPROVEMENTS
   =================================== */

.card {
  border: 1px solid rgba(16, 73, 102, 0.08);
  border-radius: var(--radius-xl);
  transition: var(--transition-all);
  overflow: hidden;
  background: var(--surface-card);
  box-shadow: var(--shadow-xs);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: rgba(16, 73, 102, 0.2);
}

.card-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.card-title {
  color: var(--text-heading);
  font-weight: 600;
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.card-text {
  color: var(--text-body);
  line-height: 1.7;
}

.card-eyebrow {
  font-size: 0.875rem;
  color: var(--primary-600);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Ensure equal height cards */
.h-100 {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.h-100 .card-body {
  flex: 1;
}

.h-100 .card-body > *:last-child {
  margin-top: auto;
}

/* ===================================
   SERVICES PAGE SPECIFIC
   =================================== */

/* Service card icons */
.service-icon {
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-full);
  background: rgba(16, 73, 102, 0.12);
  color: var(--primary-700);
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  transition: var(--transition-all);
  box-shadow: inset 0 0 0 1px rgba(16, 73, 102, 0.12);
}

.card:hover .service-icon {
  transform: scale(1.08) translateY(-2px);
}

/* Price display */
.service-price {
  font-size: 1.75rem;
  font-weight: 700;
  font-family: var(--font-serif);
  color: var(--primary-600);
  margin-bottom: var(--space-4);
}

/* Feature list in service cards */
.service-features {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-6);
  flex: 1;
}

.service-features li {
  padding: var(--space-2) 0;
  color: var(--text-body);
  display: flex;
  align-items: flex-start;
  line-height: 1.6;
  border-bottom: 1px solid rgba(16, 73, 102, 0.08);
}

.service-features li:last-child {
  border-bottom: none;
}

.service-features li i,
.service-features li::before {
  color: var(--primary-500);
  margin-right: var(--space-3);
  flex-shrink: 0;
}

/* ===================================
   REVIEWS PAGE IMPROVEMENTS
   =================================== */

.review-card {
  background: var(--surface-card);
  border: 1px solid rgba(16, 73, 102, 0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition-all);
  box-shadow: var(--shadow-xs);
}

.review-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(16, 73, 102, 0.2);
  transform: translateY(-4px);
}

.review-stars {
  color: #f8c44c;
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-3);
}

.review-author {
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: var(--space-1);
}

.review-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: var(--space-4);
}

.review-text {
  color: var(--text-body);
  line-height: 1.7;
  flex: 1;
  margin-bottom: var(--space-4);
}

.review-link {
  color: var(--primary-600);
  font-size: 0.875rem;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-fast);
}

.review-link:hover {
  color: var(--primary-700);
  text-decoration: underline;
}

/* ===================================
   SECTION IMPROVEMENTS
   =================================== */

section h2 {
  color: var(--text-heading);
  font-weight: 700;
  margin-bottom: var(--space-8);
  line-height: 1.2;
}

section h3 {
  color: var(--text-body);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

section p.lead {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: var(--space-6);
}

/* ===================================
   BOOKING INFO COMPONENT
   =================================== */

.booking-info-section {
  padding: var(--space-12) 0;
}

.booking-info-card .card-body {
  padding: var(--space-6);
}

.booking-info-header {
  display: flex;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: var(--space-6);
}

.booking-info-title {
  margin-bottom: var(--space-3);
}

.booking-info-intro {
  margin-bottom: 0;
  color: var(--text-muted);
}

.booking-info-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.booking-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.booking-info-panel {
  background: var(--surface-muted);
  border: 1px solid rgba(16, 73, 102, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.booking-info-panel-title {
  margin: 0;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary-700);
}

.booking-list,
.booking-inline-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.booking-list li {
  padding-bottom: var(--space-2);
  color: var(--text-body);
}

.booking-inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-weight: 600;
}

.booking-inline-list a {
  text-decoration: none;
}

.booking-info-footnote {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .booking-info-section {
    padding: var(--space-8) 0;
  }

  .booking-info-card .card-body {
    padding: var(--space-5);
  }

  .booking-info-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .booking-info-actions {
    width: 100%;
  }

  .booking-info-actions .btn {
    flex: 1;
  }
}

/* ===================================
   HERO SECTION IMPROVEMENTS
   =================================== */

.hero-section h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-6);
}

.hero-section p.lead {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.6;
}

/* ===================================
   BUTTON GROUPS & SPACING
   =================================== */

.btn-group-spacing {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: 1.125rem;
}

/* ===================================
   GRID IMPROVEMENTS
   =================================== */

.g-4 {
  --bs-gutter-x: 1.75rem;
  --bs-gutter-y: 1.75rem;
}

/* Ensure consistent card heights in grid */
.row.g-4 > [class*="col-"] {
  margin-bottom: var(--space-6);
  display: flex;
}

.row.g-4 > [class*="col-"] > * {
  width: 100%;
}

/* ===================================
   FEATURE SECTIONS
   =================================== */

.feature-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.1), rgba(212, 165, 116, 0.05));
  color: #d4a574;
  margin-bottom: var(--space-4);
  box-shadow: 0 4px 12px rgba(212, 165, 116, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.15), rgba(212, 165, 116, 0.08));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-icon:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(212, 165, 116, 0.25);
}

.feature-icon:hover::before {
  opacity: 1;
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--neutral-900);
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.feature-description {
  color: var(--neutral-600);
  line-height: 1.7;
  font-size: 0.9375rem;
}

/* Why Choose Card Enhancement */
.why-choose-card {
  padding: 2rem 1.5rem;
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(212, 165, 116, 0.12);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.why-choose-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #d4a574, rgba(212, 165, 116, 0.3));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.why-choose-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(212, 165, 116, 0.18);
  border-color: rgba(212, 165, 116, 0.25);
}

.why-choose-card:hover::before {
  opacity: 1;
}

.why-choose-card:hover .feature-title {
  color: #d4a574;
}

@media (max-width: 768px) {
  .why-choose-card {
    padding: 1.5rem 1.25rem;
  }

  .feature-icon {
    width: 4rem;
    height: 4rem;
    font-size: 1.75rem;
  }
}

/* ===================================
   STEP/PROCESS INDICATORS
   =================================== */

.step-number {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: var(--space-3);
  box-shadow: var(--shadow-sm);
}

/* ===================================
   FAQ IMPROVEMENTS
   =================================== */

.faq-item {
  background: var(--surface-card);
  border: 1px solid rgba(16, 73, 102, 0.08);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  overflow: hidden;
  transition: var(--transition-all);
}

.faq-item:hover {
  border-color: var(--primary-200);
}

.faq-item[open] {
  border-color: rgba(16, 73, 102, 0.25);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  background: var(--surface-muted);
  cursor: pointer;
  padding: var(--space-5);
  font-weight: 600;
  color: var(--text-heading);
  border-radius: var(--radius-lg);
  transition: var(--transition-fast);
  position: relative;
  padding-right: var(--space-12);
}

.faq-question:hover {
  background: rgba(16, 73, 102, 0.08);
  color: var(--primary-700);
}

.faq-question::before {
  content: "▼";
  position: absolute;
  right: var(--space-5);
  color: var(--primary-600);
  transition: var(--transition-fast);
  font-size: 0.875rem;
}

.faq-item[open] .faq-question::before {
  transform: rotate(-180deg);
}

.faq-answer {
  padding: var(--space-5);
  color: var(--text-body);
  line-height: 1.7;
}

/* ===================================
   BADGE & TAG STYLES
   =================================== */

.badge-primary {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  color: var(--text-on-primary);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.875rem;
  box-shadow: var(--shadow-xs);
}

.section-id {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--primary-600);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: rgba(16, 73, 102, 0.08);
}

/* ===================================
   IMAGE IMPROVEMENTS
   =================================== */

.gallery-image img {
  border-radius: var(--radius-lg);
  transition: var(--transition-all);
  width: 100%;
  height: auto;
  object-fit: cover;
}

.gallery-image:hover img {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

/* ===================================
   RESPONSIVE IMPROVEMENTS
   =================================== */

@media (max-width: 768px) {
  section {
    padding: var(--space-12) 0;
  }

  .card-body {
    padding: var(--space-5);
  }

  .btn-group-spacing {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-group-spacing .btn {
    width: 100%;
    text-align: center;
  }
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.text-gradient {
  background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hover-lift {
  transition: var(--transition-all);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.transition-smooth {
  transition: var(--transition-all);
}

/* Divider */
.divider {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(16, 73, 102, 0.25),
    transparent
  );
  margin: var(--space-8) 0;
}

/* ===================================
   ACCESSIBILITY IMPROVEMENTS
   =================================== */

/* Focus states */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--focus-ring-color);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-700);
  color: var(--text-on-primary);
  padding: var(--space-2) var(--space-4);
  text-decoration: none;
  border-radius: var(--radius-md);
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* ===================================
   PERFORMANCE OPTIMIZATIONS
   =================================== */

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

/* Reduced motion for accessibility */
@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;
  }
}

/* Scroll to top button */
#scrollUp.scroll-to-top-btn {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  z-index: 999999 !important;
  width: 50px !important;
  height: 50px !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: block !important;
  pointer-events: none;
}

#scrollUp.scroll-to-top-btn.visible {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: all;
}

@media (max-width: 768px) {
  #scrollUp.scroll-to-top-btn {
    bottom: 15px !important;
    right: 15px !important;
    width: 45px !important;
    height: 45px !important;
  }
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
  cursor: wait;
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }
}
