/* ==========================================================================
   IRON CONSTRUCTION GROUP — Global Stylesheet
   Construction & Solar Energy Engineering Company
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */
:root {
  --ink: #111111;
  --ink-2: #1a1a1a;
  --ink-3: #242424;
  --paper: #f4f3f0;
  --paper-2: #ecebe6;
  --white: #ffffff;

  --accent: #e8a33d;
  --accent-dark: #c88a2c;
  --accent-ink: #241a08;

  --muted: #8a8a86;
  --muted-dark: #6e6e6a;

  --line-light: rgba(17, 17, 17, 0.14);
  --line-dark: rgba(255, 255, 255, 0.16);

  --font-display: "Barlow Condensed", "Archivo Narrow", Arial, sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --container: 1280px;
  --gutter: 24px;
  --header-h: 84px;

  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

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

/* --------------------------------------------------------------------------
   3. Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: 96px;
}

.section--tight {
  padding-block: 72px;
}

.section--dark {
  background: var(--ink);
  color: var(--paper);
}

.section--paper {
  background: var(--paper);
}

.section--line-top {
  border-top: 1px solid var(--line-light);
}

.section--line-top-dark {
  border-top: 1px solid var(--line-dark);
}

.grid {
  display: grid;
  gap: 24px;
}

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

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split > *,
.grid > *,
.form-grid > *,
.section-head > * {
  min-width: 0;
}

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

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .section {
    padding-block: 64px;
  }
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--accent);
}

.eyebrow--center::after {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--accent);
}

.section--dark .eyebrow {
  color: var(--muted);
}

.section-title {
  font-size: clamp(34px, 4.4vw, 54px);
  margin-top: 18px;
  max-width: 22ch;
}

.section-title em {
  font-style: normal;
  color: var(--accent);
}

.lead {
  font-size: 19px;
  color: var(--muted-dark);
  margin-top: 18px;
  max-width: 60ch;
}

.section--dark .lead {
  color: #b9b9b4;
}

.lede {
  max-width: 52ch;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
}

.section-head .section-title {
  margin-top: 14px;
}

@media (max-width: 720px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 17px 30px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn .arr {
  font-size: 20px;
  line-height: 1;
  transition: transform var(--transition);
}

.btn:hover .arr {
  transform: translateX(4px);
}

.btn--accent {
  background: var(--accent);
  color: var(--accent-ink);
  border: 2px solid var(--accent);
}

.btn--accent:hover {
  background: var(--white);
  border-color: var(--white);
}

.section--dark .btn--accent:hover,
.dark-bg .btn--accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--white);
}

.btn--ghost-light {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn--ghost-light:hover {
  background: var(--white);
  color: var(--ink);
}

.btn--sm {
  padding: 12px 22px;
  font-size: 14px;
}

.btn--block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  transition: color var(--transition);
  overflow-wrap: anywhere;
}

.link-arrow .arr {
  flex-shrink: 0;
}

.link-arrow:hover {
  color: var(--accent-dark);
}

.link-arrow .arr {
  font-size: 18px;
}

/* --------------------------------------------------------------------------
   6. Header / Navigation
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--ink);
  color: #b9b9b4;
  font-size: 13.5px;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-block: 10px;
}

.topbar a {
  color: #e6e6e2;
  transition: color var(--transition);
}

.topbar a:hover {
  color: var(--accent);
}

.topbar-group {
  display: flex;
  align-items: center;
  gap: 24px;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topbar-item svg {
  width: 14px;
  height: 14px;
  stroke: var(--accent);
}

.topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.08em;
}

.topbar-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3fae5a;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--line-light);
  transition: border-color var(--transition);
}

.site-header.is-scrolled {
  border-bottom-color: rgba(17, 17, 17, 0.22);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
}

.logo-text {
  line-height: 1;
  text-transform: uppercase;
}

.logo-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.logo-sub {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.42em;
  color: var(--muted-dark);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a.nav-link {
  position: relative;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 10px 14px;
  transition: color var(--transition);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.main-nav a.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.main-nav a.nav-link:hover,
.main-nav a.nav-link.is-active {
  color: var(--accent-dark);
}

.main-nav a.nav-link.is-active::after,
.main-nav a.nav-link:hover::after {
  transform: scaleX(1);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 46px;
  height: 46px;
  padding: 10px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

body.nav-open {
  overflow: hidden;
}

@media (max-width: 1080px) {
  .topbar-item.tb-hide,
  .topbar-group .tb-hide {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 88vw);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    padding: 110px 32px 40px;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1),
      visibility 300ms;
    overflow-y: auto;
    z-index: 300;
  }
  body.nav-open .main-nav {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
  body.nav-open .nav-overlay {
    opacity: 1;
    visibility: visible;
  }
  .main-nav a.nav-link {
    color: var(--paper);
    font-size: 22px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line-dark);
    width: 100%;
  }
  .main-nav a.nav-link::after {
    display: none;
  }
  .main-nav a.nav-link.is-active {
    color: var(--accent);
  }
  .nav-cta-mobile {
    margin-top: 28px;
    display: block;
  }
}

@media (min-width: 1081px) {
  .nav-cta-mobile {
    display: none;
  }
  .nav-close {
    display: none;
  }
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
  z-index: 150;
}

@media (max-width: 720px) {
  .topbar-inner {
    justify-content: center;
  }
  .topbar-group .tb-address {
    display: none;
  }
  .header-cta .btn {
    display: none;
  }
  .header-inner {
    height: 72px;
    gap: 16px;
  }
  .logo-mark {
    width: 34px;
    height: 34px;
    font-size: 17px;
  }
  .logo {
    gap: 10px;
  }
  .logo-word {
    font-size: 17px;
    letter-spacing: 0.06em;
  }
  :root {
    --header-h: 72px;
  }
}

@media (max-width: 400px) {
  .logo-sub {
    display: none;
  }
  .logo-word {
    font-size: 15px;
  }
}

/* --------------------------------------------------------------------------
   7. Hero (Home)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(17, 17, 17, 0.55) 0%,
    rgba(17, 17, 17, 0.35) 40%,
    rgba(17, 17, 17, 0.78) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: 96px 88px;
}

.hero .eyebrow {
  color: var(--white);
}

.hero h1 {
  font-size: clamp(48px, 8vw, 104px);
  font-weight: 700;
  margin-top: 22px;
  max-width: 14ch;
}

.hero h1 .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.85);
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  margin-top: 22px;
  max-width: 52ch;
  font-size: 19px;
  color: #deded9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 38px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 72px;
  border-top: 1px solid var(--line-dark);
}

.hero-meta-item {
  padding: 24px 40px 0 0;
  margin-right: 48px;
}

.hero-meta-item .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 42px;
  line-height: 1;
  color: var(--accent);
}

.hero-meta-item .lbl {
  display: block;
  margin-top: 6px;
  font-size: 13.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c4c4bf;
}

.scroll-hint {
  position: absolute;
  right: var(--gutter);
  bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  z-index: 2;
}

.scroll-hint .line {
  width: 1px;
  height: 56px;
  background: rgba(255, 255, 255, 0.5);
  overflow: hidden;
  position: relative;
}

.scroll-hint .line::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--accent);
  animation: scrollHint 1.8s ease-in-out infinite;
}

@keyframes scrollHint {
  0% {
    top: -50%;
  }
  100% {
    top: 110%;
  }
}

@media (max-width: 640px) {
  .hero-meta-item {
    margin-right: 24px;
  }
  .scroll-hint {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   8. Page Hero (interior pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}

.page-hero--sm {
  min-height: 340px;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(17, 17, 17, 0.5) 0%,
    rgba(17, 17, 17, 0.72) 100%
  );
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  padding-block: 64px;
  width: 100%;
}

.page-hero .eyebrow {
  color: var(--white);
}

.page-hero h1 {
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 700;
  margin-top: 18px;
  max-width: 18ch;
}

.page-hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c4c4bf;
}

.breadcrumb a {
  color: var(--accent);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   9. Image Blocks
   -------------------------------------------------------------------------- */
.img-frame {
  position: relative;
  overflow: hidden;
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

.img-frame:hover img {
  transform: scale(1.04);
}

.img-frame--ratio-4x3 {
  aspect-ratio: 4 / 3;
}

.img-frame--ratio-16x10 {
  aspect-ratio: 16 / 10;
}

.img-frame--ratio-1x1 {
  aspect-ratio: 1 / 1;
}

.img-frame--ratio-3x4 {
  aspect-ratio: 3 / 4;
}

/* --------------------------------------------------------------------------
   10. Service Cards
   -------------------------------------------------------------------------- */
.service-card {
  border: 1px solid var(--line-light);
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.service-card .img-frame {
  aspect-ratio: 16 / 10;
}

.service-card-body {
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card-body h3 {
  font-size: 23px;
  letter-spacing: 0.02em;
}

.service-card-body p {
  margin-top: 10px;
  font-size: 15.5px;
  color: var(--muted-dark);
  flex: 1;
}

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

.service-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.2em;
  color: var(--accent-dark);
  margin-bottom: 8px;
}

.section--dark .service-card {
  border-color: var(--line-dark);
  background: var(--ink-2);
}

.section--dark .service-card-body h3 {
  color: var(--white);
}

.section--dark .service-card-body p {
  color: #b9b9b4;
}

/* Simple text feature (icon + title) */
.feature {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line-light);
}

.feature-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-light);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent-dark);
}

.feature h3 {
  font-size: 21px;
  margin-bottom: 6px;
}

.feature p {
  font-size: 15.5px;
  color: var(--muted-dark);
  max-width: 44ch;
}

.section--dark .feature {
  border-top-color: var(--line-dark);
}

.section--dark .feature-icon {
  border-color: var(--line-dark);
}

.section--dark .feature h3 {
  color: var(--white);
}

.section--dark .feature p {
  color: #b9b9b4;
}

/* --------------------------------------------------------------------------
   11. Stats Band
   -------------------------------------------------------------------------- */
.stats-band {
  background: var(--ink);
  color: var(--white);
  border-block: 1px solid var(--line-dark);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat {
  padding: 8px 24px 8px 0;
  border-right: 1px solid var(--line-dark);
}

.stat:last-child {
  border-right: 0;
}

.stat .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 4vw, 60px);
  line-height: 1;
  color: var(--accent);
}

.stat .num .suffix {
  font-size: 0.6em;
}

.stat .lbl {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b9b9b4;
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 24px;
  }
  .stat {
    border-right: 0;
    padding: 0;
  }
}

/* --------------------------------------------------------------------------
   12. Projects / Gallery
   -------------------------------------------------------------------------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ink);
}

.project-card .img-frame {
  aspect-ratio: 4 / 5;
}

.project-card img {
  opacity: 0.92;
  transition: opacity var(--transition), transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover img {
  opacity: 0.55;
  transform: scale(1.04);
}

.project-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(17, 17, 17, 0.88) 100%
  );
  color: var(--white);
}

.project-card-body .cat {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
}

.project-card-body h3 {
  font-size: 25px;
  margin-top: 6px;
}

.project-card-body .loc {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  font-size: 14px;
  color: #c9c9c4;
}

.project-card-body .loc svg {
  width: 14px;
  height: 14px;
  stroke: var(--accent);
}

.project-card-reveal {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 400ms ease, opacity 300ms ease;
  font-size: 14.5px;
  color: #dcdcd7;
}

.project-card:hover .project-card-reveal {
  max-height: 120px;
  opacity: 1;
}

.project-card--visible .project-card-reveal {
  max-height: 120px;
  opacity: 1;
  margin-top: 10px;
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 11px 22px;
  border: 1px solid var(--line-light);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dark);
  transition: all var(--transition);
}

.filter-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.project-item {
  transition: opacity 300ms ease, transform 300ms ease;
}

.project-item.is-hidden {
  display: none;
}

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

@media (max-width: 640px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   13. Solar Process / Steps
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border: 1px solid var(--line-light);
}

.step {
  padding: 32px 22px;
  border-right: 1px solid var(--line-light);
  position: relative;
}

.step:last-child {
  border-right: 0;
}

.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
  color: var(--accent);
}

.step h3 {
  font-size: 19px;
  margin: 14px 0 8px;
}

.step p {
  font-size: 14.5px;
  color: var(--muted-dark);
}

.step-arrow {
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 24px;
  height: 24px;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: var(--ink);
}

.step-arrow svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 1100px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .step:nth-child(3) {
    border-right: 0;
  }
  .step:nth-child(n + 4) {
    border-top: 1px solid var(--line-light);
  }
}

@media (max-width: 640px) {
  .steps {
    grid-template-columns: 1fr;
  }
  .step {
    border-right: 0;
    border-bottom: 1px solid var(--line-light);
  }
  .step:last-child {
    border-bottom: 0;
  }
}

/* --------------------------------------------------------------------------
   14. Testimonials
   -------------------------------------------------------------------------- */
.testimonial-slider {
  position: relative;
  border: 1px solid var(--line-light);
  background: var(--white);
}

.section--dark .testimonial-slider {
  border-color: var(--line-dark);
  background: var(--ink-2);
}

.testimonial-track {
  overflow: hidden;
}

.testimonial-slide {
  padding: 56px 64px;
}

.testimonial-slide blockquote {
  font-size: 22px;
  line-height: 1.5;
  font-family: var(--font-display);
  font-weight: 500;
  max-width: 56ch;
}

.testimonial-slide blockquote::before {
  content: "\201C";
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 72px;
  line-height: 0.6;
  color: var(--accent);
  margin-bottom: 20px;
}

.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
}

.testimonial-meta .avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--paper-2);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--muted-dark);
}

.section--dark .testimonial-meta .avatar {
  background: var(--ink-3);
  color: var(--paper);
}

.testimonial-meta .name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.testimonial-meta .role {
  font-size: 14px;
  color: var(--muted-dark);
}

.testimonial-nav {
  display: flex;
  gap: 0;
  position: absolute;
  right: 56px;
  bottom: 56px;
}

.testimonial-nav button {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-light);
  display: grid;
  place-items: center;
  transition: background var(--transition), color var(--transition);
}

.section--dark .testimonial-nav button {
  border-color: var(--line-dark);
}

.testimonial-nav button:hover {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}

.testimonial-nav svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 720px) {
  .testimonial-slide {
    padding: 40px 28px;
  }
  .testimonial-nav {
    position: static;
    margin-top: 24px;
    padding-inline: 28px;
    padding-bottom: 28px;
  }
}

/* --------------------------------------------------------------------------
   15. CTA Band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  color: var(--white);
}

.cta-band-bg {
  position: absolute;
  inset: 0;
}

.cta-band-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-band-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.82);
}

.cta-band-inner {
  position: relative;
  z-index: 1;
  padding-block: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  max-width: 20ch;
  margin-top: 20px;
}

.cta-band h2 em {
  font-style: normal;
  color: var(--accent);
}

.cta-band p {
  margin-top: 18px;
  max-width: 52ch;
  color: #d5d5d0;
}

.cta-band .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   16. FAQ Accordion
   -------------------------------------------------------------------------- */
.faq-list {
  border-top: 1px solid var(--line-light);
}

.section--dark .faq-list {
  border-top-color: var(--line-dark);
}

.faq-item {
  border-bottom: 1px solid var(--line-light);
}

.section--dark .faq-item {
  border-bottom-color: var(--line-dark);
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 24px 0;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  text-transform: none;
  letter-spacing: 0.01em;
}

.faq-q .icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-light);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 400;
  transition: transform 260ms ease, background var(--transition), color var(--transition);
}

.section--dark .faq-q .icon {
  border-color: var(--line-dark);
}

.faq-item.is-open .faq-q .icon {
  transform: rotate(45deg);
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 320ms ease;
}

.faq-a p {
  padding: 0 0 24px;
  max-width: 68ch;
  color: var(--muted-dark);
}

.section--dark .faq-a p {
  color: #b9b9b4;
}

/* --------------------------------------------------------------------------
   17. Contact
   -------------------------------------------------------------------------- */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--line-light);
}

.contact-info-item {
  padding: 32px 34px;
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  display: flex;
  gap: 18px;
}

.contact-info-item:nth-child(2n) {
  border-right: 0;
}

.contact-info-item:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.contact-info-item .icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-light);
  display: grid;
  place-items: center;
}

.contact-info-item .icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent-dark);
}

.contact-info-item h3 {
  font-size: 19px;
}

.contact-info-item p,
.contact-info-item a {
  margin-top: 6px;
  font-size: 15.5px;
  color: var(--muted-dark);
  overflow-wrap: break-word;
}

.contact-info-grid > * {
  min-width: 0;
}

.contact-info-item a:hover {
  color: var(--accent-dark);
}

@media (max-width: 900px) {
  .contact-info-grid {
    grid-template-columns: 1fr;
  }
  .contact-info-item {
    border-right: 0;
  }
  .contact-info-item:nth-child(2n) {
    border-right: 0;
  }
  .contact-info-item:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line-light);
  }
  .contact-info-item:last-child {
    border-bottom: 0;
  }
}

/* Form */
.form-panel {
  border: 1px solid var(--line-light);
  padding: 44px;
  background: var(--white);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.form-sidebar {
  border: 1px solid var(--line-light);
  background: var(--paper);
  padding: 40px;
}

.form-sidebar h3 {
  font-size: 24px;
  margin-bottom: 18px;
}

.form-sidebar .step-list li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line-light);
}

.form-sidebar .step-list .n {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--accent-dark);
}

.form-sidebar .step-list p {
  font-size: 15.5px;
  color: var(--muted-dark);
}

.form-notice {
  border: 1px solid #3fae5a;
  background: #eef8ef;
  color: #1f5c2c;
  padding: 18px 22px;
  font-size: 15.5px;
  margin-top: 24px;
}

.form-notice strong {
  display: block;
  margin-bottom: 4px;
}

.contact-cta-box {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line-light);
}

.contact-cta-box .phone-big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0.02em;
}

.contact-cta-box .phone-big a:hover {
  color: var(--accent-dark);
}

@media (max-width: 900px) {
  .form-panel {
    padding: 28px 22px;
  }
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Map */
.map-wrap {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line-light);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-group label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form-group label .req {
  color: var(--accent-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line-light);
  border-radius: 2px;
  background: var(--white);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group .hint {
  font-size: 13.5px;
  color: var(--muted-dark);
}

.form-note {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--muted-dark);
}

.form-note a {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* Map */
.map-wrap {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line-light);
}

.map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) contrast(1.05);
}

.map-fallback {
  position: absolute;
  inset: 0;
  background: var(--paper);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px;
}

.map-fallback .pin {
  width: 56px;
  height: 56px;
  border: 1px solid var(--ink);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
}

.map-fallback .pin svg {
  width: 26px;
  height: 26px;
  stroke: var(--accent-dark);
}

/* --------------------------------------------------------------------------
   18. Value / Numbered list rows
   -------------------------------------------------------------------------- */
.value-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding: 30px 0;
  border-top: 1px solid var(--line-light);
}

.section--dark .value-row {
  border-top-color: var(--line-dark);
}

.value-row .n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 54px;
  line-height: 1;
  color: var(--accent);
}

.value-row h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.value-row p {
  color: var(--muted-dark);
  max-width: 60ch;
}

.section--dark .value-row h3 {
  color: var(--white);
}

.section--dark .value-row p {
  color: #b9b9b4;
}

@media (max-width: 640px) {
  .value-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Check list */
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 16px;
  border-bottom: 1px solid var(--line-light);
}

.section--dark .check-list li {
  border-bottom-color: var(--line-dark);
}

.check-list li:last-child {
  border-bottom: 0;
}

.check-list svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 5px;
  stroke: var(--accent-dark);
}

.section--dark .check-list svg {
  stroke: var(--accent);
}

/* --------------------------------------------------------------------------
   19. Marquee / ticker strip
   -------------------------------------------------------------------------- */
.ticker {
  background: var(--accent);
  color: var(--accent-ink);
  overflow: hidden;
  padding-block: 16px;
  border-block: 2px solid var(--ink);
}

.ticker-track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  width: max-content;
  animation: ticker 28s linear infinite;
}

.ticker span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 64px;
}

.ticker span::after {
  content: "\25A0";
  color: var(--ink);
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------------------
   20. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: #b9b9b4;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-block: 72px;
}

.footer-brand p {
  margin-top: 20px;
  max-width: 38ch;
  font-size: 15.5px;
}

.footer-brand .logo-text .logo-word {
  color: var(--white);
}

.footer-brand .logo-text .logo-sub {
  color: #8a8a86;
}

.footer-col h4 {
  color: var(--white);
  font-size: 17px;
  letter-spacing: 0.14em;
  margin-bottom: 20px;
}

.footer-col ul li {
  padding: 7px 0;
}

.footer-col ul a {
  font-size: 15.5px;
  transition: color var(--transition);
}

.footer-col ul a:hover {
  color: var(--accent);
}

.footer-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 0;
  font-size: 15.5px;
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 4px;
  stroke: var(--accent);
}

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

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-block: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
}

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

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-dark);
  display: grid;
  place-items: center;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.social-links a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

.social-links svg {
  width: 18px;
  height: 18px;
}

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

@media (max-width: 1000px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .footer-main {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-legal {
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   21. Back to top
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  background: var(--ink);
  color: var(--white);
  border: 1px solid var(--ink);
  display: grid;
  place-items: center;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition), background var(--transition);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}

.to-top svg {
  width: 20px;
  height: 20px;
}

/* --------------------------------------------------------------------------
   22. Reveal animations
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 1;
  transform: none;
}

html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

html.js .reveal--delay-1 {
  transition-delay: 100ms;
}
html.js .reveal--delay-2 {
  transition-delay: 200ms;
}
html.js .reveal--delay-3 {
  transition-delay: 300ms;
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   23. Misc helpers
   -------------------------------------------------------------------------- */
.accent-line {
  width: 44px;
  height: 3px;
  background: var(--accent);
  margin: 22px 0 0;
}

.text-muted {
  color: var(--muted-dark);
}

.mt-16 {
  margin-top: 16px;
}
.mt-24 {
  margin-top: 24px;
}
.mt-40 {
  margin-top: 40px;
}
.mb-40 {
  margin-bottom: 40px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--line-light);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge svg {
  width: 15px;
  height: 15px;
  stroke: var(--accent-dark);
}

.section--dark .badge {
  border-color: var(--line-dark);
}

/* Swatch / capability list used on about */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

@media (max-width: 640px) {
  .capability-grid {
    grid-template-columns: 1fr;
  }
}
