/* ==========================================================================
   Click Mine Media - Official Stylesheet (Production Master)
   Features:
   - No horizontal overflow (root causes fixed; overflow-x: clip as a safety net)
   - White Background Minimalist Luxury
   - Logo-Matched Gradient Accents (#FF6600 -> #FA255E -> #C20078)
   - Fully Accessible Touch-Friendly Responsive Architecture
   ========================================================================== */

:root {
  /* Brand Core Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  
  /* Brand Gradient & Highlights (Matches cmm Logo Flourish) */
  --brand-orange: #ff6600;
  --brand-coral: #fa255e;
  --brand-pink: #c20078;
  --brand-gradient: linear-gradient(135deg, #ff6600 0%, #fa255e 52%, #c20078 100%);
  --brand-gradient-hover: linear-gradient(135deg, #e65c00 0%, #e01b4e 52%, #ab0069 100%);
  --brand-gradient-subtle: linear-gradient(135deg, rgba(255, 102, 0, 0.08) 0%, rgba(250, 37, 94, 0.08) 52%, rgba(194, 0, 120, 0.08) 100%);
  --brand-gradient-border: linear-gradient(135deg, rgba(255, 102, 0, 0.3) 0%, rgba(250, 37, 94, 0.3) 52%, rgba(194, 0, 120, 0.3) 100%);
  
  /* Text & Neutral Hierarchy */
  --text-dark: #0f172a;      /* Deep Slate/Charcoal */
  --text-body: #334155;      /* Slate Body */
  --text-muted: #64748b;     /* Slate Muted */
  --text-subtle: #94a3b8;    /* Slate Light */
  --text-white: #ffffff;
  
  /* Borders & Dividers */
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-focus: #fa255e;
  
  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 20px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 16px 32px -6px rgba(15, 23, 42, 0.1), 0 6px 12px -3px rgba(15, 23, 42, 0.05);
  --shadow-hover: 0 20px 38px -8px rgba(250, 37, 94, 0.18), 0 8px 16px -4px rgba(15, 23, 42, 0.06);
  --shadow-colored: 0 10px 25px -5px rgba(250, 37, 94, 0.35);

  /* Layout & Spacing */
  --container-max: 1240px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* CSS Reset & Zero Overflow Global Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px; /* anchor jumps clear the sticky header */
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-body);
  line-height: 1.65;
  /* `clip` (not `hidden`) so body does not become a scroll container,
     which would break the sticky header. */
  overflow-x: clip;
  min-width: 320px;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
  overflow: hidden;
  /* iOS Safari scroll-lock fix */
  position: fixed;
  width: 100%;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
  border: none;
  box-sizing: border-box;
}

button {
  cursor: pointer;
}

/* Visible keyboard focus (replaces the old blanket outline:none) */
:focus-visible {
  outline: 3px solid var(--brand-coral);
  outline-offset: 3px;
  border-radius: 4px;
}

.form-control:focus-visible {
  outline: none; /* inputs use the box-shadow ring below */
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  word-break: break-word;
}

.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

.section {
  padding: 90px 0;
  position: relative;
  overflow-x: clip;
}

.section-alt {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-gradient-subtle);
  border: 1px solid rgba(250, 37, 94, 0.22);
  color: var(--brand-coral);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.65rem;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Announcement Top Bar */
.topbar {
  background: #0f172a;
  color: #cbd5e1;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.topbar-contact {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar-contact a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e2e8f0;
  font-weight: 500;
}

.topbar-contact a:hover {
  color: var(--brand-orange);
}

.topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #ffffff;
}

.topbar-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Main Site Header & Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
  background-color: rgba(255, 255, 255, 0.98);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  flex-shrink: 0;
}

.brand-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-body);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-coral);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-gradient);
  transition: width 0.25s ease;
  border-radius: 2px;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Mobile Menu Backdrop & Drawer */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: none; /* removed blur for clearer menu */
  -webkit-backdrop-filter: none; /* removed blur for Safari */
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-header {
  display: none;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.mobile-close-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-dark);
}

.mobile-drawer-cta {
  display: none;
  width: 100%;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  min-height: 44px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
  user-select: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--brand-gradient);
  color: var(--text-white);
  box-shadow: 0 4px 15px rgba(250, 37, 94, 0.32);
}

.btn-primary:hover {
  background: var(--brand-gradient-hover);
  box-shadow: var(--shadow-colored);
  transform: translateY(-2px);
  color: var(--text-white);
}

.btn-secondary {
  background-color: var(--bg-primary);
  color: var(--text-dark);
  border: 1.5px solid var(--border-medium);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  border-color: var(--brand-coral);
  color: var(--brand-coral);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 15px 32px;
  font-size: 1.05rem;
}

.btn-outline-white {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
  background: #ffffff;
  color: var(--text-dark);
  border-color: #ffffff;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-dark);
  border-radius: var(--radius-sm);
}

.mobile-toggle:focus {
  background: var(--bg-secondary);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 65px 0 85px 0;
  overflow: hidden;
  background: 
    radial-gradient(circle at 10% 20%, rgba(255, 102, 0, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 30%, rgba(194, 0, 120, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(250, 37, 94, 0.04) 0%, transparent 50%),
    #ffffff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-content {
  max-width: 650px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border-light);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.hero-badge .sparkle {
  color: var(--brand-orange);
}

.hero-title {
  font-size: 3.4rem;
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}

.hero-description {
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 34px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 40px;
}

.hero-trust-indicators {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}

.trust-item h4 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.trust-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

/* Hero Showcase Card */
.hero-visual {
  position: relative;
  max-width: 100%;
}

.hero-card-stack {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 100%;
}

.hero-card-stack::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--brand-gradient);
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.brand-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-gradient-subtle);
  color: var(--brand-coral);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

.metric-live-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-growth {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #10b981;
  font-weight: 700;
  font-size: 0.9rem;
}

.metric-value {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-dark);
}

.growth-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 60px;
  margin-top: 16px;
  padding-top: 8px;
}

.growth-bar {
  flex: 1;
  background: #e2e8f0;
  border-radius: 4px;
  transition: height 0.6s ease;
}

.growth-bar.active {
  background: var(--brand-gradient);
}

.hero-features-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
}

.hero-feature-item .check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(250, 37, 94, 0.12);
  color: var(--brand-coral);
  font-size: 0.75rem;
}

/* Floating Badges on Hero (Contained safely) */
.floating-hero-pill {
  position: absolute;
  background: #ffffff;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-full);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
  animation: float 4s ease-in-out infinite;
}

.floating-hero-pill.pill-top {
  top: -12px;
  right: 10px;
  animation-delay: 0s;
}

.floating-hero-pill.pill-bottom {
  bottom: -12px;
  left: 10px;
  animation-delay: 2s;
}

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

/* Brand Marquee / Logo Ticker (Strict Zero-Overflow) */
.marquee-section {
  padding: 34px 0;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
  width: 100%;
}

.marquee-title {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: scrollMarquee 35s linear infinite;
  gap: 50px;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #64748b;
  white-space: nowrap;
  padding: 6px 14px;
}

.marquee-item:hover {
  color: var(--text-dark);
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Services Grid Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  pointer-events: none;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.service-card:hover::after {
  border-color: var(--brand-coral);
}

.service-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: var(--brand-gradient-subtle);
  border: 1px solid rgba(250, 37, 94, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-coral);
  margin-bottom: 24px;
  transition: var(--transition);
}

.service-card:hover .service-icon-wrapper {
  background: var(--brand-gradient);
  color: #ffffff;
  transform: scale(1.05);
}

.service-number {
  position: absolute;
  top: 28px;
  right: 28px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #cbd5e1;
}

.service-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-dark);
}

.service-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 22px;
  flex-grow: 1;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  border-top: 1px solid var(--border-light);
  padding-top: 18px;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-body);
}

.service-features li svg {
  color: var(--brand-coral);
  flex-shrink: 0;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brand-coral);
}

.service-link:hover {
  gap: 12px;
  color: var(--brand-pink);
}

/* Growth Process (Mine & Scale Framework) */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.process-step {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
  transition: var(--transition);
}

.process-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-coral);
}

.step-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-gradient);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 20px;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Portfolio / Case Studies */
.portfolio-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}

.filter-btn {
  background: #ffffff;
  border: 1.5px solid var(--border-medium);
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--brand-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(250, 37, 94, 0.28);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.portfolio-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-medium);
}

.portfolio-preview {
  height: 200px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.portfolio-preview-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px;
}

.portfolio-client-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.portfolio-category-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  color: var(--text-dark);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

.portfolio-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portfolio-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.portfolio-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.portfolio-stats-row {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
}

.stat-box {
  display: flex;
  flex-direction: column;
}

.stat-box .val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-coral);
}

.stat-box .lbl {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Why Click Mine Media */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.why-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 34px;
  display: flex;
  gap: 20px;
  transition: var(--transition);
}

.why-card:hover {
  border-color: var(--brand-coral);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.why-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--brand-gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-coral);
  font-weight: 800;
  flex-shrink: 0;
}

.why-content h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.why-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Interactive Brand Growth Calculator */
.calc-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 44px;
  box-shadow: var(--shadow-lg);
  max-width: 900px;
  margin: 0 auto;
}

.calc-step-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.calc-services-select {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}

.calc-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  background: var(--bg-secondary);
  font-weight: 600;
  font-size: 0.92rem;
  transition: var(--transition);
  user-select: none;
}

.calc-option.selected {
  border-color: var(--brand-coral);
  background: var(--brand-gradient-subtle);
  color: var(--brand-coral);
}

.calc-option input {
  accent-color: var(--brand-coral);
}

.calc-budget-range {
  margin-bottom: 36px;
}

.budget-tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.tier-btn {
  padding: 12px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  cursor: pointer;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
}

.tier-btn.active {
  background: var(--brand-gradient);
  color: #ffffff;
  border-color: transparent;
}

.calc-result-box {
  background: #0f172a;
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.calc-result-left h4 {
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.calc-result-left p {
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.stars {
  display: flex;
  gap: 4px;
  color: #f59e0b;
  margin-bottom: 16px;
}

.quote-text {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 24px;
  flex-grow: 1;
  font-style: italic;
}

.client-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.client-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-gradient-subtle);
  border: 2px solid var(--brand-coral);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--brand-coral);
  font-size: 1.05rem;
}

.client-info h5 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.client-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* FAQ Accordion */
.faq-container {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--brand-coral);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--text-dark);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background: var(--brand-gradient);
  color: #ffffff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  padding: 0 26px;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  padding: 0 26px 24px 26px;
}

/* Contact Section & Form */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: flex-start;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-card-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.contact-card-box:hover {
  border-color: var(--brand-coral);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.contact-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--brand-gradient-subtle);
  border: 1px solid rgba(250, 37, 94, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-coral);
  flex-shrink: 0;
}

.contact-card-box:hover .contact-icon-box {
  background: var(--brand-gradient);
  color: #ffffff;
}

.contact-text h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.contact-text a,
.contact-text p {
  color: var(--text-body);
  font-size: 1rem;
  font-weight: 600;
}

.contact-text a:hover {
  color: var(--brand-coral);
}

.contact-text span {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

/* Contact Form */
.contact-form-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 42px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.form-title {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.form-subtitle {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 0.95rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
  position: relative;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
}

.form-label .req {
  color: var(--brand-coral);
}

.form-control {
  width: 100%;
  padding: 13px 18px;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-dark);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  background: #ffffff;
  border-color: var(--brand-coral);
  box-shadow: 0 0 0 4px rgba(250, 37, 94, 0.12);
}

.form-control.is-invalid {
  border-color: #ef4444 !important;
  background-color: #fff5f5 !important;
}

.form-control.is-valid {
  border-color: #10b981 !important;
  background-color: #f0fdf4 !important;
}

.field-error-text {
  font-size: 0.8rem;
  color: #ef4444;
  font-weight: 600;
  display: none;
  margin-top: 2px;
}

.form-control.is-invalid + .field-error-text {
  display: block;
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.form-checkbox-group input {
  margin-top: 4px;
  accent-color: var(--brand-coral);
}

/* Success & Error Alert Messages */
.form-status-alert {
  display: none;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 22px;
  align-items: center;
  gap: 12px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-status-alert.success {
  display: flex;
  background: #ecfdf5;
  color: #065f46;
  border: 1.5px solid #a7f3d0;
}

.form-status-alert.error {
  display: flex;
  background: #fef2f2;
  color: #991b1b;
  border: 1.5px solid #fecaca;
}

/* CTA Banner Section */
.cta-banner {
  background: #0f172a;
  color: #ffffff;
  border-radius: 28px;
  padding: 65px 50px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 10% 20%, rgba(255, 102, 0, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(194, 0, 120, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

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

.cta-banner h2 {
  color: #ffffff;
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.cta-banner p {
  color: #cbd5e1;
  font-size: 1.15rem;
  margin-bottom: 34px;
  line-height: 1.65;
}

.cta-button-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Footer */
.footer {
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 70px 0 30px 0;
  color: var(--text-body);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.9fr 1.1fr;
  gap: 44px;
  margin-bottom: 56px;
}

.footer-brand p {
  color: var(--text-muted);
  margin: 20px 0 24px 0;
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--brand-gradient);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 1.05rem;
  margin-bottom: 22px;
  color: var(--text-dark);
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--brand-coral);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--text-body);
  font-size: 0.92rem;
}

.footer-contact-item svg {
  color: var(--brand-coral);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-legal-links {
  display: flex;
  gap: 20px;
}

.footer-legal-links a:hover {
  color: var(--brand-coral);
}

/* Floating Quick Actions (Sticky WhatsApp & Call) */
.floating-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 990;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.fab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  color: #ffffff;
  transition: var(--transition);
  position: relative;
  text-decoration: none;
}

.fab-btn:hover {
  transform: scale(1.1);
}

.fab-whatsapp {
  background-color: #25d366;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

.fab-call {
  background: var(--brand-gradient);
  box-shadow: 0 8px 20px rgba(250, 37, 94, 0.35);
}

.fab-tooltip {
  position: absolute;
  right: 64px;
  background: #0f172a;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.fab-btn:hover .fab-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 985;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--brand-gradient);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-3px);
}

/* Mobile Quick Bar (Sticky bottom on mobile screens) */
.mobile-quick-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 10px 16px;
  z-index: 995;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

.mobile-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mobile-quick-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
}

.mobile-quick-btn.call {
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-medium);
  color: var(--text-dark);
}

.mobile-quick-btn.whatsapp {
  background: #25d366;
  color: #ffffff;
}

/* ==========================================================================
   Shared components (formerly inline styles)
   ========================================================================== */
.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: fixed;
  top: -60px;
  left: 12px;
  z-index: 2000;
  background: var(--text-dark);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

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

.page-hero {
  padding: 70px 0 50px 0;
  background: var(--bg-secondary);
}

.page-hero .container {
  max-width: 820px;
  text-align: center;
}

.section-flush-top {
  padding-top: 0;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 70px;
}

.split-grid h2 {
  font-size: 2.3rem;
  margin-bottom: 20px;
}

.split-grid p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.philosophy-card {
  background: var(--brand-gradient-subtle);
  border: 2px dashed var(--brand-coral);
  border-radius: 24px;
  padding: 44px;
  text-align: center;
}

.philosophy-card h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.philosophy-card blockquote {
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 24px;
}

.philosophy-card cite {
  display: block;
  font-style: normal;
  font-weight: 800;
  color: var(--brand-coral);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.services-grid--detail {
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

.service-card--lg {
  padding: 40px;
}

.service-card--lg .service-title {
  font-size: 1.55rem;
}

.service-card--lg .service-desc {
  font-size: 1.05rem;
}

.service-card .btn {
  margin-top: 20px;
  align-self: flex-start;
}

/* Quick facts (answer-first block used for SEO / AEO / GEO) */
.facts-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--brand-coral);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  max-width: 900px;
  margin: 0 auto;
}

.facts-box h2 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.facts-box p {
  color: var(--text-body);
  line-height: 1.75;
}

.facts-box ul {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.facts-box li {
  font-size: 0.95rem;
  color: var(--text-body);
}

.facts-box li strong {
  color: var(--text-dark);
}

.text-link {
  color: var(--brand-coral);
  font-weight: 700;
}

.text-link:hover {
  color: var(--brand-pink);
  text-decoration: underline;
}

.contact-note {
  background: var(--brand-gradient-subtle);
  border: 1.5px dashed var(--brand-coral);
  border-radius: 16px;
  padding: 24px;
}

.contact-note h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.contact-note p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-icon-box--wa {
  color: #25d366;
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.3);
}

.footer-contact-item small {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-contact-item a,
.footer-contact-item .strong {
  font-weight: 700;
  color: var(--text-dark);
  overflow-wrap: anywhere;
}

.footer-contact-item a:hover {
  color: var(--brand-coral);
}

.footer-bottom .link-button {
  background: none;
  color: inherit;
  font-size: inherit;
  text-decoration: underline;
  padding: 0;
}

.footer-bottom .link-button:hover {
  color: var(--brand-coral);
}

.footer-legal-links {
  flex-wrap: wrap;
}

.footer-compact {
  padding-top: 40px;
}

.footer-compact .footer-bottom {
  border: none;
  padding-top: 0;
  justify-content: center;
}

.calc-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ff6600;
  font-weight: 700;
}

.calc-result-left strong {
  color: #ffffff;
}

.metric-status {
  font-size: 0.8rem;
  font-weight: 700;
  color: #047857;
}

.hero-pill-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.hero-pill-value {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-dark);
}

.portfolio-sector {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  margin-top: 4px;
}

.drawer-title {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-dark);
}

.drawer-cta-btn {
  width: 100%;
}

.faq-answer a {
  color: var(--brand-coral);
  font-weight: 700;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-coral);
  font-weight: 700;
  margin-bottom: 24px;
}

/* Legal pages (privacy, terms) */
.legal {
  max-width: 860px;
}

.legal h1 {
  font-size: 2.75rem;
  margin-bottom: 16px;
}

.legal .legal-meta {
  color: var(--text-muted);
  margin-bottom: 36px;
}

.legal-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: var(--text-body);
  font-size: 1.05rem;
  line-height: 1.8;
}

.legal-body h2 {
  font-size: 1.5rem;
  margin-top: 16px;
}

.legal-body ul {
  list-style: disc;
  margin-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-body a {
  color: var(--brand-coral);
  font-weight: 600;
}

.legal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  padding: 20px;
  border-radius: 12px;
}

/* 404 */
.error-page {
  min-height: 62vh;
  display: flex;
  align-items: center;
}

.error-page .container {
  max-width: 680px;
  text-align: center;
}

.error-code {
  font-size: 6.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 16px;
}

.error-page h1 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.error-page .lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}

.error-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.error-help {
  padding: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.error-help a {
  color: var(--brand-coral);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.noscript-note {
  background: #fff7ed;
  color: #9a3412;
  text-align: center;
  padding: 10px 16px;
  font-size: 0.9rem;
}

/* Form: inline field errors + consent row */
.form-group .field-error-text {
  display: none;
}

.form-control.is-invalid ~ .field-error-text,
.form-checkbox-group.is-invalid .field-error-text {
  display: block;
}

.form-checkbox-group {
  flex-wrap: wrap;
}

.form-checkbox-group .field-error-text {
  flex-basis: 100%;
}

.form-checkbox-group input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.form-checkbox-group a {
  color: var(--brand-coral);
  font-weight: 700;
}

.form-status-alert a {
  text-decoration: underline;
  font-weight: 700;
}

.btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* ==========================================================================
   Cookie consent banner
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 1500;
  width: calc(100% - 40px);
  max-width: 440px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(15, 23, 42, 0.04);
  padding: 22px;
  transform: translateY(24px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0s 0.35s;
}

.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.cookie-banner h2 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.cookie-banner p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.cookie-banner p a {
  color: var(--brand-coral);
  font-weight: 700;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

.cookie-actions .btn {
  flex: 1;
  padding: 11px 16px;
  font-size: 0.9rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Navigation switches to the slide-in drawer at 1100px so the desktop
   menu never crowds the logo and CTA on small laptops / tablets. */
@media (max-width: 1100px) {
  .header {
    /* backdrop-filter would turn the header into the containing block for
       the fixed-position drawer and clip it to 80px tall. */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background-color: #ffffff;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 8px;
    flex-shrink: 0;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh;
    width: 320px;
    max-width: 88vw;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    gap: 0;
    transform: translateX(110%);
    visibility: hidden; /* keeps off-screen links out of the tab order */
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 0.32s;
    box-shadow: -6px 0 40px rgba(15, 23, 42, 0.18);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    z-index: 1002;
  }

  .nav-menu.active {
    transform: translateX(0);
    visibility: visible;
    transition-delay: 0s;
  }

  .mobile-menu-header {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    flex-shrink: 0;
  }

  .mobile-close-btn {
    flex-shrink: 0;
  }

  .nav-link {
    display: block;
    font-size: 1.05rem;
    width: 100%;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-light);
  }

  .nav-link:hover,
  .nav-link.active {
    background: rgba(255, 102, 0, 0.04);
  }

  .nav-link::after {
    display: none;
  }

  .mobile-drawer-cta {
    display: flex;
    gap: 10px;
    padding: 18px 20px;
    margin-top: auto;
    flex-shrink: 0;
  }

  .header-actions .btn {
    display: none;
  }
}

@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.85rem;
  }

  .services-grid,
  .portfolio-grid,
  .testimonials-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .section {
    padding: 65px 0;
  }

  .topbar {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-title {
    font-size: 2.35rem;
  }

  .hero-trust-indicators {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .floating-hero-pill {
    display: none;
  }

  .contact-grid,
  .why-grid,
  .split-grid,
  .services-grid--detail {
    grid-template-columns: 1fr;
  }

  .split-grid {
    gap: 32px;
    margin-bottom: 48px;
  }

  .split-grid h2 {
    font-size: 1.9rem;
  }

  .mobile-quick-bar {
    display: block;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }

  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }

  /* The sticky bottom bar already offers call + WhatsApp on mobile. */
  .floating-actions {
    display: none;
  }

  .back-to-top {
    bottom: 84px;
    right: 16px;
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-width: none;
  }

  .legal h1 {
    font-size: 2.1rem;
  }
}

@media (max-width: 640px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section {
    padding: 50px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .hero-title {
    font-size: 1.95rem;
  }

  .hero-description {
    font-size: 1.05rem;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .services-grid,
  .portfolio-grid,
  .testimonials-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .service-card--lg {
    padding: 28px 22px;
  }

  .why-card {
    padding: 24px 20px;
    flex-direction: column;
    gap: 16px;
  }

  .philosophy-card {
    padding: 28px 20px;
  }

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

  .contact-form-card {
    padding: 24px 16px;
    border-radius: 18px;
  }

  .contact-card-box {
    padding: 20px 16px;
  }

  .contact-text a,
  .contact-text p {
    overflow-wrap: anywhere;
  }

  .budget-tiers {
    grid-template-columns: repeat(2, 1fr);
  }

  .calc-card {
    padding: 24px 16px;
    border-radius: 18px;
  }

  .calc-result-box {
    padding: 22px 18px;
  }

  .calc-result-right,
  .calc-result-right .btn {
    width: 100%;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-banner {
    padding: 44px 20px;
    border-radius: 20px;
  }

  .cta-banner h2 {
    font-size: 1.7rem;
  }

  .cta-button-group .btn {
    width: 100%;
  }

  /* Long labels (e.g. the email address) must wrap instead of overflowing */
  .btn {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .btn-lg {
    padding: 14px 22px;
    font-size: 1rem;
  }

  .metric-value {
    font-size: 1.7rem;
  }

  .error-code {
    font-size: 5rem;
  }

  .error-page h1 {
    font-size: 1.7rem;
  }

  .error-actions .btn {
    width: 100%;
  }

  .portfolio-stats-row {
    gap: 8px;
  }

  .stat-box .val {
    font-size: 1.05rem;
  }
}

@media (max-width: 380px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .hero-card-stack {
    padding: 22px 16px;
  }

  .cookie-actions {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
  }
}

@media print {
  .topbar, .header, .floating-actions, .back-to-top, .mobile-quick-bar,
  .cookie-banner, .nav-backdrop {
    display: none !important;
  }
}

/* Small helpers added with the SEO / consent work */
.section-tight {
  padding: 48px 0;
}

.form-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}

.form-note a {
  color: var(--brand-coral);
  font-weight: 700;
}

.section-link-row {
  text-align: center;
  margin-top: 36px;
}

@media (max-width: 640px) {
  .section-tight {
    padding: 32px 0;
  }
}

/* Heading classes (keep visual size while using correct semantic levels) */
.footer-heading { font-size: 1.05rem; margin-bottom: 22px; color: var(--text-dark); font-weight: 700; }
.faq-heading { font-size: inherit; margin: 0; letter-spacing: normal; }
.contact-card-title { font-size: 1.05rem; margin-bottom: 4px; }
.contact-note h3 { font-size: 1.1rem; margin-bottom: 8px; }
.facts-box.mb-lg { margin-bottom: 70px; }
.legal-body code { background: var(--bg-tertiary); padding: 1px 6px; border-radius: 4px; font-size: 0.9em; }
.legal-body .link-button { background: none; padding: 0; font-size: inherit; text-decoration: underline; }
[hidden] { display: none !important; }
.btn-block { width: 100%; }
