/* ============================================================
   LAYOUT - ShopifyChamps
   Grid, Header, Footer, Navigation, Sections, Responsive
   Mobile-first approach with breakpoints at 768px, 1024px, 1440px
   ============================================================ */

/* ------------------------------------------------------------
   Container
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
}

/* Wide container variant */
.container--wide {
  max-width: 1400px;
}

/* Narrow container for text content */
.container--narrow {
  max-width: 800px;
}

/* ------------------------------------------------------------
   Grid Utilities
   CSS Grid based responsive column system
   ------------------------------------------------------------ */
.grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid {
    gap: 2rem;
  }
}

/* 2-column grid */
.grid--2 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 3-column grid */
.grid--3 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 4-column grid */
.grid--4 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Grid item minimum widths for better readability on large screens */
@media (min-width: 1200px) {
  .grid--3 > .card,
  .grid--3 > .card--service {
    min-width: 280px;
  }
}

/* Grid alignment helpers */
.grid--center {
  align-items: center;
}

.grid--start {
  align-items: start;
}

.grid--stretch {
  align-items: stretch;
}

/* ------------------------------------------------------------
   Flexbox Utilities
   ------------------------------------------------------------ */
.flex {
  display: flex;
}

.flex--center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex--between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex--wrap {
  display: flex;
  flex-wrap: wrap;
}

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

.flex--gap-2 {
  gap: var(--space-2);
}

.flex--gap-4 {
  gap: var(--space-4);
}

.flex--gap-6 {
  gap: var(--space-6);
}

/* ------------------------------------------------------------
   Header
   Site header with logo, navigation, CTA button
   ------------------------------------------------------------ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: var(--space-5) 0;
  background-color: transparent;
  transition:
    padding var(--transition-default),
    background-color var(--transition-default),
    box-shadow var(--transition-default);
}

/* On mobile/tablet: compact padding + solid background to prevent
   breadcrumb/content showing through transparent header on scroll */
@media (max-width: 1023px) {
  .header {
    padding: var(--space-2) 0;
    background-color: #fff;
  }
}

/* Scrolled state - reduced padding, background, shadow */
.header--scrolled {
  padding: var(--space-3) 0;
  background-color: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  z-index: 1003;
}

.header__logo-img {
  height: 40px;
  width: auto;
}

.header__logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-dark);
}

.header__logo-text span {
  color: var(--color-primary);
}

/* Header actions (CTA button area) */
.header__actions {
  display: none;
  align-items: center;
  gap: var(--space-4);
}

@media (min-width: 1024px) {
  .header__actions {
    display: flex;
  }
}

/* Phone number in header - hidden on all viewports */
.header__phone {
  display: none !important;
}

.header__phone-icon {
  color: var(--color-primary);
}

/* Header Language Selector (Dropdown) */
.header__lang {
  display: none;
  position: relative;
  margin-left: var(--space-2);
}

@media (min-width: 1024px) {
  .header__lang {
    display: block;
  }
}

.header__lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-dark);
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  line-height: 1;
}

.header__lang-trigger:hover {
  border-color: rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 0, 0.02);
}

.header__lang--open .header__lang-trigger {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(139, 197, 63, 0.15);
}

.header__lang-arrow {
  transition: transform 0.2s ease;
}

.header__lang--open .header__lang-arrow {
  transform: rotate(180deg);
}

.header__lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 100%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.15s ease;
  z-index: 1000;
}

.header__lang--open .header__lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header__lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-dark);
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.header__lang-option:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--color-dark);
}

.header__lang-option--active {
  color: var(--color-primary);
  background: rgba(139, 197, 63, 0.08);
}

.header__lang-option--active:hover {
  background: rgba(139, 197, 63, 0.12);
  color: var(--color-primary);
}

.header__lang-flag {
  width: 18px;
  height: 13px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* Mobile nav language selector */
.nav--mobile .mobile-lang {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-4);
}

.nav--mobile .mobile-lang__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-gray);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  border: 1px solid var(--color-border);
}

.nav--mobile .mobile-lang__link:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.nav--mobile .mobile-lang__link--active {
  color: var(--color-primary);
  font-weight: 600;
  background: rgba(139, 197, 63, 0.08);
  border-color: var(--color-primary);
}

.nav--mobile .mobile-lang__flag {
  width: 18px;
  height: 13px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

/* ------------------------------------------------------------
   Navigation
   Desktop: horizontal nav with dropdown
   Mobile: full-screen overlay
   ------------------------------------------------------------ */
.nav {
  display: none;
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
    align-items: center;
  }
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav__item {
  position: relative;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-dark);
  border-radius: var(--radius-md);
  transition:
    color var(--transition-default),
    background-color var(--transition-default);
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--color-primary);
  background-color: var(--color-bg-light);
}

.nav__link--active {
  color: var(--color-primary);
  font-weight: var(--font-semibold);
}

/* Dropdown arrow icon */
.nav__arrow {
  display: inline-block;
  width: 10px;
  height: 10px;
  transition: transform var(--transition-default);
}

/* Navigation Dropdown (Services submenu) */
.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 300px;
  padding: var(--space-3);
  padding-top: var(--space-2);
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 2px 10px rgba(0, 0, 0, 0.06);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease;
  z-index: 9999;
  pointer-events: none;
}

/* Show dropdown on hover */
.nav__item:hover .nav__dropdown,
.nav__item:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav__item:hover .nav__arrow {
  transform: rotate(180deg);
}

.nav__dropdown-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-dark);
  border-radius: var(--radius-md);
  transition:
    background-color var(--transition-default),
    color var(--transition-default);
  white-space: nowrap;
}

.nav__dropdown-link:hover {
  background-color: var(--color-bg-light);
  color: var(--color-primary);
}

.nav__dropdown-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background-color: var(--color-bg-light);
  color: var(--color-primary);
  font-size: var(--text-base);
  flex-shrink: 0;
  transition: background-color var(--transition-default), color var(--transition-default);
}

.nav__dropdown-link:hover .nav__dropdown-icon {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* Mobile Navigation (full-screen overlay) */
.nav--mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1002;
  background-color: var(--color-white);
  padding: var(--space-16) var(--space-6) var(--space-8);
  overflow-y: auto;
  flex-direction: column;
}

.nav--mobile.nav--open {
  display: flex;
}

/* When mobile nav is open, make header transparent so nav overlay
   covers everything. Hide logo/nav/actions; only toggle stays visible. */
.header.nav-is-open {
  background-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.header.nav-is-open .header__logo,
.header.nav-is-open .nav,
.header.nav-is-open .header__actions,
.header.nav-is-open .header__phone {
  visibility: hidden;
  pointer-events: none;
}
.header.nav-is-open .mobile-toggle {
  position: relative;
  z-index: 1005;
}

/* Mobile nav: logo injected by JS at top of overlay */
.mobile-nav__logo {
  display: block;
  margin-bottom: var(--space-4);
}
.mobile-nav__logo .header__logo-img {
  height: 32px;
  width: auto;
}

.nav--mobile .nav__list {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.nav--mobile .nav__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: var(--space-4) var(--space-3);
  font-size: var(--text-lg);
  border-bottom: 1px solid var(--color-border);
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.nav--mobile .nav__link .nav__arrow {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.nav--mobile .nav__dropdown {
  position: static;
  transform: none !important;
  min-width: 100%;
  box-shadow: none;
  border-radius: var(--radius-md);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  padding: 0;
  background-color: var(--color-bg-light);
  margin-bottom: var(--space-2);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  left: auto;
}

.nav--mobile .nav__dropdown--open {
  max-height: 800px;
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}

/* Override hover/focus transforms on mobile */
.nav--mobile .nav__item:hover .nav__dropdown,
.nav--mobile .nav__item:focus-within .nav__dropdown {
  transform: none !important;
}

/* Rotate chevron when mobile submenu is expanded */
.nav--mobile .nav__link[aria-expanded="true"] .nav__arrow {
  transform: rotate(180deg);
}

.nav--mobile .nav__dropdown-link {
  padding: var(--space-3) var(--space-4) var(--space-3) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-base);
  white-space: normal;
  word-wrap: break-word;
}

.nav--mobile .nav__dropdown-link:last-child {
  border-bottom: none;
}

/* Mobile nav CTA area */
.nav--mobile .nav__cta {
  margin-top: auto;
  padding-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* ------------------------------------------------------------
   Mobile Toggle (Hamburger button)
   Hidden on desktop (>= 1024px)
   ------------------------------------------------------------ */
.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1003;
  position: relative;
}

@media (min-width: 1024px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-dark);
  border-radius: 2px;
  position: relative;
  transition:
    background-color var(--transition-default),
    transform var(--transition-default);
}

.mobile-toggle__bar::before,
.mobile-toggle__bar::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-dark);
  border-radius: 2px;
  transition:
    transform var(--transition-default),
    top var(--transition-default),
    bottom var(--transition-default);
}

.mobile-toggle__bar::before {
  top: -7px;
}

.mobile-toggle__bar::after {
  bottom: -7px;
}

/* Hamburger to X animation */
.mobile-toggle--active .mobile-toggle__bar {
  background-color: transparent;
}

.mobile-toggle--active .mobile-toggle__bar::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-toggle--active .mobile-toggle__bar::after {
  bottom: 0;
  transform: rotate(-45deg);
}

/* ------------------------------------------------------------
   Overlay (Mobile menu background)
   ------------------------------------------------------------ */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 998;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--transition-default),
    visibility var(--transition-default);
}

.overlay--active {
  opacity: 1;
  visibility: visible;
}

/* Prevent scrolling when mobile nav is open */
body.nav-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* ------------------------------------------------------------
   Hero Section
   Full-width hero with optional background
   ------------------------------------------------------------ */
.hero {
  position: relative;
  width: 100%;
  min-height: 480px;
  display: flex;
  align-items: center;
  padding: calc(var(--space-20) + var(--space-6)) 0 var(--space-10);
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    min-height: 560px;
    padding: calc(var(--space-24) + var(--space-8)) 0 var(--space-16);
  }
}

@media (min-width: 1024px) {
  .hero {
    min-height: 650px;
    padding: calc(var(--space-24) + var(--space-16)) 0 var(--space-20);
  }
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
}

.hero__content {
  text-align: center;
}

@media (min-width: 1024px) {
  .hero__content {
    text-align: left;
  }
}

.hero__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--color-dark);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-5);
}

@media (min-width: 768px) {
  .hero__title {
    font-size: var(--text-4xl);
  }
}

@media (min-width: 1024px) {
  .hero__title {
    font-size: var(--text-5xl);
  }
}

@media (min-width: 1440px) {
  .hero__title {
    font-size: var(--text-6xl);
  }
}

.hero__title span {
  color: var(--color-primary);
}

.hero__text {
  font-size: var(--text-lg);
  color: var(--color-body-text);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
  max-width: 540px;
}

@media (min-width: 1024px) {
  .hero__text {
    font-size: var(--text-xl);
  }
}

.hero__content .hero__text {
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1024px) {
  .hero__content .hero__text {
    margin-left: 0;
    margin-right: 0;
  }
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
}

@media (min-width: 768px) {
  .hero__actions {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .hero__actions {
    justify-content: flex-start;
  }
}

.hero__image {
  display: block;
}

@media (min-width: 768px) {
  .hero__image {
    display: block;
  }
}

.hero__image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

/* Hero background shapes - clipped to prevent horizontal scroll */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.hero__bg-shape {
  position: absolute;
  border-radius: var(--radius-full);
  opacity: 0.08;
  background-color: var(--color-primary);
}

/* Hero stats bar */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

@media (min-width: 768px) {
  .hero__stats {
    grid-template-columns: repeat(4, 1fr);
    margin-top: var(--space-12);
  }
}

/* ------------------------------------------------------------
   Sections
   Standard section padding with color variants
   ------------------------------------------------------------ */
.section {
  padding: 3rem 0;
  position: relative;
}

@media (min-width: 768px) {
  .section {
    padding: 5rem 0;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 6rem 0;
  }
}

/* Green background section */
.section--green {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.section--green h2,
.section--green h3,
.section--green h4 {
  color: var(--color-white);
}

.section--green p {
  color: rgba(255, 255, 255, 0.85);
}

/* Dark background section */
.section--dark {
  background-color: var(--color-dark-bg);
  color: var(--color-white);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-white);
}

.section--dark p {
  color: rgba(255, 255, 255, 0.7);
}

/* Compact section - reduced padding */
.section--compact {
  padding: 1.5rem 0;
}

/* Diagram showcase wrapper */
.diagram-showcase {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(139, 197, 63, 0.15);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

/* Teal background section */
.section--teal {
  background-color: var(--color-teal);
  color: var(--color-white);
}

.section--teal h2,
.section--teal h3,
.section--teal h4 {
  color: var(--color-white);
}

.section--teal p {
  color: rgba(255, 255, 255, 0.8);
}

/* Light background section */
.section--light {
  background-color: var(--color-bg-light);
}

/* Gray light background */
.section--gray {
  background-color: var(--color-gray-light);
}

/* Section with overflow visible for decorative elements */
.section--overflow {
  overflow: visible;
}

/* ------------------------------------------------------------
   Section Divider
   For SVG wave / organic shape placement between sections
   ------------------------------------------------------------ */
.section-divider {
  position: relative;
  width: 100%;
  line-height: 0;
  overflow: visible;
}

.section-divider svg {
  display: block;
  width: 100%;
  height: auto;
}

.section-divider--top {
  margin-bottom: -1px;
}

.section-divider--bottom {
  margin-top: -1px;
}

/* Flip for bottom dividers */
.section-divider--flip {
  transform: rotate(180deg);
}

/* ------------------------------------------------------------
   Footer
   Multi-column footer with newsletter, links, contact
   ------------------------------------------------------------ */
.footer {
  background-color: var(--color-dark-bg);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-20) 0 0;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-default);
}

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

/* Footer grid layout */
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-8);
  }
}

/* Footer columns */
.footer__col {
  display: flex;
  flex-direction: column;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.footer__logo-img {
  height: 36px;
  width: auto;
}

.footer__logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-white);
}

.footer__logo-text span {
  color: var(--color-primary);
}

.footer__description {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-6);
  max-width: 320px;
}

/* Footer headings */
.footer__title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-white);
  margin-bottom: var(--space-5);
}

/* Footer link lists */
.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-default);
  white-space: nowrap;
}

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

/* Footer contact info */
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
}

.footer__contact-icon {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Footer social links - hidden */
.footer__social {
  display: none;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-lg);
  transition:
    background-color var(--transition-default),
    color var(--transition-default),
    transform var(--transition-default);
}

.footer__social-link:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-3px);
}

/* Footer bottom bar */
.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-6) 0;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.4);
}

.footer__bottom > p {
  white-space: nowrap;
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }
}

.footer__bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

@media (min-width: 768px) {
  .footer__bottom-links {
    gap: var(--space-6);
    flex-wrap: nowrap;
  }
}

.footer__bottom-links a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.4);
}

.footer__bottom-links a:hover {
  color: var(--color-primary);
}

/* ANPC consumer protection banners */
.footer__anpc {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding-top: 0;
}

.footer__anpc a {
  display: block;
  transition: opacity 0.2s ease;
}

.footer__anpc a:hover {
  opacity: 0.85;
}

.footer__anpc img {
  height: 42px;
  width: auto;
  border-radius: 6px;
}

@media (max-width: 767px) {
  .footer__anpc img {
    height: 36px;
  }
}


/* Language Selector (Footer) */
.footer__lang {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  width: 100%;
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: var(--space-2);
}

/* Copyright text inside lang row */
.footer__lang .footer__copyright {
  width: 100%;
  text-align: center;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: var(--space-2);
}

@media (min-width: 768px) {
  .footer__lang .footer__copyright {
    width: auto;
    margin-bottom: 0;
    margin-right: auto;
  }
}

.footer__lang-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  margin-right: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.footer__lang-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  font-weight: 500;
}

.footer__lang-link:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}

.footer__lang-link--active {
  color: var(--color-primary);
  background: rgba(139, 197, 63, 0.1);
  border-color: rgba(139, 197, 63, 0.2);
}

.footer__lang-link--active:hover {
  color: var(--color-primary);
  background: rgba(139, 197, 63, 0.15);
}

.footer__lang-flag {
  width: 18px;
  height: 13px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1);
}

.footer__lang-sep {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 2px;
}

@media (min-width: 768px) {
  .footer__lang {
    justify-content: center;
  }
}

/* ------------------------------------------------------------
   Page Header (internal pages)
   Banner at top of sub-pages
   ------------------------------------------------------------ */
.page-header {
  position: relative;
  padding: calc(var(--space-12) + var(--space-4)) 0 var(--space-8);
  background-color: var(--color-bg-light);
  text-align: center;
  overflow: visible;
}

@media (min-width: 768px) {
  .page-header {
    padding: calc(var(--space-16) + var(--space-4)) 0 var(--space-10);
  }
}

@media (min-width: 1024px) {
  .page-header {
    padding: calc(var(--space-20) + var(--space-6)) 0 var(--space-12);
  }
}

/* Standalone breadcrumb container (outside page-header)
   Needs top padding to clear fixed header */
main > div:first-child:not(.page-header) > .container > .breadcrumb {
  padding-top: calc(var(--space-12) + var(--space-4));
}

@media (min-width: 768px) {
  main > div:first-child:not(.page-header) > .container > .breadcrumb {
    padding-top: calc(var(--space-16) + var(--space-4));
  }
}

@media (min-width: 1024px) {
  main > div:first-child:not(.page-header) > .container > .breadcrumb {
    padding-top: calc(var(--space-20) + var(--space-4));
  }
}

/* When hero follows a standalone breadcrumb wrapper, the header is
   already cleared by the breadcrumb — reduce the hero top padding */
main > div:first-child + .hero {
  padding-top: var(--space-4);
  min-height: auto;
}

@media (min-width: 768px) {
  main > div:first-child + .hero {
    padding-top: var(--space-6);
  }
}

@media (min-width: 1024px) {
  main > div:first-child + .hero {
    padding-top: var(--space-8);
    min-height: 500px;
  }
}

.page-header__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--color-dark);
  margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
  .page-header__title {
    font-size: var(--text-4xl);
  }
}

@media (min-width: 1024px) {
  .page-header__title {
    font-size: var(--text-5xl);
  }
}

.page-header__text {
  font-size: var(--text-lg);
  color: var(--color-body-text);
  max-width: 600px;
  margin: 0 auto;
  line-height: var(--leading-relaxed);
}

/* ------------------------------------------------------------
   Two-Column Content Layout
   Used for about, service detail, etc.
   ------------------------------------------------------------ */
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

/* Reverse order on desktop */
.content-grid--reverse {
  direction: ltr;
}

@media (min-width: 1024px) {
  .content-grid--reverse {
    direction: rtl;
  }
  .content-grid--reverse > * {
    direction: ltr;
  }
}

/* Image side */
.content-grid__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.content-grid__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

/* Text side */
.content-grid__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.content-grid__text p {
  line-height: 1.75;
}

/* ------------------------------------------------------------
   Quick Contact Section
   Contact information with form
   ------------------------------------------------------------ */
#quick-contact svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Mobile responsive for quick contact */
@media (max-width: 767px) {
  #quick-contact [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  #quick-contact svg {
    width: 16px !important;
    height: 16px !important;
  }

  #quick-contact h2 {
    font-size: var(--text-2xl) !important;
  }

  #quick-contact p {
    font-size: var(--text-base) !important;
  }
}

@media (max-width: 374px) {
  #quick-contact svg {
    width: 14px !important;
    height: 14px !important;
  }
}

/* ------------------------------------------------------------
   CTA Section
   Full-width call-to-action band
   ------------------------------------------------------------ */
.cta-section {
  padding: var(--space-16) 0;
  text-align: center;
  background-color: var(--color-primary);
  position: relative;
  overflow: visible;
}

@media (min-width: 768px) {
  .cta-section {
    padding: var(--space-20) 0;
  }
}

.cta-section__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
  .cta-section__title {
    font-size: var(--text-4xl);
  }
}

.cta-section__text {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto var(--space-8);
  line-height: var(--leading-relaxed);
}

.cta-section__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.cta-section__actions .btn {
  white-space: nowrap;
  flex-direction: row;
}

.cta-section__actions .btn svg {
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .cta-section__actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* ------------------------------------------------------------
   Responsive Breakpoints
   Mobile-first: base styles are mobile
   768px  = Tablet
   1024px = Desktop
   1440px = Large Desktop
   ------------------------------------------------------------ */

/* -- Tablet (768px) -- */
@media (min-width: 768px) {
  /* Adjustments already embedded above via contextual media queries */
}

/* -- Desktop (1024px) -- */
@media (min-width: 1024px) {
  /* Desktop-specific layout refinements */
}

/* -- Large Desktop (1440px) -- */
@media (min-width: 1440px) {
  .container {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
  }

  .hero__title {
    font-size: var(--text-6xl);
  }
}

/* ------------------------------------------------------------
   Diagram Containers
   Prominent display for SVG diagrams in content sections
   ------------------------------------------------------------ */
.diagram-container,
[class*="diagram"] {
  max-width: 800px;
  margin: 3rem auto;
}

/* Diagram images should be prominently displayed */
img[src*="diagram"] {
  display: block;
  margin: 2rem auto;
}

/* ------------------------------------------------------------
   Desktop Process Flow - Show connector lines
   ------------------------------------------------------------ */
@media (min-width: 768px) {
  .process-flow-diagram .connector-line {
    display: block !important;
  }
}

/* ------------------------------------------------------------
   Mobile Enhancements
   Ensure sections and content are properly sized on small screens
   ------------------------------------------------------------ */
@media (max-width: 767px) {
  /* GLOBAL MOBILE CONSTRAINTS - Prevent horizontal scroll */
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* Ensure all elements respect viewport width */
  * {
    max-width: 100%;
  }

  /* Allow specific elements to be wider (like negative margin decorations) */
  .hero__bg-shape,
  svg[aria-hidden="true"],
  .svc-network__lines,
  [class*="svc-network__"] {
    max-width: none;
  }

  /* Increase section padding on mobile for better visual weight */
  .section {
    padding: 3.5rem 0;
  }

  /* Ensure content grids collapse and have proper spacing on mobile */
  .content-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  /* Give cards more breathing room */
  .card,
  .card--service {
    padding: var(--space-6);
  }

  /* Ensure hero animated scenes don't collapse */
  [class*="-hero-scene"],
  [class*="hero-animation"] {
    min-height: 200px;
  }

  /* Hero scenes should have controlled max-height on mobile */
  .hero__scene {
    max-height: 350px;
    overflow: hidden;
  }

  /* Hero background blobs - scale down dramatically on mobile */
  .hero__bg svg {
    width: 40% !important;
    max-width: 300px !important;
  }
  .hero__bg svg:first-child {
    width: 35% !important;
    max-width: 250px !important;
    top: -5% !important;
    right: -2% !important;
  }
  .hero__bg svg:last-child {
    width: 30% !important;
    max-width: 200px !important;
    bottom: -8% !important;
    left: -5% !important;
  }

  /* Icon boxes sized down for mobile */
  .icon-box--lg {
    width: 56px;
    height: 56px;
  }
  .icon-box--lg svg {
    width: 24px;
    height: 24px;
  }

  /* FLUID CONTAINER PADDING - Scales with viewport */
  .container {
    padding-left: clamp(1rem, 5vw, 1.5rem);
    padding-right: clamp(1rem, 5vw, 1.5rem);
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Ensure all text content respects container bounds */
  .container * {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  /* Diagrams should be full width on mobile */
  .diagram-container,
  [class*="diagram"] {
    max-width: 100%;
    margin: 2rem auto;
  }

  /* Inline SVG diagrams and images */
  .section svg[viewBox],
  .section img[src*="diagram"] {
    height: auto;
    min-height: 15px;
  }

  /* Scale up diagrams on mobile for better text readability */
  img[src*="diagram"] {
    transform: scale(1.3);
    transform-origin: center;
    margin: 3rem auto !important;
  }

  /* Tech Stack Diagram - Mobile Responsive */
  .tech-stack-diagram {
    padding: 0 1rem !important;
  }

  .tech-stack-diagram .stack-layer {
    padding: 1rem !important;
  }

  .tech-stack-diagram .stack-layer > div:first-child {
    flex-direction: column !important;
    gap: 0.75rem;
  }

  .tech-stack-diagram .stack-layer svg {
    width: 24px !important;
    height: 24px !important;
  }

  .tech-stack-diagram span {
    font-size: 0.8125rem !important;
    padding: 0.3rem 0.6rem !important;
  }

  /* Process Flow Diagram - Mobile Responsive */
  .process-flow-diagram {
    padding: 1rem 0.5rem !important;
  }

  .process-flow-diagram .process-step {
    min-width: 100% !important;
    margin-bottom: 1.5rem !important;
  }

  .process-flow-diagram .connector-line {
    display: none !important;
  }

  /* Results Diagram - Mobile Responsive */
  .results-diagram {
    padding: 1rem 0.5rem !important;
  }

  .results-diagram .result-item {
    min-width: 140px !important;
    flex: 1 1 45% !important;
    margin-bottom: 2rem !important;
  }

  .results-diagram .result-item > div:first-child {
    width: 110px !important;
    height: 110px !important;
  }

  .results-diagram .result-item > div:first-child > div:first-child {
    font-size: 2rem !important;
  }

  .results-diagram .result-item > div:nth-child(2) {
    font-size: 1rem !important;
  }

  /* Services Ecosystem Diagram - Mobile Responsive */
  .services-ecosystem-diagram {
    min-height: auto !important;
    padding: 2rem 1rem !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .services-ecosystem-diagram > div {
    position: static !important;
    transform: none !important;
    margin: 0 !important;
  }

  .services-ecosystem-diagram .service-node {
    width: 90px !important;
    height: 90px !important;
  }

  .services-ecosystem-diagram .service-node svg {
    width: 24px !important;
    height: 24px !important;
  }

  /* SEO Ecosystem Diagram - Mobile Responsive */
  .seo-ecosystem-diagram {
    min-height: auto !important;
    padding: 2rem 1rem !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .seo-ecosystem-diagram > div {
    position: static !important;
    transform: none !important;
    margin: 0 !important;
  }

  .seo-ecosystem-diagram .seo-node {
    width: 90px !important;
    height: 90px !important;
  }

  .seo-ecosystem-diagram .seo-node svg {
    width: 24px !important;
    height: 24px !important;
  }

  /* Hide connection lines and dotted circle on mobile */
  .seo-ecosystem-diagram > svg {
    display: none !important;
  }

  /* Shopify Plus Diagram - Mobile Responsive */
  .shopify-plus-diagram {
    padding: 2rem 1rem !important;
  }

  .shopify-plus-diagram > div:last-child {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .shopify-plus-diagram .plus-feature {
    padding: 1.25rem !important;
  }

  /* Hide connection lines and center plus icon on mobile */
  .shopify-plus-diagram > div:first-child,
  .shopify-plus-diagram > svg {
    display: none !important;
  }

  /* Stats counter section */
  .hero__stats {
    gap: var(--space-3);
    margin-top: var(--space-8);
    padding-top: var(--space-6);
  }

  /* FLUID TYPOGRAPHY - Scales naturally with viewport */
  .page-header__title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  h1, .hero__title {
    font-size: clamp(1.5rem, 4vw, 2.25rem) !important;
    line-height: 1.2;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  h2 {
    font-size: clamp(1.25rem, 3.5vw, 1.875rem) !important;
    overflow-wrap: break-word;
  }

  h3 {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem) !important;
    overflow-wrap: break-word;
  }

  /* Fluid body text */
  body, p, .hero__text {
    font-size: clamp(0.9375rem, 2vw, 1.0625rem) !important;
    line-height: 1.6;
  }

  /* Contact page - reduce spacing around phone/contact info on mobile */
  .contact-form + div > div,
  .contact-form ~ div > div {
    gap: var(--space-3) !important;
  }

  /* Reduce spacing between contact info items on mobile */
  .icon-box--circle + div h3,
  .icon-box--sm + div h3 {
    margin-bottom: 0.25rem !important;
  }

  .icon-box--circle + div p,
  .icon-box--sm + div p {
    margin-top: 0.25rem !important;
  }

  /* Phone number link - reduce spacing above and below */
  a[href^="tel:"] {
    display: inline-block;
    margin-top: 0.25rem !important;
    margin-bottom: 0.25rem !important;
  }

  /* Contact information container spacing */
  section div[style*="gap"] {
    gap: var(--space-3) !important;
  }

  /* Hero section contact info on mobile */
  .hero div[style*="flex"],
  .page-header div[style*="flex"] {
    gap: var(--space-2) !important;
  }

  /* Quick contact section - FLUID spacing that scales naturally */
  #quick-contact h2 {
    margin-bottom: clamp(1rem, 4vw, 1.5rem) !important;
    font-size: clamp(1.5rem, 5vw, 2rem) !important;
    line-height: 1.2 !important;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
  }

  #quick-contact p {
    margin-bottom: clamp(0.75rem, 3vw, 1rem) !important;
    font-size: clamp(0.9375rem, 2vw, 1.0625rem) !important;
  }

  /* Phone and response time container - fluid gap */
  #quick-contact div[style*="gap:var(--space-4)"] {
    gap: clamp(0.5rem, 2vw, 1rem) !important;
    margin-top: clamp(0.5rem, 2vw, 1rem) !important;
  }

  /* Section dark - fluid internal spacing */
  .section--dark div[style*="gap:var(--space-4)"] {
    gap: clamp(0.5rem, 2vw, 1rem) !important;
  }

  /* Quick contact grid - ensure single column on mobile */
  #quick-contact > .container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* CTA section */
  .cta-section__title {
    font-size: var(--text-2xl);
  }

  /* Issue #1: 404 page - 8rem font size too large for mobile */
  .text-display {
    font-size: 4rem !important; /* Override inline 8rem, 64px */
  }

  /* Issue #4: Page header title word breaking */
  .page-header__title {
    overflow-wrap: break-word;
    hyphens: auto;
  }

  /* Issue #7: Breadcrumb font size too small - increase from 12px to 13px */
  .breadcrumb {
    font-size: 0.8125rem !important; /* 13px instead of 12px */
  }

  /* Issue #9: Mobile nav dropdown text wrapping */
  .nav--mobile .nav__dropdown-link {
    overflow-wrap: break-word;
    hyphens: auto;
  }

  /* Issue #11: Grid gap too large on mobile - reduce from 1.5rem to 1rem */
  .grid {
    gap: 1rem !important;
  }

  /* Issue #13: Container padding - fixing breakpoint conflict */
  /* Already handled by existing rule, but ensuring consistency */

  /* Issue #14: Footer links touch targets - ensure 44px minimum height */
  .footer__link {
    padding: var(--space-2) 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Issue #15: Thank you page buttons - force vertical stack */
  .grid--3 {
    grid-template-columns: 1fr !important;
    gap: var(--space-3) !important;
  }

  /* Issue #5: Blog article card image aspect ratio - change to 4/3 for mobile */
  .card__image-wrapper[style*="aspect-ratio"] {
    aspect-ratio: 4/3 !important;
  }

  /* Issue #6: Inline flexbox gap - add mobile-responsive gap utilities */
  [style*="gap:var(--space-4)"],
  [style*="gap: var(--space-4)"] {
    gap: var(--space-2) !important;
  }

  [style*="gap:var(--space-3)"],
  [style*="gap: var(--space-3)"] {
    gap: var(--space-2) !important;
  }

  /* Issue #16: Hero title font size scaling */
  .hero__title {
    font-size: var(--text-2xl) !important;
  }

  /* Issue #17: Hero text line height */
  .hero__text {
    line-height: var(--leading-normal);
  }

  /* FLUID SECTION PADDING - Scales naturally with viewport */
  .section {
    padding: clamp(2rem, 6vw, 3rem) 0 !important;
  }

  /* Prevent horizontal overflow on all sections */
  .section, .hero, .page-header {
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* Issue #20: Card title font size */
  .card__title {
    font-size: var(--text-lg) !important;
  }

  /* Issue #2: FLUID RESPONSIVE DESIGN - Let content flow naturally */

  /* Grids: Use auto-fit for fluid columns that wrap naturally */
  [style*="display:grid"],
  [style*="display: grid"],
  [style*="grid-template-columns"] {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)) !important;
  }

  /* Flex containers: Enable wrapping for natural, fluid layout */
  div[style*="display:flex"],
  div[style*="display: flex"] {
    flex-wrap: wrap !important;
  }

  /* Keep inline flex items that should stay horizontal (icons, badges, small groups) */
  [style*="align-items:center"][style*="gap:var(--space-2)"],
  [style*="align-items: center"][style*="gap: var(--space-2)"],
  [style*="align-items:center"][style*="gap:var(--space-1)"],
  [style*="align-items: center"][style*="gap: var(--space-1)"] {
    flex-wrap: nowrap !important;
  }

  /* Fluid width: Max-width instead of forcing auto */
  [style*="width:"][style*="px"] {
    max-width: 100% !important;
  }

  /* Issue #3: Hero background shapes - ensure parent overflow hidden */
  .section[style*="overflow"],
  section[style*="overflow"] {
    overflow: hidden !important;
  }

  /* Medium Priority Issues */

  /* Issue #21: Badge font size - ensure minimum 12px */
  .badge {
    font-size: 0.75rem !important; /* 12px minimum */
  }

  /* Issue #22: Newsletter form input height on mobile */
  .newsletter-form__input {
    min-height: 44px;
    font-size: 16px; /* Prevent iOS zoom on focus */
  }

  /* Issue #23: Footer social icon spacing */
  .footer__social {
    gap: var(--space-3) !important;
  }

  /* Issue #24: Mobile nav toggle button size - already 44x44px */
  .mobile-toggle {
    min-width: 44px;
    min-height: 44px;
  }

  /* Issue #25: Header logo size on 320px */
  .header__logo-img {
    height: 36px;
  }

  /* Issue #26: Form field heights and touch targets */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea,
  select {
    min-height: 44px;
    font-size: 16px; /* Prevent iOS zoom */
    padding: var(--space-3);
  }

  textarea {
    min-height: 120px;
  }

  /* Issue #27: Service card icon sizes - already handled */

  /* Issue #28: FAQ accordion expand/collapse touch areas */
  .accordion__trigger,
  button[aria-expanded] {
    min-height: 44px;
    padding: var(--space-3);
  }

  /* Issue #29: Mobile nav CTA button widths */
  .nav--mobile .btn {
    width: 100%;
  }

  /* Issue #30: Footer newsletter form mobile layout */
  .newsletter-form {
    flex-direction: column;
    gap: var(--space-3);
  }

  .newsletter-form__btn {
    width: 100%;
    min-height: 44px;
  }

  /* Issue #31: Contact form field spacing */
  .contact-form .form-group {
    margin-bottom: var(--space-4);
  }

  /* Issue #32: Page header subtitle sizing */
  .page-header__text {
    font-size: var(--text-base) !important;
  }

  /* Issue #33: Ensure all buttons have proper touch targets */
  button:not(.carousel-dot),
  .btn,
  a.btn {
    min-height: 44px;
    min-width: 44px;
  }

  /* CTA phone button: icon + text in one row, bigger size */
  .cta-section__actions .btn {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    white-space: nowrap !important;
    gap: var(--space-2) !important;
    padding: var(--space-5) var(--space-8) !important;
    font-size: var(--text-xl) !important;
  }

  .cta-section__actions .btn svg {
    flex-shrink: 0 !important;
    width: 24px !important;
    height: 24px !important;
    max-width: none !important;
  }

  /* Carousel dots: small indicators, not touch-target sized */
  .carousel-dot {
    width: 8px !important;
    height: 8px !important;
    min-width: 8px !important;
    min-height: 8px !important;
    padding: 0 !important;
  }

  /* Issue #34: Letter-spacing adjustments for mobile headings */
  h1, h2, h3 {
    letter-spacing: -0.02em;
  }

  /* Issue #35: Focus state visibility on mobile */
  *:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
  }

  /* Issue #36: Ensure proper text alignment on mobile */
  .hero__content,
  .page-header {
    text-align: center;
  }
}

/* Small mobile (< 375px) extra adjustments */
@media (max-width: 374px) {
  .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .nav--mobile {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .section {
    padding: 2.5rem 0;
  }

  /* Hero background blobs - even smaller on extra-small screens */
  .hero__bg svg {
    width: 35% !important;
    max-width: 200px !important;
  }
  .hero__bg svg:first-child {
    width: 30% !important;
    max-width: 180px !important;
  }
  .hero__bg svg:last-child {
    width: 25% !important;
    max-width: 150px !important;
  }

  /* Issue #1: 404 page - even smaller on 320px screens */
  .text-display {
    font-size: 3rem !important; /* 48px for 320px screens */
  }

  /* Issue #5: Blog card aspect ratio - change to 1/1 for extra small */
  .card__image-wrapper[style*="aspect-ratio"] {
    aspect-ratio: 1/1 !important;
  }

  /* Issue #8: Hero animated scenes - reduce minimum height */
  [class*="-hero-scene"],
  [class*="hero-animation"] {
    min-height: 150px !important;
    max-height: 250px !important;
  }

  /* Issue #9: Mobile nav dropdown - reduce padding on extra small */
  .nav--mobile .nav__dropdown-link {
    padding-left: var(--space-4) !important;
    font-size: var(--text-sm) !important;
  }

  /* Issue #10: Icon boxes - reduce to 48px on 320px */
  .icon-box--lg {
    width: 48px !important;
    height: 48px !important;
  }
  .icon-box--lg svg {
    width: 20px !important;
    height: 20px !important;
  }

  /* Issue #19: Button font size */
  .btn {
    font-size: 0.9375rem !important; /* 15px */
    padding: var(--space-2) var(--space-5) !important;
  }

  /* Issue #16: Hero title even smaller */
  .hero__title {
    font-size: var(--text-xl) !important;
  }
}

/* ------------------------------------------------------------
   Print Styles
   Basic print-friendly overrides
   ------------------------------------------------------------ */
@media print {
  .header,
  .footer,
  .mobile-toggle,
  .nav--mobile,
  .overlay,
  .skip-link {
    display: none;
  }

  .section {
    padding: var(--space-8) 0;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
