/* ===== CSS Variables (merged with template design tokens) ===== */
:root {
  --primary: #0097d7;
  --primary-light: #00b4ff;
  --primary-dark: #007bb0;
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --text-primary: #111517;
  --text-secondary: #5e5e5e;
  --text-light: #718096;
  --text-muted: #9797a6;
  --bg-white: #ffffff;
  --bg-subtle: #f4f4f4;
  --bg-hero: #f0f4f7;
  --bg-dark: #111517;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(17,21,23,0.05);
  --shadow-md: 0 4px 6px -1px rgba(17,21,23,0.07), 0 2px 4px -2px rgba(17,21,23,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(17,21,23,0.08), 0 4px 6px -4px rgba(17,21,23,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(17,21,23,0.1), 0 8px 10px -6px rgba(17,21,23,0.05);
  --shadow-soft: 0 1px 2px rgba(0,0,0,0.04), 0 4px 8px rgba(0,0,0,0.04), 0 8px 16px rgba(0,0,0,0.04), 0 16px 32px rgba(0,0,0,0.04);
  --shadow-cta: 0 4px 20px rgba(17,21,23,0.08);
  --transition: all 0.3s ease;
  --transition-fast: 150ms ease;
  --transition-spring: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== Smooth Scroll (#11) ===== */
html {
  scroll-behavior: smooth;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  background: var(--bg-white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== Scroll Progress Indicator (#10) ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  z-index: 1001;
  transition: width 0.1s linear;
}

/* ===== Navigation ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 1rem 2rem;
  transition: box-shadow 0.3s, padding 0.3s;
}

.navbar.scrolled {
  padding: 0.6rem 2rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  transition: transform 0.3s;
}

.nav-logo:hover { transform: scale(1.02); }

.logo-text {
  color: var(--primary);
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Nav Link Underline Animation (#13) */
.nav-links a:not(.btn) {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
  border-radius: 1px;
}

.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn).active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.btn-nav {
  margin-left: 0.5rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== Flyout Dropdown Menu ===== */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s;
  padding: 0;
  position: relative;
  padding-bottom: 2px;
}

.nav-dropdown-trigger::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
  border-radius: 1px;
}

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

.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown-trigger.active {
  color: var(--primary);
}

.nav-dropdown-trigger svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s;
}

.nav-dropdown:hover .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

.flyout-menu {
  position: absolute;
  top: calc(100% + 20px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 380px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.1),
    inset 0 -1px 0 rgba(0,0,0,0.05);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 100;
  overflow: hidden;
}

.flyout-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  width: 16px;
  height: 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 3px;
  transform: translateX(-50%) rotate(45deg);
  border-top: 1px solid rgba(255,255,255,0.18);
  border-left: 1px solid rgba(255,255,255,0.18);
}

/* Invisible bridge so hover doesn't break */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -20px;
  right: -20px;
  height: 30px;
}

.nav-dropdown:hover .flyout-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.flyout-items {
  padding: 0.75rem;
}

.flyout-item {
  display: block;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  transition: background 0.2s;
  color: white;
}

.flyout-item:hover {
  background: rgba(255,255,255,0.12);
}

.flyout-icon {
  display: none;
}

.flyout-text h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.15rem;
}

.flyout-text p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
}

.flyout-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
}

.flyout-footer a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  transition: background 0.2s;
}

.flyout-footer a:first-child {
  border-right: 1px solid rgba(255,255,255,0.12);
}

.flyout-footer a:hover {
  background: rgba(255,255,255,0.06);
}

.flyout-footer svg {
  width: 16px;
  height: 16px;
  opacity: 0.5;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1rem;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
  .nav-links.active { display: flex; }
  .btn-nav { margin-left: 0; width: 100%; text-align: center; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-dropdown-trigger::after { display: none; }

  /* Mobile: flyout becomes inline accordion */
  .flyout-menu {
    position: static;
    transform: none;
    width: 100%;
    opacity: 1;
    visibility: visible;
    border-radius: 10px;
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .flyout-menu::before { display: none; }
  .flyout-menu.mobile-open {
    max-height: 600px;
  }
  .nav-dropdown::after { display: none; }
  .nav-dropdown:hover .flyout-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .flyout-footer { grid-template-columns: 1fr; }
  .flyout-footer a:first-child { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Button Ripple Effect (#12) */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transform: scale(0);
  animation: ripple-effect 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-effect {
  to { transform: scale(4); opacity: 0; }
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 151, 215, 0.35);
}

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

.btn-secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 151, 215, 0.25);
}

.btn-outline {
  background: transparent;
  color: white;
  border-color: white;
}

.btn-outline:hover {
  background: white;
  color: var(--primary);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* ===== Hero — SVG Illustration Style (TryResponse pattern) ===== */
.hero-svg {
  position: relative;
  overflow: hidden;
  background: var(--bg-hero);
  padding: 7rem 2rem 5rem;
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Subtle top gradient line */
.hero-svg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 50%, var(--primary) 100%);
}

/* SVG Illustrations — flanking left and right */
.hero-illustration {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: auto;
  opacity: 0.85;
  pointer-events: none;
}

.hero-illustration--left {
  left: -50px;
}

.hero-illustration--right {
  right: -50px;
}

.hero-illustration--left svg {
  transform: rotate(-3deg);
  transform-origin: center center;
  will-change: transform;
}

.hero-illustration--right svg {
  transform: rotate(3deg);
  transform-origin: center center;
  will-change: transform;
}

.hero-illustration--bottom {
  top: auto;
  bottom: 2%;
  left: 12%;
  transform: none;
  width: 280px;
  opacity: 0.6;
}

.hero-illustration--bottom svg {
  transform: rotate(5deg);
  transform-origin: center center;
  will-change: transform;
}

.hero-illustration {
  will-change: transform;
  transition: none; /* JS handles smooth interpolation */
}

/* Hero Content — centered */
.hero-svg-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero-svg-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero-tagline-arrow {
  display: inline-block;
  margin: 0 0.4rem;
  color: var(--text-light);
}

.hero-svg-headline {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  color: var(--text-primary);
}

.hero-headline-accent {
  color: var(--primary);
}

.hero-headline-typed,
.hero-headline-static {
  display: block;
}

.hero-headline-typed {
  min-height: 1.1em;
}

/* Staggered Hero Entrance Animation */
@keyframes heroEnter {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-animate {
  animation: heroEnter 0.8s ease forwards;
}

.hero-animate--tagline { animation-delay: 0.15s; opacity: 0; }
.hero-animate--headline { animation-delay: 0.35s; opacity: 0; }
.hero-animate--cta { animation-delay: 0.55s; opacity: 0; }
.hero-animate--trust { animation-delay: 0.75s; opacity: 0; }

/* SVG Line Draw Animation */
@keyframes drawLine {
  from { stroke-dashoffset: 800; }
  to { stroke-dashoffset: 0; }
}

.svg-draw path,
.svg-draw line,
.svg-draw rect,
.svg-draw circle {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: drawLine 2.5s ease forwards;
}

.svg-draw *:nth-child(2) { animation-delay: 0.05s; }
.svg-draw *:nth-child(3) { animation-delay: 0.1s; }
.svg-draw *:nth-child(4) { animation-delay: 0.15s; }
.svg-draw *:nth-child(5) { animation-delay: 0.2s; }
.svg-draw *:nth-child(6) { animation-delay: 0.25s; }
.svg-draw *:nth-child(7) { animation-delay: 0.3s; }
.svg-draw *:nth-child(8) { animation-delay: 0.35s; }
.svg-draw *:nth-child(9) { animation-delay: 0.4s; }
.svg-draw *:nth-child(10) { animation-delay: 0.45s; }
.svg-draw *:nth-child(n+11) { animation-delay: 0.5s; }

@media (max-width: 1024px) {
  .hero-illustration { width: 350px; opacity: 0.45; }
  .hero-svg-headline { font-size: clamp(2rem, 5vw, 3.5rem); }
}

@media (max-width: 768px) {
  .hero-svg { padding: 5rem 1.5rem 3.5rem; min-height: auto; }
  .hero-illustration { display: none; }
  .hero-svg-headline { font-size: clamp(1.75rem, 5vw, 3rem); }
  .hero-svg-tagline { font-size: 0.9rem; }
}

@media (max-width: 1024px) {
  .hero-illustration--bottom { display: none; }
}

/* ===== Section Common ===== */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ===== Services — Bento Grid ===== */
.services-bento {
  padding: 6rem 0;
  background: var(--bg-subtle);
}

/* Stagger Children (#3) */
.testimonials-grid,
.projects-grid,
.why-grid {
  --stagger: 0.1s;
}

.bento-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.bento-row--reversed {
  grid-template-columns: 1fr 1.2fr;
}

.bento-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.bento-card {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: white;
}

.bento-card--large {
  min-height: 420px;
}

.bento-card--small {
  flex: 1;
  min-height: 195px;
}

.bento-image {
  position: absolute;
  inset: 0;
}

.bento-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.34, 1, 0.64, 1);
}

.bento-card:hover .bento-image img {
  transform: scale(1.06);
}

.bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.05) 100%);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: background 0.4s;
}

.bento-card:hover .bento-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
}

.bento-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-light);
  margin-bottom: 0.4rem;
}

.bento-overlay h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.bento-card--small .bento-overlay h3 {
  font-size: 1.1rem;
}

.bento-overlay p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  margin-bottom: 0.6rem;
  max-width: 400px;
}

.bento-card--small .bento-overlay p {
  font-size: 0.8rem;
}

.bento-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-light);
  transition: gap 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.bento-card:hover .bento-link {
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .bento-row,
  .bento-row--reversed {
    grid-template-columns: 1fr;
  }
  .bento-card--large { min-height: 300px; }
  .bento-card--small { min-height: 220px; }
}

/* ===== Stats Section with Counters (#1) ===== */
.stats-section {
  padding: 5rem 0;
  background: var(--primary);
  color: white;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.stats-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 250px;
  height: 250px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.stat-item {
  padding: 1rem;
}

.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: 2.25rem; }
}

/* ===== Process / How We Work (#5) ===== */
.process-section {
  padding: 6rem 0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 12.5%;
  right: 12.5%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  border-radius: 2px;
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 1rem;
}

.process-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  transition: all 0.4s ease;
  box-shadow: var(--shadow-md);
}

.process-step:hover .process-number {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 151, 215, 0.3);
}

.process-step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.process-step p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .process-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .process-grid::before { display: none; }
}

@media (max-width: 480px) {
  .process-grid { grid-template-columns: 1fr; }
}

/* ===== Why Choose Us ===== */
.why-us {
  padding: 6rem 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
}

.why-item {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: var(--border-radius-lg);
  transition: var(--transition);
}

.why-item:hover {
  background: var(--bg-subtle);
  transform: translateY(-4px);
}

.why-icon {
  width: 72px;
  height: 72px;
  background: rgba(0, 151, 215, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--primary);
  transition: all 0.4s ease;
}

.why-item:hover .why-icon {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 151, 215, 0.25);
}

.why-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.why-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== Testimonials ===== */
.testimonials {
  padding: 6rem 0;
  background: var(--bg-subtle);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 4rem;
  color: rgba(0, 151, 215, 0.06);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.stars {
  color: var(--accent);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.testimonial-card blockquote {
  font-style: italic;
  margin: 0 0 1.5rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ===== Service Areas (#8) ===== */
.areas-section {
  padding: 6rem 0;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.area-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-subtle);
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.area-item:hover {
  background: rgba(0, 151, 215, 0.08);
  color: var(--primary);
  transform: translateX(4px);
}

.area-item svg {
  color: var(--primary-light);
  flex-shrink: 0;
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  text-align: center;
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
  font-weight: 700;
}

.cta-banner p {
  margin-bottom: 2rem;
  opacity: 0.9;
  font-size: 1.05rem;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Projects Grid with Image Zoom (#4) ===== */
.projects-section {
  padding: 6rem 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
  background: white;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-soft);
}

/* Image Hover Zoom (#4) */
.project-card .project-image,
.project-card img {
  transition: transform 0.6s cubic-bezier(0.34, 1, 0.64, 1);
}

.project-card:hover .project-image,
.project-card:hover img {
  transform: scale(1.05);
}

.project-image-wrap {
  overflow: hidden;
}

.project-image {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.9rem;
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.project-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.project-tag {
  background: rgba(0, 151, 215, 0.06);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  transition: var(--transition);
}

.project-card:hover .project-tag {
  background: rgba(0, 151, 215, 0.12);
}

/* ===== Footer — Full Width 2-Column ===== */
.footer {
  background: var(--bg-dark);
  color: #cbd5e0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
}

.footer-left {
  background: var(--bg-dark);
  padding: 4rem 3rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footer-right {
  background: var(--bg-dark);
  padding: 4rem 3rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footer-logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1.25rem;
}

.footer-logo .logo-text {
  font-size: 1.6rem;
}

.footer-tagline {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #a0aec0;
  margin-bottom: 1.75rem;
  max-width: 400px;
}

.footer-licence {
  color: var(--primary-light);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* Footer Contact Details */
.footer-contact-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.footer-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-detail-item svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-detail-item strong {
  display: block;
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.1rem;
}

.footer-detail-item span,
.footer-detail-item a {
  font-size: 0.9rem;
  color: #a0aec0;
  transition: color 0.2s;
}

.footer-detail-item a:hover {
  color: var(--primary-light);
}

/* Footer Trust Badges */
.footer-trust {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.footer-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  font-size: 0.8rem;
  color: #a0aec0;
  font-weight: 500;
}

.footer-badge svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* Footer Project Thumbnails */
.footer-projects {
  margin-bottom: 1.75rem;
}

.footer-projects h4 {
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.footer-project-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

.footer-project-grid a {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.3s, opacity 0.3s;
}

.footer-project-grid a:hover {
  transform: scale(1.05);
  opacity: 0.85;
}

.footer-project-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

@media (max-width: 768px) {
  .footer-contact-details {
    grid-template-columns: 1fr;
  }
  .footer-trust {
    gap: 0.5rem;
  }
  .footer-badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
  }
  .footer-project-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  color: #a0aec0;
  transition: color 0.2s, transform 0.3s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}

.footer-social a:hover {
  color: white;
  background: var(--primary);
  transform: translateY(-2px);
}

.footer-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer h4 {
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

.footer ul li {
  margin-bottom: 0.6rem;
}

.footer ul a {
  font-size: 0.9rem;
  color: #a0aec0;
  transition: color 0.2s, padding-left 0.3s;
}

.footer ul a:hover {
  color: white;
  padding-left: 4px;
}

.footer-contact-bar {
  padding: 1.5rem 0 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.footer-contact-item svg {
  color: var(--primary-light);
  flex-shrink: 0;
}

.footer-contact-item a {
  color: #a0aec0;
  transition: color 0.2s;
}

.footer-contact-item a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  font-size: 0.8rem;
  color: #4a5568;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: #4a5568;
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: #a0aec0;
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-left, .footer-right {
    padding: 3rem 2rem;
  }
  .footer-links-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-contact-bar {
    flex-direction: column;
    gap: 1rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

/* ===== Mobile Sticky CTA Bar (#6) ===== */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: white;
  padding: 0.75rem 1rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  border-top: 1px solid rgba(0,0,0,0.05);
}

.mobile-cta-bar .cta-bar-inner {
  display: flex;
  gap: 0.75rem;
  max-width: 600px;
  margin: 0 auto;
}

.mobile-cta-bar .btn {
  flex: 1;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  border-radius: var(--border-radius);
}

.mobile-cta-bar .btn-call {
  background: var(--primary);
  color: white;
  border: none;
}

.mobile-cta-bar .btn-quote {
  background: var(--accent);
  color: var(--bg-dark);
  border: none;
  font-weight: 700;
}

@media (max-width: 768px) {
  .mobile-cta-bar { display: block; }
  body { padding-bottom: 70px; }
}

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

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

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Fade In Up on Scroll */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.34, 1, 0.64, 1);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children delays (#3) */
.stagger-children .fade-in-up:nth-child(1) { transition-delay: 0s; }
.stagger-children .fade-in-up:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .fade-in-up:nth-child(3) { transition-delay: 0.2s; }
.stagger-children .fade-in-up:nth-child(4) { transition-delay: 0.3s; }
.stagger-children .fade-in-up:nth-child(5) { transition-delay: 0.4s; }
.stagger-children .fade-in-up:nth-child(6) { transition-delay: 0.5s; }

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Image skeleton loading (#15) */
.img-skeleton {
  background: linear-gradient(90deg, #e2e8f0 25%, #edf2f7 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== Page Heroes (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
}

.page-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

/* Page Hero with Background Image */
.page-hero--bg {
  padding: 6rem 2rem;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-hero--bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17, 21, 23, 0.8) 0%, rgba(0, 151, 215, 0.5) 100%);
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.page-hero-content h1 {
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.page-hero-content p {
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* ===== Services Detail Page ===== */
.services-detail {
  padding: 6rem 0;
}

.service-detail-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 1.5rem;
  transition: all 0.4s ease;
}

.service-detail-card:hover {
  box-shadow: var(--shadow-soft);
  border-color: rgba(0, 151, 215, 0.15);
  transform: translateX(4px);
}

.service-detail-icon {
  font-size: 2.5rem;
  width: 80px;
  height: 80px;
  background: rgba(0, 151, 215, 0.06);
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

.service-detail-card:hover .service-detail-icon {
  background: var(--primary);
  transform: scale(1.05);
}

.service-detail-card:hover .service-detail-icon {
  filter: brightness(0) invert(1);
}

.service-detail-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.service-detail-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.service-feature-tag {
  background: rgba(0, 151, 215, 0.06);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  transition: var(--transition);
}

.service-detail-card:hover .service-feature-tag {
  background: rgba(0, 151, 215, 0.12);
}

@media (max-width: 768px) {
  .service-detail-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .service-detail-icon { margin: 0 auto; }
  .service-features { justify-content: center; }
}

/* ===== Contact Page ===== */
.contact-section {
  padding: 6rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  transition: var(--transition);
  padding: 0.5rem;
  border-radius: var(--border-radius);
}

.contact-info-item:hover {
  background: var(--bg-subtle);
  transform: translateX(4px);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 151, 215, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.contact-info-item:hover .contact-icon {
  background: var(--primary);
  color: white;
}

.contact-info-item h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-info-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-form {
  background: var(--bg-subtle);
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
  transition: color 0.3s;
}

/* Form Field Focus Animation (#14) */
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
  background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(0, 151, 215, 0.1);
  transform: translateY(-1px);
}

.form-group:focus-within label {
  color: var(--primary);
}

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

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ===== About Page ===== */
.about-content {
  padding: 6rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

.about-text p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

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

/* ===== TEMPLATE PATTERNS ===== */

/* Inline Quote Capture (adapted from TryResponse email capture) */
.quote-capture {
  display: flex;
  align-items: center;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 0.4rem;
  box-shadow: var(--shadow-cta);
  max-width: 640px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.quote-capture input {
  flex: 1;
  border: none;
  outline: none;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-primary);
  background: transparent;
  min-width: 0;
}

.quote-capture input::placeholder {
  color: var(--text-muted);
}

.quote-capture .btn {
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: var(--border-radius-lg);
}

@media (max-width: 600px) {
  .quote-capture {
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.5rem;
  }
  .quote-capture input { width: 100%; }
  .quote-capture .btn { width: 100%; }
}

/* Trust / Certification Logo Bar */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 3rem 2rem;
  flex-wrap: wrap;
}

.trust-bar-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  opacity: 0.5;
  transition: opacity 0.3s;
  filter: grayscale(100%);
}

.trust-bar:hover .trust-bar-item {
  opacity: 0.7;
  filter: grayscale(50%);
}

.trust-bar-item svg {
  width: 28px;
  height: 28px;
}

.trust-bar-item span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

/* Alternating Feature Sections (adapted from TryResponse) */
.feature-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 5rem 0;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-section:nth-child(even) {
  direction: rtl;
}

.feature-section:nth-child(even) > * {
  direction: ltr;
}

.feature-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feature-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
}

.feature-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
}

.feature-title-accent {
  color: var(--primary);
}

.feature-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.feature-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.feature-checklist li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.feature-checklist li::before {
  content: '\2713';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

.feature-image {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.feature-image:hover img {
  transform: scale(1.03);
}

.features-wrapper {
  padding: 0 2rem;
}

.features-wrapper .feature-section + .feature-section {
  border-top: 1px solid var(--bg-subtle);
}

@media (max-width: 768px) {
  .feature-section,
  .feature-section:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2rem;
    padding: 3rem 0;
  }
  .feature-image { order: -1; }
}

/* Button Press Effect (from template) */
.btn:active {
  transform: scale(0.97) !important;
}

/* Cleaner Stats (inspired by template large-number style) */
.stats-section-clean {
  padding: 5rem 0;
  background: var(--bg-white);
}

.stats-clean-grid {
  display: flex;
  justify-content: center;
  gap: 5rem;
  flex-wrap: wrap;
}

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

.stat-clean-number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-clean-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 180px;
}

/* ===== FINAL POLISH ===== */

/* #1 Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 990;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

@media (max-width: 768px) {
  .back-to-top { bottom: 5rem; right: 1rem; }
}

/* #2 Typed Text Effect */
.typed-wrapper {
  display: inline;
}

.typed-word {
  color: var(--primary);
  border-right: 3px solid var(--primary);
  animation: blink-cursor 0.7s step-end infinite;
}

@keyframes blink-cursor {
  50% { border-color: transparent; }
}

/* #3 Page Transition Fade */
body {
  animation: pageFadeIn 0.4s ease;
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* #4 Cursor Glow on CTA Buttons */
.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::before {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  transform: translate(-50%, -50%);
}

.btn-glow:hover::before {
  opacity: 1;
}

/* #5 FAQ Accordion */
.faq-section {
  padding: 5rem 0;
  background: var(--bg-subtle);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: white;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.faq-item.active {
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-align: left;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.3s;
  color: var(--primary);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* #6 Testimonial Carousel */
.testimonial-carousel {
  position: relative;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-slide {
  min-width: 100%;
  padding: 0 2rem;
  display: flex;
  justify-content: center;
}

.testimonial-slide .testimonial-card {
  max-width: 700px;
  width: 100%;
  text-align: center;
}

.testimonial-slide .testimonial-card blockquote {
  font-size: 1.15rem;
  line-height: 1.8;
}

.testimonial-slide .testimonial-author {
  justify-content: center;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.15);
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.carousel-dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

/* #8 Favicon — handled in HTML head */

/* #9 Project Gallery Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  width: 90%;
  animation: lightboxIn 0.4s ease;
}

@keyframes lightboxIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox-img {
  width: 100%;
  border-radius: var(--radius-2xl);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-caption {
  text-align: center;
  color: white;
  margin-top: 1.25rem;
}

.lightbox-caption h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.lightbox-caption p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

.lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: -4rem; }
.lightbox-next { right: -4rem; }

@media (max-width: 768px) {
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .lightbox-close { top: -2.5rem; right: 0.5rem; }
}

/* #10 Parallax Storytelling Section */
.parallax-story {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.parallax-story-bg {
  position: absolute;
  inset: -20% 0;
  z-index: 0;
}

.parallax-story-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.parallax-story::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17,21,23,0.85), rgba(0,151,215,0.4));
  z-index: 1;
}

.parallax-story-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  color: white;
}

.parallax-story-text h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.parallax-story-text p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.parallax-story-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.parallax-stat {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255,255,255,0.08);
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
}

.parallax-stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.parallax-stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

@media (max-width: 768px) {
  .parallax-story-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3.5rem 1.5rem;
  }
  .parallax-story { min-height: auto; }
}

/* #11 SVG Map of SEQ */
.map-section {
  padding: 6rem 0;
}

.map-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.map-svg-container {
  position: relative;
}

.map-svg-container svg {
  width: 100%;
  height: auto;
}

.map-region {
  fill: rgba(0,151,215,0.08);
  stroke: var(--primary);
  stroke-width: 1.5;
  cursor: pointer;
  transition: fill 0.3s, stroke-width 0.3s;
}

.map-region:hover,
.map-region.active {
  fill: rgba(0,151,215,0.2);
  stroke-width: 2.5;
}

.map-label {
  font-size: 10px;
  fill: var(--text-secondary);
  font-weight: 600;
  pointer-events: none;
}

.map-dot {
  fill: var(--primary);
  transition: r 0.3s;
}

.map-region:hover ~ .map-dot { r: 6; }

.map-info h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.map-info p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.map-regions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.map-region-tag {
  padding: 0.4rem 0.85rem;
  background: rgba(0,151,215,0.08);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.map-region-tag:hover,
.map-region-tag.active {
  background: var(--primary);
  color: white;
}

@media (max-width: 768px) {
  .map-layout { grid-template-columns: 1fr; }
  .map-svg-container { max-width: 350px; margin: 0 auto; }
}

/* #12 Dark Mode */
body.dark-mode {
  --bg-white: #111517;
  --bg-subtle: #1a1e21;
  --bg-hero: #151a1d;
  --text-primary: #e8ecf0;
  --text-secondary: #a0aab4;
  --text-light: #6b7a88;
  --text-muted: #7a8a98;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
  color-scheme: dark;
}

body.dark-mode .navbar {
  background: rgba(17,21,23,0.95);
  border-bottom-color: rgba(255,255,255,0.06);
}

body.dark-mode .service-card,
body.dark-mode .testimonial-card,
body.dark-mode .faq-item,
body.dark-mode .contact-form,
body.dark-mode .project-card {
  background: #1a1e21;
  border-color: rgba(255,255,255,0.06);
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea,
body.dark-mode .form-group select {
  background: #1a1e21;
  border-color: rgba(255,255,255,0.1);
  color: #e8ecf0;
}

body.dark-mode .why-item:hover {
  background: #1a1e21;
}

body.dark-mode .area-item {
  background: #1a1e21;
}

body.dark-mode .quote-capture {
  background: #1a1e21;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

body.dark-mode .quote-capture input {
  color: #e8ecf0;
}

body.dark-mode .bento-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}

body.dark-mode .scroll-progress {
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.dark-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s, background 0.3s;
  flex-shrink: 0;
}

.dark-toggle:hover {
  color: var(--primary);
  background: rgba(0,151,215,0.08);
}

.dark-toggle .icon-moon { display: block; }
.dark-toggle .icon-sun { display: none; }
body.dark-mode .dark-toggle .icon-moon { display: none; }
body.dark-mode .dark-toggle .icon-sun { display: block; }

/* ===========================================================
   DEMO PROTECTION — Remove this entire section after payment
   =========================================================== */

/* Disable text selection (except form inputs) */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

input, textarea, select, [contenteditable] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Diagonal watermark overlay — repeating grid */
.demo-watermark {
  position: fixed;
  inset: -100%;
  width: 300%;
  height: 300%;
  z-index: 9998;
  pointer-events: none;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: Inter, system-ui, sans-serif;
  color: rgba(0, 0, 0, 0.045);
  letter-spacing: 0.08em;
  line-height: 2.8;
  white-space: nowrap;
  transform: rotate(-25deg);
  overflow: hidden;
}

body.dark-mode .demo-watermark {
  color: rgba(255, 255, 255, 0.045);
}

/* Fixed bottom banner */
.demo-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(17, 21, 23, 0.9);
  backdrop-filter: blur(8px);
  color: #fff;
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: Inter, system-ui, sans-serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Push mobile CTA bar above demo banner */
.mobile-cta-bar {
  bottom: 2.25rem;
}

/* Push back-to-top above both */
@media (max-width: 768px) {
  .back-to-top { bottom: 7.5rem; }
}

/* ===========================================================
   END DEMO PROTECTION
   =========================================================== */

/* ===== MOBILE RESPONSIVE OVERHAUL ===== */

/* Tablet (768px) — patch gaps */
@media (max-width: 768px) {
  /* Global spacing reduction */
  .section-container { padding: 0 1.25rem; }
  .section-header { margin-bottom: 2.5rem; }
  .section-header h2 { font-size: 1.5rem; }
  .section-header p { font-size: 0.95rem; }

  /* Nav — ensure dark toggle fits */
  .nav-links { padding: 1.25rem 1.5rem; }
  .dark-toggle { margin: 0 auto; }

  /* Page hero — reduce height */
  .page-hero, .page-hero--bg { padding: 3.5rem 1.5rem; min-height: auto; }

  /* Bento cards — better sizing */
  .bento-card--small { min-height: 200px; }
  .bento-overlay { padding: 1.5rem; }
  .bento-overlay h3 { font-size: 1.15rem; }

  /* Process section — 2 column then stack */
  .process-number { width: 60px; height: 60px; font-size: 1.25rem; }

  /* Stats clean */
  .stats-clean-grid { gap: 2.5rem; }
  .stat-clean-number { font-size: 2.5rem; }

  /* Why-us items */
  .why-grid { gap: 1.5rem; }
  .why-icon { width: 56px; height: 56px; }

  /* Testimonial carousel */
  .testimonial-slide { padding: 0 1rem; }
  .testimonial-slide .testimonial-card blockquote { font-size: 1rem; }

  /* Feature sections (services page) */
  .feature-title { font-size: 1.5rem; }
  .feature-description { font-size: 0.95rem; }
  .feature-image { border-radius: var(--border-radius-lg); }

  /* FAQ */
  .faq-question { font-size: 0.95rem; padding: 1rem 1.25rem; }

  /* Footer — single column */
  .footer-top { grid-template-columns: 1fr; }
  .footer-left, .footer-right { padding: 2.5rem 1.5rem; }
  .footer-links-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-contact-details { grid-template-columns: 1fr; gap: 0.75rem; }
  .footer-trust { gap: 0.5rem; }
  .footer-badge { font-size: 0.75rem; padding: 0.35rem 0.65rem; }

  /* CTA banner */
  .cta-banner { padding: 3.5rem 1.5rem; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons .btn { width: 100%; max-width: 320px; }

  /* Parallax story */
  .parallax-story-text h2 { font-size: 1.5rem; }
  .parallax-stat-number { font-size: 2rem; }

  /* Map */
  .map-info h3 { font-size: 1.35rem; }
  .map-regions-list { gap: 0.4rem; }

  /* Back to top — above mobile CTA bar */
  .back-to-top { bottom: 5.5rem; right: 1rem; width: 40px; height: 40px; }

  /* Quote capture full width */
  .quote-capture { max-width: 100%; }
}

/* Small mobile (480px) */
@media (max-width: 480px) {
  /* Hero headline */
  .hero-svg-headline { font-size: 1.75rem; letter-spacing: -0.01em; }
  .hero-svg-tagline { font-size: 0.8rem; flex-direction: column; gap: 0.2rem; }
  .hero-svg { padding: 4rem 1rem 3rem; }

  /* Nav logo */
  .nav-logo { font-size: 1.1rem; }

  /* Bento cards */
  .bento-card--large { min-height: 250px; }
  .bento-card--small { min-height: 180px; }
  .bento-overlay h3 { font-size: 1rem; }
  .bento-overlay p { font-size: 0.75rem; }
  .bento-label { font-size: 0.65rem; }

  /* Process — single column */
  .process-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .process-grid::before { display: none; }

  /* Stats — 2 column tight */
  .stats-clean-grid { gap: 1.5rem; }
  .stat-clean-number { font-size: 2rem; }
  .stat-clean-label { font-size: 0.8rem; }

  /* Why-us — single column */
  .why-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  /* Footer links — single column */
  .footer-links-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  /* Section padding */
  .services-bento,
  .process-section,
  .stats-section-clean,
  .why-us,
  .testimonials,
  .projects-section,
  .map-section,
  .faq-section,
  .about-content,
  .contact-section,
  .services-detail { padding: 3.5rem 0; }

  /* Feature sections */
  .feature-content { gap: 1rem; }
  .feature-checklist li { font-size: 0.85rem; }
  .features-wrapper { padding: 0 1rem; }
  .feature-section { padding: 2.5rem 0; gap: 1.5rem; }

  /* Contact form */
  .contact-form { padding: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }

  /* CTA banner */
  .cta-banner h2 { font-size: 1.25rem; }
  .cta-banner p { font-size: 0.9rem; }

  /* Parallax stats */
  .parallax-story-stats { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .parallax-stat { padding: 1rem; }
  .parallax-stat-number { font-size: 1.75rem; }

  /* Trust bar */
  .trust-bar { gap: 1.5rem; padding: 2rem 1rem; }
  .trust-bar-item span { font-size: 0.8rem; }
  .trust-bar-item svg { width: 22px; height: 22px; }

  /* Mobile CTA bar */
  .mobile-cta-bar { padding: 0.6rem 0.75rem; }
  .mobile-cta-bar .btn { font-size: 0.85rem; padding: 0.75rem 0.75rem; }

  /* Footer bottom */
  .footer-bottom { padding: 1rem 1.25rem; font-size: 0.75rem; }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-svg { min-height: auto; padding: 3rem 2rem; }
  .hero-svg-headline { font-size: 2rem; }
  .page-hero, .page-hero--bg { padding: 2.5rem 1.5rem; min-height: auto; }
}

/* Touch-friendly tap targets */
@media (hover: none) and (pointer: coarse) {
  .nav-links a:not(.btn)::after { display: none; }
  .btn { min-height: 44px; }
  .faq-question { min-height: 48px; }
  .carousel-dot { width: 12px; height: 12px; }
  .footer ul li { margin-bottom: 0.75rem; }
  .footer ul a { padding: 0.25rem 0; }
  .map-region-tag { padding: 0.5rem 1rem; font-size: 0.85rem; }
  .area-item { padding: 0.85rem 1rem; }
}
