:root {
  --primary-bg: #0b1220;
  --secondary-bg: #172033;
  --surface: #1f2937;
  --text-main: #ffffff;
  --text-muted: #9ca3af;
  --accent: #fcb900;
  --accent-hover: #e1a606;
  --line: rgba(255, 255, 255, 0.16);
  --container: min(1240px, 92vw);
  --ease: 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--primary-bg);
  color: var(--text-main);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

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

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

h1,
h2,
h3 {
  margin: 0 0 0.55em;
  font-family: "Montserrat", sans-serif;
  line-height: 1.08;
}

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--accent);
  color: #0b1120;
  padding: 0.5rem 0.9rem;
  z-index: 9999;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--secondary-bg);
  border-bottom: 1px solid var(--line);
}

.site-header.scrolled {
  background: rgba(15, 23, 42, 0.96);
}

.nav-shell {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--text-main);
}

.logo-main {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo-dot {
  color: var(--accent);
}

.logo-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1;
  margin-top: -0.25rem;
}

.nav-links {
  position: fixed;
  inset: 86px 0 auto;
  background: var(--secondary-bg);
  display: grid;
  gap: 1.1rem;
  margin: 0;
  padding: 1.2rem 1.5rem 1.6rem;
  list-style: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  transform: translateY(calc(-100% - 86px));
  opacity: 0;
  pointer-events: none;
  transition: transform var(--ease), opacity var(--ease);
}

.nav-links.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-links a {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.94rem;
}

.menu-toggle {
  position: relative;
  z-index: 95;
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  position: absolute;
  left: 50%;
  width: 22px;
  height: 2px;
  margin: 0;
  margin-left: -11px;
  border-radius: 1px;
  background: var(--text-main);
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

/* Bar stack: centered vertically in button */
.menu-toggle span:nth-child(1) {
  top: 14px;
}

.menu-toggle span:nth-child(2) {
  top: 21px;
}

.menu-toggle span:nth-child(3) {
  top: 28px;
}

.menu-toggle.active span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  min-height: calc(100svh - 86px);
  display: grid;
  align-items: center;
  overflow: hidden;
}

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--secondary-bg);
  transform: scale(1.04);
  will-change: transform;
}

.hero-overlay {
  z-index: 1;
  background: linear-gradient(100deg, rgba(18, 22, 28, 0.82), rgba(18, 22, 28, 0.3));
}

.inner-hero {
  background: linear-gradient(180deg, var(--secondary-bg), var(--primary-bg));
  padding: 5.5rem 0 3.2rem;
  border-bottom: 1px solid var(--line);
}

.inner-hero h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
  margin-bottom: 0.5rem;
}

.inner-hero p {
  /* max-width: 68ch; */
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 650px;
  padding-block: 3.5rem;
  color: var(--text-main);
}

.hero h1 {
  font-size: clamp(2.3rem, 8vw, 4.5rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.3rem;
}

.hero p {
  max-width: 55ch;
  color: var(--text-muted);
  margin-bottom: 1.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.65rem 1.3rem;
  border-radius: 0;
  font-weight: 600;
  font-size: 0.93rem;
  transition: transform var(--ease), background var(--ease), color var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-light {
  background: var(--accent);
  color: #0b1120;
  border: 1px solid var(--accent);
}

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

.btn-dark {
  background: var(--surface);
  color: var(--text-main);
  border: 1px solid var(--surface);
}

.logo-strip {
  background: var(--secondary-bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.2rem 0;
}

.logo-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 1.5rem;
}

.logo-row span {
  color: var(--text-main);
  background: var(--surface);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.45rem 0.35rem;
  text-align: center;
}

.performance {
  background: var(--secondary-bg);
  color: var(--text-main);
  border-bottom: 1px solid var(--line);
}

.section-title {
  color: var(--text-main);
  font-size: clamp(2rem, 5.5vw, 3rem);
  padding: 1.2rem 0 1.5rem;
}

.perf-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.perf-card {
  padding: 2rem 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 0;
}

.perf-card h3 {
  color: var(--text-main);
  font-size: 1.9rem;
  margin-bottom: 1.2rem;
}

.perf-card p {
  color: var(--text-muted);
}

.perf-card-dark {
  background: var(--surface);
}

.about {
  background: var(--primary-bg);
  padding: 3rem 0;
}

.about-wrap {
  position: relative;
}

.about-image {
  width: 100%;
  min-height: 280px;
  object-fit: cover;
}

.about-panel {
  background: var(--surface);
  padding: 2rem 1.6rem;
  margin-top: -1rem;
  margin-inline: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.about-panel h2 {
  font-size: clamp(2rem, 5.3vw, 3rem);
  color: var(--text-main);
}

.projects {
  background: var(--secondary-bg);
  padding: 3.1rem 0 4rem;
}

.dark-title {
  color: var(--text-main);
  padding-top: 0;
}

.projects-grid {
  display: grid;
  gap: 0.9rem;
}

.project {
  position: relative;
  overflow: hidden;
}

.project img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform var(--ease);
}

.project.highlight::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  opacity: 0;
  transition: opacity var(--ease);
}

.project-overlay {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  padding: 1.3rem;
  color: var(--text-main);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--ease), transform var(--ease);
}

.project-overlay h3 {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.project-overlay p {
  color: var(--text-muted);
  margin: 0;
}

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

.project:hover.highlight::after {
  opacity: 1;
}

.project:hover .project-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Project gallery tiles: same lightbox as nexa-gallery, keep tile look */
.projects-grid .gallery-item {
  border: none;
  background: transparent;
}

.projects-grid .gallery-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Index: Why choose Nexa Mechanical */
.choose-nexa {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--primary-bg) 0%, #070d16 100%);
  padding: clamp(3rem, 8vw, 5.5rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.choose-nexa::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 85% 55% at 85% -15%,
    rgba(252, 185, 0, 0.09),
    transparent 52%
  );
  pointer-events: none;
}

.choose-nexa .container {
  position: relative;
  z-index: 1;
}

.choose-nexa-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 2.75rem);
}

.choose-nexa-eyebrow {
  margin: 0 0 0.65rem;
  font-family: "Montserrat", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.choose-nexa-header h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 4.2vw, 2.55rem);
  line-height: 1.18;
  max-width: 26ch;
  color: var(--text-main);
}

.choose-nexa-lead {
  margin: 0;
  max-width: 62ch;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.choose-nexa-body {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

.choose-nexa-copy p {
  margin: 0 0 1rem;
  max-width: 52ch;
  line-height: 1.65;
  color: var(--text-muted);
}

.choose-nexa-copy p:last-child {
  margin-bottom: 0;
}

.choose-nexa-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.choose-nexa-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color var(--ease), box-shadow var(--ease),
    transform var(--ease);
}

.choose-nexa-item:hover {
  border-color: rgba(252, 185, 0, 0.38);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

.choose-nexa-icon {
  flex-shrink: 0;
  width: 2.65rem;
  height: 2.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1.05rem;
  color: var(--accent);
  background: rgba(252, 185, 0, 0.12);
}

.choose-nexa-item-title {
  margin: 0 0 0.35rem;
  font-family: "Montserrat", sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.28;
  color: var(--text-main);
}

.choose-nexa-item-text {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.52;
  color: var(--text-muted);
}

.choose-nexa-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.seo-section {
  background: var(--primary-bg);
  padding: clamp(3rem, 7vw, 5rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.seo-section-alt {
  background: var(--secondary-bg);
}

.seo-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.seo-copy h2,
.seo-header h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  line-height: 1.16;
  color: var(--text-main);
}

.seo-copy p,
.seo-header p,
.seo-columns p,
.seo-card p,
.faq-item p {
  color: var(--text-muted);
  line-height: 1.68;
}

.seo-panel,
.seo-card,
.faq-item,
.seo-columns article {
  background: rgba(31, 41, 55, 0.78);
  border: 1px solid var(--line);
  padding: clamp(1.15rem, 3vw, 1.6rem);
}

.seo-panel h3,
.seo-card h3,
.seo-columns h3,
.faq-item h3 {
  margin-bottom: 0.6rem;
  font-size: 1.12rem;
  color: var(--text-main);
}

.seo-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding-left: 1rem;
  color: var(--text-muted);
}

.seo-list li::marker {
  color: var(--accent);
}

.seo-header {
  max-width: 760px;
  margin-bottom: clamp(1.5rem, 4vw, 2.2rem);
}

.seo-card-grid,
.seo-columns {
  display: grid;
  gap: 1rem;
}

.faq-layout {
  display: grid;
  gap: 1.5rem;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item a {
  color: var(--text-main);
  text-decoration: underline;
  text-decoration-color: rgba(252, 185, 0, 0.55);
  text-underline-offset: 0.18em;
}

@media (min-width: 700px) {
  .choose-nexa-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .choose-nexa-item-span {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .choose-nexa-body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    gap: clamp(2rem, 4vw, 3.25rem);
  }

  .seo-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  }

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

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

  .faq-layout {
    grid-template-columns: minmax(260px, 0.45fr) minmax(0, 1fr);
  }
}

.content-section {
  padding: 3.2rem 0 4rem;
}

.grid-two {
  display: grid;
  gap: 1rem;
}

/* About page: Who We Are (8/12) + square video (4/12) */
.about-who-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.about-who-grid .about-visual {
  overflow: hidden;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.about-who-grid .about-visual video.about-image {
  width: 100%;
  min-height: 0;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.3rem;
}

.list-clean {
  margin: 0;
  padding-left: 1rem;
}

.list-clean li {
  margin: 0.35rem 0;
  color: var(--text-muted);
}

.contact-form {
  display: grid;
  gap: 0.7rem;
}

.contact-form label {
  font-weight: 600;
  font-size: 0.86rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: var(--secondary-bg);
  border: 1px solid var(--line);
  color: var(--text-main);
  padding: 0.7rem 0.8rem;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 2px solid rgba(59, 130, 246, 0.45);
  border-color: var(--accent);
}

.mini-grid {
  display: grid;
  gap: 1rem;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}

.blog-card-content {
  padding: 1rem;
}

.about-visual img {
  width: 100%;
  min-height: 320px;
  object-fit: cover;
  margin-bottom: 0.6rem;
}

.about-visual figcaption {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.why-grid h3 {
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}

.cta-panel {
  text-align: center;
}

.cta-panel .hero-actions {
  justify-content: center;
}

.commercial-page .content-section {
  padding: 3.6rem 0;
}

.commercial-hero {
  position: relative;
  min-height: clamp(440px, 62vh, 640px);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.commercial-hero-bg,
.residential-hero-bg,
.commercial-hero-overlay {
  position: absolute;
  inset: 0;
}

.commercial-hero-bg {
  background-image: url("commercial-plumbing-service-vancouver.webp");
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
}
.residential-hero-bg {
  background-image: url("residential-plumbing-services.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
}

.commercial-hero-overlay {
  background: linear-gradient(
    120deg,
    rgba(7, 12, 23, 0.92),
    rgba(7, 12, 23, 0.58) 54%,
    rgba(7, 12, 23, 0.32)
  );
}

.commercial-hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(2rem, 6vw, 4rem);
  max-width: 780px;
}

.commercial-hero-content h1 {
  font-size: clamp(2.1rem, 6.2vw, 4rem);
}

.commercial-hero-content p {
  max-width: 58ch;
}

.commercial-overview h2,
.commercial-workflow h2,
.commercial-project-types h2 {
  margin-bottom: 1rem;
}

.commercial-card-grid {
  display: grid;
  gap: 1rem;
}

.commercial-card {
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.commercial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.42);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.22);
}

.card-icon {
  width: 2.2rem;
  height: 2.2rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.commercial-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.55rem;
}

.commercial-video-frame video {
  width: 100%;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.workflow-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.step-card {
  position: relative;
  padding-left: 1rem;
}

.step-card span {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.project-type-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.project-type-card {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.project-type-card i {
  color: var(--accent);
  margin-top: 0.2rem;
}

.commercial-mid-cta .cta-panel,
.commercial-bottom-cta .cta-panel {
  background: linear-gradient(145deg, rgba(31, 41, 55, 0.92), rgba(17, 24, 39, 0.92));
}

.contact-hero p {
  max-width: 64ch;
}

.contact-page .contact-layout {
  display: grid;
  gap: 1.2rem;
}

.contact-info-panel,
.contact-form-panel {
  background: rgba(31, 41, 55, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info-panel h2,
.contact-form-panel h2 {
  margin-bottom: 0.8rem;
}

.contact-intro {
  margin-bottom: 1rem;
}

.contact-trust-list {
  margin: 1rem 0 0;
  padding-left: 1rem;
}

.contact-trust-list li {
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.quote-form input::placeholder,
.quote-form textarea::placeholder {
  color: rgba(156, 163, 175, 0.8);
}

.form-microcopy {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
}

.form-status {
  display: none;
  margin-bottom: 0.9rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  color: var(--text-main);
}

.form-status.success,
.form-status.error {
  display: block;
}

.form-status.success {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.12);
}

.form-status.error {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.12);
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.post-body {
  /* max-width: 850px; */
}

.post-body h2 {
  margin-top: 1.2rem;
}

.post-main-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 1.2rem;
}

.post-inline-gallery {
  display: grid;
  gap: 0.8rem;
  margin: 1.1rem 0 1.2rem;
}

.post-inline-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
}

.gallery-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-item {
  cursor: pointer;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform var(--ease);
}

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

.gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 20, 0.88);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.gallery-modal.open {
  display: flex;
}

.gallery-modal-content {
  width: min(1050px, 96vw);
  position: relative;
}

.gallery-modal img {
  width: 100%;
  max-height: 78vh;
  object-fit: cover;
  border: 1px solid var(--line);
}

.gallery-modal button {
  position: absolute;
  border: 1px solid var(--line);
  background: var(--secondary-bg);
  color: var(--text-main);
  cursor: pointer;
}

.gallery-close {
  top: -44px;
  right: 0;
  width: 42px;
  height: 36px;
}

.gallery-prev,
.gallery-next {
  top: calc(50% - 20px);
  width: 40px;
  height: 40px;
}

.gallery-prev {
  left: -50px;
}

.gallery-next {
  right: -50px;
}

.site-footer {
  background: var(--secondary-bg);
  color: var(--text-main);
  padding: clamp(2rem, 5vw, 3rem) 0 0;
  overflow-x: hidden;
}

.footer-top-line {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: clamp(1.25rem, 4vw, 2rem);
}

.footer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 2rem);
}

.footer-col {
  padding: 0;
  min-width: 0;
}

.footer-col h3 {
  margin-bottom: 0.85rem;
  font-size: 1.05rem;
  color: var(--text-main);
}

.footer-col p {
  color: var(--text-muted);
}

.footer-logo {
  margin-bottom: 0.85rem;
}

.footer-logo .logo-main {
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.trust-signal {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.26rem 0.52rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.48rem;
}

.footer-list li,
.footer-list a {
  color: var(--text-muted);
}

.footer-list a:hover {
  color: var(--text-main);
}

.footer-contact-list li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  line-height: 1.5;
  word-break: break-word;
}

.footer-contact-list a {
  word-break: break-all;
}

.footer-contact-list i {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 0.2rem;
  width: 1rem;
  text-align: center;
}

.footer-cta {
  margin-top: clamp(1.5rem, 4vw, 2rem);
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  padding: clamp(1.35rem, 4vw, 2rem) clamp(1rem, 4vw, 1.5rem);
  border-radius: 0;
}

.footer-cta h3 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.15rem, 3.5vw, 2rem);
  line-height: 1.25;
  max-width: 100%;
  margin-inline: auto;
}

.footer-cta-text {
  margin: 0 auto 1rem;
  max-width: 42rem;
  padding-inline: 0;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.footer-cta-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
}

.footer-cta .btn {
  min-width: min(210px, 100%);
  background: var(--accent);
  border-color: var(--accent);
  color: #0b1120;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
  padding: 0.75rem 1.1rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: clamp(1rem, 3vw, 1.2rem) 0 clamp(1.25rem, 3vw, 1.5rem);
  margin-top: clamp(1.25rem, 3vw, 1.5rem);
}

.footer-bottom-areas {
  margin: 0;
  width: 100%;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

.footer-bottom-bar {
  display: grid;
  width: 100%;
  gap: 0.75rem;
  justify-items: center;
  text-align: center;
}

.footer-bottom-copy,
.footer-bottom-credit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.4;
}

.footer-site-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.footer-site-link,
.footer-site-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
  transition:
    color var(--ease),
    border-color var(--ease),
    background var(--ease);
}

.footer-site-links a:hover {
  border-color: var(--accent);
  background: rgba(252, 185, 0, 0.1);
  color: var(--accent);
}

.footer-bottom-credit span {
  color: var(--text-muted);
}

.footer-bottom-credit a {
  color: var(--accent);
  font-weight: 500;
}

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

@media (min-width: 540px) {
  .footer-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-cta h3 {
    max-width: none;
  }
}

@media (min-width: 540px) and (max-width: 699px) {
  .footer-layout > .footer-col:last-child {
    grid-column: 1 / -1;
  }
}


.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 700px) {
  .logo {
    flex-direction: row;
    align-items: center;
  }

  .logo-sub {
    display: inline;
  }

  .logo-row {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

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

  .about-wrap {
    min-height: 430px;
    display: grid;
    align-items: center;
  }

  .about-wrap .about-image {
    width: 70%;
    min-height: 420px;
  }

  .about-panel {
    position: absolute;
    right: 0;
    width: 56%;
    margin: 0;
    padding: 2.5rem 2.3rem;
  }

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

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

  .about-who-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .about-who-grid > article {
    grid-column: span 8;
  }

  .about-who-grid > .about-visual {
    grid-column: span 4;
  }

  .about-who-grid .about-visual video.about-image {
    width: 100%;
    min-height: 0;
  }

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

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

  .post-inline-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.2rem 2.5rem;
  }

  .footer-brand {
    grid-column: auto;
  }

  .contact-page .contact-layout {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 1.4rem;
  }

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

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

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

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

  .nav-links {
    position: static;
    background: transparent;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 0;
    padding: 0;
  }

  .nav-shell {
    grid-template-columns: auto 1fr auto;
  }

  .nav-cta {
    display: inline-flex;
  }

  .footer-layout {
    grid-template-columns: 1.35fr 1fr 1fr 1.1fr;
    gap: 2rem 4rem;
  }

  .footer-bottom-bar {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 1.5rem;
  }

  .footer-bottom-copy {
    justify-self: start;
    justify-content: flex-start;
    text-align: left;
  }

  .footer-site-links {
    justify-self: center;
  }

  .footer-bottom-credit {
    justify-self: end;
    justify-content: flex-end;
    text-align: right;
  }
}

@media (max-width: 539px) {
  .footer-cta-btn {
    width: 100%;
  }

  .footer-cta .btn {
    width: 100%;
    min-width: 0;
  }

  .footer-bottom-areas,
  .footer-bottom-copy,
  .footer-bottom-credit {
    font-size: 0.8125rem;
    line-height: 1.45;
    max-width: 22rem;
  }

  .footer-site-links a {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
  }
}

.services-section {
  padding: 80px 0;
}

.services-title {
  font-size: 42px;
  margin-bottom: 40px;
  font-weight: 700;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

/* CARD */
.service-card {
  position: relative;
  padding: 40px;
  background: linear-gradient(145deg, #0f1a2b, #0b1624);
  border: 1px solid rgba(255,255,255,0.08);
  /* border-radius: 14px; */
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  transition: all 0.35s ease;
}

/* Hover Lift */
.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(66, 133, 244, 0.5);
}

/* Glow Effect */
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(66,133,244,0.15), transparent 60%);
  opacity: 0;
  transition: 0.4s;
}

.service-card:hover::before {
  opacity: 1;
}

.card-content {
  position: relative;
  z-index: 2;
}

.icon {
  font-size: 28px;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.service-card p {
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

/* subtle overlay motion */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(66,133,244,0.08), transparent);
  opacity: 0;
  transition: 0.4s;
}

.service-card:hover .card-overlay {
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}
.mr-5{
  margin-right: 5px;
}
