/* ================================================================
   OzPrint t/a OzDynamics — Shared Stylesheet
   styles.css
   ================================================================
   TABLE OF CONTENTS
   -----------------
   01. CSS Custom Properties (Tokens)
   02. Reset & Base
   03. Scrollbar
   04. Typography Scale
   05. Layout Utilities
   06. Navigation
   07. Hero
   08. Section Utilities
   09. Buttons
   10. Cards (Service, Pricing, Portfolio, Testimonial)
   11. Forms & Inputs
   12. File Upload Component
   13. Quote Calculator
   14. Portfolio / Gallery
   15. Stats Counter
   16. Process Steps / Timeline
   17. FAQ Accordion
   18. Tech Badges
   19. Animations & Scroll Triggers
   20. Back to Top
   21. Footer
   22. Light Mode Overrides
   23. Responsive Utilities
   ================================================================ */


/* ================================================================
   01. CSS CUSTOM PROPERTIES (TOKENS)
   ================================================================ */

:root {
  /* — Brand Palette — */
  --color-charcoal:    #1e2530;
  --color-gunmetal:    #2d333d;
  --color-gunmetal-2:  #363c48;
  --color-khaki:       #948979;
  --color-khaki-light: #b0a390;
  --color-sand:        #DFD0B8;
  --color-sand-muted:  #c4b49e;

  /* — Semantic Tokens — */
  --bg-primary:        var(--color-charcoal);
  --bg-secondary:      var(--color-gunmetal);
  --bg-tertiary:       var(--color-gunmetal-2);
  --bg-card:           var(--color-gunmetal);

  --text-primary:      var(--color-sand);
  --text-muted:        var(--color-khaki);
  --text-heading:      var(--color-sand);

  --accent:            var(--color-khaki);
  --accent-hover:      var(--color-khaki-light);
  --accent-subtle:     rgba(148, 137, 121, 0.12);
  --accent-subtle-2:   rgba(148, 137, 121, 0.06);

  --border:            rgba(148, 137, 121, 0.18);
  --border-strong:     rgba(148, 137, 121, 0.40);
  --border-card:       rgba(148, 137, 121, 0.18);

  /* — Status Colors — */
  --color-success:     #6abf7a;
  --color-error:       #e06060;
  --color-warning:     #d4a448;

  /* — Spacing Scale — */
  --space-1:   4px;
  --space-2:   8px;
  --space-3:   12px;
  --space-4:   16px;
  --space-5:   20px;
  --space-6:   24px;
  --space-8:   32px;
  --space-10:  40px;
  --space-12:  48px;
  --space-16:  64px;
  --space-20:  80px;
  --space-24:  96px;

  /* — Typography — */
  --font-display: 'Rajdhani', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --text-xs:    0.70rem;
  --text-sm:    0.85rem;
  --text-base:  1.00rem;
  --text-lg:    1.10rem;
  --text-xl:    1.25rem;
  --text-2xl:   1.50rem;
  --text-3xl:   1.875rem;
  --text-4xl:   2.25rem;
  --text-5xl:   3.00rem;
  --text-hero:  clamp(3rem, 8vw, 7rem);

  /* — Radius — */
  --radius-sm:  2px;
  --radius:     4px;
  --radius-lg:  8px;
  --radius-xl:  16px;
  --radius-full: 9999px;

  /* — Shadows — */
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.25);
  --shadow:     0 4px 16px rgba(0,0,0,0.35);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.45);
  --shadow-glow: 0 0 24px rgba(148,137,121,0.18);

  /* — Transitions — */
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:   cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration:   320ms;
  --duration-slow: 560ms;
  --transition: var(--duration) var(--ease);

  /* — Z-Index Scale — */
  --z-base:    0;
  --z-raised:  10;
  --z-dropdown: 200;
  --z-sticky:  500;
  --z-nav:     1000;
  --z-modal:   2000;
  --z-toast:   3000;
}

/* Light mode token overrides */
html.light {
  --bg-primary:    #f2ede7;
  --bg-secondary:  #e6dfd7;
  --bg-tertiary:   #ddd5cb;
  --bg-card:       #e6dfd7;

  --text-primary:  #1e2530;
  --text-muted:    #5a5248;
  --text-heading:  #1e2530;

  --accent:        #7a6e61;
  --accent-hover:  #948979;
  --accent-subtle: rgba(122,110,97,0.10);
  --accent-subtle-2: rgba(122,110,97,0.05);

  --border:        rgba(30,37,48,0.14);
  --border-strong: rgba(30,37,48,0.30);
  --border-card:   rgba(30,37,48,0.14);

  --shadow:        0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg:     0 12px 40px rgba(0,0,0,0.16);
  --shadow-glow:   0 0 24px rgba(122,110,97,0.12);
}


/* ================================================================
   02. RESET & BASE
   ================================================================ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  transition:
    background-color var(--transition),
    color var(--transition);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: var(--font-body);
}

ul, ol {
  list-style: none;
}

/* Remove default focus outline — replaced with custom */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}


/* ================================================================
   03. SCROLLBAR
   ================================================================ */

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover);
}


/* ================================================================
   04. TYPOGRAPHY SCALE
   ================================================================ */

/* Display / Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text-heading);
  letter-spacing: -0.01em;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-hero);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--text-heading);
}

.hero-title .accent {
  color: var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 1.05;
  color: var(--text-heading);
}

/* Eyebrow / label above headings */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
}
.section-tag::before {
  content: '';
  display: block;
  width: 22px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

/* Subheading / lead text */
.lead {
  font-size: var(--text-lg);
  line-height: 1.75;
  color: var(--text-muted);
}

/* Gradient divider line under headings */
.divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, var(--accent), transparent);
  margin: var(--space-5) 0 var(--space-6);
}
.divider--center {
  margin-left: auto;
  margin-right: auto;
}

/* Monospace / code snippets */
code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.88em;
  background: var(--accent-subtle);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  color: var(--accent-hover);
}


/* ================================================================
   05. LAYOUT UTILITIES
   ================================================================ */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--narrow {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-24) var(--space-6);
}

.section--sm {
  padding: var(--space-16) var(--space-6);
}

.section--bg {
  background: var(--bg-secondary);
}

.section--border {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Flex 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    { flex-wrap: wrap; }
.gap-2        { gap: var(--space-2); }
.gap-3        { gap: var(--space-3); }
.gap-4        { gap: var(--space-4); }
.gap-6        { gap: var(--space-6); }
.gap-8        { gap: var(--space-8); }

/* Grid utilities */
.grid-2  { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.grid-3  { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4  { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }

/* Text alignment */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* Visibility */
.hidden { display: none !important; }
.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;
}


/* ================================================================
   06. NAVIGATION
   ================================================================ */

#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  transition:
    background var(--transition),
    box-shadow var(--transition),
    padding var(--transition);
  padding: var(--space-5) var(--space-6);
}

#navbar.scrolled {
  background: rgba(30, 37, 48, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
  padding: var(--space-3) var(--space-6);
}

html.light #navbar.scrolled {
  background: rgba(242, 237, 231, 0.96);
}

/* Scroll progress bar — sits at very top of navbar */
#scroll-progress {
  position: absolute;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(to right, var(--accent), var(--color-sand));
  transition: width 80ms linear;
  z-index: 1;
}

.navbar__inner {
  max-width: 1280px;
  margin: 0 auto;
}

/* Logo */
.navbar__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.navbar__logo-mark {
  width: 36px;
  height: 36px;
  /* border: 2px solid var(--accent); */
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(180deg);
  transition: transform var(--duration-slow) var(--ease-spring), border-color var(--transition), filter 0.3s ease;
  flex-shrink: 0;
}
.navbar__logo-mark:hover {
  transform: rotate(0deg);
  /* border-color: var(--accent-hover); */
  filter: saturate(1000%);
}

.navbar__logo-mark span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--accent);
  transform: rotate(-45deg);
  display: block;
  transition: transform var(--duration-slow) var(--ease-spring);
}
.navbar__logo-mark:hover span {
  transform: rotate(0deg);
}

.navbar__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.navbar__logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.30rem;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  transition: color var(--transition);
}

.navbar__logo-tagline {
  font-family: var(--font-display);
  font-size: 0.63rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1;
}

/* Desktop nav links */
.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-link {
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  padding: var(--space-1) 0;
  transition: color var(--transition);
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* CTA nav button */
.nav-cta {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

/* Theme toggle button */
.theme-toggle {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-primary);
  font-size: 0.85rem;
  transition: all var(--transition);
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-subtle);
}

/* Hamburger */
.hamburger {
  width: 36px; height: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-2);
  transition: border-color var(--transition);
}
.hamburger:hover {
  border-color: var(--accent);
}
.hamburger span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all 0.3s var(--ease);
}
.hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu drawer */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease-out);
  background: rgba(30, 37, 48, 0.98);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
}
html.light #mobile-menu {
  background: rgba(230, 223, 215, 0.98);
}
#mobile-menu.open {
  max-height: 480px;
}

.mobile-menu__inner {
  padding: var(--space-4) var(--space-6) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.mobile-menu__link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color var(--transition);
}
.mobile-menu__link:hover { color: var(--accent); }
.mobile-menu__link:last-child { border-bottom: none; }

/* Sub-brand pill in nav */
.navbar__subbrand {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-left: 1px solid var(--border);
  padding-left: var(--space-3);
  margin-left: var(--space-2);
  line-height: 1.2;
  display: none;
}
@media (min-width: 1024px) {
  .navbar__subbrand { display: block; }
}


/* ================================================================
   07. HERO
   ================================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Canvas particle background */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Subtle engineering grid overlay */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148,137,121,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,137,121,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  z-index: 1;
  pointer-events: none;
}

/* Radial depth vignette */
.hero__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 25%, rgba(30,37,48,0.82) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Content sits above canvas layers */
.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 var(--space-6);
  max-width: 1000px;
}

/* Small eyebrow label above hero title */
.hero__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-6);
  background: var(--accent-subtle-2);
}

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  opacity: 0.45;
  z-index: 3;
  animation: bounceY 2.4s var(--ease) infinite;
}

.hero__scroll-indicator span {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

@keyframes bounceY {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}


/* ================================================================
   08. SECTION UTILITIES
   ================================================================ */

/* Section heading block — used at top of each content section */
.section-header {
  margin-bottom: var(--space-12);
}

.section-header--center {
  text-align: center;
}

.section-header--center .divider {
  margin-left: auto;
  margin-right: auto;
}

/* Corner accent decoration for CTA blocks */
.corner-tl,
.corner-br {
  position: absolute;
  width: 20px; height: 20px;
}
.corner-tl {
  top: 0; left: 0;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}
.corner-br {
  bottom: 0; right: 0;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}


/* ================================================================
   09. BUTTONS
   ================================================================ */

/* Primary filled button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 13px var(--space-8);
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
}
.btn--primary:hover {
  background: transparent;
  color: var(--accent);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn--outline:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--lg {
  padding: 16px var(--space-10);
  font-size: var(--text-base);
}

.btn--sm {
  padding: 9px var(--space-5);
  font-size: var(--text-xs);
}

.btn--full {
  width: 100%;
}

/* Loading state */
.btn.loading {
  opacity: 0.7;
  pointer-events: none;
  cursor: wait;
}
.btn.loading::after {
  content: '';
  width: 14px; height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* ================================================================
   10. CARDS
   ================================================================ */

/* — Service Card — */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: var(--space-8);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

/* Animated left accent line */
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--accent);
  transition: height 0.45s var(--ease-out);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.service-card:hover::before {
  height: 100%;
}

/* Service icon container */
.service-icon {
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-subtle);
  border-radius: var(--radius);
  margin-bottom: var(--space-5);
  font-size: 1.3rem;
  color: var(--accent);
  transition: all var(--transition);
}
.service-card:hover .service-icon {
  background: var(--accent);
  color: var(--bg-primary);
}

/* — Pricing Card — */
/* .pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: var(--space-10) var(--space-8);
  transition: all var(--transition);
  position: relative;
}
.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.pricing-card--featured {
  border-color: var(--accent);
  background: linear-gradient(
    160deg,
    var(--bg-card) 0%,
    rgba(148,137,121,0.07) 100%
  );
}

.pricing-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg-primary);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.pricing-tier {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
}

.pricing-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--text-heading);
}

.pricing-period {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-1);
  margin-bottom: var(--space-6);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

.pricing-feature i.check  { color: var(--accent); font-size: var(--text-xs); margin-top: 3px; }
.pricing-feature i.cross  { color: var(--text-muted); opacity: 0.35; font-size: var(--text-xs); margin-top: 3px; } */

/* — Testimonial Card — */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: var(--space-8);
  position: relative;
  transition: all var(--transition);
}
.testimonial-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

/* Large decorative quote mark */
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -6px; left: 18px;
  font-size: 4.5rem;
  font-family: Georgia, serif;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  pointer-events: none;
}

.testimonial-card__text {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.75;
  margin-bottom: var(--space-5);
  padding-top: var(--space-4);
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-card__avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.testimonial-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-primary);
  line-height: 1.2;
}

.testimonial-card__role {
  font-size: var(--text-xs);
  color: var(--accent);
  margin-top: 2px;
}

/* Star rating */
.star-rating {
  display: flex;
  gap: 3px;
  color: var(--accent);
  font-size: 0.75rem;
  margin-bottom: var(--space-3);
}

/* — Portfolio / Gallery Card — */
.portfolio-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-secondary);
  border: 1px solid var(--border-card);
  transition: all var(--transition);
}

.portfolio-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.portfolio-card__image {
  width: 100%;
  height: 240px;                 /* fixed height, not aspect-ratio */
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform var(--duration-slow) var(--ease);
}

.portfolio-card:hover .portfolio-card__image {
  transform: scale(1.05);
}

/* Hover overlay */
.portfolio-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(30,37,48,0.92) 0%,
    rgba(30,37,48,0.40) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-6);
}

.portfolio-card:hover .portfolio-card__overlay {
  opacity: 1;
}

.portfolio-card__tag {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-2);
}

.portfolio-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-sand);
  line-height: 1.2;
}

/* Portfolio filter pills */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
}

.filter-pill {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  background: none;
}
.filter-pill:hover,
.filter-pill.active {
  color: var(--bg-primary);
  background: var(--accent);
  border-color: var(--accent);
}


/* ================================================================
   11. FORMS & INPUTS
   ================================================================ */

.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-2);
  font-weight: 700;
}

.form-field {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px var(--space-5);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.5;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-field::placeholder {
  color: var(--text-muted);
  opacity: 0.55;
}

.form-field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(148,137,121,0.12);
}

.form-field.error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(224,96,96,0.10);
}

/* Select dropdown arrow */
select.form-field {
  padding-right: var(--space-10);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23948979' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
  color-scheme: dark;
}
html.light select.form-field {
  color-scheme: light;
}

/* Textarea */
textarea.form-field {
  resize: vertical;
  min-height: 130px;
}

/* Inline validation message */
.form-error {
  display: none;
  color: var(--color-error);
  font-size: var(--text-xs);
  margin-top: var(--space-1);
  letter-spacing: 0.04em;
}
.form-error.visible { display: block; }

/* Checkbox & Radio custom */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 16px; height: 16px;
  margin-top: 3px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.form-check__label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

/* Form success message */
.form-success {
  display: none;
  padding: var(--space-5);
  border-radius: var(--radius);
  border: 1px solid rgba(106,191,122,0.3);
  background: rgba(106,191,122,0.07);
  text-align: center;
  margin-top: var(--space-5);
}
.form-success.visible { display: block; }
.form-success i {
  font-size: 1.6rem;
  color: var(--color-success);
  margin-bottom: var(--space-2);
}
.form-success__title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.form-success__sub {
  font-size: var(--text-sm);
  color: var(--text-muted);
}


/* ================================================================
   12. FILE UPLOAD COMPONENT
   ================================================================ */

.file-upload {
  position: relative;
  width: 100%;
}

.file-upload__zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-10) var(--space-6);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--accent-subtle-2);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  min-height: 160px;
}

.file-upload__zone:hover,
.file-upload__zone.dragging {
  border-color: var(--accent);
  background: var(--accent-subtle);
}

.file-upload__zone.has-file {
  border-style: solid;
  border-color: var(--color-success);
  background: rgba(106,191,122,0.05);
}

.file-upload__icon {
  font-size: 2rem;
  color: var(--accent);
  transition: transform var(--transition);
}
.file-upload__zone:hover .file-upload__icon,
.file-upload__zone.dragging .file-upload__icon {
  transform: translateY(-4px);
}

.file-upload__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--text-primary);
}

.file-upload__subtitle {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.6;
}

.file-upload__browse {
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
  font-size: var(--text-sm);
}

/* Hidden native input */
.file-upload__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* Accepted formats row */
.file-upload__formats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.file-format-badge {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

/* Uploaded file list */
.file-upload__list {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.file-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
}

.file-item__icon {
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
}

.file-item__name {
  flex: 1;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-item__size {
  color: var(--text-muted);
  font-size: var(--text-xs);
  flex-shrink: 0;
}

.file-item__remove {
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 2px 6px;
  transition: color var(--transition);
  flex-shrink: 0;
}
.file-item__remove:hover {
  color: var(--color-error);
}


/* ================================================================
   13. QUOTE CALCULATOR
   ================================================================ */

.calculator {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.calculator__header {
  background: var(--accent-subtle);
  border-bottom: 1px solid var(--border);
  padding: var(--space-6) var(--space-8);
}

.calculator__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--text-primary);
}

.calculator__subtitle {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-1);
}

.calculator__body {
  padding: var(--space-8);
}

.calculator__footer {
  border-top: 1px solid var(--border);
  padding: var(--space-6) var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* Range slider */
.range-group {
  margin-bottom: var(--space-2);
}

.range-group__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-3);
}

.range-group__label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.range-group__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--text-primary);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 1px var(--accent);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 0 4px rgba(148,137,121,0.25);
}

/* Material / technology selector chips */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.chip {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  border: 1px solid var(--border);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  cursor: pointer;
  color: var(--text-muted);
  background: none;
  transition: all var(--transition);
}
.chip:hover  { border-color: var(--accent); color: var(--accent); }
.chip.active {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
}

/* Price estimate display */
.price-estimate {
  text-align: right;
}

.price-estimate__label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}

.price-estimate__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.6rem;
  color: var(--text-heading);
  line-height: 1;
}

.price-estimate__note {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 4px;
}

/* Calculator step tabs */
.calc-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-8);
}

.calc-tab {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  padding: var(--space-3) var(--space-6);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  margin-bottom: -1px;
}

.calc-tab:hover { color: var(--accent); }
.calc-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}


/* ================================================================
   14. PORTFOLIO / GALLERY
   ================================================================ */

/* Masonry-ish grid using CSS columns */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-5);
}

/* Lightbox overlay */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 18, 22, 0.92);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox__inner {
  max-width: 900px;
  width: 100%;
  position: relative;
  transform: scale(0.95);
  transition: transform var(--transition);
}

.lightbox.open .lightbox__inner {
  transform: scale(1);
}

.lightbox__image {
  width: 100%;
  max-height: 75vh;        /* add this */
  object-fit: contain;     /* change from default to contain */
  border-radius: var(--radius);
  display: block;
  background: var(--bg-primary);  /* fills letterbox gaps */
}
.lightbox__close {
  position: absolute;
  top: -var(--space-5);
  right: -var(--space-5);
  width: 36px; height: 36px;
  background: var(--accent);
  color: var(--bg-primary);
  border: none;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  top: var(--space-3);
  right: var(--space-3);
}
.lightbox__close:hover {
  background: var(--accent-hover);
}

.lightbox__caption {
  padding: var(--space-4) var(--space-5);
  background: var(--bg-secondary);
  border-radius: 0 0 var(--radius) var(--radius);
}

/* Horizontal scrolling gallery strip */
.gallery-strip {
  display: flex;
  gap: var(--space-5);
  overflow-x: auto;
  padding-bottom: var(--space-3);
  scrollbar-width: thin;
  scroll-snap-type: x mandatory;
}

.gallery-strip::-webkit-scrollbar { height: 3px; }

.gallery-strip__item {
  flex: 0 0 280px;
  scroll-snap-align: start;
}


/* ================================================================
   15. STATS COUNTER
   ================================================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  text-align: center;
}
@media (min-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-item {}

.stat-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.2rem;
  color: var(--text-heading);
  line-height: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
}

.stat-number__suffix {
  font-size: 2rem;
  color: var(--accent);
}

.stat-label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: var(--space-2);
}

.stat-divider {
  width: 32px; height: 2px;
  background: linear-gradient(to right, var(--accent), transparent);
  margin: var(--space-3) auto var(--space-2);
}


/* ================================================================
   16. PROCESS STEPS / TIMELINE
   ================================================================ */

.process-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-step {
  position: relative;
  padding-left: var(--space-8);
  padding-bottom: var(--space-8);
}

/* Dot */
.process-step::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(148,137,121,0.2);
  z-index: 1;
}

/* Vertical connector line */
.process-step::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 24px;
  width: 1px;
  bottom: 0;
  background: linear-gradient(to bottom, var(--border-strong), transparent);
}

.process-step:last-child::after { display: none; }

.process-step__year {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.process-step__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--text-heading);
  margin-bottom: var(--space-2);
}

.process-step__body {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
}


/* ================================================================
   17. FAQ ACCORDION
   ================================================================ */

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5) 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-base);
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  background: none;
  border: none;
  gap: var(--space-4);
  transition: color var(--transition);
}
.faq-trigger:hover { color: var(--accent); }

.faq-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  color: var(--accent);
  font-size: 0.72rem;
}
.faq-item.open .faq-icon {
  background: var(--accent);
  color: var(--bg-primary);
  transform: rotate(45deg);
  border-color: var(--accent);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.42s var(--ease-out), padding 0.42s var(--ease-out);
}
.faq-item.open .faq-body {
  max-height: 400px;
  padding-bottom: var(--space-5);
}

.faq-body p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.75;
}


/* ================================================================
   18. TECH BADGES
   ================================================================ */

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: all var(--transition);
  font-weight: 700;
}
.tech-badge:hover {
  border-color: var(--accent);
  color: var(--text-primary);
  background: var(--accent-subtle);
}


/* ================================================================
   19. ANIMATIONS & SCROLL TRIGGERS
   ================================================================ */

/* Base invisible state */
.fade-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity var(--duration-slow) var(--ease), transform var(--duration-slow) var(--ease);
}
.fade-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity var(--duration-slow) var(--ease), transform var(--duration-slow) var(--ease);
}
.fade-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity var(--duration-slow) var(--ease), transform var(--duration-slow) var(--ease);
}
.fade-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity var(--duration-slow) var(--ease), transform var(--duration-slow) var(--ease);
}

/* Visible state — added by IntersectionObserver */
.fade-up.visible,
.fade-left.visible,
.fade-right.visible,
.fade-scale.visible {
  opacity: 1;
  transform: none;
}

/* Stagger delay helpers */
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
.delay-5 { transition-delay: 0.40s; }
.delay-6 { transition-delay: 0.48s; }

/* Page entry animation */
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page-enter {
  animation: pageFadeIn 0.45s var(--ease-out) forwards;
}

/* Pulse glow — used on key UI elements */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(148,137,121,0); }
  50%       { box-shadow: 0 0 0 8px rgba(148,137,121,0.12); }
}
.pulse { animation: pulseGlow 2.8s ease infinite; }

/* Shimmer skeleton loading */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-secondary) 25%,
    var(--bg-tertiary) 50%,
    var(--bg-secondary) 75%
  );
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: var(--radius-sm);
}


/* ================================================================
   20. BACK TO TOP
   ================================================================ */

#back-to-top {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  width: 42px; height: 42px;
  background: var(--accent);
  color: var(--bg-primary);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(12px);
  transition: all var(--transition);
  z-index: var(--z-sticky);
  box-shadow: var(--shadow);
}
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
#back-to-top:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-glow);
}

/* WhatsApp / Chat FAB (floating action button) */
#chat-fab {
  position: fixed;
  bottom: var(--space-8);
  left: var(--space-8);
  z-index: var(--z-sticky);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}

.chat-fab__btn {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: #25D366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.chat-fab__btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.35);
}

.chat-fab__label {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  color: var(--text-muted);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-8px);
  transition: all var(--transition);
  pointer-events: none;
}
#chat-fab:hover .chat-fab__label {
  opacity: 1;
  transform: translateX(0);
}


/* ================================================================
   21. FOOTER
   ================================================================ */

.footer {
  background: #161b22;
  border-top: 1px solid var(--border);
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
}
html.light .footer {
  background: #d8d0c6;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}
@media (min-width: 640px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer__brand-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
  margin: var(--space-4) 0 var(--space-6);
  max-width: 280px;
}

/* Sub-brand note in footer */
.footer__subbrand {
  font-size: var(--text-xs);
  color: var(--text-muted);
  opacity: 0.6;
  margin-top: var(--space-2);
}

.footer__col-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-5);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.footer__link:hover { color: var(--text-primary); }

.footer__contact-item {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.55;
}
.footer__contact-item i {
  color: var(--accent);
  font-size: 0.85rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  text-align: center;
}
@media (min-width: 640px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer__copyright {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.footer__legal {
  display: flex;
  gap: var(--space-6);
}

.footer__legal-link {
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer__legal-link:hover { color: var(--text-primary); }

/* Social icon buttons */
.social-icons {
  display: flex;
  gap: var(--space-3);
}

.social-icon {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: all var(--transition);
  text-decoration: none;
}
.social-icon:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  background: var(--accent-subtle);
}


/* ================================================================
   22. LIGHT MODE OVERRIDES
   ================================================================ */

html.light .service-card,
/* html.light .pricing-card, */
html.light .testimonial-card,
html.light .portfolio-card,
html.light .calculator {
  background: var(--bg-card);
}

html.light .form-field {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

html.light .file-upload__zone {
  background: rgba(122,110,97,0.05);
}

html.light select.form-field {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a6e61' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

html.light .tech-badge {
  background: var(--bg-tertiary);
}

html.light code {
  background: rgba(122,110,97,0.10);
}


/* ================================================================
   23. RESPONSIVE UTILITIES
   ================================================================ */

/* Mobile-first breakpoints */

/* sm: 640px */
@media (min-width: 640px) {
  .sm\:grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
  .sm\:hidden { display: none; }
  .sm\:block  { display: block; }
}

/* md: 768px */
@media (min-width: 768px) {
  .md\:grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
  .md\:grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
  .md\:hidden { display: none; }
  .md\:block  { display: block; }
}

/* lg: 1024px */
@media (min-width: 1024px) {
  .lg\:grid-2     { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
  .lg\:grid-3     { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
  .lg\:grid-4     { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-8); }
  .lg\:hidden     { display: none; }
  .lg\:block      { display: block; }
  .lg\:flex       { display: flex; }
}

/* Hide desktop nav on mobile */
.desktop-only { display: none; }
@media (min-width: 1024px) {
  .desktop-only { display: flex; }
  .mobile-only  { display: none; }
}

/* Touch-friendly tap targets on mobile */
@media (max-width: 767px) {
  .btn { padding: 14px var(--space-6); }
  .section { padding: var(--space-16) var(--space-5); }
  .container { padding: 0 var(--space-5); }
  .calculator__body { padding: var(--space-5); }
  .calculator__footer { flex-direction: column; align-items: stretch; }
  .price-estimate { text-align: left; }
}

/* Reduce motion accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fade-up,
  .fade-left,
  .fade-right,
  .fade-scale {
    opacity: 1;
    transform: none;
  }
}

/* Print styles */
@media print {
  #navbar, #back-to-top, #chat-fab { display: none; }
  body { background: white; color: black; }
  .section { padding: 24px 0; }
}

.process-timeline {
  display: flex;
  flex-direction: column;
  max-width: 780px;
  margin: 56px auto 0;
}

.process-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0 28px;
  position: relative;
}

/* Spine: dot + vertical line */
.process-step__spine {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.process-step__dot {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: all var(--transition);
}
.process-step:hover .process-step__dot {
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(148,137,121,0.12);
}
.process-step__dot--last {
  border-color: var(--accent);
}

.process-step__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  transition: color var(--transition);
}
.process-step:hover .process-step__num { color: white; }

.process-step__line {
  flex: 1;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), rgba(148,137,121,0.15));
  margin: 6px 0;
  min-height: 40px;
}

/* Card */
.process-step__card {
  display: flex;
  gap: 20px;
  padding-bottom: 48px;
  align-items: flex-start;
}
.process-step--last .process-step__card {
  padding-bottom: 0;
}

.process-step__icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--accent-subtle);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: all var(--transition);
  margin-top: 2px;
}
.process-step:hover .process-step__icon-wrap {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.process-step__body { flex: 1; }

.process-step__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  color: var(--text-heading);
  margin-bottom: 12px;
  line-height: 1.2;
}

.process-step__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.process-step__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.process-step__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.process-step__tag i { color: var(--accent); font-size: 0.6rem; }
.process-step:hover .process-step__tag {
  border-color: rgba(148,137,121,0.3);
}

/* Mobile: tighten spine */
@media (max-width: 480px) {
  .process-step { grid-template-columns: 40px 1fr; gap: 0 16px; }
  .process-step__dot { width: 40px; height: 40px; }
  .process-step__num { font-size: 0.65rem; }
  .process-step__icon-wrap { width: 38px; height: 38px; font-size: 0.9rem; }
  .process-step__card { gap: 12px; padding-bottom: 36px; }
}

  .tech-tab-btn {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 14px 24px;
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all var(--transition);
    white-space: nowrap;
  }
  .tech-tab-btn:hover { color: var(--accent); }
  .tech-tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
  }
  .tech-panel { display: none; }
  .tech-panel.active { display: block; animation: pageFadeIn 0.35s ease forwards; }

  .tech-spec-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
  }
  .tech-spec-label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 4px;
    font-weight: 700;
  }
  .tech-spec-value {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
  }

  @media (max-width: 768px) {
  /* Hide the blueprint panels on mobile */
  .bp {
    display: none;
  }

  /* Make service sections single-column */
  .svc-section .grid {
    grid-template-columns: 1fr !important;
  }

  /* Fix column order so text always comes first */
  .svc-section .fade-left,
  .svc-section .fade-right {
    order: unset !important;
  }

  /* When .bp is the first child (left column), the text div needs to come first */
  .svc-section .fade-left:has(.bp) {
    display: none;
  }

  /* Tighten up section padding */
  .svc-section {
    padding: 60px 16px;
  }

  /* Stat grid in the hero — 2 columns on mobile is fine */
  .svc-section .grid.sm\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
}