/*!
Theme Name: Matangi Corporation
Theme URI: http://matangi-corporation.local/
Author: Matangi Corporation
Author URI: http://matangi-corporation.local/
Description: Professional electrical contracting for builders and developers across Ahmedabad.
Version: 2.0.0
Tested up to: 6.9
Requires PHP: 8.2
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: matangi_corporation
Tags: custom-logo, custom-menu, featured-images, translation-ready
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --void:         #060810;
  --forge:        #0F1623;
  --steel:        #1C2333;
  --charge:       #C8102E;
  --ember:        #E8102A;
  --pure:         #FFFFFF;
  --plate:        #F8F7F5;
  --chalk:        #F0EFED;
  --ink:          #111827;
  --muted:        #6B7280;
  --steel-muted:  #9CA3AF;
  --rule-dark:    rgba(255,255,255,0.07);
  --rule-light:   rgba(0,0,0,0.08);
  --font-display: 'Montserrat', sans-serif;
  --font-body:    'Inter', sans-serif;
  --container:    1320px;
  --transition:   0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --radius:       3px;
  --header-h:     90px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--pure);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover { color: var(--ember); }

ul, ol { list-style: none; padding: 0; margin: 0; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 1rem;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; padding: 0; }
input, textarea, select { outline: none; }
table { border-collapse: collapse; width: 100%; }
hr { border: none; border-top: 1px solid var(--rule-light); margin: 2rem 0; }

/* ============================================================
   TYPOGRAPHY SCALE
   ============================================================ */
.display-xl {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.5rem, 8vw, 8rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.display-lg {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 5rem);
  letter-spacing: -0.02em;
  line-height: 1.0;
}

.display-md {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charge);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section         { padding: 6rem 0; }
.section--tight  { padding: 4rem 0; }
.section--dark   { background: var(--forge); }
.section--void   { background: var(--void); }
.section--plate  { background: var(--plate); }

/* ============================================================
   SKIP LINK & ACCESSIBILITY
   ============================================================ */
.skip-link {
  position: absolute;
  top: -999px;
  left: 0.5rem;
  z-index: 99999;
  background: var(--charge);
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: var(--radius);
}
.skip-link:focus { top: 0.5rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ============================================================
   SITE HEADER — single fixed header, no topbar
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(6, 8, 16, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  gap: 2rem;
}

/* ---- Logo ---- */
.site-logo { flex-shrink: 0; }
.site-logo a { display: flex; align-items: center; }

.site-logo__img {
  height: 78px;   /* bigger logo — fills 90px header */
  width: auto;
  display: block;
}
.custom-logo {
  height: 78px !important;
  width: auto !important;
}

/* nav-get-quote: hidden on desktop, shown inside hamburger on mobile */
.nav-get-quote {
  display: none;
}
.nav-get-quote__phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-bottom: 1px solid var(--rule-dark);
  margin-bottom: 0.5rem;
}
.nav-get-quote__phone svg { color: var(--charge); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.primary-nav__item { position: relative; }

.primary-nav__link {
  display: block;
  padding: 0.625rem 1rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color var(--transition);
}

.primary-nav__link:hover,
.primary-nav__item.current-menu-item .primary-nav__link {
  color: white;
}

.primary-nav__item.current-menu-item .primary-nav__link::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: var(--charge);
  margin-top: 0.25rem;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.header-phone {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: color var(--transition);
}
.header-phone:hover { color: white; }
.header-phone svg { color: var(--charge); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}
.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  transition: all var(--transition);
}
.nav-toggle.is-active .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-active .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: var(--charge);
  color: white;
  border-color: var(--charge);
}
.btn--primary:hover {
  background: var(--ember);
  border-color: var(--ember);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(200, 16, 46, 0.35);
}

.btn--ghost {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn--ghost:hover {
  border-color: white;
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.btn--dark {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.btn--dark:hover {
  background: #0d1117;
  color: white;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* ============================================================
   HERO SECTION — full-bleed redesign
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--void);
  overflow: hidden;
  padding-top: 90px;  /* fixed header height */
  padding-bottom: 150px; /* clear the absolute stats bar with breathing room */
}

/* Full-bleed background image */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

/* Gradient overlay: strong on left for text, fades on right */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right, rgba(6,8,16,0.95) 0%, rgba(6,8,16,0.80) 40%, rgba(6,8,16,0.45) 70%, rgba(6,8,16,0.25) 100%),
    linear-gradient(to bottom, rgba(6,8,16,0.3) 0%, transparent 20%, transparent 70%, rgba(6,8,16,0.6) 100%);
}

/* Thin vertical red accent line */
.hero__accent {
  position: absolute;
  top: 15%;
  bottom: 15%;
  left: 0;
  width: 4px;
  background: linear-gradient(to bottom, transparent 0%, var(--charge) 20%, var(--charge) 80%, transparent 100%);
  z-index: 5;
}

/* Content wrapper */
.hero__container {
  position: relative;
  z-index: 5;
  width: 100%;
}

.hero__content {
  max-width: 660px;
  padding: 2rem 0;
}

/* Eyebrow tag */
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.75rem;
}
.hero__eyebrow-dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--charge);
  flex-shrink: 0;
  animation: pulse-dot 2.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

/* Main headline */
.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 1.5rem;
}

/* Subheadline */
.hero__sub {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2.5rem;
  max-width: 520px;
}

/* CTA row */
.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

/* Stats bar anchored to bottom of hero */
.hero__bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(6,8,16,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 2px solid var(--charge);
}

.hero__bar-item {
  padding: 1.25rem 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: center;
  text-align: center;
}
.hero__bar-item:last-child { border-right: none; }

.hero__bar-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.75rem;
  color: #fff;
  line-height: 1;
}

.hero__bar-label {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ============================================================
   SERVICES SECTION (editorial dark rows)
   ============================================================ */
.services-block { background: var(--forge); }

.services-block .container { padding-top: 5rem; padding-bottom: 5rem; }

@media (max-width: 767px) {
  .services-block .container { padding-top: 3rem; padding-bottom: 3rem; }
}

.services-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.service-row {
  display: grid;
  grid-template-columns: 5rem 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule-dark);
  text-decoration: none;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-row:first-of-type { border-top: 1px solid var(--rule-dark); }

.service-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--charge);
  transition: width var(--transition);
}
.service-row:hover::before { width: 3px; }
.service-row:hover { padding-left: 1.25rem; }

.service-row__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.5rem;
  line-height: 1;
  color: rgba(200, 16, 46, 0.25);
  transition: color var(--transition);
  flex-shrink: 0;
}
.service-row:hover .service-row__num { color: var(--charge); }

.service-row__body { min-width: 0; }

.service-row__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1rem, 1.75vw, 1.375rem);
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  transition: color var(--transition);
  margin: 0;
}
.service-row:hover .service-row__title { color: var(--pure); }

.service-row__desc {
  font-size: 0.9rem;
  color: var(--steel-muted);
  margin-top: 0.375rem;
  max-width: 560px;
  line-height: 1.5;
}

.service-row__arrow {
  width: 48px;
  height: 48px;
  border: 1px solid var(--rule-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  transition: all var(--transition);
}
.service-row:hover .service-row__arrow {
  border-color: var(--charge);
  background: var(--charge);
  color: white;
}

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-block {
  background: var(--charge);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.stats-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0) 0px,
    rgba(255,255,255,0) 119px,
    rgba(255,255,255,0.03) 120px
  );
  pointer-events: none;
}

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

.stat-item {
  text-align: center;
  padding: 1rem 2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}
.stat-item:last-child { border-right: none; }

.stat-item__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.5rem, 7vw, 7rem);
  color: white;
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat-item__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.5rem;
}

/* ============================================================
   WHY CHOOSE US — split layout
   ============================================================ */
.why-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

.why-image {
  position: relative;
  overflow: hidden;
}
.why-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}
.why-image:hover img { transform: scale(1.03); }

.why-content {
  background: var(--plate);
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.why-list {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.why-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule-light);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.why-item:first-child { border-top: 1px solid var(--rule-light); }

.why-item__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.75rem;
  color: var(--charge);
  min-width: 1.5rem;
  padding-top: 0.25rem;
  flex-shrink: 0;
}

.why-item__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9375rem;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.375rem;
}

.why-item__desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================================
   PROJECT GRID (magazine-style, asymmetric)
   ============================================================ */
.projects-section { background: var(--void); }
.projects-section .container { padding-top: 6rem; padding-bottom: 6rem; }

.projects-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.projects-block {
  background: var(--void);
  padding: 5rem 0;
}
@media (max-width: 767px) {
  .projects-block { padding: 3rem 0; }
}

.projects-grid--feature {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-auto-rows: auto;
  gap: 0.75rem;
}

.project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--steel);
  display: block;
  text-decoration: none;
  border-radius: var(--radius);
}

/* subtle red edge slides in on hover */
.project-card::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--charge);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
}
.project-card:hover::after { transform: scaleX(1); }

.project-card--hero {
  grid-column: 1 / 3;
  grid-row: 1 / 2;
  aspect-ratio: 16/9;
}

.project-card--sm { aspect-ratio: 4/3; }

/* Desktop: the small card sharing row 1 with the hero card must stretch
   to the full row height — its own aspect ratio would leave a gap below it */
@media (min-width: 992px) {
  .projects-grid--feature .project-card--sm:nth-child(2) {
    aspect-ratio: auto;
    height: 100%;
  }
}

.project-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}
.project-card:hover .project-card__img { transform: scale(1.06); }

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 8, 16, 0.95) 0%, rgba(6, 8, 16, 0.35) 45%, transparent 70%);
  transition: opacity var(--transition);
}

.project-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 2;
}

.project-card--hero .project-card__info { padding: 2rem; }

.project-card__type {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  background: var(--charge);
  padding: 0.3rem 0.65rem;
  margin-bottom: 0.75rem;
  border-radius: 2px;
}

.project-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.0625rem;
  line-height: 1.3;
  color: white;
  letter-spacing: -0.01em;
  margin: 0;
}

.project-card--hero .project-card__title { font-size: 1.5rem; }

.project-card__meta {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  align-items: center;
  flex-wrap: wrap;
}

/* ============================================================
   INDUSTRIES STRIP
   ============================================================ */
.industries-scroll {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 480px;
}

.industry-panel {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.industry-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.industry-panel:hover img { transform: scale(1.08); }

.industry-panel__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 8, 16, 0.85) 30%, rgba(6, 8, 16, 0.3) 100%);
  transition: background var(--transition);
}
.industry-panel:hover .industry-panel__bg {
  background: linear-gradient(to top, rgba(200, 16, 46, 0.8) 0%, rgba(6, 8, 16, 0.4) 100%);
}

.industry-panel__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
}

.industry-panel__label {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.125rem;
  text-transform: uppercase;
  color: white;
  letter-spacing: 0.02em;
  margin: 0;
}

.industry-panel__sub {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.375rem;
  line-height: 1.4;
}

/* ============================================================
   TESTIMONIALS (editorial)
   ============================================================ */
.testi-block {
  background: var(--void);
  padding: 7rem 0;
}

.testi-featured {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2.5rem;
  max-width: 900px;
  margin: 3rem auto 5rem;
}

.testi-quote-mark {
  font-family: Georgia, serif;
  font-size: 8rem;
  color: var(--charge);
  line-height: 0.8;
  opacity: 0.6;
  user-select: none;
}

.testi-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.testi-author {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testi-author__line {
  width: 2rem;
  height: 2px;
  background: var(--charge);
  flex-shrink: 0;
}

.testi-author__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pure);
}

.testi-author__co {
  font-size: 0.8125rem;
  color: var(--steel-muted);
}

.testi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule-dark);
}

.testi-row-item {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--rule-dark);
}
.testi-row-item:last-child { border-right: none; }

.testi-row-text {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.25rem;
}

.testi-row-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.7);
}

.testi-row-co {
  font-size: 0.75rem;
  color: var(--steel-muted);
  margin-top: 0.25rem;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-block {
  background: var(--void);
  padding: 7rem 0;
  text-align: center;
  position: relative;
  border-top: 1px solid var(--rule-dark);
}

.cta-block__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 4rem);
  color: white;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin: 1rem 0 1.5rem;
  line-height: 1.0;
}

.cta-block__desc {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 500px;
  margin: 0 auto 2.5rem;
}

.cta-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #25D366;
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all var(--transition);
}
.cta-whatsapp:hover {
  background: #1ebe5a;
  color: white;
  transform: translateY(-2px);
}

/* ============================================================
   PAGE BANNER (inner pages)
   ============================================================ */
.page-banner {
  background: var(--void);
  padding: calc(90px + 3.5rem) 0 4rem; /* clear fixed header */
  position: relative;
  overflow: hidden;
}
.page-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--charge);
}

.page-banner__eyebrow {
  display: block;
  margin-bottom: 0.75rem;
}

.page-banner__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: white;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  line-height: 1.0;
  margin: 0.75rem 0 1rem;
}

.page-banner__desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 540px;
  margin: 0;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 1rem;
}
.breadcrumbs a {
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transition: color var(--transition);
}
.breadcrumbs a:hover { color: rgba(255, 255, 255, 0.7); }
.breadcrumbs__sep { opacity: 0.3; }
.breadcrumbs [aria-current] { color: var(--charge); }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header { margin-bottom: 3.5rem; }
.section-header--center { text-align: center; }
.section-header--center .section-header__desc { margin-left: auto; margin-right: auto; }

.section-header .eyebrow {
  margin-bottom: 0.75rem;
  display: block;
}

.section-header__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  letter-spacing: -0.025em;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0;
}
.section-header__title--light { color: white; }
.section-header__title--dark  { color: var(--ink); }

/* Single-line heading: fluid size scales with viewport so it never wraps.
   On phones it wraps normally instead of shrinking to unreadable size. */
.section-header__title--oneline {
  white-space: nowrap;
  font-size: clamp(1.1rem, 2vw, 2rem);
}
@media (max-width: 767px) {
  .section-header__title--oneline {
    white-space: normal;
    font-size: 1.75rem;
  }
}

.section-header__desc {
  font-size: 1rem;
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 580px;
  margin-bottom: 0;
}
.section-header__desc--light { color: rgba(255, 255, 255, 0.5); }
.section-header__desc--dark  { color: var(--muted); }

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  background: #030508;
  padding: 5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--rule-dark);
}

.footer-brand__logo { margin-bottom: 1.5rem; }
.footer-brand__logo img { height: 48px; width: auto; }

.footer-brand__desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.7;
  max-width: 300px;
}

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

.footer-social__a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  transition: all var(--transition);
  border-radius: 2px;
  text-decoration: none;
}
.footer-social__a:hover {
  border-color: var(--charge);
  background: var(--charge);
  color: white;
}

.footer-col__head {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 1.5rem;
  display: block;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.footer-links a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: white; }

.footer-contact-item {
  display: flex;
  gap: 0.875rem;
  margin-bottom: 1.125rem;
}
.footer-contact-icon {
  color: var(--charge);
  flex-shrink: 0;
  margin-top: 2px;
}
.footer-contact-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
}
.footer-contact-text a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-contact-text a:hover { color: white; }

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom__copy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.2);
}

.footer-bottom__links {
  display: flex;
  gap: 1.5rem;
}
.footer-bottom__links a {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.2);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-bottom__links a:hover { color: rgba(255, 255, 255, 0.6); }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 5rem;
  align-items: start;
}

.contact-form-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.625rem;
}

.form-control {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1.5px solid var(--rule-light);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--pure);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
.form-control:focus {
  border-color: var(--charge);
  outline: none;
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.08);
}
.form-control::placeholder { color: #C0BDB8; }
textarea.form-control { resize: vertical; min-height: 140px; }

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

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

.contact-info-card {
  background: var(--void);
  padding: 2.5rem;
  border-radius: var(--radius);
}

.contact-info-card__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  text-transform: uppercase;
  color: white;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.contact-info-card__sub {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 2rem;
}

.cinfo-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule-dark);
}
.cinfo-item:last-of-type { border-bottom: none; }

.cinfo-icon {
  color: var(--charge);
  flex-shrink: 0;
  margin-top: 1px;
}

.cinfo-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 0.25rem;
}

.cinfo-value {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.75);
}
.cinfo-value a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color var(--transition);
}
.cinfo-value a:hover { color: white; }

.whatsapp-btn-full {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  background: #25D366;
  color: white;
  width: 100%;
  padding: 1rem;
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.whatsapp-btn-full:hover {
  background: #1ebe5a;
  color: white;
}

.map-wrapper {
  overflow: hidden;
  border-radius: var(--radius);
  margin-top: 3rem;
}
.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: none;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-intro-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-intro-image {
  position: relative;
  overflow: hidden;
}
.about-intro-image img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--steel);
}
.mv-card {
  background: var(--forge);
  padding: 3rem;
  border-left: 3px solid var(--charge);
}
.mv-card__icon { color: var(--charge); margin-bottom: 1rem; }
.mv-card__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  color: white;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.mv-card__text { font-size: 0.9375rem; color: var(--steel-muted); line-height: 1.7; }

.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--charge), rgba(200,16,46,0.1));
}
.timeline-item {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 2.5rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.375rem;
  top: 0.4rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--charge);
  border: 3px solid var(--void);
  box-shadow: 0 0 0 2px var(--charge);
}
.timeline-item__year {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--charge);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}
.timeline-item__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}
.timeline-item__desc { font-size: 0.9rem; color: var(--steel-muted); }

/* ============================================================
   SERVICE SINGLE
   ============================================================ */
.service-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: start;
}
.service-sidebar { position: sticky; top: 110px; }
.service-sidebar-box { background: var(--forge); padding: 2rem; }
.service-sidebar-box__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charge);
  margin-bottom: 1.25rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--rule-dark);
}
.service-sidebar-list { list-style: none; padding: 0; margin: 0; }
.service-sidebar-list li a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid var(--rule-dark);
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color var(--transition);
  text-decoration: none;
}
.service-sidebar-list li:last-child a { border-bottom: none; }
.service-sidebar-list li a:hover,
.service-sidebar-list .current-service a { color: var(--charge); }

/* ============================================================
   PROJECT ARCHIVE
   ============================================================ */
.project-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 3rem;
}
.project-filter__btn {
  padding: 0.5rem 1.25rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--transition);
  border-radius: var(--radius);
}
.project-filter__btn:hover,
.project-filter__btn.is-active {
  border-color: var(--charge);
  background: var(--charge);
  color: white;
}

.projects-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--steel);
}
.projects-archive-grid .project-card--sm { aspect-ratio: 4/3; }
.projects-archive-grid .project-card { aspect-ratio: 4/3; }

/* ============================================================
   PROJECT META (single)
   ============================================================ */
.project-meta-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--rule-dark);
  padding: 2rem;
  position: sticky;
  top: 110px;
}
.project-meta-card__head {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charge);
  margin-bottom: 1.25rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--rule-dark);
}
.project-meta-item {
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--rule-dark);
}
.project-meta-item:last-child { border-bottom: none; }
.project-meta-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 0.25rem;
}
.project-meta-value {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
}

.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--steel);
  margin-top: 3rem;
}
.project-gallery-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
}
.project-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.project-gallery-item:hover img { transform: scale(1.05); }

/* ============================================================
   ENTRY CONTENT
   ============================================================ */
.entry-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
}
.entry-content h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 2rem 0 1rem;
}
.entry-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--ink);
  margin: 1.5rem 0 0.75rem;
}
.entry-content p { margin: 0 0 1rem; }
.entry-content ul { padding-left: 1.5rem; margin-bottom: 1rem; list-style: disc; }
.entry-content ul li { margin-bottom: 0.5rem; color: var(--muted); }
.entry-content strong { color: var(--ink); font-weight: 600; }
.entry-content a { color: var(--charge); }

/* dark bg entry content */
.entry-content--light .entry-content h2,
.entry-content--light .entry-content h3 { color: white; }
.entry-content--light .entry-content,
.entry-content--light .entry-content p,
.entry-content--light .entry-content li { color: var(--steel-muted); }

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }
[data-reveal-delay="5"] { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 46px;
  height: 46px;
  background: var(--charge);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(1rem);
  transition: all var(--transition);
  border-radius: var(--radius);
}
.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.scroll-top:hover {
  background: var(--ember);
  transform: translateY(-2px);
}

/* ============================================================
   FORM NOTICE
   ============================================================ */
.form-notice {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  display: none;
}
.form-notice.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}
.form-notice.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}
.form-notice.is-visible { display: block; }

/* ============================================================
   PAGINATION
   ============================================================ */
.archive-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 4rem;
}
.archive-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--rule-dark);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  transition: all var(--transition);
  text-decoration: none;
}
.archive-pagination .page-numbers:hover,
.archive-pagination .page-numbers.current {
  border-color: var(--charge);
  background: var(--charge);
  color: white;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404 {
  text-align: center;
  padding: 10rem 1.25rem;
}
.error-404__code {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(6rem, 20vw, 16rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(200, 16, 46, 0.2);
  letter-spacing: -0.05em;
  margin-bottom: 0;
}
.error-404__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2rem;
  text-transform: uppercase;
  color: white;
  margin-bottom: 1rem;
}
.error-404__desc {
  color: var(--steel-muted);
  margin: 1rem auto 2.5rem;
  max-width: 400px;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center   { text-align: center; }
.text-white    { color: white !important; }
.text-muted-dark { color: var(--steel-muted) !important; }
.text-charge   { color: var(--charge) !important; }
.mt-auto       { margin-top: auto; }
.flex-center   { display: flex; align-items: center; justify-content: center; }
.flex-between  { display: flex; align-items: center; justify-content: space-between; }
.gap-1         { gap: 0.5rem; }
.gap-2         { gap: 1rem; }
.gap-3         { gap: 1.5rem; }
.hidden        { display: none !important; }

/* ============================================================
   RESPONSIVE — 1199px (XL)
   ============================================================ */
@media (max-width: 1199px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .stats-grid  { grid-template-columns: repeat(2, 1fr); }
  .projects-grid--feature { grid-template-columns: 1fr 1fr; }
  .project-card--hero { grid-column: 1 / 3; }
  .industries-scroll { grid-template-columns: repeat(2, 1fr); height: auto; }
  .industry-panel { height: 320px; }
  .about-intro-layout { gap: 3rem; }
  .why-content { padding: 4rem 3rem; }
}

/* ============================================================
   RESPONSIVE — 991px (LG / tablet)
   ============================================================ */
@media (max-width: 991px) {
  .nav-toggle { display: flex; }

  .primary-nav {
    display: none;
    position: fixed;
    top: 90px; /* fixed header height */
    left: 0;
    right: 0;
    background: rgba(6, 8, 16, 0.98);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-top: 1px solid var(--rule-dark);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 999;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav__link   { padding: 1rem 1.25rem; font-size: 0.8125rem; }

  /* Show Get Quote inside hamburger menu, hide desktop button */
  .nav-get-quote        { display: block; padding: 1rem 1.25rem 0.5rem; }
  .header-cta__quote    { display: none; }
  .header-cta           { gap: 0; }
  .header-phone         { display: none; }

  .hero__content { max-width: 100%; }
  /* Stats bar stays 4-across at tablet — single row fits the reserved clearance */
  .hero__bar-item { padding: 1.25rem 1rem; }

  .why-layout { grid-template-columns: 1fr; }
  .why-image  { height: 400px; }
  .why-content { padding: 3rem 2rem; }

  .contact-layout { grid-template-columns: 1fr; }
  .service-layout { grid-template-columns: 1fr; }
  .service-sidebar { position: static; }

  .industries-scroll { grid-template-columns: 1fr 1fr; height: auto; }
  .industry-panel { height: 300px; }

  .testi-featured { grid-template-columns: 60px 1fr; gap: 1.5rem; }
  .testi-row { grid-template-columns: 1fr; }
  .testi-row-item { border-right: none; border-bottom: 1px solid var(--rule-dark); }
  .testi-row-item:last-child { border-bottom: none; }

  .about-intro-layout { grid-template-columns: 1fr; }
  .mv-grid { grid-template-columns: 1fr; }

  .projects-archive-grid { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

/* ============================================================
   RESPONSIVE — 767px (MD / mobile)
   ============================================================ */
@media (max-width: 767px) {
  :root { --container: 100%; }
  .section { padding: 4rem 0; }
  .section--tight { padding: 2.5rem 0; }

  /* Hero on mobile: natural height, stats bar flows below content */
  .hero {
    min-height: auto;
    padding-top: 110px;
    padding-bottom: 0;
  }
  .hero__content { padding: 1.5rem 0 0.5rem; }
  .hero__accent { display: none; }
  .hero__eyebrow { font-size: 0.6rem; margin-bottom: 1.25rem; }
  .hero__title { font-size: 2rem; margin-bottom: 1.25rem; }
  .hero__sub { font-size: 0.9375rem; margin-bottom: 2rem; }
  .hero__actions { margin-bottom: 1.5rem; }
  .hero__bar {
    position: static;
    margin-top: 3rem;
    grid-template-columns: repeat(2, 1fr);
  }
  .hero__bar-item { padding: 1.25rem 1rem; }
  .hero__bar-item:nth-child(2),
  .hero__bar-item:nth-child(4) { border-right: none; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item  { padding: 1.5rem 1rem; }

  .service-row { grid-template-columns: 3rem 1fr; gap: 1rem; }
  .service-row__arrow { display: none; }

  .projects-grid--feature { grid-template-columns: 1fr; }
  .project-card--hero { grid-column: 1; aspect-ratio: 4/3; }

  .projects-archive-grid { grid-template-columns: 1fr; }

  .industries-scroll { grid-template-columns: 1fr; height: auto; }
  .industry-panel { height: 250px; }

  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

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

  .cta-block { padding: 4rem 0; }
  .testi-block { padding: 4rem 0; }
  .testi-featured { grid-template-columns: 1fr; }
  .testi-quote-mark { display: none; }

  .why-image { height: 300px; }
  .why-content { padding: 2.5rem 1.5rem; }

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

/* ============================================================
   RESPONSIVE — 479px (SM / small mobile)
   ============================================================ */
@media (max-width: 479px) {
  .btn-group { flex-direction: column; align-items: flex-start; }
  .hero__title { font-size: 1.75rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .hero__bar { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item__num { font-size: 2.5rem; }
  .project-gallery-grid { grid-template-columns: 1fr; }
  .testi-row { grid-template-columns: 1fr; }
  .industries-scroll { grid-template-columns: 1fr; }
}

/* ============================================================
   SERVICE LIST — archive-service.php
   ============================================================ */
.service-list {
  display: flex;
  flex-direction: column;
}
.service-list-row {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  gap: 1.5rem 2rem;
  align-items: center;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule-light);
  transition: background var(--transition);
}
.service-list-row:first-child { border-top: 1px solid var(--rule-light); }
.service-list-row:hover { background: rgba(200,16,46,.04); }
.service-list-row__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.125rem;
  color: var(--charge);
  opacity: 0.5;
}
.service-list-row__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0;
}
.service-list-row__title a {
  color: var(--ink);
  text-decoration: none;
  transition: color var(--transition);
}
.service-list-row__title a:hover { color: var(--charge); }
.service-list-row__desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.375rem 0 0;
}
.service-list-row__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--rule-light);
  color: var(--muted);
  text-decoration: none;
  flex-shrink: 0;
  transition: all var(--transition);
}
.service-list-row__link:hover {
  background: var(--charge);
  border-color: var(--charge);
  color: white;
}

/* ============================================================
   FILTER CHIPS — archive-project.php
   ============================================================ */
.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1rem;
  border: 1px solid var(--rule-light);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-decoration: none;
  transition: all var(--transition);
  border-radius: 1px;
}
.filter-chip:hover,
.filter-chip.is-active {
  background: var(--charge);
  border-color: var(--charge);
  color: white;
}

/* ============================================================
   PROJECTS GRID — archive-project.php
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Archive card (template-parts/project/card.php):
   image on top, text body below — body needs its own padding */
.projects-grid .project-card__image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.projects-grid .project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.projects-grid .project-card:hover .project-card__image img { transform: scale(1.06); }

.projects-grid .project-card__image .project-card__overlay {
  background: linear-gradient(to top, rgba(6, 8, 16, 0.55) 0%, transparent 50%);
}

.projects-grid .project-card__image .project-card__type {
  position: absolute;
  top: 1rem;
  left: 1rem;
  margin: 0;
  z-index: 2;
}

.projects-grid .project-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.projects-grid .project-card__title a {
  color: inherit;
  text-decoration: none;
}
.projects-grid .project-card__title a:hover { color: var(--charge); }

.projects-grid .project-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.projects-grid .project-card__meta-item svg { color: var(--charge); flex-shrink: 0; }

/* ============================================================
   PROSE — long-form content
   ============================================================ */
.prose {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
}
.prose h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.375rem;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 2rem 0 1rem;
}
.prose h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--ink);
  margin: 1.5rem 0 0.75rem;
}
.prose p { margin: 0 0 1rem; }
.prose ul { padding-left: 1.5rem; margin-bottom: 1rem; list-style: disc; }
.prose li { margin-bottom: 0.5rem; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--charge); }

/* ============================================================
   CONTACT FORM TITLE
   ============================================================ */
.contact-form-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

/* ============================================================
   RESPONSIVE ADDITIONS
   ============================================================ */
@media (max-width: 991px) {
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .service-list-row { grid-template-columns: 2.5rem 1fr auto; gap: 1rem 1.25rem; }
}
@media (max-width: 767px) {
  .projects-grid { grid-template-columns: 1fr; }
  .service-list-row { grid-template-columns: 2.5rem 1fr; }
  .service-list-row__link { display: none; }
}

/* ============================================================
   RESPONSIVE GRID UTILITY CLASSES
   (used by inner page templates instead of bare inline styles)
   ============================================================ */

/* 2-equal-column grid — collapses to 1 col at 767px */
.grid-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* About page: split intro grid */
.about-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* Service single: 1.2/1 grid */
.service-single-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: start;
}

/* Project single: content + narrow sidebar */
.project-single-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .project-single-layout {
    grid-template-columns: 1fr 280px;
    gap: 2.5rem;
  }
  .about-split-grid { gap: 3rem; }
  .service-single-layout { gap: 3rem; }
}

@media (max-width: 767px) {
  .grid-two-col,
  .about-split-grid,
  .service-single-layout,
  .project-single-layout {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .project-single-layout aside {
    position: static !important;
  }
  .service-single-layout > div:last-child {
    position: static !important;
  }
}

/* ============================================================
   PROJECT FLEXIBLE CONTENT BLOCKS
   ============================================================ */

.project-block__label {
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

/* Photo gallery grid */
.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.project-gallery-grid__item {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
}

.project-gallery-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.project-gallery-grid__item:hover img {
  transform: scale(1.05);
}

/* Highlight / stats row */
.project-stats-row {
  display: flex;
  gap: 0;
  border: 1px solid var(--rule-light);
  border-radius: 2px;
  overflow: hidden;
}

.project-stats-row__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  text-align: center;
  border-right: 1px solid var(--rule-light);
  background: #fff;
}

.project-stats-row__item:last-child {
  border-right: 0;
}

.project-stats-row__value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--charge);
  line-height: 1;
  display: block;
  margin-bottom: .35rem;
}

.project-stats-row__label {
  font-family: var(--font-display);
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--muted);
}

@media (max-width: 767px) {
  .project-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-stats-row {
    flex-wrap: wrap;
  }

  .project-stats-row__item {
    flex: 0 0 50%;
    border-bottom: 1px solid var(--rule-light);
  }
}

/* ============================================================
   MOBILE NAV — overlay offset
   Tablet (≤991px): topbar is still fixed, so offset = 38+90
   Mobile (≤767px): topbar scrolls away, offset = just 90
   ============================================================ */
@media (max-width: 991px) {
  .primary-nav { top: 90px !important; }
  .header-phone { display: none; }
}

@media (max-width: 767px) {
  .primary-nav { top: 90px !important; }
  .page-banner { padding-top: calc(90px + 3.5rem) !important; }
}

/* ============================================================
   INNER PAGE GRIDS — front-page section headers (inline grids)
   ============================================================ */
@media (max-width: 767px) { /* inner-grids block — hero padding handled above */
  /* Services + Projects section header (inline grid: 1fr auto) */
  .services-block > .container > div:first-of-type,
  .container > div[style*="grid-template-columns:1fr auto"] {
    display: block !important;
  }
  .services-block > .container > div:first-of-type > a,
  .container > div[style*="grid-template-columns:1fr auto"] > a {
    margin-top: 1.25rem;
    display: inline-flex;
  }
  /* About page timeline */
  .about-split-grid > div:first-child { order: 2; }
  .about-split-grid > div:last-child  { order: 1; }
}

/* ============================================================
   FAQ SECTION — homepage accordion
   ============================================================ */
.faq-block {
  background: var(--plate);
  padding: 5rem 0;
}

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

.faq-item {
  background: #fff;
  border: 1px solid var(--rule-light);
  border-radius: var(--radius);
}

.faq-item[open] {
  border-left: 3px solid var(--charge);
}

.faq-item__q {
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 3rem 1.25rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ink);
  position: relative;
  user-select: none;
}
.faq-item__q::-webkit-details-marker { display: none; }

/* plus/minus indicator */
.faq-item__q::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--charge);
  line-height: 1;
}
.faq-item[open] .faq-item__q::after { content: '−'; }

.faq-item__a {
  padding: 0 3rem 1.5rem 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 767px) {
  .faq-block { padding: 3rem 0; }
  .faq-item__q { padding: 1rem 2.5rem 1rem 1.25rem; font-size: 0.875rem; }
  .faq-item__q::after { right: 1.25rem; }
  .faq-item__a { padding: 0 1.5rem 1.25rem 1.25rem; font-size: 0.875rem; }
}

/* ============================================================
   CONTACT FORM 7 — match theme form design
   ============================================================ */
.wpcf7 .form-group { margin-bottom: 1.5rem; }

.wpcf7-form-control-wrap { display: block; margin-top: 0.5rem; }

.wpcf7 .form-control { width: 100%; }

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

.wpcf7 .cf7-submit {
  width: 100%;
  justify-content: center;
  padding: 1.125rem;
  cursor: pointer;
}

.wpcf7-not-valid-tip {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8125rem;
  color: var(--charge);
}

.wpcf7-spinner { margin: 0.75rem auto 0; display: block; }

.wpcf7 form .wpcf7-response-output {
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem;
  border: none;
  border-left: 3px solid var(--charge);
  background: rgba(200, 16, 46, 0.06);
  font-size: 0.9rem;
  color: var(--ink);
}
.wpcf7 form.sent .wpcf7-response-output {
  border-left-color: #1a7f37;
  background: rgba(26, 127, 55, 0.08);
}

/* ============================================================
   MOBILE STICKY CTA BAR
   ============================================================ */
.mobile-cta-bar {
  display: none; /* hidden by default; shown only on mobile */
}
@media (max-width: 767px) {
  .mobile-cta-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 950;
    border-top: 2px solid var(--charge);
  }
  .mobile-cta-bar__call,
  .mobile-cta-bar__whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.875rem 0.5rem;
    color: white;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.75rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
  }
  .mobile-cta-bar__call     { background: var(--charge); }
  .mobile-cta-bar__whatsapp { background: #25D366; }
  .mobile-cta-bar__call svg,
  .mobile-cta-bar__whatsapp svg { flex-shrink: 0; }
  /* Push page content up so mobile bar doesn't cover it */
  body { padding-bottom: 56px; }
  .scroll-top { bottom: 4.5rem; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header, .site-footer, .scroll-top, .nav-toggle, .mobile-cta-bar, .topbar { display: none !important; }
  body { color: #000; }
  a { color: #000; }
  .page-banner { background: #eee; }
  .page-banner__title, .page-banner__desc { color: #000; }
}
