/* =========================================================================
   AMMAR DIGITAL — MAIN STYLESHEET
   Vanilla CSS3. Organized by section. No frameworks.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------------------- */
:root {
  /* Brand colors — extracted from the Ammar Digital logo */
  --navy-900: #12243B;      /* wordmark navy — headings, footer bg */
  --navy-800: #152946;
  --indigo-700: #2B3778;    /* gradient mid */
  --purple-600: #543D95;    /* primary brand purple */
  --purple-500: #4A4494;
  --teal-500: #309BAB;      /* accent teal — CTAs hover, highlights */
  --teal-400: #3EB8C9;

  /* Signature gradient (matches the logo mark flow) */
  --grad-brand: linear-gradient(135deg, #543D95 0%, #2B3778 45%, #309BAB 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(84,61,149,0.08), rgba(48,155,171,0.08));

  /* Neutrals */
  --white: #FFFFFF;
  --off-white: #F7F8FB;
  --gray-100: #EEF1F6;
  --gray-300: #C7CEDB;
  --gray-500: #6E7A8F;
  --gray-700: #3B475C;

  /* Typography */
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing & layout */
  --container: 1200px;
  --section-pad: clamp(4rem, 8vw, 7rem);
  --radius-md: 14px;
  --radius-lg: 24px;

  /* Shadows */
  --shadow-card: 0 8px 30px rgba(18, 36, 59, 0.08);
  --shadow-card-hover: 0 16px 45px rgba(84, 61, 149, 0.18);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.25s;
  --dur-med: 0.5s;
  --dur-slow: 0.8s;

  /* Header */
  --header-h: 100px;
}

/* -------------------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; overflow-x: hidden; max-width: 100%; }

body {
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy-900);
  line-height: 1.2;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 700; }
p { margin: 0 0 1rem; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--teal-400);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: var(--section-pad) 0; }

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple-600);
  margin-bottom: 0.75rem;
}

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

.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bg-off { background: var(--off-white); }

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

.skip-link {
  position: absolute;
  left: 1rem; top: -60px;
  background: var(--navy-900);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  z-index: 1000;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* -------------------------------------------------------------------------
   3. BUTTONS
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.9rem;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  min-height: 44px;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-brand);
  color: var(--white);
  box-shadow: var(--shadow-card);
}
.btn-primary:hover, .btn-primary:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.btn-secondary {
  background: transparent;
  border-color: var(--purple-600);
  color: var(--purple-600);
}
.btn-secondary:hover, .btn-secondary:focus-visible {
  background: var(--grad-brand);
  border-color: transparent;
  color: var(--white);
  transform: translateY(-3px);
}

.btn-white {
  background: var(--white);
  color: var(--purple-600);
}
.btn-white:hover, .btn-white:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}

.btn-outline-white {
  background: transparent;
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
}
.btn-outline-white:hover, .btn-outline-white:focus-visible {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  transform: translateY(-3px);
}

.btn-block { width: 100%; }

.btn-sm { padding: 0.65rem 1.3rem; font-size: 0.88rem; }

/* -------------------------------------------------------------------------
   4. HEADER / NAVIGATION
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.site-header.is-scrolled {
  border-bottom-color: var(--gray-100);
  box-shadow: 0 4px 24px rgba(18,36,59,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand img { height: 76px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 2rem; }
.nav-list { display: flex; align-items: center; gap: 1.9rem; }

.nav-list > li { position: relative; }
.nav-item.has-dropdown { padding-bottom: 14px; margin-bottom: -14px; }

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--navy-900);
  padding: 0.5rem 0.1rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -4px;
  height: 3px;
  border-radius: 2px;
  background: var(--grad-brand);
  transition: right var(--dur-fast) var(--ease-out);
}
.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-item.is-active .nav-link::after {
  right: 0;
}
.nav-item.is-active .nav-link { color: var(--purple-600); }

.caret { width: 10px; height: 10px; flex-shrink: 0; transition: transform var(--dur-fast) var(--ease-out); }
.has-dropdown[aria-expanded="true"] .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 260px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card-hover);
  padding: 0.6rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), visibility var(--dur-fast);
  z-index: 50;
}
.nav-item.has-dropdown:hover .dropdown,
.nav-item.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown li a {
  display: block;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.dropdown li a:hover, .dropdown li a:focus-visible {
  background: var(--grad-brand-soft);
  color: var(--purple-600);
}

.header-cta { display: flex; align-items: center; gap: 1rem; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  margin: 0 auto;
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile slide-in menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform var(--dur-med) var(--ease-out);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateX(0); }

.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.mobile-menu-close {
  width: 44px; height: 44px;
  background: var(--gray-100);
  border: none;
  border-radius: 50%;
  font-size: 1.4rem;
  color: var(--navy-900);
}

.mobile-nav-list { display: flex; flex-direction: column; gap: 0.3rem; }
.mobile-nav-list > li {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.mobile-menu.is-open .mobile-nav-list > li { opacity: 1; transform: translateY(0); }

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.25rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy-900);
  border-bottom: 1px solid var(--gray-100);
  min-height: 44px;
}

.mobile-accordion-btn {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.25rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy-900);
  border-bottom: 1px solid var(--gray-100);
  min-height: 44px;
}
.mobile-accordion-btn .caret { transition: transform var(--dur-fast) var(--ease-out); }
.mobile-accordion-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }

.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-med) var(--ease-out);
}
.mobile-submenu.is-open { max-height: 400px; }
.mobile-submenu li a {
  display: block;
  padding: 0.75rem 0.5rem 0.75rem 1.25rem;
  font-size: 1rem;
  color: var(--gray-700);
  font-weight: 500;
}

.mobile-menu-cta { margin-top: 1.5rem; }

body.menu-open { overflow: hidden; }

/* -------------------------------------------------------------------------
   5. HERO — HOME
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 6rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-copy h1 { margin-bottom: 1.25rem; }
.hero-sub { font-size: 1.1rem; color: var(--gray-500); max-width: 540px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-media { position: relative; }
.hero-media-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card-hover);
}
.hero-media-card img { width: 100%; height: 100%; object-fit: cover; }

.hero-badge {
  position: absolute;
  bottom: -1.25rem;
  left: -1.25rem;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card-hover);
  padding: 1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  animation: float-badge 6s ease-in-out infinite;
}
.hero-badge-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--grad-brand);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}
.hero-badge strong { display: block; font-size: 1.1rem; color: var(--navy-900); }
.hero-badge span { font-size: 0.78rem; color: var(--gray-500); font-family: var(--font-body); }

@keyframes float-badge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Decorative gradient blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  background: var(--grad-brand);
  filter: blur(90px);
  opacity: 0.25;
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}
.blob-1 {
  width: 420px; height: 420px;
  top: -120px; left: -100px;
  animation: blob-float-1 16s ease-in-out infinite;
}
.blob-2 {
  width: 360px; height: 360px;
  bottom: -140px; right: -80px;
  animation: blob-float-2 14s ease-in-out infinite;
}
@keyframes blob-float-1 {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
}
@keyframes blob-float-2 {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-30px, -25px) scale(1.1); }
}

/* -------------------------------------------------------------------------
   6. PAGE HERO (inner pages)
   ------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 4rem;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--indigo-700) 100%);
  color: var(--white);
}
.page-hero .blob { opacity: 0.35; }
.page-hero-content { position: relative; z-index: 2; text-align: center; }
.breadcrumb {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1rem;
  font-weight: 500;
}
.breadcrumb a { color: rgba(255,255,255,0.9); }
.breadcrumb a:hover { color: var(--teal-400); }
.page-hero h1 { color: var(--white); margin-bottom: 0.5rem; }
.page-hero-sub { color: rgba(255,255,255,0.8); max-width: 620px; margin: 0.75rem auto 0; }

/* -------------------------------------------------------------------------
   7. TRUST STRIP / MARQUEE
   ------------------------------------------------------------------------- */
.trust-strip { padding: 2.5rem 0; overflow: hidden; }
.marquee {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}
.marquee:hover { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  background: var(--grad-brand-soft);
  color: var(--purple-600);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  border: 1px solid rgba(84,61,149,0.15);
}

/* -------------------------------------------------------------------------
   8. SERVICES GRID
   ------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 2.25rem 2rem;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.service-card:hover, .service-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}
.service-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: var(--grad-brand-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--purple-600);
  margin-bottom: 1.25rem;
}
.service-icon svg { width: 30px; height: 30px; }
.service-card p { color: var(--gray-500); font-size: 0.96rem; }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--purple-600);
  margin-top: 0.5rem;
  transition: gap var(--dur-fast) var(--ease-out);
}
.service-link:hover { gap: 0.7rem; color: var(--teal-500); }

.service-card-cta {
  background: var(--grad-brand);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.service-card-cta h3 { color: var(--white); }
.service-card-cta p { color: rgba(255,255,255,0.85); }
.service-card-cta .service-icon { background: rgba(255,255,255,0.18); color: var(--white); }

/* -------------------------------------------------------------------------
   9. WHY CHOOSE US
   ------------------------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.why-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); width: 100%; height: 420px; object-fit: cover; }
.feature-row {
  display: flex;
  gap: 1.1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--gray-100);
}
.feature-row:last-child { border-bottom: none; }
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--grad-brand-soft);
  color: var(--purple-600);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-row h3 { margin-bottom: 0.25rem; font-size: 1.1rem; }
.feature-row p { margin: 0; color: var(--gray-500); font-size: 0.92rem; }

/* -------------------------------------------------------------------------
   10. STATS BAND
   ------------------------------------------------------------------------- */
.stats-band {
  background: var(--navy-900);
  color: var(--white);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-num {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
}
.stat-label { color: var(--gray-300); font-size: 0.95rem; margin-top: 0.4rem; }

/* -------------------------------------------------------------------------
   11. PROCESS STEPS
   ------------------------------------------------------------------------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}
.process-grid::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: var(--grad-brand);
  opacity: 0.3;
  z-index: 0;
}
.process-step { position: relative; text-align: center; z-index: 1; }
.process-num {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: var(--shadow-card);
}
.process-step h3 { font-size: 1.1rem; }
.process-step p { color: var(--gray-500); font-size: 0.9rem; margin: 0; }

/* -------------------------------------------------------------------------
   12. PORTFOLIO TEASER / GRID
   ------------------------------------------------------------------------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--white);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), opacity 0.25s ease;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.project-card.is-hidden { display: none; }
.project-media {
  position: relative;
  overflow: hidden;
  height: 220px;
  display: block;
}
.project-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-med) var(--ease-out);
}
.project-card:hover .project-media img { transform: scale(1.05); }

.project-media-pending {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-brand-soft);
}
.pending-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem;
  text-align: center;
}
.pending-placeholder svg { width: 34px; height: 34px; color: var(--purple-600); opacity: 0.6; }
.pending-placeholder span {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--gray-500);
}
.project-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,36,59,0.1) 0%, rgba(43,55,120,0.85) 100%);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.project-card:hover .project-overlay { opacity: 1; }
.project-overlay span {
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 0.7rem 1.4rem;
  border: 2px solid var(--white);
  border-radius: 100px;
  transform: translateY(10px);
  transition: transform var(--dur-fast) var(--ease-out);
}
.project-card:hover .project-overlay span { transform: translateY(0); }
.project-body { padding: 1.4rem 1.5rem; }
.project-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal-500);
  margin-bottom: 0.5rem;
}
.project-body h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.project-body p { color: var(--gray-500); font-size: 0.9rem; margin: 0; }

.filter-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
}
.filter-btn {
  background: var(--white);
  border: 2px solid var(--gray-100);
  color: var(--gray-700);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 1.4rem;
  border-radius: 100px;
  min-height: 44px;
  transition: all var(--dur-fast) var(--ease-out);
}
.filter-btn:hover { border-color: var(--purple-600); color: var(--purple-600); }
.filter-btn.is-active {
  background: var(--grad-brand);
  border-color: transparent;
  color: var(--white);
}

/* -------------------------------------------------------------------------
   13. TESTIMONIALS
   ------------------------------------------------------------------------- */
.testimonial-track {
  display: flex;
  gap: 1.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scrollbar-width: none;
}
.testimonial-track::-webkit-scrollbar { display: none; }
.testimonial-card {
  scroll-snap-align: start;
  flex: 0 0 100%;
  max-width: 620px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 2.5rem;
}
.stars { color: var(--teal-500); margin-bottom: 1rem; letter-spacing: 2px; }
.testimonial-quote { font-size: 1.05rem; color: var(--gray-700); font-style: italic; margin-bottom: 1.5rem; }
.testimonial-person { display: flex; align-items: center; gap: 0.9rem; }
.testimonial-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial-person strong { display: block; color: var(--navy-900); font-family: var(--font-heading); }
.testimonial-person span { font-size: 0.85rem; color: var(--gray-500); }

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
  border: none;
  padding: 0;
  min-height: unset;
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.dot.is-active { background: var(--purple-600); transform: scale(1.3); }

/* -------------------------------------------------------------------------
   14. CTA BAND
   ------------------------------------------------------------------------- */
.cta-band {
  background: var(--grad-brand);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.6rem; }
.cta-band p { color: rgba(255,255,255,0.88); max-width: 560px; margin: 0 auto 2rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* -------------------------------------------------------------------------
   15. FOOTER
   ------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-900);
  color: var(--gray-300);
  position: relative;
}
.site-footer::before {
  content: "";
  display: block;
  height: 4px;
  background: var(--grad-brand);
}
.footer-inner {
  padding: 4.5rem 0 2rem;
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 1.2fr;
  gap: 2.5rem;
}
.footer-brand img { height: 66px; margin-bottom: 1rem; }
.footer-brand p { color: var(--gray-300); font-size: 0.92rem; max-width: 280px; }
.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1.2rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col a { color: var(--gray-300); font-size: 0.92rem; transition: color var(--dur-fast); }
.footer-col a:hover, .footer-col a:focus-visible { color: var(--teal-400); }
.footer-contact li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.92rem; }
.footer-contact svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; color: var(--teal-400); }

.social-links { display: flex; gap: 0.65rem; margin-top: 1.25rem; }
.social-links a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.social-links svg { width: 18px; height: 18px; color: var(--white); }
.social-links a:hover, .social-links a:focus-visible {
  background: var(--grad-brand);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* -------------------------------------------------------------------------
   16. FLOATING WHATSAPP BUTTON
   ------------------------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.45);
  z-index: 800;
}
.whatsapp-float svg { width: 30px; height: 30px; color: var(--white); }
.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.6;
  animation: pulse-ring 2.4s ease-out infinite;
  z-index: -1;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.9); opacity: 0; }
}

.call-float {
  position: fixed;
  bottom: 1.75rem;
  left: 1.75rem;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--grad-brand);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(84,61,149,0.45);
  z-index: 800;
}
.call-float svg { width: 28px; height: 28px; color: var(--white); }
.call-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--purple-600);
  opacity: 0.6;
  animation: pulse-ring 2.4s ease-out infinite;
  animation-delay: 1.2s;
  z-index: -1;
}

/* -------------------------------------------------------------------------
   17. FORMS
   ------------------------------------------------------------------------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card-hover);
  padding: 2.5rem;
}
.form-row { margin-bottom: 1.4rem; }
.form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-row label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-900);
  margin-bottom: 0.5rem;
}
.form-row label .req { color: var(--teal-500); }
.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-md);
  background: var(--off-white);
  color: var(--gray-700);
  min-height: 44px;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
textarea.form-control { min-height: 130px; resize: vertical; }
.form-control:focus {
  outline: none;
  border-color: var(--purple-600);
  background: var(--white);
}
.form-row.has-error .form-control { border-color: #D64545; background: #FFF6F6; }
.form-row.is-valid .form-control { border-color: #2E9E5B; }
.error-msg {
  display: none;
  color: #D64545;
  font-size: 0.82rem;
  margin-top: 0.4rem;
  font-weight: 500;
}
.form-row.has-error .error-msg { display: block; }

.checkbox-row { display: flex; align-items: flex-start; gap: 0.7rem; }
.checkbox-row input[type="checkbox"] {
  width: 20px; height: 20px;
  margin-top: 0.15rem;
  accent-color: var(--purple-600);
  flex-shrink: 0;
}
.checkbox-row label { font-family: var(--font-body); font-weight: 400; font-size: 0.88rem; color: var(--gray-500); margin: 0; }

.honeypot-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

.btn-spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: var(--white);
  border-radius: 50%;
  display: none;
  animation: spin 0.7s linear infinite;
}
.btn[data-loading="true"] .btn-spinner { display: inline-block; }
.btn[data-loading="true"] .btn-text { opacity: 0.7; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-feedback-panel {
  text-align: center;
  padding: 3rem 1.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
}
.form-feedback-panel.is-visible { opacity: 1; transform: translateY(0); }
.form-feedback-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
}
.form-feedback-panel.success .form-feedback-icon { background: rgba(46,158,91,0.12); color: #2E9E5B; }
.form-feedback-panel.failure .form-feedback-icon { background: rgba(214,69,69,0.12); color: #D64545; }
.form-feedback-panel.hidden { display: none; }
.fallback-links { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

.quote-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  align-items: start;
}
.reassurance-panel {
  background: var(--grad-brand-soft);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
}
.reassurance-steps { display: flex; flex-direction: column; gap: 1.25rem; margin: 1.5rem 0 2rem; }
.reassurance-step { display: flex; gap: 1rem; align-items: flex-start; }
.reassurance-step .num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.reassurance-step p { margin: 0; font-size: 0.92rem; color: var(--gray-700); }
.contact-shortcuts { display: flex; flex-direction: column; gap: 0.9rem; }
.contact-shortcut {
  display: flex; align-items: center; gap: 0.75rem;
  font-weight: 600; color: var(--navy-900);
  font-family: var(--font-heading);
  font-size: 0.95rem;
}
.contact-shortcut svg { width: 20px; height: 20px; color: var(--purple-600); flex-shrink: 0; }

/* -------------------------------------------------------------------------
   18. CONTACT PAGE
   ------------------------------------------------------------------------- */
.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 2rem;
  text-align: center;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.info-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.info-card .service-icon { margin: 0 auto 1.1rem; }
.info-card a, .info-card address { color: var(--gray-500); font-style: normal; }
.info-card a:hover { color: var(--purple-600); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  height: 340px;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
.hours-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-top: 1.5rem;
}
.hours-row { display: flex; justify-content: space-between; padding: 0.5rem 0; font-size: 0.92rem; border-bottom: 1px solid var(--gray-100); }
.hours-row:last-child { border-bottom: none; }
.hours-row strong { color: var(--navy-900); font-family: var(--font-heading); }

/* -------------------------------------------------------------------------
   19. ABOUT PAGE
   ------------------------------------------------------------------------- */
.story-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}
.story-grid img { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); width: 100%; height: 460px; object-fit: cover; }

.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.mv-card {
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    var(--grad-brand) border-box;
}
.mv-card .service-icon { margin-bottom: 1.25rem; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}
.value-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 2rem 1.5rem;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.value-card .service-icon { margin: 0 auto 1.1rem; }

/* -------------------------------------------------------------------------
   20. SERVICES OVERVIEW — ALTERNATING ROWS
   ------------------------------------------------------------------------- */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--gray-100);
}
.service-row:last-child { border-bottom: none; }
.service-row.reverse .service-row-media { order: 2; }
.service-row-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); width: 100%; height: 360px; object-fit: cover; }
.service-row-bullets { display: flex; flex-direction: column; gap: 0.6rem; margin: 1.25rem 0 1.75rem; }
.service-row-bullets li { display: flex; gap: 0.6rem; align-items: center; font-size: 0.94rem; color: var(--gray-700); }
.service-row-bullets svg { width: 20px; height: 20px; color: var(--teal-500); flex-shrink: 0; }

/* -------------------------------------------------------------------------
   21. SERVICE DETAIL PAGE
   ------------------------------------------------------------------------- */
.overview-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  align-items: center;
}
.overview-grid img { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); width: 100%; height: 420px; object-fit: cover; }

.included-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.included-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 2rem;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.included-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }

.mini-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.mini-process-step {
  text-align: center;
  padding: 1.75rem 1.25rem;
  background: var(--off-white);
  border-radius: var(--radius-md);
}
.mini-process-step .process-num { width: 52px; height: 52px; font-size: 1.1rem; margin-bottom: 1rem; }
.mini-process-step h3 { font-size: 1rem; }
.mini-process-step p { font-size: 0.85rem; color: var(--gray-500); margin: 0; }

/* FAQ Accordion */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--gray-100);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0.25rem;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy-900);
  min-height: 44px;
}
.faq-question .caret { flex-shrink: 0; color: var(--purple-600); transition: transform var(--dur-fast) var(--ease-out); }
.faq-question[aria-expanded="true"] .caret { transform: rotate(180deg); }
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-med) var(--ease-out);
}
.faq-answer.is-open { grid-template-rows: 1fr; }
.faq-answer-inner { overflow: hidden; }
.faq-answer p { padding: 0 0.25rem 1.5rem; color: var(--gray-500); margin: 0; }

/* -------------------------------------------------------------------------
   22. 404 PAGE
   ------------------------------------------------------------------------- */
.error-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.error-code {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(5rem, 18vw, 10rem);
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.error-content { position: relative; z-index: 2; }
.error-content p { color: var(--gray-500); max-width: 420px; margin: 0.5rem auto 2rem; }

/* -------------------------------------------------------------------------
   23. SCROLL REVEAL SYSTEM
   ------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); transition-delay: var(--delay, 0s); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); transition-delay: var(--delay, 0s); }
.reveal-scale { opacity: 0; transform: scale(0.92); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); transition-delay: var(--delay, 0s); }

.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-scale.is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .blob, .hero-badge, .marquee, .whatsapp-float::before {
    animation: none !important;
  }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* -------------------------------------------------------------------------
   24. RESPONSIVE — 1200px
   ------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* -------------------------------------------------------------------------
   25. RESPONSIVE — 992px (tablet / mobile nav breakpoint)
   ------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .header-cta .btn-primary.header-quote-btn { display: none; }

  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 1; }
  .hero-media { order: 2; margin-top: 2rem; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .why-image { order: 2; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
  .process-grid::before { display: none; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .info-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .quote-layout { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr; }
  .story-grid img { height: 320px; }
  .mv-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .service-row { grid-template-columns: 1fr; }
  .service-row.reverse .service-row-media { order: 0; }
  .overview-grid { grid-template-columns: 1fr; }
  .included-grid { grid-template-columns: repeat(2, 1fr); }
  .mini-process { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
}

/* -------------------------------------------------------------------------
   26. RESPONSIVE — 768px
   ------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root { --section-pad: clamp(3rem, 10vw, 4.5rem); }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .info-cards-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .included-grid { grid-template-columns: 1fr; }
  .mini-process { grid-template-columns: 1fr; }
  .form-row-split { grid-template-columns: 1fr; }
  .form-card { padding: 1.75rem; }
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
  .testimonial-card { padding: 1.75rem; }
  .whatsapp-float { width: 54px; height: 54px; bottom: 1.25rem; right: 1.25rem; }
  .call-float { width: 54px; height: 54px; bottom: 1.25rem; left: 1.25rem; }
}

/* -------------------------------------------------------------------------
   27. RESPONSIVE — 480px
   ------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .container { padding: 0 1.1rem; }
  .hero { padding: 4.5rem 0 3rem; min-height: unset; }
  .hero-badge { left: 0; right: 0; margin: 0 1rem; bottom: -1rem; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .hero-actions, .cta-actions { flex-direction: column; }
  .values-grid { grid-template-columns: 1fr; }
  .social-links { flex-wrap: wrap; }
  .brand img { height: 56px; }
  .form-card { padding: 1.25rem; }
  .reassurance-panel { padding: 1.5rem; }
}
