/* ==========================
   GCCIP - Premium White & Red Design
   Inspired by 3Sigma - Adapted for Light Theme
========================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ==========================
   CSS VARIABLES
========================== */
:root {
  /* Background */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.8);

  /* Red Accent Colors */
  --accent: #dc2626;
  --accent-light: #ef4444;
  --accent-lighter: #f87171;
  --accent-dark: #b91c1c;
  --accent-glow: rgba(220, 38, 38, 0.4);
  --accent-subtle: rgba(220, 38, 38, 0.1);

  /* Text */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  /* Borders & Lines */
  --border: rgba(15, 23, 42, 0.1);
  --border-light: rgba(15, 23, 42, 0.05);

  /* Glass Effect */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(220, 38, 38, 0.15);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 60px rgba(220, 38, 38, 0.2);
  --shadow-glow-strong: 0 0 80px rgba(220, 38, 38, 0.3);

  /* Spacing */
  --section-padding: 120px 0;
  --container-width: 1200px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ==========================
   RESET & BASE
========================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
}

::selection {
  background: var(--accent);
  color: white;
}

/* ==========================
   TYPOGRAPHY
========================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: clamp(3rem, 6vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* ==========================
   LAYOUT
========================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: var(--section-padding);
  position: relative;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--accent-subtle);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.15rem;
}

/* ==========================
   ANIMATIONS
========================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px var(--accent-glow); }
  50% { box-shadow: 0 0 40px var(--accent-glow), 0 0 60px rgba(220, 38, 38, 0.2); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInFromLeft {
  from { opacity: 0; transform: translateX(-100px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInFromRight {
  from { opacity: 0; transform: translateX(100px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* ==========================
   HEADER
========================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
  z-index: -1;
}

.site-header.scrolled::before,
.site-header.header-white::before {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.brand-logo {
  height: 45px;
  width: auto;
  border-radius: 10px;
}

.site-nav ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.site-nav a {
  position: relative;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 100%;
}

/* Auth buttons */
.auth-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-login {
  padding: 0.6rem 1.5rem;
  color: var(--text-secondary);
  font-weight: 500;
  border-radius: 10px;
  transition: var(--transition);
}

.btn-login:hover {
  color: var(--accent);
}

.btn-signup {
  padding: 0.6rem 1.5rem;
  background: var(--accent);
  color: white;
  font-weight: 600;
  border-radius: 10px;
  transition: var(--transition);
}

.btn-signup:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--accent-glow);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
  z-index: 1001;
}

/* Hide mobile auth links on desktop */
.mobile-auth {
  display: none !important;
}

@media (max-width: 768px) {
  .mobile-auth {
    display: flex !important;
  }
}

.hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ==========================
   HERO SECTION
========================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse, var(--accent-subtle) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: var(--accent-subtle);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 50px;
  margin-bottom: 2rem;
  animation: fadeInDown 0.8s ease forwards;
}

.hero h1 {
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero h1 .highlight {
  color: var(--accent);
  position: relative;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 3rem;
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s forwards;
  opacity: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--accent);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px var(--accent-glow);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

/* Hero visual */
.hero-visual {
  position: relative;
  margin-top: 4rem;
  animation: fadeInUp 1s ease 0.8s forwards;
  opacity: 0;
}

.hero-image {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.1));
  animation: float 6s ease-in-out infinite;
}

/* Map Container & Markers */
.map-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.map-container .hero-image {
  animation: none;
}

.map-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 10;
  cursor: pointer;
}

.marker-dot {
  display: block;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
  position: relative;
  z-index: 2;
  animation: markerFlicker 2s ease-in-out infinite;
}

.marker-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  z-index: 1;
  animation: markerPulse 2s ease-out infinite;
}

.marker-label {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  color: var(--text-primary);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.marker-label::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid white;
}

.map-marker:hover .marker-label {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

.map-marker:hover .marker-dot {
  transform: scale(1.3);
  background: var(--accent-dark);
}

/* Staggered pulse animations for each marker */
.map-marker:nth-child(6) .marker-pulse,
.map-marker:nth-child(6) .marker-dot { animation-delay: 0.3s; }
.map-marker:nth-child(7) .marker-pulse,
.map-marker:nth-child(7) .marker-dot { animation-delay: 0.6s; }
.map-marker:nth-child(8) .marker-pulse,
.map-marker:nth-child(8) .marker-dot { animation-delay: 0.9s; }
.map-marker:nth-child(9) .marker-pulse,
.map-marker:nth-child(9) .marker-dot { animation-delay: 1.2s; }
.map-marker:nth-child(10) .marker-pulse,
.map-marker:nth-child(10) .marker-dot { animation-delay: 1.5s; }

/* Region SVG overlays - fade in/out */
.region-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  animation: regionFade 8s ease-in-out infinite;
}

/* Adjust location4 position */
.region-location4 {
  left: -0.3%;
}

/* Order: location4 -> america -> africa -> europe (2 seconds each) */
.region-overlay[data-order="1"] { animation-delay: 0s; }
.region-overlay[data-order="2"] { animation-delay: 2s; }
.region-overlay[data-order="3"] { animation-delay: 4s; }
.region-overlay[data-order="4"] { animation-delay: 6s; }

@keyframes regionFade {
  0%, 2% {
    opacity: 0;
  }
  5%, 20% {
    opacity: 1;
  }
  23%, 100% {
    opacity: 0;
  }
}

@keyframes markerPulse {
  0% {
    width: 10px;
    height: 10px;
    opacity: 0.6;
  }
  100% {
    width: 35px;
    height: 35px;
    opacity: 0;
  }
}

@keyframes markerFlicker {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
  }
  50% {
    opacity: 0.7;
    box-shadow: 0 2px 16px rgba(220, 38, 38, 0.8);
  }
}


/* ==========================
   FEATURES SECTION
========================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.feature-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  border-radius: 20px;
  transition: var(--transition);
}

.feature-icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--accent);
  stroke-width: 1.5;
  fill: none;
}

.feature-card:hover .feature-icon {
  background: var(--accent);
  transform: scale(1.1) rotate(5deg);
}

.feature-card:hover .feature-icon svg {
  stroke: white;
}

.feature-card h4 {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================
   STATISTICS SECTION
========================== */
.stats-section {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.stats-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.stat-item {
  text-align: center;
  color: white;
}

.stat-number {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.stat-number .counter {
  display: inline-block;
}

.stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.9;
  font-weight: 500;
}

/* ==========================
   SERVICES SHOWCASE
========================== */
.services-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.service-preview {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 450px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  transition: var(--transition);
  border: 1px solid var(--border);
  cursor: pointer;
}

.service-preview:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.service-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(15, 23, 42, 0.85) 100%);
  z-index: 1;
}

/* Card backgrounds */
.service-preview.trademark-card {
  background: linear-gradient(160deg, #fef2f2 0%, #fecaca 40%, #f87171 100%);
}

.service-preview.patent-card {
  background: linear-gradient(160deg, #fff1f2 0%, #fecdd3 40%, #fb7185 100%);
}

/* Floating icon in card */
.service-icon {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 0;
  transition: var(--transition);
}

.service-preview:hover .service-icon {
  transform: translate(-50%, -50%) scale(1.1) rotate(5deg);
  background: rgba(255, 255, 255, 0.4);
}

.service-icon svg {
  width: 50px;
  height: 50px;
  stroke: var(--accent);
  stroke-width: 1.5;
  fill: none;
}

.service-preview-content {
  position: relative;
  z-index: 2;
}

.service-preview .tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.service-preview h3 {
  color: white;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.service-preview p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.6;
}

.service-detail {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.service-detail .eyebrow {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.service-detail h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.service-detail .description {
  color: var(--text-muted);
  margin-bottom: 2rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
}

.service-meta {
  margin-top: auto;
}

.service-meta-item {
  margin-bottom: 1.5rem;
}

.service-meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.service-tags span {
  padding: 0.4rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.service-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.service-actions .btn {
  flex: 1;
  padding: 0.8rem 1.5rem;
  font-size: 0.9rem;
  border-radius: 10px;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
}

.service-actions .btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text-secondary);
}

.service-actions .btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.service-actions .btn-filled {
  background: var(--accent-subtle);
  border: 2px solid transparent;
  color: var(--accent);
}

.service-actions .btn-filled:hover {
  background: var(--accent);
  color: white;
}

.service-cta {
  margin-top: 1.5rem;
}

.service-cta .btn-full {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem;
  background: var(--text-primary);
  color: white;
  font-weight: 600;
  border-radius: 10px;
  transition: var(--transition);
}

.service-cta .btn-full:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* ==========================
   METRICS DASHBOARD
========================== */
.metrics-section {
  background: var(--bg-secondary);
}

.metrics-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.metrics-main {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
}

.metrics-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.metrics-title h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.metrics-title p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.metrics-filters {
  display: flex;
  gap: 0.5rem;
}

.metrics-filters button {
  padding: 0.5rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.metrics-filters button.active,
.metrics-filters button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* Chart wrapper with Y-axis */
.chart-wrapper {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.chart-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem 0.5rem 2.5rem 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
  min-width: 35px;
}

.metrics-chart {
  flex: 1;
  height: 280px;
  background: linear-gradient(180deg, var(--accent-subtle) 0%, transparent 100%);
  border-radius: 16px;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  padding: 1.5rem 1.5rem 0 1.5rem;
  position: relative;
  overflow: visible;
  border-left: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
}

.chart-bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  max-width: 80px;
  padding-bottom: 2rem;
  position: relative;
}

.chart-bar {
  width: 38px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-light) 100%);
  border-radius: 8px 8px 0 0;
  transition: height 0.4s ease, background 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  cursor: pointer;
  box-shadow: 0 -4px 20px rgba(220, 38, 38, 0.2);
  min-height: 20px;
}

.chart-bar:hover {
  background: var(--accent-dark);
  transform: scaleY(1.05);
  transform-origin: bottom;
  box-shadow: 0 -4px 30px rgba(220, 38, 38, 0.4);
}

.bar-value {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: white;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transition: var(--transition);
  white-space: nowrap;
}

.chart-bar:hover .bar-value {
  opacity: 1;
}

.bar-label {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Chart legend */
.chart-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding-top: 0.5rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.legend-dot {
  width: 12px;
  height: 12px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-light) 100%);
  border-radius: 3px;
}

.metrics-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.metric-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: var(--transition);
}

.metric-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.metric-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.metric-card-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-subtle);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.metric-card-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
}

.metric-card-title {
  font-weight: 600;
  color: var(--text-primary);
}

.metric-card-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.metric-card-change {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.metric-card-change.positive {
  color: #10b981;
}

.metric-card-change.negative {
  color: #ef4444;
}

.metric-progress {
  margin-top: 1rem;
}

.progress-bar {
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 4px;
  transition: width 1s ease;
}

/* ==========================
   ABOUT SECTION
========================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content h3 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.about-content p {
  margin-bottom: 1.5rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.about-feature-icon {
  width: 50px;
  height: 50px;
  background: var(--accent-subtle);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
}

.about-feature h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.about-feature p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
}

.about-image::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  background: var(--accent-subtle);
  border-radius: 24px;
  z-index: -1;
}

/* ==========================
   FOOTER
========================== */
.site-footer {
  background: var(--text-primary);
  color: white;
  padding: 80px 0 40px;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .brand {
  color: white;
  margin-bottom: 1.5rem;
  display: inline-flex;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-column h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.75rem;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-column a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: white;
}

/* ==========================
   RESPONSIVE
========================== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .services-showcase {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-preview {
    min-height: 300px;
  }

  .service-detail {
    order: -1;
  }

  .metrics-container {
    grid-template-columns: 1fr;
  }

  .metrics-sidebar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-image {
    order: -1;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  .container {
    padding: 0 1.25rem;
  }

  .hamburger {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--bg-primary);
    padding: 100px 2rem 2rem;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
    z-index: 999;
  }

  .site-nav.active {
    right: 0;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 1.5rem;
  }

  .site-nav a {
    font-size: 1.2rem;
  }

  .auth-buttons {
    display: none;
  }

  /* Mobile nav auth links */
  .mobile-auth {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
  }

  .mobile-auth a {
    display: block;
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    font-size: 1rem;
  }

  .mobile-auth .btn-login-mobile {
    background: var(--bg-secondary);
    color: var(--text-primary);
  }

  .mobile-auth .btn-signup-mobile {
    background: var(--accent);
    color: white;
  }

  .hero {
    min-height: auto;
    padding: 100px 0 40px;
    overflow-x: hidden;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-description {
    font-size: 1rem;
    padding: 0 1rem;
  }

  /* Hide map on mobile, center hero content */
  .hero-visual,
  .map-container,
  .hero-image,
  .map-marker,
  .region-overlay {
    display: none !important;
  }

  .hero-content {
    text-align: center;
    max-width: 100%;
    width: 100%;
    padding: 0 1rem;
  }

  .hero-cta {
    justify-content: center;
  }

  .section {
    overflow-x: hidden;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
  }

  .feature-icon svg {
    width: 30px;
    height: 30px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 2.25rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .services-showcase {
    gap: 1rem;
  }

  .service-preview {
    min-height: 250px;
  }

  .service-icon {
    width: 80px;
    height: 80px;
    top: 30%;
  }

  .service-icon svg {
    width: 40px;
    height: 40px;
  }

  .service-preview h3 {
    font-size: 1.4rem;
  }

  .service-detail {
    padding: 1.5rem;
  }

  .service-detail h3 {
    font-size: 1.5rem;
  }

  .metrics-sidebar {
    grid-template-columns: 1fr;
  }

  .metrics-main {
    padding: 1.25rem;
  }

  .metrics-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .metrics-filters {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

  .metrics-filters button {
    white-space: nowrap;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  .chart-wrapper {
    flex-direction: column;
  }

  .chart-y-axis {
    display: none;
  }

  .metrics-chart {
    height: 180px;
    padding: 1rem 0.5rem 0 0.5rem;
    border-left: none;
  }

  .chart-bar {
    width: 28px;
    transform: scaleY(0.65);
    transform-origin: bottom;
  }

  .chart-bar-group {
    max-width: 50px;
    padding-bottom: 1.5rem;
  }

  .bar-label {
    font-size: 0.7rem;
  }

  .bar-value {
    font-size: 0.65rem;
    padding: 0.15rem 0.35rem;
    top: -22px;
  }

  .chart-legend {
    padding-top: 0.25rem;
  }

  .legend-item {
    font-size: 0.75rem;
  }

  .stats-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .metric-card {
    padding: 1.25rem;
  }

  .metric-card-value {
    font-size: 1.5rem;
  }

  .about-content h3 {
    font-size: 1.75rem;
  }

  .about-features {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .about-image::before {
    top: -10px;
    right: -10px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-column ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
  }

  .footer-column li {
    margin-bottom: 0;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 50px 0;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-eyebrow {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.5rem;
  }

  .stats-section {
    padding: 50px 0;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .stat-label {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
  }

  .service-preview {
    min-height: 220px;
    padding: 1.25rem;
  }

  .service-preview h3 {
    font-size: 1.25rem;
  }

  .service-detail h3 {
    font-size: 1.35rem;
  }

  .service-tags {
    gap: 0.35rem;
  }

  .service-tags span {
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
  }

  .service-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .metrics-chart {
    height: 140px;
    padding: 0.75rem 0.25rem 0 0.25rem;
  }

  .chart-bar {
    width: 18px;
    border-radius: 4px 4px 0 0;
    transform: scaleY(0.5);
    transform-origin: bottom;
  }

  .chart-bar-group {
    max-width: 40px;
    padding-bottom: 1.25rem;
  }

  .bar-label {
    font-size: 0.55rem;
  }

  .bar-value {
    font-size: 0.55rem;
    top: -16px;
    padding: 0.1rem 0.2rem;
  }

  .chart-legend {
    display: none;
  }

  .stats-grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .stats-grid-3 .stat-item:last-child {
    grid-column: span 2;
  }
}

/* ==========================
   ADMIN CONTROLS
========================== */
.admin-controls {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.btn-edit {
  padding: 0.5rem 1rem;
  background: var(--accent-subtle);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn-edit:hover {
  background: var(--accent);
  color: white;
}

/* ==========================
   SKIP LINK & ACCESSIBILITY
========================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--accent);
  color: white;
  padding: 1rem 2rem;
  z-index: 9999;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================
   PAGE HERO (Services/Contact)
========================== */
.page-hero {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: white;
  padding: 10rem 2rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: white;
}

.page-hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
}

.page-hero .hero-eyebrow {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* ==========================
   SERVICES PAGE
========================== */
.services-grid-page {
  display: grid;
  gap: 2rem;
}

.service-card-large {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  transition: var(--transition);
}

.service-card-large:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card-icon {
  width: 80px;
  height: 80px;
  background: var(--accent-subtle);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card-icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--accent);
}

.service-card-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.service-card-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.service-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.service-features li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Coverage Grid */
.coverage-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.coverage-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: var(--transition);
}

.coverage-item:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.coverage-flag {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
}

.coverage-item h4 {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 600;
}

/* ==========================
   CONTACT PAGE
========================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-form-wrapper,
.contact-info-wrapper {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
}

.contact-form-wrapper h3,
.contact-info-wrapper h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.contact-form-modern {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-secondary);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-intro {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact-info-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 12px;
  transition: var(--transition);
}

.contact-info-card:hover {
  background: var(--accent-subtle);
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-subtle);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
}

.contact-info-card h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.contact-info-card p {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 600;
  margin: 0;
}

.contact-social {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.contact-social h4 {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--accent-subtle);
  color: var(--accent);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--accent);
  color: white;
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ==========================
   RESPONSIVE - Services/Contact
========================== */
@media (max-width: 1024px) {
  .service-card-large {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-card-icon {
    width: 60px;
    height: 60px;
  }

  .service-card-icon svg {
    width: 30px;
    height: 30px;
  }

  .coverage-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 8rem 1.5rem 4rem;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .service-features {
    grid-template-columns: 1fr;
  }

  .coverage-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-wrapper,
  .contact-info-wrapper {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .coverage-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .coverage-item {
    padding: 1rem 0.5rem;
  }

  .coverage-flag {
    font-size: 2rem;
  }

  .coverage-item h4 {
    font-size: 0.8rem;
  }
}

/* ==========================
   ABOUT PAGE
========================== */
.about-page-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}

.about-main-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  transition: var(--transition);
}

.about-card:hover {
  border-color: var(--glass-border);
  box-shadow: var(--shadow-md);
}

.about-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.about-card-icon {
  width: 50px;
  height: 50px;
  background: var(--accent-subtle);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-card-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--accent);
}

.about-card-header h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin: 0;
  flex: 1;
}

.about-card p {
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0;
}

.about-card-highlight {
  background: linear-gradient(135deg, var(--accent-subtle) 0%, rgba(255, 255, 255, 0.8) 100%);
  border-color: var(--glass-border);
}

.mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

.mission-box,
.vision-box {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.mission-box h4,
.vision-box h4 {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mission-box h4::before,
.vision-box h4::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.mission-box p,
.vision-box p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* About Sidebar */
.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 120px;
}

.about-sidebar-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
}

.about-sidebar-card h4 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.about-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.about-benefits li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.about-benefits svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  flex-shrink: 0;
}

.about-sidebar-cta {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border: none;
  text-align: center;
}

.about-sidebar-cta h4 {
  color: white;
}

.about-sidebar-cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

/* ==========================
   RESPONSIVE - About Page
========================== */
@media (max-width: 1024px) {
  .about-page-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .about-card {
    padding: 1.5rem;
  }

  .about-card-header {
    flex-wrap: wrap;
  }

  .about-card-header h3 {
    font-size: 1.1rem;
  }

  .mission-vision-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .about-sidebar {
    grid-template-columns: 1fr;
  }

  .about-sidebar-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .about-card-icon {
    width: 44px;
    height: 44px;
  }

  .about-card-icon svg {
    width: 22px;
    height: 22px;
  }

  .mission-box,
  .vision-box {
    padding: 1.25rem;
  }
}

/* ==========================
   AUTH PAGES (Login/Signup)
========================== */
.auth-hero {
  padding: 8rem 2rem 4rem;
}

.auth-section {
  padding-top: 3rem;
  padding-bottom: 4rem;
  background: var(--bg-primary);
}

.auth-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

.auth-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.auth-card-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-icon {
  width: 70px;
  height: 70px;
  background: var(--accent-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.auth-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--accent);
}

.auth-card-header h2 {
  font-size: 1.75rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.auth-card-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.auth-form .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.auth-form .form-group input {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-secondary);
  transition: var(--transition);
}

.auth-form .form-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.btn-full-width {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.auth-footer p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.auth-footer a {
  color: var(--accent);
  font-weight: 600;
}

.auth-footer a:hover {
  color: var(--accent-dark);
}

.auth-features {
  padding-top: 2rem;
}

.auth-features h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.auth-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-benefits li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 10px;
  transition: var(--transition);
}

.auth-benefits li:hover {
  background: var(--accent-subtle);
}

.auth-benefits svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  flex-shrink: 0;
}

/* ==========================
   RESPONSIVE - Auth Pages
========================== */
@media (max-width: 768px) {
  .auth-hero {
    padding: 7rem 1.5rem 4rem;
  }

  .auth-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .auth-card {
    padding: 2rem 1.5rem;
  }

  .auth-features {
    padding-top: 0;
  }

  .auth-benefits li {
    padding: 0.875rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .auth-icon {
    width: 60px;
    height: 60px;
  }

  .auth-icon svg {
    width: 28px;
    height: 28px;
  }

  .auth-card-header h2 {
    font-size: 1.5rem;
  }
}

/* ==========================
   ADMIN EDIT MODAL
========================== */
.edit-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.edit-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.edit-modal {
  background: var(--bg-primary);
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  width: 90%;
  max-width: 560px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s ease;
}

.edit-modal-overlay.active .edit-modal {
  transform: translateY(0) scale(1);
}

.edit-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border);
}

.edit-modal-header h3 {
  font-size: 1.2rem;
  margin: 0;
}

.edit-modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg-secondary);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
}

.edit-modal-close:hover {
  background: var(--accent-subtle);
  color: var(--accent);
}

.edit-modal-body {
  padding: 1.75rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.edit-modal-body label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.edit-modal-body input,
.edit-modal-body textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-secondary);
  transition: var(--transition);
}

.edit-modal-body input:focus,
.edit-modal-body textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.edit-modal-body textarea {
  resize: vertical;
  min-height: 120px;
}

.edit-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--border);
}

.edit-modal-footer .btn-cancel {
  padding: 0.7rem 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.edit-modal-footer .btn-cancel:hover {
  background: var(--bg-tertiary);
}

.edit-modal-footer .btn-save {
  padding: 0.7rem 1.5rem;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.edit-modal-footer .btn-save:hover {
  background: var(--accent-dark);
}

.edit-modal-footer .btn-save:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.edit-modal-footer .btn-save .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: rotate 0.6s linear infinite;
  display: none;
}

.edit-modal-footer .btn-save.loading .spinner {
  display: inline-block;
}

/* Pencil icon for edit buttons */
.btn-edit::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 0.35rem;
  vertical-align: -2px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/%3E%3Cpath d='M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/%3E%3Cpath d='M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ==========================
   TOAST NOTIFICATIONS
========================== */
.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: white;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  transform: translateX(120%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
  transform: translateX(0);
}

.toast-success {
  background: #059669;
}

.toast-error {
  background: #dc2626;
}

/* ==========================
   RESPONSIVE - Modal
========================== */
@media (max-width: 600px) {
  .edit-modal {
    width: 95%;
    max-height: 90vh;
  }

  .edit-modal-header,
  .edit-modal-body,
  .edit-modal-footer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}
