/* ============================================================
   THRIVENI ENTERPRISE — MASTER STYLESHEET
   Optimized, Dead-Code-Free, Mobile-First Production Build
   (Updated with responsive fixes for navbar, forms, etc.)
   ============================================================ */


/* ============================================================
   1. RESET & BASE
   ============================================================ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* Prevent horizontal scroll / zoom-out bug */
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--light-surface);
  overflow-x: hidden;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 { font-size: 48px; line-height: 1.05; }
h2 { font-size: 42px; line-height: 1.1; }
h3 { font-size: 24px; font-weight: 700; line-height: 1.3; }
h4 { font-size: 19px; font-weight: 700; line-height: 1.35; }
h5, h6 { font-size: 16px; font-weight: 700; line-height: 1.4; }

p {
  color: var(--text-secondary);
  line-height: 1.65;
}

.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;
}


/* ============================================================
   2. DESIGN TOKENS (CSS Custom Properties)
   ============================================================ */

:root {
  /* Brand Colors */
  --primary:        #1B4332;
  --secondary:      #2D6A4F;
  --accent:         #40916C;
  --mint:           #52B788;
  --mint-light:     #74C69D;
  --celadon:        #95D5B2;
  --celadon-light:  #B7E4C7;
  --frosted-mint:   #D8F3DC;

  /* Neutrals */
  --black:          #081C15;
  --white:          #FFFFFF;
  --dark-navy:      #081C15;
  --dark-surface:   #102A21;
  --light-surface:  #F8FCF9;
  --card-bg:        #FFFFFF;
  --border:         #DDEEE3;

  /* Text */
  --text-primary:   #173528;
  --text-secondary: #5D766A;

  /* Status */
  --success: #52B788;
  --error:   #E74C3C;

  /* Glass */
  --glass-bg:           rgba(255, 255, 255, 0.08);
  --glass-bg-light:     rgba(255, 255, 255, 0.78);
  --glass-border:       rgba(255, 255, 255, 0.20);
  --glass-border-dark:  rgba(27, 67, 50, 0.08);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0e0e0e 0%, #2bc17f 100%);
  --gradient-accent:  linear-gradient(135deg, #0f200f 0%, #74C69D 100%);
  --gradient-hero:    linear-gradient(135deg, #081C15 0%, #1B4332 45%, #2D6A4F 100%);
  --gradient-dark:    linear-gradient(160deg, #081C15 0%, #102A21 100%);
  --gradient-text:    linear-gradient(135deg, #1B4332 0%, #40916C 50%, #74C69D 100%);

  /* Typography */
  --font-display: 'Syne', 'Inter', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Spacing */
  --section-padding:        80px 0;
  --section-padding-mobile: 60px 0;
  --container-width:        1280px;

  /* Shadows */
  --shadow-sm:      0 2px 8px rgba(27, 67, 50, 0.08);
  --shadow-md:      0 8px 24px rgba(27, 67, 50, 0.12);
  --shadow-lg:      0 20px 48px rgba(27, 67, 50, 0.16);
  --shadow-glow:    3px 4px 20px rgb(0 255 136 / 26%);
  --shadow-glow-lg: 0 24px 60px rgba(82, 183, 136, 0.30);

  /* Radius */
  --radius-sm:   10px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-xl:   32px;
  --radius-full: 999px;

  /* Transitions */
  --transition:        all 0.35s ease;
  --transition-fast:   all 0.2s ease;
  --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}


/* ============================================================
   3. LAYOUT & GLOBAL UTILITIES
   ============================================================ */

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding);
  position: relative;
}

.bg-light {
  background-color: var(--light-surface);
}

.bg-dark-section {
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
}

.bg-dark-section h2,
.bg-dark-section h3 {
  color: var(--white);
}

.bg-dark-section p {
  color: rgba(255, 255, 255, 0.7);
}

.section-header {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-header h2 {
  margin: 12px 0 16px;
}

.section-header p {
  font-size: 18px;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--frosted-mint);
  border: 1px solid var(--celadon-light);
  padding: 6px 16px;
  border-radius: var(--radius-full);
}

.bg-dark-section .section-eyebrow {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.highlight {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: #FFFFFF;
  color: transparent;
}

/* Generic Icon Box */
.icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(27, 67, 50, 0.06);
  border: 1px solid var(--glass-border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  flex-shrink: 0;
}

.bg-dark-section .icon-box {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.icon-box::before {
  content: '';
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--gradient-primary);
  opacity: 0.85;
}

.bg-dark-section .icon-box::before {
  background: var(--gradient-accent);
  opacity: 1;
}

.icon-box-large {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
}

.icon-box-large::before {
  width: 28px;
  height: 28px;
}


/* ============================================================
   4. NAVBAR
   ============================================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  z-index: 1000;
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-bottom-left-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
  transition: var(--transition);
  overflow: visible;
}

.navbar.scrolled {
  height: 76px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.navbar.scrolled .logo-text {
  color: var(--text-primary);
}

.navbar.scrolled .nav-link {
  color: var(--text-primary);
}

.navbar.scrolled .hamburger span {
  background: #000000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  border-radius: 8px;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  color: #ffffff;
  transition: all 0.3s ease;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  position: relative;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--mint-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--mint-light);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--white);
  background: var(--gradient-primary);
  box-shadow: var(--shadow-glow);
  font-weight: 700;
}

.nav-link.active::after {
  display: none;
}

.nav-link.active:hover {
  color: var(--white);
}

.navbar.scrolled .nav-link.active {
  color: var(--white);
}

.nav-cta {
  padding: 12px 24px;
  font-size: 14px;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ============================================================
   5. BUTTON SYSTEM
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition: var(--transition);
  cursor: pointer;
  border: 1.5px solid #356947eb;
}

.btn:focus-visible {
  outline: 3px solid var(--mint-light);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-lg);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: #ffffff;
}

.btn-outline:hover {
  border-color: #26a26d;
  background: rgba(27, 67, 50, 0.06);
  color: #26a26d;
  transform: translateY(-3px);
}

.btn-outline-white {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--dark-navy);
  border-color: var(--white);
  transform: translateY(-3px);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
}

.btn-whatsapp:hover {
  background: #1FAE54;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.35);
}

.btn-block {
  width: 100%;
}


/* ============================================================
   6. REVEAL / SCROLL ANIMATION SYSTEM
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right {
    transition: none;
    opacity: 1;
    transform: none;
  }
}


/* ============================================================
   7. CARD SYSTEM
   (Service cards, stat cards, value/why-choose/industry cards,
    contact cards, feature cards, impact/confidence cards)
   ============================================================ */

/* ── Glass Card ── */
.card-glass {
  background: rgb(107 153 200 / 10%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.bg-dark-section .card-glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: none;
}

/* ── Service Grid ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ── Service / Enquiry Cards ── */
.card-service,
.service-card,
.service-enquiry-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s ease,
    border-color 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-service::before,
.service-card::before,
.service-enquiry-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.card-service:hover,
.service-card:hover,
.service-enquiry-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--celadon-light);
  border-color: transparent;
}

.card-service:hover::before,
.service-card:hover::before,
.service-enquiry-card:hover::before {
  transform: scaleX(1);
}

.card-service .icon-box,
.service-card .icon-box,
.service-enquiry-card .icon-box {
  transition: var(--transition-bounce);
}

.card-service:hover .icon-box,
.service-card:hover .icon-box,
.service-enquiry-card:hover .icon-box {
  transform: scale(1.12) rotate(-4deg);
}

.card-service h3,
.service-card h3,
.service-enquiry-card h3 {
  margin-bottom: 12px;
}

.card-service p,
.service-enquiry-card p {
  margin-bottom: 16px;
  flex-grow: 1;
}

/* ── Card Link ── */
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
  margin-top: auto;
  transition: var(--transition-fast);
}

.card-link svg {
  transition: transform 0.3s ease;
}

.card-service:hover .card-link svg,
.service-enquiry-card:hover .card-link svg {
  transform: translateX(6px);
}

/* ── Features List (inside cards) ── */
.features-list {
  margin: 12px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.features-list li {
  font-size: 14px;
  color: var(--text-secondary);
  padding-left: 22px;
  position: relative;
}

.features-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ── Stat Cards ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stats-grid.four-col {
  grid-template-columns: repeat(4, 1fr);
}

.card-stat {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card-stat:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.card-stat h3 {
  font-size: 40px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 6px;
}

.card-stat p {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Counter number */
.counter {
  font-family: var(--font-display);
  font-weight: 800;
}

/* ── Multi-col Grids (Values / Specialization / Why-Choose / Industries / Impact / Confidence / Contact Cards) ── */
.values-grid,
.specialization-grid,
.why-choose-grid,
.industries-grid,
.impact-grid,
.confidence-grid,
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ── Generic Card Styles ── */
.value-card,
.card-specialization,
.why-choose-card,
.industry-card,
.feature-card,
.contact-card,
.service-enquiry-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.value-card:hover,
.card-specialization:hover,
.why-choose-card:hover,
.industry-card:hover,
.contact-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--celadon-light);
  border-color: transparent;
}

/* Highlight variant for specialization */
.card-specialization-highlight {
  background: var(--gradient-primary);
  border-color: transparent;
}

.card-specialization-highlight h3,
.card-specialization-highlight p {
  color: var(--white);
}

.card-specialization-highlight p {
  color: rgba(255, 255, 255, 0.85);
}

.card-specialization-highlight .icon-box {
  background: rgba(255, 255, 255, 0.18);
}

.card-specialization-highlight .icon-box::before {
  background: var(--white);
}

.value-card h3,
.card-specialization h3,
.why-choose-card h3,
.industry-card h3 {
  margin-bottom: 10px;
}

/* ── Contact Cards (top-accent) ── */
.contact-card {
  text-align: center;
  border-top: 4px solid var(--primary);
  padding-top: 32px;
}

.contact-card .icon-box {
  margin: 0 auto 18px;
}

.contact-card h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.contact-card-value {
  display: block;
  font-weight: 700;
  color: var(--primary);
  font-size: 15px;
  margin-bottom: 6px;
  word-break: break-word;
}

.contact-card p {
  font-size: 13px;
}

/* ── Impact / Confidence Cards ── */
.impact-card,
.confidence-card {
  text-align: center;
  padding: 40px 28px;
}

.impact-card h3,
.confidence-card h3 {
  margin-bottom: 12px;
}

.bg-dark-section .impact-card h3 {
  color: var(--white);
}

.impact-card:hover,
.confidence-card:hover {
  transform: translateY(-8px);
}

/* ── Feature Cards (about page who-we-are) ── */
.who-we-are-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
}

.feature-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.feature-check {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.feature-card h4 { margin-bottom: 4px; }
.feature-card p  { font-size: 14px; }


/* ============================================================
   8. FORM SYSTEM
   ------------------------------------------------------------
   Sub-components: .form-wrapper, .contact-form, .form-row,
                    .form-group, input/select/textarea, .form-status
   Scope: Base (desktop) rules — now using fluid clamp() units so
   the SAME visual proportions (padding, field height, radius,
   glass styling) scale smoothly down to mobile without needing
   device-specific overrides. See Issue 1 fix.
   ============================================================ */

.form-wrapper {
  /* Fluid padding: scales smoothly between mobile and desktop
     instead of jumping between hard-coded breakpoint values. */
  padding: clamp(24px, 5vw, 48px);
}

.form-wrapper h2 {
  font-size: clamp(22px, 4vw, 28px);
  margin-bottom: 8px;
}

.form-wrapper > p {
  margin-bottom: 28px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  /* Fluid height/padding — identical look on every device,
     no separate "mobile-only" sizing rules needed. */
  height: clamp(50px, 4.5vw + 38px, 60px);
  padding: 0 clamp(16px, 3vw, 20px);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--text-primary);
  /* Locked at 16px so iOS Safari never auto-zooms the page on
     focus — auto-zoom on tap is a common cause of "broken"
     mobile form interactions (mis-taps on the submit button
     after the viewport jumps). This must stay >= 16px. */
  font-size: 16px;
  transition: var(--transition-fast);
}

.form-group textarea {
  height: auto;
  min-height: clamp(110px, 18vw, 140px);
  padding: clamp(14px, 3vw, 16px) clamp(16px, 3vw, 20px);
  border-radius: var(--radius-lg);
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(64, 145, 108, 0.15);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235D766A' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  padding-right: 48px;
}


.form-status {
  font-size: 14px;
  font-weight: 600;
  padding: 0;
  min-height: 0;
  border-radius: var(--radius-full);
  text-align: center;
  transition: var(--transition);
}

.form-status:not(:empty) {
  padding: 14px 20px;
  margin-top: 4px;
}

.form-status.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.form-status.error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

/* ── Footer Newsletter Input ── */
.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.footer-newsletter input {
  height: 50px;
  padding: 0 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.footer-newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter input:focus {
  outline: none;
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.25);
}


/* ============================================================
   9. HOME HERO SECTION
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 90px;
  background: var(--gradient-dark);
  overflow: hidden;
}

/* ── Mesh / Blobs ── */
.hero-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  will-change: transform;
}

.blob-1 {
  width: 480px; height: 480px;
  background: var(--secondary);
  top: -8%; left: -8%;
  animation: float1 18s ease-in-out infinite alternate;
}

.blob-2 {
  width: 560px; height: 560px;
  background: var(--accent);
  top: 15%; right: -14%;
  animation: float2 22s ease-in-out infinite alternate;
}

.blob-3 {
  width: 420px; height: 420px;
  background: var(--primary);
  bottom: -10%; left: 28%;
  animation: float3 20s ease-in-out infinite alternate;
}

@keyframes float1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(70px, 50px) scale(1.15); }
}

@keyframes float2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-50px, 40px) scale(0.92); }
}

@keyframes float3 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -40px) scale(1.1); }
}

.mesh-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.mesh-noise {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  .mesh-blob { animation: none; }
}

/* ── Hero Grid ── */
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
}

.hero-content-col {
  color: var(--white);
}

/* ── Trust Badge ── */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
}

.trust-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(64, 145, 108, 0.25);
}

/* ── Hero Typography ── */
.hero-title {
  font-size: 64px;
  color: var(--white);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 540px;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

/* ── Hero Trust Row ── */
.hero-trust-row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero-trust-item {
  display: flex;
  flex-direction: column;
}

.hero-trust-number {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
}

.hero-trust-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.hero-trust-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.18);
}

/* ── Hero Visual — Floating Widget Stack ── */
.hero-visual-col {
  position: relative;
}

.hero-widget-stack {
  position: relative;
  height: 560px;
}

.dashboard-card {
  position: absolute;
  width: 260px;
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.widget-analytics {
  top: -16%;
  left: 10%;
  animation: widgetFloat1 7s ease-in-out infinite;
}

.widget-solar {
  top: 15%;
  right: 0;
  animation: widgetFloat2 8s ease-in-out infinite;
}

.widget-construction {
  bottom: 50%;
  left: 0;
  animation: widgetFloat3 9s ease-in-out infinite;
}

.widget-autocad {
  bottom: 22%;
  right: 8%;
  width: 230px;
  animation: widgetFloat1 7.5s ease-in-out infinite;
}

@keyframes widgetFloat1 {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

@keyframes widgetFloat2 {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(10px); }
}

@keyframes widgetFloat3 {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-card { animation: none; }
}

/* ── Dashboard Card Inner Elements ── */
.dashboard-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--glass-border);
}

.dashboard-card-icon  { font-size: 18px; }

.dashboard-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
}

.dashboard-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dashboard-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.dashboard-stat-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.dashboard-mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 50px;
}

.chart-bar {
  flex: 1;
  background: var(--gradient-accent);
  border-radius: 4px 4px 0 0;
  min-height: 8px;
}

.dashboard-progress-track {
  width: 100%;
  height: 6px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.dashboard-progress-fill {
  height: 100%;
  background: var(--gradient-accent);
  border-radius: var(--radius-full);
}

.blueprint-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.blueprint-line {
  height: 2px;
  background: rgba(116, 198, 157, 0.45);
  border-radius: 2px;
}

.blueprint-line:nth-child(1) { width: 100%; }
.blueprint-line:nth-child(2) { width: 70%; }
.blueprint-line:nth-child(3) { width: 85%; }

/* ── Floating Widget Pills ── */
.floating-widget-pill {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: rgb(0 95 133 / 12%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.widget-pill-icon { font-size: 14px; }

.widget-pill-1 {
  top: 15%; left: -4%;
  animation: widgetFloat2 6s ease-in-out infinite;
}

.widget-pill-2 {
  bottom: 83%; right: -2%;
  animation: widgetFloat3 7s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .floating-widget-pill { animation: none; }
}


/* ============================================================
   10. PAGE HEROES (About / Services / Contact)
   ============================================================ */

.about-hero,
.services-hero,
.contact-hero {
  position: relative;
  padding: 160px 0 100px;
  background: var(--gradient-dark);
  overflow: hidden;
}

.about-hero::before,
.services-hero::before,
.contact-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(64, 145, 108, 0.35), transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(116, 198, 157, 0.25), transparent 45%);
}

.about-hero::after,
.services-hero::after,
.contact-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.about-hero-grid,
.services-hero-grid,
.contact-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.about-hero-content,
.services-hero-content,
.contact-hero-content {
  position: relative;
  z-index: 2;
}

.about-hero-badge,
.services-hero-badge,
.contact-hero-badge {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  margin-bottom: 24px;
}

.about-hero-title,
.services-hero-title,
.contact-hero-title {
  font-size: 52px;
  color: var(--white);
  margin-bottom: 22px;
}

.about-hero-subtitle,
.services-hero-subtitle,
.contact-hero-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
  margin-bottom: 32px;
}

.about-hero-cta,
.services-hero-cta,
.contact-hero-cta {
  display: flex;
  gap: 16px;
}

/* ── Shared visual frame (glass shell) ── */
.about-hero-visual,
.services-hero-visual,
.contact-hero-visual {
  width: 100%;
  height: 420px;
  border-radius: var(--radius-xl);
  background: rgb(255 255 255 / 0%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

.about-hero-visual::before,
.services-hero-visual::before,
.contact-hero-visual::before {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: var(--gradient-accent);
  filter: blur(60px);
  opacity: 0.5;
  top: 20%; left: 20%;
}

.about-hero-visual::after,
.services-hero-visual::after,
.contact-hero-visual::after {
  content: '';
  position: absolute;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: var(--primary);
  filter: blur(50px);
  opacity: 0.45;
  bottom: 15%; right: 15%;
}


/* ============================================================
   10A. CONTACT HERO VISUAL — 3D Card Deck
   ============================================================ */

.contact-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 560px;
  max-width: 550px;
  margin: 0 auto;
  perspective: 1200px;
}

.deck-glow-aura {
  position: absolute;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(37, 252, 102, 0.15) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.contact-card-deck {
  position: relative;
  width: 300px; height: 380px;
  transform-style: preserve-3d;
  transform: rotateX(24deg) rotateY(-18deg) rotateZ(4deg);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.contact-card-deck:hover {
  transform: rotateX(20deg) rotateY(-10deg) rotateZ(2deg);
}

.contact-deck-card {
  position: absolute;
  left: 0;
  width: 100%;
  height: 80px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transform-style: preserve-3d;
  transition:
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    top 0.5s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.5s cubic-bezier(0.25, 1, 0.5, 1),
    z-index 0.1s step-end;
}

.card-content {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  height: 100%;
  padding: 0 18px;
  background: rgba(12, 12, 12, 0.55);
  border-radius: 13px;
  transition: background 0.4s ease;
}

.card-icon-wrapper {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.card-icon { width: 18px; height: 18px; }

.card-text-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.card-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #ffffff;
}

.card-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
}

/* Stacked positions & floating animations */
.card-message  { top: 0px;   z-index: 4; animation: elasticFloatAlpha 6s ease-in-out infinite alternate; }
.card-whatsapp { top: 100px; z-index: 3; animation: elasticFloatBeta  6s ease-in-out infinite alternate; animation-delay: -1.5s; }
.card-phone    { top: 200px; z-index: 2; animation: elasticFloatGamma 6s ease-in-out infinite alternate; animation-delay: -3s; }
.card-email    { top: 300px; z-index: 1; animation: elasticFloatDelta 6s ease-in-out infinite alternate; animation-delay: -4.5s; }

@keyframes elasticFloatAlpha {
  0%   { transform: translate3d(0,    0, 40px); }
  100% { transform: translate3d(-8px, -4px, 50px); }
}
@keyframes elasticFloatBeta {
  0%   { transform: translate3d(6px,  0, 20px); }
  100% { transform: translate3d(-2px, 2px, 30px); }
}
@keyframes elasticFloatGamma {
  0%   { transform: translate3d(12px, 0, -10px); }
  100% { transform: translate3d(2px,  4px,  0px); }
}
@keyframes elasticFloatDelta {
  0%   { transform: translate3d(18px, 0, -40px); }
  100% { transform: translate3d(6px,  6px, -30px); }
}

/* Deck expanded hover positions */
.contact-card-deck:hover .card-message  { top: -20px; }
.contact-card-deck:hover .card-whatsapp { top: 90px;  }
.contact-card-deck:hover .card-phone    { top: 200px; }
.contact-card-deck:hover .card-email    { top: 310px; }

.contact-card-deck:hover .contact-deck-card {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.contact-card-deck .contact-deck-card:hover {
  z-index: 50 !important;
  border-color: rgba(37, 252, 102, 0.4);
  box-shadow: 0 15px 40px rgba(37, 252, 102, 0.15);
}

.contact-card-deck .contact-deck-card:hover .card-content {
  background: rgba(37, 252, 102, 0.03);
}

.contact-card-deck .contact-deck-card:hover .card-icon-wrapper {
  color: #25fc66;
  border-color: rgba(37, 252, 102, 0.4);
  background: rgba(37, 252, 102, 0.1);
  transform: scale(1.05) translateZ(30px);
}


/* ============================================================
   10B. SERVICES HERO VISUAL — Isometric Matrix Grid
   ============================================================ */

.services-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 420px;
  max-width: 550px;
  margin: 0 auto;
  perspective: 1500px;
  overflow: hidden;
}

.services-bg-glow {
  position: absolute;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(37, 252, 102, 0.08) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 340px; height: 340px;
  transform: rotateX(60deg) rotateZ(-45deg);
  transform-style: preserve-3d;
}

.matrix-bar {
  position: relative;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  transform-style: preserve-3d;
  height: 100%; width: 100%;
  animation: pulseMatrix 4s ease-in-out infinite;
}

.matrix-bar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  transform: translateZ(10px);
  transition: background 0.3s ease;
}

.active-node {
  background: linear-gradient(to top, rgba(11, 61, 26, 0.4), rgba(37, 252, 102, 0.2)) !important;
  border-color: rgba(37, 252, 102, 0.4) !important;
  box-shadow: 0 0 30px rgba(37, 252, 102, 0.2);
}

.active-node::before {
  background: rgba(37, 252, 102, 0.6) !important;
  box-shadow: 0 0 15px rgba(37, 252, 102, 0.8);
}

/* Staggered diagonal wave delays */
.bar-1               { animation-delay: 0.0s; }
.bar-2, .bar-4       { animation-delay: 0.3s; }
.bar-3, .bar-5, .bar-7 { animation-delay: 0.6s; }
.bar-6, .bar-8       { animation-delay: 0.9s; }
.bar-9               { animation-delay: 1.2s; }

@keyframes pulseMatrix {
  0%, 100% {
    transform: translateZ(0px);
    background: linear-gradient(to top, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.08));
    border-color: rgba(255, 255, 255, 0.1);
  }
  50% {
    transform: translateZ(45px);
    background: linear-gradient(to top, rgba(37, 252, 102, 0.1), rgba(255, 255, 255, 0.2));
    border-color: rgba(37, 252, 102, 0.3);
  }
}


/* ============================================================
   10C. ABOUT HERO VISUAL — Typographic Brand Orbit
   ============================================================ */

.about-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 420px;
  max-width: 550px;
  margin: 0 auto;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.visual-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.glow-orb {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(37, 252, 102, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(50px);
  animation: ambientBreathe 10s ease-in-out infinite alternate;
}

.center-brand {
  position: absolute;
  top: 50%; left: 50%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  width: max-content;
  transform: translate(-50%, -50%) translateZ(30px);
  animation: typographyFloatCenter 6s ease-in-out infinite;
}

.brand-text {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: 8px;
  color: #ffffff;
  line-height: 1.1;
  background: linear-gradient(180deg, #ffffff 40%, rgba(255, 255, 255, 0.5) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.brand-sub {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 5px;
  color: #25fc66;
  text-transform: uppercase;
  margin-top: 10px;
  opacity: 0.9;
}

/* Value Node Capsules */
.value-node {
  position: absolute;
  z-index: 5;
  padding: 12px 24px;
  border-radius: 100px;
  color: #ffffff;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transform-style: preserve-3d;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.value-node::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 100px;
  padding: 1px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.value-node:hover {
  cursor: pointer;
  background: rgba(37, 252, 102, 0.08);
  border-color: rgba(37, 252, 102, 0.3);
  box-shadow: 0 15px 30px rgba(37, 252, 102, 0.15);
  transform: scale(1.05) translateZ(50px) !important;
}

/* Node positions */
.since      { top: 15%; left: 15%;  animation: orbitAlpha   8s ease-in-out infinite; }
.innovation { top: 20%; right: 10%; animation: orbitBeta    9s ease-in-out infinite; }
.trust      { top: 55%; left: 5%;   animation: orbitGamma  10s ease-in-out infinite; }
.quality    { bottom: 12%; left: 40%;   animation: orbitDelta   7.5s ease-in-out infinite; }
.integrity  { bottom: 25%; right: 8%; animation: orbitEpsilon 8.5s ease-in-out infinite; }

/* About visual keyframes */
@keyframes typographyFloatCenter {
  0%, 100% { transform: translate(-50%, -50%) translateZ(30px) translateY(0); }
  50%       { transform: translate(-50%, -50%) translateZ(45px) translateY(-8px); }
}

@keyframes ambientBreathe {
  0%   { transform: translate(-50%, -50%) scale(0.9); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

@keyframes orbitAlpha {
  0%, 100% { transform: translate(0, 0) translateZ(10px); }
  50%       { transform: translate(15px, -10px) translateZ(25px); }
}

@keyframes orbitBeta {
  0%, 100% { transform: translate(0, 0) translateZ(25px); }
  50%       { transform: translate(-12px, 15px) translateZ(10px); }
}

@keyframes orbitGamma {
  0%, 100% { transform: translate(0, 0) translateZ(15px); }
  50%       { transform: translate(10px, -15px) translateZ(30px); }
}

@keyframes orbitDelta {
  0%, 100% { transform: translate(0, 0) translateZ(20px); }
  50%       { transform: translate(-15px, -8px) translateZ(15px); }
}

@keyframes orbitEpsilon {
  0%, 100% { transform: translate(0, 0) translateZ(12px); }
  50%       { transform: translate(8px, 12px) translateZ(28px); }
}


/* ============================================================
   11. COMPANY OVERVIEW (Home)
   ============================================================ */

.overview-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.overview-image-frame {
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

.overview-image-frame img {
  border-radius: var(--radius-md);
  max-width: 100%;
  height: auto;
}

.overview-feature-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0 32px;
}

.overview-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-secondary);
}

.overview-content-col p {
  margin-bottom: 16px;
}

.overview-image-col,
.lead-form-col {
  width: 100%;
}

.contact-form-wrapper {
  width: 100%;
}


/* ============================================================
   12. WHO WE ARE (About)
   ============================================================ */

.who-we-are-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.who-we-are-content p {
  margin-bottom: 16px;
}


/* ============================================================
   13. STORY TIMELINE (About)
   ============================================================ */

.story-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.story-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
  transform: translateX(-50%);
}

.story-timeline-item {
  position: relative;
  width: 50%;
  padding: 0 48px;
}

.story-timeline-item:nth-child(odd) {
  margin-right: auto;
  text-align: right;
  padding-right: 48px;
}

.story-timeline-item:nth-child(even) {
  margin-left: auto;
  text-align: left;
}

.story-timeline-marker {
  position: absolute;
  top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--gradient-primary);
  box-shadow: 0 0 0 5px rgba(64, 145, 108, 0.15);
}

.story-timeline-item:nth-child(odd)  .story-timeline-marker { right: -8px; }
.story-timeline-item:nth-child(even) .story-timeline-marker { left: -8px; }

.story-timeline-content {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.story-timeline-content h3 {
  margin-bottom: 8px;
}


/* ============================================================
   14. PROCESS TIMELINE / STEPS
   ============================================================ */

.process-timeline,
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process-step,
.process-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.process-step:hover,
.process-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.process-step-number {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 16px;
}

.process-step h3,
.process-card h3 { margin-bottom: 8px; }

.process-step p,
.process-card p  { font-size: 14px; }


/* ============================================================
   15. SOLAR BENEFITS
   ============================================================ */

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.benefit-item {
  text-align: center;
  padding: 32px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.benefit-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.benefit-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.benefit-item h4  { margin-bottom: 8px; }
.benefit-item p   { font-size: 14px; }

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0 32px;
}

.benefits-list li {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  padding-left: 30px;
  position: relative;
}

.benefits-list li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--white);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ============================================================
   16. SOLAR SAVINGS CALCULATOR
   ============================================================ */

.calculator-card {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px;
}

.calculator-input-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.slider-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
}

.slider-label span {
  color: var(--accent);
}

.range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: var(--radius-full);
  background: linear-gradient(
    to right,
    var(--accent) 0%,
    var(--accent) var(--fill, 50%),
    rgba(255, 255, 255, 0.15) var(--fill, 50%),
    rgba(255, 255, 255, 0.15) 100%
  );
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--primary);
  box-shadow: 0 4px 12px rgba(27, 67, 50, 0.4);
  cursor: grab;
  transition: var(--transition-fast);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.range-slider:active::-webkit-slider-thumb {
  cursor: grabbing;
  transform: scale(1.25);
}

.range-slider::-moz-range-thumb {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--primary);
  cursor: grab;
}

.range-slider::-moz-range-track {
  height: 6px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
}

.results-box,
.calculator-results-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.result-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.result-card.highlight {
  background: var(--gradient-primary);
  border-color: transparent;
}

.result-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

.result-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  font-family: var(--font-display);
}


/* ============================================================
   17. TEAM SECTION (About)
   ============================================================ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.team-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.team-avatar-placeholder {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--gradient-primary);
  margin: 0 auto 20px;
  position: relative;
}

.team-avatar-placeholder::before {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.team-card h3 { font-size: 17px; margin-bottom: 8px; }
.team-card p  { font-size: 14px; }


/* ============================================================
   18. TESTIMONIALS
   ============================================================ */

.testimonial-slider {
  position: relative;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  gap: 28px;
  transition: transform 0.5s ease;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  flex: 0 0 calc(33.333% - 19px);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.testimonials-grid .testimonial-card {
  flex: none;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px; right: 28px;
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 800;
  color: rgba(27, 67, 50, 0.08);
  line-height: 1;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.testimonial-rating {
  color: #FBBF24;
  font-size: 14px;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.testimonial-content p,
.testimonial-card > p {
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.testimonial-author h5 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.testimonial-author span,
.testimonial-role,
.testimonial-company {
  font-size: 13px;
  color: var(--text-secondary);
  display: block;
}

.testimonial-card h4 { font-size: 16px; margin-bottom: 2px; }

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.testimonial-dots span,
.testimonial-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: var(--transition-fast);
}

.testimonial-dots span.active,
.testimonial-dots button.active {
  background: var(--primary);
  width: 28px;
  border-radius: var(--radius-full);
}


/* ============================================================
   19. LEAD FORM SECTION (Home) & CONTACT MAIN (Contact)
   ============================================================ */

.lead-form-grid,
.contact-main-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.lead-form-info-col,
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lead-form-info-col h2,
.contact-info h2 {
  margin-bottom: 4px;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
}

.info-card-icon { font-size: 24px; flex-shrink: 0; }
.info-card h4   { margin-bottom: 4px; }
.info-card p    { font-size: 14px; }

.trust-indicator-row {
  display: flex;
  gap: 32px;
  margin-top: 12px;
}

.trust-indicator-item {
  display: flex;
  flex-direction: column;
}

.trust-indicator-number {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.trust-indicator-label {
  font-size: 13px;
  color: var(--text-secondary);
}


/* ============================================================
   20. SERVICES PAGE — Service Detail & Enquiry
   ============================================================ */

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.service-detail-grid-reverse .service-detail-content {
  order: 2;
}

.service-detail-grid-reverse .service-detail-visual-col {
  order: 1;
}

.service-detail-content p {
  margin-bottom: 8px;
}

.service-detail-visual {
  width: 100%;
  height: 360px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(27, 67, 50, 0.06), rgba(116, 198, 157, 0.12));
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.service-detail-visual::before {
  content: '';
  position: absolute;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: var(--gradient-primary);
  filter: blur(50px);
  opacity: 0.25;
  top: 15%; left: 15%;
}

.service-detail-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(27, 67, 50, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 67, 50, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}

.service-detail-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 100%;
}

.service-detail-visual-col {
  max-width: 100%;
}

/* Feature rows (why-choose on About) */
.feature-rows {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-row {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  transition: var(--transition);
}

.feature-row:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
}

.feature-row h3 { font-size: 17px; margin-bottom: 6px; }
.feature-row p  { font-size: 14px; }

/* Contact Strip (Services page) */
.contact-strip {
  background: var(--dark-navy);
  padding: 36px 0;
}

.contact-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.contact-strip-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-strip-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
}

.contact-strip-item a,
.contact-strip-item span:not(.contact-strip-label) {
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
}

/* Lead Section (Services page) */
.lead-section-content {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.lead-section-content p {
  margin: 16px 0 32px;
}

.lead-section-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Service Enquiry Grid */
.service-enquiry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}


/* ============================================================
   21. FAQ ACCORDION
   ============================================================ */

.faq-accordion {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--celadon-light);
}

.faq-item.active {
  border-color: var(--mint);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: left;
}

.faq-question:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: -2px;
}

.faq-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(27, 67, 50, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  transition: var(--transition-bounce);
}

.faq-item.active .faq-icon {
  background: var(--gradient-primary);
  color: var(--white);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 28px;
}

.faq-item.active .faq-answer {
  max-height: 600px;
  padding: 0 28px 24px;
}

.faq-answer p { font-size: 15px; line-height: 1.7; }


/* ============================================================
   22. CTA BANNER
   ============================================================ */

.cta-banner {
  position: relative;
  padding: 100px 0;
  background: var(--gradient-primary);
  overflow: hidden;
  text-align: center;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.12), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1), transparent 45%);
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--white);
  font-size: 38px;
  margin-bottom: 16px;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-buttons .btn-primary {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.cta-buttons .btn-primary:hover {
  background: var(--white);
  transform: translateY(-3px);
}


/* ============================================================
   23. FOOTER
   ============================================================ */

.footer {
  background: var(--dark-navy);
  padding: 80px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr 1.1fr;
  gap: 40px;
  padding-bottom: 60px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo img { border-radius: 8px; }

.footer-logo span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--white);
}

.footer-col p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 15px;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul li a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--gradient-primary);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}


/* ============================================================
   24. WHATSAPP FLOAT & BACK-TO-TOP
   ============================================================ */

.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 60px; height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition-bounce);
  animation: whatsappPulse 2.5s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.55);
}

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 0  rgba(37, 211, 102, 0.5); }
  50%       { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 12px rgba(37, 211, 102, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { animation: none; }
}

.back-to-top {
  position: fixed;
  bottom: 28px; left: 28px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--glass-bg-light);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gradient-primary);
  color: var(--white);
  border-color: #356947eb;
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}


/* ============================================================
   25. SECTION WRAPPER ALIASES
   (Semantic section classes sharing .section behavior)
   ============================================================ */

.company-overview,
.services-preview,
.why-us,
.solar-benefits,
.calculator,
.testimonials,
.lead-form-section,
.specialization,
.process,
.stats-section,
.who-we-are,
.story-section,
.values-section,
.why-choose-section,
.industries-section,
.process-section,
.team-section,
.impact-section,
.faq-section,
.service-overview,
.service-detail-section,
.testimonials-section,
.lead-section,
.confidence-section,
.consultation-process,
.location-section,
.contact-cards,
.contact-main,
.service-enquiry-section {
  position: relative;
}

.location-section {
  padding: var(--section-padding);
}

/* ── Map ── */
.map-container {
  width: 100%;
  height: 450px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-top: -24px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
}


/* ============================================================
   26. RESPONSIVE — 1400px
   ============================================================ */

@media (max-width: 1400px) {
  .container {
    max-width: 1140px;
  }
}


/* ============================================================
   27. RESPONSIVE — 1200px
   ============================================================ */

@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }

  .hero-title {
    font-size: 52px;
  }

  .about-hero-title,
  .services-hero-title,
  .contact-hero-title {
    font-size: 44px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid.four-col,
  .values-grid,
  .specialization-grid,
  .why-choose-grid,
  .industries-grid,
  .impact-grid,
  .confidence-grid,
  .contact-cards-grid,
  .team-grid,
  .benefits-grid,
  .testimonials-grid,
  .process-timeline,
  .process-grid,
  .feature-rows,
  .contact-strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-enquiry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ============================================================
   28. RESPONSIVE — 992px (Tablet breakpoint, Mobile nav)
   ============================================================ */

@media (max-width: 992px) {
  h2 {
    font-size: 34px;
  }

  /* ── Mobile Nav ── */
  .navbar .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
    order: 1; /* Mobile hamburger on the left */
  }

  .logo {
    order: 2; /* Mobile logo on the right */
  }

  .nav-menu {
    order: 3;
    position: fixed;
    top: 80px; left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 40px 24px;
    gap: 28px;
    transform: translateX(-100%);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-menu .nav-link {
    color: var(--text-primary);
  }

  .nav-menu .nav-link.active {
    color: var(--white);
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
  }

  .nav-menu .nav-cta {
    display: inline-flex;
  }

  /* ── Grid collapse to single column ── */
  .hero-grid,
  .about-hero-grid,
  .services-hero-grid,
  .contact-hero-grid,
  .overview-grid,
  .who-we-are-grid,
  .lead-form-grid,
  .contact-main-grid,
  .service-detail-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* ── Service detail reverse order reset ── */
  .service-detail-grid-reverse .service-detail-content,
  .service-detail-grid-reverse .service-detail-visual-col {
    order: 0;
  }

  /* ── CRITICAL: Content FIRST, aside animation BELOW ── */
  .hero-visual-col,
  .about-hero-visual-col,
  .services-hero-visual-col,
  .contact-hero-visual-col {
    order: 2;
  }

  .hero-content-col {
    order: 1;
  }

  .hero-widget-stack {
    height: 420px;
  }

  /* ── Calculator ── */
  .calculator-input-area,
  .results-box,
  .calculator-results-area {
    grid-template-columns: 1fr;
  }

  /* ── Footer ── */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ── Story Timeline ── */
  .story-timeline::before {
    left: 16px;
  }

  .story-timeline-item {
    width: 100%;
    padding-left: 48px;
    padding-right: 0;
    text-align: left !important;
  }

  .story-timeline-item:nth-child(odd),
  .story-timeline-item:nth-child(even) {
    margin: 0;
  }

  .story-timeline-item:nth-child(odd)  .story-timeline-marker,
  .story-timeline-item:nth-child(even) .story-timeline-marker {
    left: 8px;
    right: auto;
  }

  /* BUG FIX 2: Services mobile stacking order — force text first, image second */
  .service-detail-content {
    order: 1 !important;
  }
  .service-detail-visual-col {
    order: 2 !important;
  }
  /* Override any reverse class that would swap */
  .service-detail-grid-reverse .service-detail-content {
    order: 1 !important;
  }
  .service-detail-grid-reverse .service-detail-visual-col {
    order: 2 !important;
  }
}


/* ============================================================
   29. RESPONSIVE — 768px (Mobile)
   ============================================================ */

@media (max-width: 768px) {
  .section {
    padding: var(--section-padding-mobile);
  }

  .location-section {
    padding: var(--section-padding-mobile);
  }

  h1, .hero-title {
    font-size: 36px;
  }

  .about-hero-title,
  .services-hero-title,
  .contact-hero-title {
    font-size: 32px;
  }

  h2 {
    font-size: 28px;
  }

  .section-header {
    margin-bottom: 44px;
  }

  /* ── CTA Buttons Full-Width ── */
  .hero-cta,
  .about-hero-cta,
  .services-hero-cta,
  .contact-hero-cta,
  .cta-buttons,
  .lead-section-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn,
  .about-hero-cta .btn,
  .services-hero-cta .btn,
  .contact-hero-cta .btn,
  .cta-buttons .btn,
  .lead-section-buttons .btn {
    width: 100%;
  }

  .hero-trust-row {
    flex-wrap: wrap;
    gap: 16px;
  }

  /* ── All multi-col grids → single column ── */
  .services-grid,
  .stats-grid.four-col,
  .values-grid,
  .specialization-grid,
  .why-choose-grid,
  .industries-grid,
  .impact-grid,
  .confidence-grid,
  .contact-cards-grid,
  .team-grid,
  .benefits-grid,
  .testimonials-grid,
  .process-timeline,
  .process-grid,
  .feature-rows,
  .contact-strip-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-wrapper {
    padding: 32px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .testimonial-card {
    flex: 0 0 100%;
  }

  .whatsapp-float {
    bottom: 20px; right: 16px;
    width: 52px; height: 52px;
  }

  .back-to-top {
    bottom: 20px; left: 16px;
    width: 46px; height: 46px;
  }

  /* ── Service enquiry ── */
  .service-enquiry-grid {
    grid-template-columns: 1fr;
  }

  /* ── Contact strip ── */
  .contact-strip-grid {
    text-align: left;
  }

  /* BUG FIX 1: Home hero left-edge indentation */
  .hero-content-col {
    padding-left: 20px;
  }
}


/* ============================================================
   30. RESPONSIVE — 600px / 576px
       Mobile-specific layout fixes & visual downscaling
   ============================================================ */

@media (max-width: 600px) {

  /* ─────────────────────────────────────────────
     A. GENERAL CONTAINER & SPACING
  ───────────────────────────────────────────── */
  .container {
    padding: 0 20px; /* Edge-touching indentation (20px gutter) */
  }

  .faq-question {
    padding: 18px 20px;
    font-size: 15px;
  }

  .faq-item.active .faq-answer,
  .faq-answer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .faq-item.active .faq-answer {
    padding-bottom: 20px;
  }

  .calculator-card {
    padding: 28px 20px;
  }

  .nav-cta,
  .footer-newsletter button {
    width: 100%;
    text-align: center;
  }

  /* ─────────────────────────────────────────────
     B. HOME HERO — Widget Stack (4 Floating Cards)
     Scale down and re-stack for mobile.
  ───────────────────────────────────────────── */
  .hero-widget-stack {
    height: 360px;
    position: relative;
    overflow: hidden;
  }

  .dashboard-card {
    width: 200px;
    padding: 14px;
    border-radius: var(--radius-md);
    max-width: 100%;
  }

  .widget-analytics {
    top: 0;
    left: 0;
    animation: widgetFloat1 7s ease-in-out infinite;
  }

  .widget-solar {
    top: 0%;
    right: 0;
    animation: widgetFloat2 8s ease-in-out infinite;
  }

  .widget-construction {
    top: 50%;
    left: 0;
    bottom: auto;
    animation: widgetFloat3 9s ease-in-out infinite;
  }

  .widget-autocad {
    bottom: 0;
    right: 0;
    width: 180px;
    top: auto;
    animation: widgetFloat1 7.5s ease-in-out infinite;
  }

  @keyframes widgetFloat1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%       { transform: translateY(-7px) rotate(0.5deg); }
  }
  @keyframes widgetFloat2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%       { transform: translateY(6px) rotate(-0.5deg); }
  }
  @keyframes widgetFloat3 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%       { transform: translateY(-5px) rotate(0.3deg); }
  }

  .floating-widget-pill {
    display: none;
  }

  /* ─────────────────────────────────────────────
     C. HOME OVERVIEW — Favicon Image Re-ordering
     Image column after content column.
  ───────────────────────────────────────────── */
  .overview-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .overview-content-col {
    order: 1;
  }

  .overview-image-col {
    order: 2;
  }

  .overview-image-frame {
    padding: 16px;
    max-width: 260px;
    margin: 0 auto;
  }

  .overview-image-frame img {
    width: 180px;
    height: 180px;
    max-width: 180px;
    object-fit: contain;
    margin: 0 auto;
  }

  /* ─────────────────────────────────────────────
     D. ABOUT HERO VISUAL — Downscale
  ───────────────────────────────────────────── */
  .about-hero-visual {
    height: 300px;
    max-width: 100%;
    border-radius: var(--radius-lg);
  }

  .brand-text {
    font-size: 28px;
    letter-spacing: 4px;
  }

  .brand-sub {
    font-size: 8px;
    margin-top: 6px;
    letter-spacing: 3px;
  }

  .value-node {
    font-size: 11px;
    padding: 8px 14px;
  }

  .since      { top: 8%;  left: 6%; }
  .innovation { top: 18%; right: 3%; }
  .trust      { top: 55%; left: 2%; }
  .quality    { bottom: 8%; left: 30%; }
  .integrity  { bottom: 20%; right: 2%; }

  /* ─────────────────────────────────────────────
     E. SERVICES HERO VISUAL — Isometric Matrix
     Compress canvas height, reduce grid & depth
  ───────────────────────────────────────────── */
  .services-hero-visual {
    height: 280px;
    max-width: 100%;
    border-radius: var(--radius-lg);
  }

  .matrix-grid {
    width: 200px;
    height: 200px;
    gap: 10px;
  }

  @keyframes pulseMatrix {
    0%, 100% {
      transform: translateZ(0px);
      background: linear-gradient(to top, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.08));
      border-color: rgba(255, 255, 255, 0.1);
    }
    50% {
      transform: translateZ(22px);
      background: linear-gradient(to top, rgba(37, 252, 102, 0.1), rgba(255, 255, 255, 0.2));
      border-color: rgba(37, 252, 102, 0.3);
    }
  }

  /* ─────────────────────────────────────────────
     F. CONTACT HERO VISUAL — 3D Card Deck
     Compact, centralized, clean frame footprint
  ───────────────────────────────────────────── */
  .contact-hero-visual {
    height: 360px;
    max-width: 100%;
    border-radius: var(--radius-lg);
  }

  .contact-card-deck {
    width: 240px;
    height: 295px;
    transform: rotateX(15deg) rotateY(-12deg) rotateZ(2deg);
  }

  .contact-card-deck:hover {
    transform: rotateX(12deg) rotateY(-8deg) rotateZ(1deg);
  }

  .contact-deck-card {
    height: 62px;
  }

  .card-message  { top: 0px; }
  .card-whatsapp { top: 76px; }
  .card-phone    { top: 152px; }
  .card-email    { top: 228px; }

  .contact-card-deck:hover .card-message  { top: -10px; }
  .contact-card-deck:hover .card-whatsapp { top: 72px; }
  .contact-card-deck:hover .card-phone    { top: 154px; }
  .contact-card-deck:hover .card-email    { top: 236px; }

  .card-content      { padding: 0 12px; gap: 10px; }
  .card-icon-wrapper { width: 32px; height: 32px; }
  .card-icon         { width: 15px; height: 15px; }
  .card-title        { font-size: 10px; letter-spacing: 1px; }
  .card-desc         { display: none; }

  /* ─────────────────────────────────────────────
     G. PAGE HERO TOP PADDING COMPRESSION
  ───────────────────────────────────────────── */
  .about-hero,
  .services-hero,
  .contact-hero {
    padding: 110px 0 60px;
  }

  .hero {
    padding-top: 80px;
  }

  .hero-grid {
    padding: 40px 0 32px;
    gap: 32px;
  }

  /* BUG FIX 3: Services image aspect-ratio distortion */
  .service-detail-visual {
    height: auto;
  }

  .service-detail-visual img {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: cover;
  }
}


/* ============================================================
   31. ACCESSIBILITY — Reduced Motion (global guard)
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .mesh-blob,
  .dashboard-card,
  .floating-widget-pill,
  .whatsapp-float {
    animation: none !important;
  }

  .reveal,
  .reveal-left,
  .reveal-right {
    transition: none;
    opacity: 1;
    transform: none;
  }
}


/* =====================================================
   32. FLOATING CONTACT POPUP (COMPACT & OPTIMIZED)
===================================================== */

.floating-contact-btn {
    position: fixed;
    right: 31px;
    bottom: 100px; /* Positioned above WhatsApp */
    width: 56px;  /* Slightly reduced size */
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-primary, linear-gradient(135deg, #1f5d8f, #2a82cc));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: var(--shadow-glow-lg, 0 8px 24px rgba(42, 130, 204, 0.3));
    border: none;
    outline: none;
    transition: transform 0.3s ease;
    animation: contactPulse 2s infinite ease-in-out;
}

.floating-contact-btn:hover {
    animation-play-state: paused;
    transform: scale(1.08);
}

@keyframes contactPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(42, 130, 204, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 12px rgba(42, 130, 204, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(42, 130, 204, 0); }
}

/* Scroll-Safe Overlay Container */
.contact-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    overflow-y: auto; /* Ensures scroll accessibility if device screen is very short */
    transition: opacity 0.3s ease;
}

.contact-popup-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Reduced Zoom Card */
.contact-popup-card {
    width: 100%;
    max-width: 440px; /* Reduced from 500px for a cleaner look */
    max-height: calc(100vh - 40px); /* Strictly guarantees it fits within viewport margins */
    background: #ffffff;
    border-radius: 20px;
    padding: 30px; /* Compact internal spaces */
    position: relative;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.contact-popup-overlay.active .contact-popup-card {
    transform: translateY(0);
}

/* Nested Form Scroller (Prevents form fields overflowing on short monitors) */
.contact-popup-card form {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Tighter field margins */
    overflow-y: auto;
    padding-right: 4px; /* Space for scrollbar padding if needed */
}

.contact-popup-card h3 {
    font-size: 20px; /* Standardized scale down */
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.contact-popup-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 16px;
}

/* Compact Inputs */
.contact-popup-card input,
.contact-popup-card select,
.contact-popup-card textarea {
    width: 100%;
    padding: 12px 14px; /* Reduced height tracking padding */
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    color: #1e293b;
    background-color: #f8fafc;
    transition: all 0.2s ease;
}

.contact-popup-card input:focus,
.contact-popup-card select:focus,
.contact-popup-card textarea:focus {
    background-color: #fff;
    border-color: var(--accent, #2a82cc);
    box-shadow: 0 0 0 3px rgba(42, 130, 204, 0.12);
}

.contact-popup-card textarea {
    resize: none;
    min-height: 75px; /* Shorter message height default */
}

/* Styled Close Button positioning */
.popup-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s, color 0.2s;
}

.popup-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.popup-status {
    margin-top: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    color: #16a34a;
}

/* =====================================================
    RESPONSIVE BREAKPOINTS (ALL DEVICES SAFE)
===================================================== */
@media (max-width: 768px) {
    .contact-popup-overlay {
        padding: 12px;
        align-items: center; /* Keeps centered vertically on mobile devices cleanly */
    }

    .contact-popup-card {
        padding: 24px 20px 20px;
        max-height: calc(100vh - 24px);
        border-radius: 16px;
    }

    .floating-contact-btn {
        width: 50px;
        height: 50px;
        right: 16px;
        bottom: 80px;
        font-size: 22px;
    }
}


/* ============================================================
   RESPONSIVE FIXES — NAVBAR, FORMS, TESTIMONIALS, REVEAL
   (Added to resolve the 5 specified issues)
   ============================================================ */

/* ============================================================
   MODULE: NAVBAR — Mobile Header Space Optimization
   Sub-components: .nav-container, .hamburger, .logo, .logo img,
                   .logo-text, .nav-menu
   Breakpoint: max-width: 412px (extreme narrow mobile)
   ------------------------------------------------------------
   FIX (Issue 2): Previously the nav-container was allowed to
   flex-wrap, which forced the logo block onto a second line
   below the hamburger whenever horizontal space ran out. This
   produced an ugly two-row header on small phones.

   New behavior: the row NEVER wraps. The logo IMAGE is hidden
   entirely to reclaim horizontal space, the business-name text
   is kept, and the row lays out as a single, vertically centered
   horizontal line:
        [Hamburger Icon] → [small gap] → [Business Name]
   ============================================================ */
@media (max-width: 412px) {

  /* ── Row container: force single line, align left, small gap ── */
  .nav-container {
    flex-wrap: nowrap;            /* never drop to a second row */
    align-items: center;          /* vertical centering of icon + text */
    justify-content: flex-start;  /* hamburger anchors left */
    gap: 12px;                    /* small gap between hamburger and name */
    overflow: visible;
  }

  /* ── Hamburger: stays first, fixed width, no shrink ── */
  .hamburger {
    order: 1;
    flex-shrink: 0;
    margin-right: 0; /* spacing now handled by .nav-container gap */
  }

  /* ── Logo block: business name only, sits right next to hamburger ── */
  .logo {
    order: 2;
    flex: 0 1 auto;          /* shrink/grow naturally, no forced full-width */
    justify-content: flex-start;
    gap: 0;                  /* no gap needed once the image is removed */
    min-width: 0;            /* allow text-overflow ellipsis to work */
    margin-top: 0;           /* no second-line offset anymore */
  }

  /* ── Logo image: hidden on extreme-narrow screens to save space ── */
  .logo img {
    display: none;
  }

  /* ── Business name: fluid sizing, single line, no overlap/wrap ── */
  .logo-text {
    font-size: clamp(14px, 4.2vw, 18px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80vw; /* keeps long business names from colliding with menu area */
  }

  /* ── Nav menu (full-screen slide-in) is positioned fixed already;
       order kept for source-clarity only, layout unaffected ── */
  .nav-menu {
    order: 3;
  }

  /* ── Scrolled state: same single-row, non-wrapping rule applies ── */
  .navbar.scrolled .nav-container {
    flex-wrap: nowrap;
    align-items: center;
  }
}


/* ─────────────────────────────────────────────
   ISSUE 2: Home Page Lead Form Section Breakage
   ISSUE 3: Contact Page Main Grid & Form Grid
   (Combined fix for .lead-form-col and .contact-form-wrapper)
   ───────────────────────────────────────────── */
@media (max-width: 480px) {
  /* Home lead form */
  .lead-form-col {
    width: 100%;
    padding: 0;
  }

  .lead-form-col .form-wrapper {
    padding: 24px 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm); /* Ensure shadows don't clip */
    overflow: hidden; /* contain shadows */
    background: var(--white);
  }

  /* Contact main form */
  .contact-form-wrapper {
    width: 100%;
    padding: 0;
  }

  .contact-form-wrapper .form-wrapper {
    padding: 24px 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    background: var(--white);
  }

  /* Both forms: make inputs and selects fill width, and reduce font size for better fit */
  .lead-form-col .form-group input,
  .lead-form-col .form-group select,
  .lead-form-col .form-group textarea,
  .contact-form-wrapper .form-group input,
  .contact-form-wrapper .form-group select,
  .contact-form-wrapper .form-group textarea {
    font-size: 15px; /* slightly smaller to prevent zoom on iOS */
    padding: 12px 16px;
    height: 50px; /* reduce height for compactness */
  }

  .lead-form-col .form-group textarea,
  .contact-form-wrapper .form-group textarea {
    height: auto;
    min-height: 100px;
  }

  /* Ensure .lead-form-section and .contact-main section have no overflow */
  .lead-form-section,
  .contact-main {
    overflow: hidden;
  }

  /* Trust indicator row stack on very small */
  .trust-indicator-row {
    flex-wrap: wrap;
    gap: 16px;
  }

  /* Adjust grid gap for contact main */
  .contact-main-grid {
    gap: 32px;
  }
}

/* Additional safety for extremely narrow (320px) */
@media (max-width: 380px) {
  .lead-form-col .form-wrapper,
  .contact-form-wrapper .form-wrapper {
    padding: 20px 12px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 14px;
    padding: 10px 12px;
    height: 44px;
  }

  .form-group textarea {
    min-height: 80px;
  }
}


/* ─────────────────────────────────────────────
   ISSUE 4: Sliding Reviews Section Responsive Optimization
   (Prevent unwanted horizontal scrollbars)
   ───────────────────────────────────────────── */
/* Ensure testimonial slider container does not cause overflow */
.testimonial-slider {
  overflow: hidden;
  width: 100%;
  position: relative;
}

/* The track itself should not exceed container width */
.testimonial-track {
  display: flex;
  gap: 28px;
  transition: transform 0.5s ease;
  width: 100%;
}

/* On mobile, each card takes full width and gap is reduced */
@media (max-width: 768px) {
  .testimonial-track {
    gap: 16px;
  }
  .testimonial-card {
    flex: 0 0 calc(100% - 16px);
    margin: 0 8px;
  }
}

/* Ensure body and html have overflow-x hidden (already set, but reinforce) */
html, body {
  overflow-x: hidden;
}

/* For any .container that might have overflow, keep it hidden */
.container {
  overflow-x: visible; /* default, but if needed we can hide */
}

/* ─────────────────────────────────────────────
   ISSUE 5: Universal Scroll Animation Sync
   (Prevent horizontal layout break on mobile)
   ───────────────────────────────────────────── */
/* Ensure revealed elements don't cause horizontal overflow */
.reveal,
.reveal-left,
.reveal-right {
  max-width: 100%;
  will-change: transform, opacity;
}

/* On mobile, reduce translation distance for left/right to avoid edge clipping */
@media (max-width: 768px) {
  .reveal-left {
    transform: translateX(-20px);
  }
  .reveal-left.revealed {
    transform: translateX(0);
  }
  .reveal-right {
    transform: translateX(20px);
  }
  .reveal-right.revealed {
    transform: translateX(0);
  }
  /* Keep translateY as is */
}

/* Also ensure that any parent container does not clip or hide overflow unnecessarily */
.section {
  overflow: visible; /* but we may set overflow-x hidden on individual sections if needed */
}
/* For sections that might cause overflow, allow content to be visible */
.hero, .about-hero, .services-hero, .contact-hero {
  overflow: hidden; /* Already set for decorative blobs */
}

/* End of responsive fixes */