/* =========================================
   MDN Cabinets — Premium Stylesheet v2.0
   Warm dark theme with brass accents
   Differentiated layout & interactions
   ========================================= */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  color: #F2EDE8;
  background-color: #110F0D;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Natural wood-grain texture overlay on body */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(17,15,13,0.4), rgba(17,15,13,0.4)),
    url('../images/wood-texture.png') center/cover no-repeat;
  opacity: 0.05;
}

/* Ensure all content sits above the texture */
body > *:not(script):not(style) {
  position: relative;
  z-index: 1;
}

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

ul, ol {
  list-style: none;
}

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

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

::selection {
  background: #C49A6C;
  color: #110F0D;
}


/* --- CSS Variables --- */
:root {
  --bg: #110F0D;
  --bg-surface: #1C1916;
  --bg-elevated: #252118;
  --white: #F2EDE8;
  --accent: #C49A6C;
  --accent-light: #D4B08C;
  --accent-dim: rgba(196, 154, 108, 0.12);
  --accent-glow: rgba(196, 154, 108, 0.35);
  --accent-glow-strong: rgba(196, 154, 108, 0.6);
  --gray-dark: #3A3632;
  --gray-mid: #55504A;
  --gray-light: #8A8480;
  --gray-muted: #C0BAB4;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
  --topbar-height: 36px;
  --nav-height: 72px;
  --header-height: calc(var(--topbar-height) + var(--nav-height));
  --pad: clamp(24px, 5vw, 80px);
}


/* =========================================
   TYPOGRAPHY
   ========================================= */
.h-display {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6.5vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
  font-weight: 700;
}

.h3 {
  font-family: var(--font-body);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.3;
  font-weight: 600;
}

.body-lg {
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  line-height: 1.7;
  font-weight: 400;
}

.body-sm {
  font-size: 0.875rem;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.accent-text {
  color: var(--accent);
}

.italic {
  font-style: italic;
}


/* =========================================
   LAYOUT
   ========================================= */
.container {
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.section {
  padding: clamp(80px, 12vh, 160px) 0;
  position: relative;
}

.section--tight {
  padding: clamp(40px, 6vh, 80px) 0;
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--gray-dark);
}

.divider--animated {
  transform: scaleX(0);
  transform-origin: left;
}


/* =========================================
   TOP BAR (Differentiator: contractor-style)
   ========================================= */
.topbar {
  width: 100%;
  height: var(--topbar-height);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--gray-dark);
  display: flex;
  align-items: center;
  padding: 0 var(--pad);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1001;
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--gray-light);
  letter-spacing: 0.02em;
}

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

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

.topbar a {
  color: var(--gray-light);
  transition: color 0.3s ease;
}

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

.topbar__divider {
  width: 1px;
  height: 12px;
  background: var(--gray-dark);
}


/* =========================================
   NAVIGATION
   ========================================= */
.nav {
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 var(--pad);
  transition: background 0.4s ease, transform 0.4s var(--ease-out-expo);
}

.nav.scrolled {
  background: rgba(17, 15, 13, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(196, 154, 108, 0.08);
}

.nav.hidden {
  transform: translateY(-100%);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
}

.nav__logo {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  transition: opacity 0.3s ease;
}

.nav__logo:hover {
  opacity: 0.8;
}

.nav__logo-main {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.nav__logo-sub {
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-top: 2px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease-out-expo);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__link:hover,
.nav__link.active {
  color: var(--accent);
}

.nav__cta {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 24px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  color: var(--accent);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s var(--ease-out-expo);
  z-index: -1;
}

.nav__cta:hover::before {
  transform: scaleY(1);
  transform-origin: top;
}

.nav__cta:hover {
  color: var(--bg);
}

/* Mobile Nav */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 28px;
  cursor: pointer;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--white);
  transition: all 0.3s ease;
}

.nav__toggle.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav__toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.nav__mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  transition: right 0.5s var(--ease-out-expo);
}

.nav__mobile-menu.open {
  right: 0;
}

.nav__mobile-menu a {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  transition: color 0.3s ease;
}

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


/* =========================================
   BUTTONS (bottom-to-top fill, rounded)
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 36px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  color: var(--accent);
  background: transparent;
  position: relative;
  overflow: hidden;
  transition: color 0.4s ease;
  cursor: pointer;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s var(--ease-out-expo);
  z-index: -1;
}

.btn:hover::before {
  transform: scaleY(1);
  transform-origin: top;
}

.btn:hover {
  color: var(--bg);
}

.btn--filled {
  background: var(--accent);
  color: var(--bg);
}

.btn--filled::before {
  background: var(--accent-light);
}

.btn .btn-arrow {
  transition: transform 0.3s ease;
}

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

/* Ghost / text-link style button */
.btn--ghost {
  border-color: transparent;
  color: var(--gray-muted);
  padding: 16px 12px;
}

.btn--ghost::before {
  display: none;
}

.btn--ghost:hover {
  color: var(--accent);
  border-color: transparent;
}


/* =========================================
   REVEAL ANIMATIONS
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  will-change: transform, opacity;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-line {
  display: block;
  overflow: hidden;
}

.reveal-line__inner {
  display: block;
  transform: translateY(110%);
}

.reveal-line.visible .reveal-line__inner {
  transform: translateY(0);
}


/* =========================================
   SECTION HEADERS
   ========================================= */
.section-header {
  margin-bottom: clamp(40px, 6vh, 80px);
}

.section-header .label {
  display: block;
  margin-bottom: 12px;
}

/* Split header: label+title left, button right */
.section-header--split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}

.page-header {
  padding-top: calc(var(--header-height) + clamp(60px, 10vh, 120px));
  padding-bottom: 0;
  text-align: left;
}

.page-header__desc {
  color: var(--gray-muted);
  max-width: 580px;
  margin-top: 20px;
}


/* =========================================
   HERO — Split Screen Layout
   ========================================= */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-height);
  background: var(--bg);
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(40px, 6vh, 80px) 0;
  padding-left: var(--pad);
  padding-right: clamp(32px, 4vw, 60px);
  max-width: 720px;
  margin-left: auto;
  text-align: left;
}

.hero__label {
  margin-bottom: clamp(16px, 2vh, 24px);
}

.hero__title {
  margin-bottom: clamp(20px, 3vh, 36px);
}

.hero__desc {
  color: var(--gray-muted);
  max-width: 540px;
  margin-bottom: clamp(28px, 4vh, 48px);
}

.hero__actions-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__image {
  position: relative;
  height: 100%;
  min-height: 500px;
  overflow: hidden;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.hero__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg) 0%, rgba(17,15,13,0.2) 30%, transparent 100%);
  z-index: 1;
}

/* Visit Us — centered link between buttons and scroll bar */
.hero__visit-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-muted);
  margin-top: 24px;
  transition: color 0.3s ease;
}

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

.hero__visit-link .btn-arrow {
  transition: transform 0.3s ease;
}

.hero__visit-link:hover .btn-arrow {
  transform: translateY(3px);
}

/* Horizontal scroll bar under hero actions */
.hero__scroll-bar {
  display: flex;
  justify-content: center;
  margin-top: 32px;
  width: 100%;
}

.hero__scroll-bar-line {
  display: block;
  width: clamp(60px, 10vw, 120px);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: scrollBarPulse 2.5s ease-in-out infinite;
  border-radius: 2px;
}

@keyframes scrollBarPulse {
  0%, 100% { opacity: 0.2; transform: scaleX(0.8); }
  50% { opacity: 0.7; transform: scaleX(1); }
}


/* =========================================
   SECTORS STRIP (Homepage)
   ========================================= */
.sectors-strip {
  padding: clamp(32px, 4vh, 48px) 0;
  border-top: 1px solid var(--gray-dark);
  border-bottom: 1px solid var(--gray-dark);
}

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

.sector-item {
  text-align: center;
  padding: clamp(16px, 2vh, 28px) 16px;
  position: relative;
  transition: background 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.sector-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--gray-dark);
}

.sector-item:hover {
  background: var(--accent-dim);
}

.sector-item__name {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-muted);
  transition: color 0.3s ease;
}

.sector-item:hover .sector-item__name {
  color: var(--accent);
}

.sector-item__label {
  font-size: 0.6875rem;
  color: var(--gray-light);
  font-weight: 400;
}


/* =========================================
   FEATURED PROJECTS (Homepage)
   ========================================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3vw, 40px);
}

.project-card {
  display: block;
  transition: transform 0.6s var(--ease-out-expo);
}

.project-card:hover {
  transform: translateY(-6px);
}

.project-card__visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: 20px;
  border-radius: 3px;
  background: var(--bg-surface);
}

.project-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out-expo);
}

.project-card:hover .project-card__visual img {
  transform: scale(1.05);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 15, 13, 0.7) 0%, transparent 50%);
  z-index: 1;
}

.project-card__sector {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.7;
}

.project-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 6px 0;
}

.project-card__desc {
  font-size: 0.875rem;
  color: var(--gray-light);
  line-height: 1.5;
}


/* =========================================
   SERVICES LIST (Homepage)
   ========================================= */
.services-list {
  border-top: 1px solid var(--gray-dark);
}

.service-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(24px, 3vh, 40px) 0;
  border-bottom: 1px solid var(--gray-dark);
  transition: padding-left 0.4s var(--ease-out-expo), background 0.4s ease;
  cursor: pointer;
}

.service-row:hover {
  padding-left: 16px;
}

.service-row__left {
  display: flex;
  align-items: baseline;
  gap: clamp(16px, 3vw, 40px);
}

.service-row__num {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--accent);
  opacity: 0.5;
}

.service-row__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 700;
  transition: color 0.3s ease;
}

.service-row:hover .service-row__title {
  color: var(--accent);
}

.service-row__arrow {
  font-size: 1.5rem;
  color: var(--gray-mid);
  transition: color 0.3s ease, transform 0.3s ease;
}

.service-row:hover .service-row__arrow {
  color: var(--accent);
  transform: translateX(4px);
}


/* =========================================
   STATS — Horizontal Inline Bar
   ========================================= */
.stats-bar {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--gray-dark);
  border-radius: 3px;
  overflow: hidden;
}

.stat {
  flex: 1;
  padding: clamp(24px, 3vh, 36px) clamp(16px, 2vw, 32px);
  text-align: center;
}

.stat:not(:last-child) {
  border-right: 1px solid var(--gray-dark);
}

.stat__number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.stat__label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-light);
  letter-spacing: 0.04em;
}


/* =========================================
   TESTIMONIAL — Left-aligned blockquote
   ========================================= */
.testimonial-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--gray-dark);
  border-bottom: 1px solid var(--gray-dark);
}

.testimonial {
  max-width: 800px;
  position: relative;
  padding-left: 40px;
}

.testimonial::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}

.testimonial__mark {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 0.8;
  color: var(--accent);
  opacity: 0.25;
  display: block;
  margin-bottom: 8px;
}

.testimonial__quote {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.5vw, 2rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  color: var(--white);
  margin-bottom: 24px;
}

.testimonial__author {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.testimonial__role {
  font-size: 0.8125rem;
  color: var(--gray-light);
  margin-top: 4px;
}

/* [PLACEHOLDER] marker style */
.placeholder-note {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 2px 8px;
  border-radius: 2px;
  margin-left: 8px;
  vertical-align: super;
}


/* =========================================
   CTA SECTION
   ========================================= */
.cta-section {
  text-align: center;
}

.cta-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-section .reveal {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-section p {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}


/* =========================================
   ABOUT PAGE
   ========================================= */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.story-grid__left .label {
  display: block;
  margin-bottom: 12px;
}

.story-content p {
  color: var(--gray-muted);
  margin-bottom: 20px;
}

.story-content p:last-child {
  margin-bottom: 0;
}

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

.value-card {
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--gray-dark);
  border-radius: 3px;
  transition: border-color 0.3s ease, transform 0.4s var(--ease-out-expo), box-shadow 0.4s ease;
  background: var(--bg-surface);
  opacity: 0;
  transform: translateY(30px);
}

.value-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(196, 154, 108, 0.05);
}

.value-card__icon {
  font-size: 1.5rem;
  margin-bottom: 16px;
  display: block;
  color: var(--accent);
}

.value-card h3 {
  margin-bottom: 10px;
}

.value-card p {
  color: var(--gray-light);
}

/* Materials Grid */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.material-card {
  text-align: center;
  padding: clamp(24px, 3vw, 36px) 16px;
  border: 1px solid var(--gray-dark);
  border-radius: 3px;
  transition: border-color 0.3s ease, background 0.3s ease;
  background: var(--bg-surface);
}

.material-card:hover {
  border-color: var(--accent);
  background: var(--bg-elevated);
}

.material-card__icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

.material-card__name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.material-card__desc {
  font-size: 0.8125rem;
  color: var(--gray-light);
}

/* Certifications */
.certs-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.cert-badge {
  padding: 16px 24px;
  border: 1px solid var(--gray-dark);
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.3s ease;
}

.cert-badge:hover {
  border-color: var(--accent);
}

.cert-badge__icon {
  font-size: 1.5rem;
  color: var(--accent);
}

.cert-badge__text {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}


/* =========================================
   SERVICES PAGE
   ========================================= */
.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--gray-dark);
  border-radius: 3px;
  background: var(--bg-surface);
  transition: border-color 0.3s ease, transform 0.4s var(--ease-out-expo);
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.service-card__num {
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--accent);
  opacity: 0.5;
  display: block;
  margin-bottom: 12px;
}

.service-card h3 {
  margin-bottom: 10px;
}

.service-card p {
  color: var(--gray-light);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.service-card__list {
  margin-top: 16px;
}

.service-card__list li {
  font-size: 0.875rem;
  color: var(--gray-light);
  padding: 6px 0;
  padding-left: 16px;
  position: relative;
}

.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.8;
}

/* Sectors Served */
.sectors-grid--services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.sector-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: 3px;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  transition: transform 0.4s var(--ease-out-expo);
}

.sector-card:hover {
  transform: translateY(-4px);
}

.sector-card__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.sector-card__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

.sector-card:hover .sector-card__bg img {
  transform: scale(1.08);
}

.sector-card__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 15, 13, 0.9) 0%, rgba(17, 15, 13, 0.3) 100%);
}

.sector-card__info {
  position: relative;
  z-index: 1;
}

.sector-card__name {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 700;
  margin-bottom: 4px;
}

.sector-card__desc {
  font-size: 0.8125rem;
  color: var(--gray-muted);
}


/* =========================================
   PORTFOLIO PAGE
   ========================================= */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: clamp(32px, 4vh, 56px);
}

.filter-btn {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 20px;
  border: 1px solid var(--gray-dark);
  border-radius: 3px;
  color: var(--gray-light);
  background: transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.portfolio-card {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 3px;
  background: var(--bg-surface);
  transition: transform 0.4s var(--ease-out-expo);
  cursor: pointer;
}

.portfolio-card:hover {
  transform: translateY(-4px);
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

.portfolio-card:hover img {
  transform: scale(1.06);
}

.portfolio-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(17, 15, 13, 0.9) 0%, transparent 100%);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s var(--ease-out-expo);
  z-index: 1;
}

.portfolio-card:hover .portfolio-card__info {
  transform: translateY(0);
  opacity: 1;
}

.portfolio-card__name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.portfolio-card__sector {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.portfolio-card.hidden {
  display: none;
}


/* =========================================
   PROCESS PAGE
   ========================================= */
.process-timeline {
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 100%;
  background: var(--gray-dark);
}

.process-step {
  opacity: 0;
  transform: translateY(40px);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: clamp(24px, 3vw, 48px);
  padding: clamp(40px, 5vh, 64px) 0;
  position: relative;
}

.process-step:not(:last-child) {
  border-bottom: 1px solid rgba(58, 54, 50, 0.5);
}

.process-step__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--accent);
  position: relative;
}

.process-step__num::before {
  content: '';
  position: absolute;
  left: -40px;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg);
  z-index: 1;
}

.process-step__content h3 {
  margin-bottom: 12px;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

.process-step__content p {
  color: var(--gray-muted);
  max-width: 560px;
  line-height: 1.7;
}

.process-step__details {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.process-step__tag {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid var(--gray-dark);
  border-radius: 3px;
  color: var(--gray-light);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.process-step:hover .process-step__tag {
  border-color: rgba(196, 154, 108, 0.3);
  color: var(--gray-muted);
}

/* FAQ */
.faq-list {
  max-width: 800px;
}

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

.faq-item__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(16px, 2vh, 24px) 0;
  cursor: pointer;
  transition: color 0.3s ease;
  gap: 16px;
}

.faq-item__header:hover {
  color: var(--accent);
}

.faq-item__question {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 700;
}

.faq-item__toggle {
  font-size: 1.25rem;
  color: var(--gray-light);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-item__toggle {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0;
}

.faq-item.open .faq-item__answer {
  max-height: 300px;
  padding-bottom: 20px;
}

.faq-item__answer p {
  font-size: 0.9375rem;
  color: var(--gray-light);
  line-height: 1.7;
}


/* =========================================
   CONTACT PAGE
   ========================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(60px, 8vw, 120px);
  align-items: start;
}

.form-group {
  margin-bottom: 28px;
}

.form-group .label {
  display: block;
  margin-bottom: 8px;
  color: var(--gray-muted);
}

input,
textarea,
select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--white);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--gray-dark);
  padding: 12px 0;
  outline: none;
  transition: border-color 0.3s ease;
  border-radius: 0;
  -webkit-appearance: none;
}

input::placeholder,
textarea::placeholder {
  color: var(--gray-light);
  opacity: 0.5;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
}

select {
  cursor: pointer;
  background-color: var(--bg-surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23C49A6C' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding: 14px 40px 14px 16px;
  border: 1px solid var(--gray-dark);
  border-radius: 3px;
}

select:hover {
  border-color: var(--gray-mid);
}

select option {
  background: var(--bg-surface);
  color: var(--white);
  padding: 8px;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: sticky;
  top: calc(var(--header-height) + 40px);
}

.contact-info__block .label {
  display: block;
  margin-bottom: 6px;
}

.contact-info__block a {
  transition: color 0.3s ease;
}

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

.contact-map {
  width: 100%;
  aspect-ratio: 16/10;
  border: 1px solid var(--gray-dark);
  border-radius: 3px;
  margin-top: 16px;
  filter: grayscale(0.8) brightness(0.6) contrast(1.1);
  transition: filter 0.4s ease;
}

.contact-map:hover {
  filter: grayscale(0.4) brightness(0.8) contrast(1.05);
}


/* =========================================
   VISIT US SECTION (Homepage)
   ========================================= */
.visit-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}

.visit-map {
  aspect-ratio: 16 / 11;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--gray-dark);
  filter: grayscale(0.7) brightness(0.7) contrast(1.1);
  transition: filter 0.5s ease;
}

.visit-map:hover {
  filter: grayscale(0.3) brightness(0.85) contrast(1.05);
}

.visit-map iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.visit-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.visit-info__block a {
  transition: color 0.3s ease;
}

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


/* =========================================
   FOOTER
   ========================================= */
.footer {
  padding: clamp(60px, 8vh, 100px) 0 clamp(30px, 4vh, 50px);
  border-top: 1px solid var(--gray-dark);
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  margin-bottom: clamp(60px, 8vh, 100px);
  flex-wrap: wrap;
}

.footer__brand {
  max-width: 420px;
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.footer__brand-sub {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gray-light);
  display: block;
  margin-bottom: 12px;
}

.footer__tagline {
  color: var(--gray-light);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.footer__columns {
  display: flex;
  gap: clamp(40px, 6vw, 100px);
  flex-wrap: wrap;
}

.footer__col-title {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.footer__col a,
.footer__col p {
  display: block;
  font-size: 0.9375rem;
  color: var(--gray-light);
  padding: 4px 0;
}

.footer__col a {
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer__col a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--gray-dark);
  flex-wrap: wrap;
  gap: 16px;
}

.footer__copyright {
  font-size: 0.8125rem;
  color: var(--gray-light);
}

.footer__bottom-links {
  display: flex;
  gap: 24px;
}

.footer__bottom-links a {
  font-size: 0.8125rem;
  color: var(--gray-light);
  transition: color 0.3s ease;
}

.footer__bottom-links a:hover {
  color: var(--white);
}


/* =========================================
   PAY INVOICE PAGE
   ========================================= */
.pay-form-wrapper {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}

.pay-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pay-amount-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.pay-currency {
  position: absolute;
  left: 20px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
  pointer-events: none;
}

.pay-amount-input {
  padding-left: 44px !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
}

.pay-submit {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

.pay-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.pay-note {
  font-size: 0.75rem;
  color: var(--gray-light);
  text-align: center;
  line-height: 1.5;
}

.pay-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--gray-dark);
  border-radius: 3px;
}

.pay-sidebar__block a {
  transition: color 0.3s ease;
}

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

.pay-status-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 auto;
}

.pay-status-icon--success {
  background: rgba(76, 175, 80, 0.15);
  color: #4CAF50;
  border: 2px solid rgba(76, 175, 80, 0.4);
}

.pay-status-icon--cancelled {
  background: rgba(244, 67, 54, 0.1);
  color: #F44336;
  border: 2px solid rgba(244, 67, 54, 0.3);
}


/* =========================================
   QUOTE FORM PAGE
   ========================================= */
.quote-form-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quote-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.quote-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--gray-dark);
  border-radius: 3px;
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.quote-sidebar__block a {
  transition: color 0.3s ease;
}

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


/* =========================================
   SECTION DIVIDER — Decorative separator
   ========================================= */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: clamp(24px, 4vh, 48px) 0;
}

.section-divider__line {
  display: block;
  width: clamp(40px, 8vw, 100px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}

.section-divider__icon {
  font-size: 10px;
  color: var(--accent);
  opacity: 0.7;
  line-height: 1;
}


/* =========================================
   CAREERS PAGE
   ========================================= */
.careers-intro {
  max-width: 720px;
  margin-bottom: clamp(40px, 6vh, 80px);
}

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

.position-card {
  padding: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--gray-dark);
  border-radius: 3px;
  transition: border-color 0.3s ease;
}

.position-card:hover {
  border-color: var(--accent);
}

.position-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.position-card__desc {
  color: var(--gray-muted);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.position-card__type {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 12px;
  border: 1px solid var(--accent-dim);
  border-radius: 3px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.benefit-item {
  padding: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--gray-dark);
  border-radius: 3px;
}

.benefit-item__title {
  font-weight: 600;
  margin-bottom: 8px;
}

.benefit-item__desc {
  font-size: 0.875rem;
  color: var(--gray-muted);
  line-height: 1.5;
}


/* =========================================
   TEAM SECTION (About page)
   ========================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 800px;
}

.team-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--gray-dark);
  border-radius: 3px;
}

.team-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.team-card__name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-card__role {
  font-size: 0.8125rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 12px;
}

.team-card__desc {
  font-size: 0.875rem;
  color: var(--gray-muted);
  line-height: 1.6;
}


/* =========================================
   BACK TO TOP BUTTON
   ========================================= */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--gray-dark);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

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

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


/* =========================================
   FOOTER SOCIAL LINKS
   ========================================= */
.footer__social {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.footer__social a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-light);
  transition: color 0.3s ease;
  letter-spacing: 0.04em;
}

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

.topbar__social {
  font-weight: 500;
  transition: color 0.3s ease;
}

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


/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  body::before {
    background: url('../images/wood-texture.png') center/cover no-repeat;
    opacity: 0.10;
  }

  .hero {
    grid-template-columns: 1fr;
    position: relative;
    background: url('../images/sushi-mon-hires.jpg') center/cover no-repeat;
  }

  .hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(17,15,13,0.92) 0%,
      rgba(17,15,13,0.82) 50%,
      rgba(17,15,13,0.90) 100%
    );
    z-index: 0;
  }

  .hero__content {
    max-width: 100%;
    margin-left: 0;
    padding-right: var(--pad);
    position: relative;
    z-index: 1;
    align-items: center;
    text-align: center;
  }

  .hero__desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__image {
    display: none;
  }

  .hero__actions-wrap {
    width: 100%;
    max-width: 380px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }

  .hero__actions .btn {
    justify-content: center;
    text-align: center;
  }

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

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

@media (max-width: 768px) {
  .topbar { display: none; }
  .nav { top: 0; }
  :root { --header-height: var(--nav-height); }

  .pay-form-wrapper,
  .quote-form-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .positions-grid {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .quote-sidebar {
    position: static;
  }

  .nav__links { display: none; }
  .nav__toggle { display: flex; }

  .hero__content {
    max-width: 100%;
    padding-top: 20px;
  }

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

  .sector-item:nth-child(2)::after {
    display: none;
  }

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

  .stats-bar {
    flex-wrap: wrap;
  }

  .stat {
    flex: 1 1 45%;
  }

  .stat:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--gray-dark);
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

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

  .service-detail-grid {
    grid-template-columns: 1fr;
  }

  .sectors-grid--services {
    grid-template-columns: 1fr;
  }

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

  .process-step {
    grid-template-columns: 1fr;
    padding-left: 40px;
  }

  .process-step__num::before {
    left: -40px;
  }

  .process-timeline::before {
    left: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-info {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 32px;
  }

  .contact-info__block {
    min-width: 200px;
    flex: 1;
  }

  .visit-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .visit-map {
    aspect-ratio: 16 / 10;
  }

  .footer__top {
    flex-direction: column;
    gap: 40px;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .testimonial {
    padding-left: 24px;
  }

  /* Stack section header split on mobile */
  .section-header--split {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  /* Better CTA section spacing on mobile */
  .cta-section p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  :root {
    --pad: 20px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .sectors-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat {
    flex: 1 1 100%;
  }

  .materials-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    gap: 6px;
  }

  .filter-btn {
    padding: 8px 14px;
    font-size: 0.6875rem;
  }

  .process-step {
    padding-left: 32px;
  }

  .process-step__num::before {
    left: -32px;
    width: 10px;
    height: 10px;
  }
}
