/* ==========================================================================
   ADEBLED SERVICES — MAIN.CSS
   Global Design System, CSS Custom Properties, Reset & Base Styles
   ========================================================================== */

/* ----------------------------------------------------------
   CSS CUSTOM PROPERTIES — DESIGN TOKENS
   ---------------------------------------------------------- */
:root {
  /* ---- Color Palette ----
     Rebrand 2026: deep-teal identity drawn from the Adebled "AD" logo.
     Token NAMES are unchanged (used site-wide) — only values are retuned. */
  --color-navy-900: #08191F;        /* Deep teal-black base */
  --color-navy-800: #0C242C;
  --color-navy-700: #103039;
  --color-navy-600: #184150;
  --color-charcoal: #0A1A1F;         /* Aluminium hero bg */
  --color-electric-blue: #0DB4C4;    /* Primary accent — brand teal-cyan (IT, Training) */
  --color-electric-blue-hover: #0A96A4;
  --color-electric-blue-light: rgba(13, 180, 196, 0.12);
  --color-electric-blue-glow: rgba(13, 180, 196, 0.42);
  --color-gold: #E9A23B;             /* Secondary accent — warm amber (Aluminium) */
  --color-gold-hover: #D28E2B;
  --color-gold-light: rgba(233, 162, 59, 0.12);
  --color-gold-glow: rgba(233, 162, 59, 0.42);
  --color-green: #17B981;            /* Training success accent — emerald */
  --color-green-hover: #12A472;
  --color-white: #FFFFFF;
  --color-off-white: #F3F8F8;        /* Light section backgrounds (subtle teal tint) */
  --color-gray-100: #EDF3F3;
  --color-gray-200: #E1E8E8;
  --color-gray-300: #C8CCD8;
  --color-gray-400: #9AA0B0;
  --color-gray-500: #6B7288;
  --color-gray-600: #4E5568;
  --color-gray-700: #3A4052;
  --color-gray-800: #2D3242;
  --color-gray-900: #1F2330;
  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #1EBE5A;
  --color-error: #EF4444;
  --color-success: #10B981;

  /* ---- Gradients ---- */
  --gradient-navy: linear-gradient(135deg, var(--color-navy-900) 0%, var(--color-navy-700) 100%);
  --gradient-electric: linear-gradient(135deg, var(--color-electric-blue) 0%, #16D9C9 100%);
  --gradient-gold: linear-gradient(135deg, var(--color-gold) 0%, #FFC66B 100%);
  --gradient-green: linear-gradient(135deg, var(--color-green) 0%, #34D399 100%);
  --gradient-hero-it: linear-gradient(145deg, var(--color-navy-900) 0%, var(--color-navy-700) 50%, var(--color-navy-800) 100%);
  --gradient-hero-alu: linear-gradient(145deg, var(--color-charcoal) 0%, #0E2129 50%, var(--color-navy-900) 100%);
  --gradient-hero-training: linear-gradient(145deg, var(--color-navy-900) 0%, var(--color-navy-700) 50%, var(--color-navy-800) 100%);
  --gradient-mesh: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(13, 180, 196, 0.16) 0%, transparent 50%),
                    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(233, 162, 59, 0.10) 0%, transparent 50%),
                    radial-gradient(ellipse 50% 30% at 10% 80%, rgba(23, 185, 129, 0.08) 0%, transparent 50%);

  /* ---- Typography ---- */
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --fs-xs: 0.75rem;     /* 12px */
  --fs-sm: 0.875rem;    /* 14px */
  --fs-base: 1rem;      /* 16px */
  --fs-lg: 1.125rem;    /* 18px */
  --fs-xl: 1.25rem;     /* 20px */
  --fs-2xl: 1.5rem;     /* 24px */
  --fs-3xl: 2rem;       /* 32px */
  --fs-4xl: 2.5rem;     /* 40px */
  --fs-5xl: 3.5rem;     /* 56px */
  --fs-6xl: 4.5rem;     /* 72px */
  --fs-7xl: 6rem;       /* 96px */

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;
  --fw-black: 900;

  --lh-tight: 1.1;
  --lh-snug: 1.35;
  --lh-normal: 1.6;
  --lh-relaxed: 1.8;

  /* ---- Spacing Scale ---- */
  --space-0: 0;
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */

  /* ---- Border Radius ---- */
  --radius-none: 0;
  --radius-sm: 0.5rem;     /* 8px */
  --radius-md: 0.625rem;   /* 10px */
  --radius-lg: 0.875rem;   /* 14px */
  --radius-xl: 1.125rem;   /* 18px */
  --radius-2xl: 1.75rem;   /* 28px */
  --radius-full: 9999px;

  /* ---- Shadows & Depth ---- */
  --shadow-xs: 0 1px 2px rgba(8, 25, 31, 0.06);
  --shadow-sm: 0 2px 6px rgba(8, 25, 31, 0.08);
  --shadow-md: 0 6px 16px rgba(8, 25, 31, 0.10);
  --shadow-lg: 0 12px 28px rgba(8, 25, 31, 0.12);
  --shadow-xl: 0 20px 52px rgba(8, 25, 31, 0.16);
  --shadow-2xl: 0 28px 70px rgba(8, 25, 31, 0.20);
  --shadow-inner: inset 0 2px 4px rgba(8, 25, 31, 0.06);
  --shadow-glow-blue: 0 0 44px var(--color-electric-blue-glow);
  --shadow-glow-gold: 0 0 44px var(--color-gold-glow);
  --shadow-glow-green: 0 0 44px rgba(23, 185, 129, 0.4);
  --shadow-card: 0 6px 28px rgba(8, 25, 31, 0.08), 0 1px 3px rgba(8, 25, 31, 0.05);
  --shadow-card-hover: 0 18px 48px rgba(8, 25, 31, 0.16), 0 6px 16px rgba(8, 25, 31, 0.08);

  /* ---- Glassmorphism ---- */
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-blur: blur(20px);
  --glass-bg-light: rgba(248, 249, 255, 0.8);
  --glass-border-light: rgba(8, 25, 31, 0.08);

  /* ---- Transitions ---- */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
  --transition-bounce: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ---- Breakpoints ---- */
  --bp-sm: 640px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;
  --bp-2xl: 1536px;

  /* ---- Z-Index Scale ---- */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
  --z-toast: 800;
  --z-loading: 9999;

  /* ---- Container ---- */
  --container-max: 1280px;
  --container-padding: var(--space-6);
  --container-padding-lg: var(--space-8);
}

/* ----------------------------------------------------------
   CSS RESET & BASE
   ---------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  /* Scroll-reveal is JS/IntersectionObserver-driven; under reduced motion the
     observer is skipped, so force revealed state or content stays invisible. */
  .fade-in, .slide-up, .scale-in, .stagger-item {
    opacity: 1 !important;
    transform: none !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--color-gray-700);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--color-navy-900);
}

h1 { font-size: var(--fs-5xl); }
h2 { font-size: var(--fs-4xl); }
h3 { font-size: var(--fs-3xl); }
h4 { font-size: var(--fs-2xl); }
h5 { font-size: var(--fs-xl); }
h6 { font-size: var(--fs-lg); }

@media (max-width: 768px) {
  h1 { font-size: var(--fs-4xl); }
  h2 { font-size: var(--fs-3xl); }
  h3 { font-size: var(--fs-2xl); }
  h4 { font-size: var(--fs-xl); }
}

p { line-height: var(--lh-relaxed); }

a {
  color: var(--color-electric-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--color-electric-blue-hover); }
a:focus-visible {
  outline: 2px solid var(--color-electric-blue);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

ul, ol { list-style: none; }

/* ----------------------------------------------------------
   UTILITY CLASSES
   ---------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Generic hidden utility — used by the button loading spinner (.btn-loader.hidden),
   router pages (.page.hidden) and the floating WhatsApp button. Was previously
   relied upon but only defined for .page/.floating-whatsapp; the button "Sending…"
   loader showed permanently without it. */
.hidden,
.page.hidden,
[hidden] {
  display: none !important;
}

.page.visible {
  display: block;
}

.floating-whatsapp.hidden {
  display: none !important;
}

/* ----------------------------------------------------------
   FLOATING ACTION BUTTONS (WhatsApp + Back to Top)
   ---------------------------------------------------------- */
.floating-whatsapp {
  position: fixed;
  right: var(--space-6);
  bottom: var(--space-6);
  z-index: var(--z-fixed);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--color-whatsapp);
  color: var(--color-white);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45), var(--shadow-lg);
  transition: transform var(--transition-bounce), box-shadow var(--transition-base);
}
.floating-whatsapp::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--color-whatsapp);
  animation: fabPulse 2.4s ease-out infinite;
}
.floating-whatsapp:hover {
  color: var(--color-white);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 16px 36px rgba(37, 211, 102, 0.55), var(--shadow-xl);
}
.floating-whatsapp svg { width: 30px; height: 30px; position: relative; }

@keyframes fabPulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}

.whatsapp-tooltip {
  position: absolute;
  right: calc(100% + var(--space-3));
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  white-space: nowrap;
  padding: var(--space-2) var(--space-4);
  background: var(--color-navy-900);
  color: var(--color-white);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base), transform var(--transition-base);
}
.floating-whatsapp:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.back-to-top {
  position: fixed;
  right: var(--space-6);
  bottom: calc(var(--space-6) + 60px + var(--space-3));
  z-index: var(--z-fixed);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  background: var(--color-navy-900);
  color: var(--color-white);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base), background var(--transition-fast);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--color-electric-blue);
  transform: translateY(-3px);
}

@media (max-width: 480px) {
  .floating-whatsapp { width: 54px; height: 54px; right: var(--space-4); bottom: var(--space-4); }
  .floating-whatsapp svg { width: 26px; height: 26px; }
  .whatsapp-tooltip { display: none; }
  .back-to-top { right: var(--space-4); bottom: calc(var(--space-4) + 54px + var(--space-2)); }
}

/* Navbar row — markup uses .navbar-inner but this rule was missing entirely,
   so logo/links/hamburger stacked as loose rows on every page. */
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
  min-height: 64px;
}

/* Shared mobile-menu / hamburger base (Aluminium & Training rely on these;
   they were previously defined globally in it-services.css. The IT division
   overrides them with #it-services-page-scoped rules for its dark theme). */
.mobile-menu-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-gray-100);
  transition: background var(--transition-fast);
}
.mobile-menu-toggle:hover { background: var(--color-gray-200); }
.hamburger {
  position: relative; width: 24px; height: 2px;
  background: var(--color-navy-900); border-radius: 2px;
  transition: background var(--transition-fast);
}
.hamburger::before, .hamburger::after {
  content: ''; position: absolute; left: 0;
  width: 100%; height: 2px; background: var(--color-navy-900);
  border-radius: 2px; transition: transform var(--transition-base);
}
.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }
.mobile-menu-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.mobile-menu-toggle[aria-expanded="true"] .hamburger::before { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-toggle[aria-expanded="true"] .hamburger::after { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-menu {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--color-white); border-bottom: 1px solid var(--color-gray-200);
  padding: var(--space-6); box-shadow: var(--shadow-xl);
  flex-direction: column; gap: var(--space-4);
}
.mobile-menu.open { display: flex; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}
@media (min-width: 1024px) {
  .container { padding: 0 var(--container-padding-lg); }
}

.section {
  padding: var(--space-16) 0;
}
@media (max-width: 768px) {
  .section { padding: var(--space-12) 0; }
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-12);
}
.section-header .subtitle {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-electric-blue);
  margin-bottom: var(--space-3);
}
.section-header h2 { margin-bottom: var(--space-4); }
.section-header p { color: var(--color-gray-500); font-size: var(--fs-lg); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-8);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.btn-primary {
  background: var(--gradient-electric);
  color: var(--color-white);
  box-shadow: var(--shadow-md), var(--shadow-glow-blue);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow-blue);
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: transparent;
  color: var(--color-electric-blue);
  border: 2px solid var(--color-electric-blue);
}
.btn-secondary:hover {
  background: var(--color-electric-blue-light);
  transform: translateY(-2px);
}
.btn-gold {
  background: var(--gradient-gold);
  color: var(--color-navy-900);
  box-shadow: var(--shadow-md), var(--shadow-glow-gold);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow-gold);
}
.btn-green {
  background: var(--gradient-green);
  color: var(--color-white);
  box-shadow: var(--shadow-md), var(--shadow-glow-green);
}
.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow-green);
}
.btn-whatsapp {
  background: var(--color-whatsapp);
  color: var(--color-white);
}
.btn-whatsapp:hover {
  background: var(--color-whatsapp-hover);
  transform: translateY(-2px);
}
.btn-lg { padding: var(--space-5) var(--space-10); font-size: var(--fs-lg); }
.btn-sm { padding: var(--space-2) var(--space-5); font-size: var(--fs-sm); }
.btn-full { width: 100%; }

/* Card Base */
.card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-slow);
  overflow: hidden;
}
.card:hover { box-shadow: var(--shadow-card-hover); }

/* ============================================================
   Shared components — process timeline steps + testimonial cards.
   These were previously defined (unscoped) in it-services.css and are
   used by the Aluminium/Training divisions; restored here globally after
   the IT stylesheet was namespaced. IT uses its own scoped variants.
   ============================================================ */

/* Process timeline step (gold vertical line lives on .process-timeline-5::before) */
.process-step {
  position: relative;
  padding-left: 84px;
  min-height: 60px;
}
.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  background: var(--gradient-gold);
  color: var(--color-navy-900);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-lg);
  box-shadow: var(--shadow-md);
  z-index: 1;
}
.step-content { padding-top: var(--space-2); }
.step-content h3 {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--color-navy-900);
  margin-bottom: var(--space-2);
}
.step-content p {
  color: var(--color-gray-600);
  line-height: var(--lh-relaxed);
  max-width: 60ch;
}
@media (max-width: 768px) {
  .process-step { padding-left: 60px; }
  .step-number { width: 40px; height: 40px; font-size: var(--fs-sm); }
  .step-content h3 { font-size: var(--fs-lg); }
}

/* Testimonial card */
/* ---- Modern glassmorphic review card (dark teal-navy glass + gold accents) ---- */
.testimonial-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-7) var(--space-7) var(--space-6);
  height: 100%;
  border-radius: 1.5rem;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: linear-gradient(152deg, #275169 0%, #163646 46%, #0c2029 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 55px -24px rgba(8, 22, 30, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
/* oversized decorative quote mark */
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 0.9rem; right: 1.5rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 7rem;
  line-height: 1;
  color: var(--color-gold);
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}
/* soft gold glow flourish */
.testimonial-card::after {
  content: '';
  position: absolute;
  top: -35%; left: -12%;
  width: 65%; height: 65%;
  background: radial-gradient(closest-side, rgba(230, 160, 40, 0.16), transparent);
  pointer-events: none;
  z-index: 0;
}
.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 34px 70px -22px rgba(8, 22, 30, 0.78), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
/* Reorder to match the reference: avatar + name on top, stars, then quote */
.testimonial-author {
  order: 0;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0 0 var(--space-4);
  padding: 0;
  border: none;
  position: relative;
  z-index: 1;
}
.author-avatar {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  background: var(--gradient-gold);
  color: var(--color-navy-900);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  box-shadow: 0 0 0 3px rgba(230, 160, 40, 0.25);
}
.author-info h4 {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  color: #fff;
  margin: 0 0 2px;
  line-height: 1.2;
}
.author-info span {
  display: block;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.3;
}
.testimonial-stars {
  order: 1;
  display: flex;
  gap: 3px;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
}
.testimonial-stars svg { width: 17px; height: 17px; filter: drop-shadow(0 1px 2px rgba(230,160,40,0.4)); }
.testimonial-text {
  order: 2;
  flex: 1 1 auto;
  position: relative;
  z-index: 1;
  font-size: 1.0125rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.72;
  margin: 0;
}

/* Grid Helpers */
.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Phones: keep card grids two-up so pages don't become endless single columns */
@media (max-width: 640px) {
  .services-grid,
  .products-grid,
  .gallery-grid,
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }

  .services-grid .service-card,
  .why-grid > * {
    padding: var(--space-4) var(--space-3);
  }

  .services-grid .service-card h3,
  .why-grid h3 {
    font-size: var(--fs-base);
  }

  .services-grid .service-card p,
  .why-grid p {
    font-size: var(--fs-xs);
    line-height: var(--lh-normal);
  }

  .services-grid .service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-3);
  }

  .services-grid .service-icon svg {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
/* Re-assert two-up phone grids after the 1fr fallback above (same specificity, later wins) */
@media (max-width: 640px) {
  .services-grid, .products-grid, .gallery-grid, .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-card .product-content { padding: var(--space-3); }
  .product-card .product-content h3 { font-size: var(--fs-base); }
  .product-card .product-content p {
    font-size: var(--fs-xs);
    line-height: var(--lh-normal);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .product-card .product-cta { font-size: var(--fs-xs); }

  .gallery-item figcaption { padding: var(--space-3); }
  .gallery-item figcaption h4 { font-size: var(--fs-sm); }
  .gallery-item figcaption p { font-size: var(--fs-xs); line-height: var(--lh-normal); }
}

/* Flex Helpers */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { flex-direction: column; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* Text Colors */
.text-navy { color: var(--color-navy-900); }
.text-gray { color: var(--color-gray-500); }
.text-muted { color: var(--color-gray-400); }
.text-white { color: var(--color-white); }
.text-blue { color: var(--color-electric-blue); }
.text-gold { color: var(--color-gold); }
.text-green { color: var(--color-green); }

/* Backgrounds */
.bg-navy { background: var(--color-navy-900); }
.bg-off-white { background: var(--color-off-white); }
.bg-gradient-navy { background: var(--gradient-navy); }
.bg-gradient-electric { background: var(--gradient-electric); }
.bg-gradient-gold { background: var(--gradient-gold); }

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

.slide-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.slide-up.visible { opacity: 1; transform: translateY(0); }

.scale-in {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity var(--transition-base), transform var(--transition-base);
}
.scale-in.visible { opacity: 1; transform: scale(1); }

/* Stagger delays */
.delay-1 { transition-delay: 100ms; }
.delay-2 { transition-delay: 200ms; }
.delay-3 { transition-delay: 300ms; }
.delay-4 { transition-delay: 400ms; }
.delay-5 { transition-delay: 500ms; }
.delay-6 { transition-delay: 600ms; }

/* ----------------------------------------------------------
   SMALL-PHONE REFINEMENTS (<= 480px)
   ---------------------------------------------------------- */
@media (max-width: 480px) {
  h1 { font-size: var(--fs-3xl); }
  h2 { font-size: var(--fs-2xl); }
  h3 { font-size: var(--fs-xl); }
  .section { padding: var(--space-10) 0; }
  .container { padding: 0 var(--space-4); }
  .section-header { margin-bottom: var(--space-8); }
  .section-header p { font-size: var(--fs-base); }
  .btn-lg { padding: var(--space-4) var(--space-6); font-size: var(--fs-base); }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
}

/* ==========================================================================
   END OF MAIN.CSS
   ========================================================================== */
