/* ============================================================
   Schmied Constructions & Engineering — Main Stylesheet
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap");

/* --- Variables --- */
:root {
  --blue-950: #0a1628;
  --blue-900: #0f2744;
  --blue-800: #1a3a5c;
  --blue-700: #234a73;
  --gold: #c9a227;
  --gold-light: #d4b44a;
  --gold-dark: #b8922a;
  --gray-50: #f8f9fb;
  --gray-100: #f1f3f6;
  --gray-200: #e4e8ed;
  --gray-500: #6b7280;
  --gray-800: #2a2f36;
  --gray-900: #1a1d21;
  --white: #ffffff;
  --danger: #dc3545;

  --font-head: "Barlow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --wrap: 1200px;
  --header-h: 72px;
  --radius: 4px;
  --shadow: 0 4px 24px rgba(10, 22, 40, 0.08);
  --shadow-lg: 0 12px 40px rgba(10, 22, 40, 0.14);
  --ease: 0.25s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
body.menu-open { overflow: hidden; }

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

/* --- Layout --- */
.wrap {
  width: min(var(--wrap), 100% - 2rem);
  margin-inline: auto;
}
.section { padding: 5rem 0; }
.section--sm { padding: 3.5rem 0; }
.section--gray { background: var(--gray-50); }
.section--dark {
  background: linear-gradient(160deg, var(--blue-950), var(--blue-900));
  color: var(--white);
}
.section--dark h2, .section--dark h3, .section--dark p { color: inherit; }
.section--dark p { opacity: 0.8; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  color: var(--blue-950);
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
p { color: var(--gray-500); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
.lead { font-size: 1.125rem; line-height: 1.7; }

.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.75rem;
}
.eyebrow--light { color: var(--gold-light); }

.section-head { margin-bottom: 3rem; }
.section-head--center { text-align: center; }
.section-head--center .section-head__desc {
  margin-inline: auto;
}
.section-head__desc {
  max-width: 36rem;
  margin-top: 0.75rem;
  font-size: 1.05rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
  white-space: nowrap;
}
.btn--blue { background: var(--blue-800); color: var(--white); border-color: var(--blue-800); }
.btn--blue:hover { background: var(--blue-700); border-color: var(--blue-700); }
.btn--gold { background: var(--gold); color: var(--blue-950); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn--outline:hover { background: rgba(255,255,255,0.1); }
.btn--ghost {
  background: transparent;
  color: var(--blue-800);
  border-color: var(--gray-200);
}
.btn--ghost:hover { background: var(--gray-50); }

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: background var(--ease), box-shadow var(--ease);
}
.page-has-hero .site-header:not(.is-scrolled) {
  background: transparent;
}
.site-header.is-scrolled,
body:not(.page-has-hero) .site-header {
  background: rgba(255,255,255,0.97);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-header__logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}
.site-header__logo img { width: 44px; height: 44px; object-fit: contain; }
.site-header__brand { display: none; line-height: 1.2; }
.site-header__brand strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--blue-950);
}
.site-header__brand small {
  font-size: 0.65rem;
  color: var(--gray-500);
  font-weight: 500;
}
.page-has-hero .site-header:not(.is-scrolled) .site-header__brand strong,
.page-has-hero .site-header:not(.is-scrolled) .site-header__brand small { color: var(--white); }

.site-nav { display: none; gap: 0.25rem; }
.site-nav a {
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: color var(--ease);
}
.page-has-hero .site-header:not(.is-scrolled) .site-nav a { color: rgba(255,255,255,0.9); }
.site-header.is-scrolled .site-nav a,
body:not(.page-has-hero) .site-nav a { color: var(--gray-800); }
.site-nav a:hover, .site-nav a.is-active { color: var(--gold-dark); }
.page-has-hero .site-header:not(.is-scrolled) .site-nav a.is-active { color: var(--gold-light); }

.site-header__cta { display: none; align-items: center; gap: 1rem; }
.site-header__phone {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}
.page-has-hero .site-header:not(.is-scrolled) .site-header__phone { color: var(--white); }
.site-header.is-scrolled .site-header__phone,
body:not(.page-has-hero) .site-header__phone { color: var(--blue-800); }

.menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
}
.menu-btn span {
  display: block;
  height: 2px;
  background: var(--white);
  transition: transform var(--ease), opacity var(--ease);
  border-radius: 1px;
}
.site-header.is-scrolled .menu-btn span,
body:not(.page-has-hero) .menu-btn span { background: var(--blue-950); }
.menu-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.is-open span:nth-child(2) { opacity: 0; }
.menu-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: var(--blue-950);
  padding: 1.5rem;
  overflow-y: auto;
  z-index: 999;
}
.mobile-menu.is-open { display: block; }
.mobile-menu a {
  display: block;
  padding: 1rem 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu a.is-active { color: var(--gold-light); }
.mobile-menu .btn { width: 100%; margin-top: 1.5rem; }

/* --- Hero (home) --- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  background: var(--blue-950) center/cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(10,22,40,0.92) 0%, rgba(10,22,40,0.55) 100%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: var(--white); max-width: 14ch; margin-bottom: 1.25rem; }
.hero .lead { color: rgba(255,255,255,0.82); max-width: 32rem; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* --- Page hero (inner pages) --- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 4rem) 0 4rem;
  background: var(--blue-950) center/cover no-repeat;
  color: var(--white);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(10,22,40,0.93), rgba(10,22,40,0.7));
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 1rem; max-width: 18ch; }
.page-hero p { color: rgba(255,255,255,0.8); max-width: 40rem; font-size: 1.05rem; }

/* --- Stats --- */
.stats {
  margin-top: -3rem;
  position: relative;
  z-index: 2;
  padding-bottom: 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.stats__item {
  padding: 1.75rem 1rem;
  text-align: center;
  border-right: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}
.stats__item:nth-child(2n) { border-right: none; }
.stats__item:nth-last-child(-n+2) { border-bottom: none; }
.stats__item strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--blue-800);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stats__item span { font-size: 0.8125rem; color: var(--gray-500); }

/* --- Grid --- */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

.split { display: grid; gap: 2.5rem; align-items: center; }

/* --- Cards --- */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--ease), transform var(--ease);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card--project { display: block; }
.card--service { display: block; padding: 2rem; }
.card__img { aspect-ratio: 16/10; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card__img img { transform: scale(1.04); }
.card__body { padding: 1.5rem; }
.card__body h3 { margin: 0.5rem 0 0.35rem; color: var(--blue-950); }
.card__meta { font-size: 0.8125rem; color: var(--gray-500); margin-bottom: 0.5rem; }
.card__text { font-size: 0.875rem; line-height: 1.55; }
.card__bar {
  width: 40px; height: 3px;
  background: var(--gold);
  margin-bottom: 1rem;
}
.card__link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-800);
}
.card__link:hover { color: var(--gold-dark); }

.tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

/* --- Featured projects (home) --- */
.featured-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

/* --- Process --- */
.process-grid { display: grid; gap: 1.5rem; }
.process-item {
  text-align: center;
  padding: 1.5rem;
}
.process-item__num {
  width: 56px; height: 56px;
  margin: 0 auto 1rem;
  display: grid; place-items: center;
  background: var(--blue-800);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.125rem;
  border-radius: var(--radius);
}
.process-item h3 { margin-bottom: 0.5rem; }
.process-item p { font-size: 0.875rem; }

/* --- Testimonials --- */
.quote {
  padding: 2rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  height: 100%;
}
.quote p { font-size: 0.9375rem; line-height: 1.65; color: var(--gray-800); margin-bottom: 1.5rem; }
.quote footer strong { display: block; color: var(--blue-950); font-size: 0.9375rem; }
.quote footer span { font-size: 0.8125rem; color: var(--gray-500); }

/* --- Check list --- */
.checklist li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.9375rem;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold-light);
  font-weight: 700;
}

/* --- Why section image --- */
.media-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.media-img img { width: 100%; height: 100%; object-fit: cover; }

/* --- Certs strip --- */
.certs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  padding: 2rem 0;
}
.certs span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
}

/* --- CTA band --- */
.cta {
  background: var(--blue-800);
  padding: 4rem 0;
  text-align: center;
}
.cta h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta p { color: rgba(255,255,255,0.78); max-width: 32rem; margin: 0 auto 1.75rem; }
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}
.cta__phone { color: var(--white); font-weight: 600; font-size: 0.9375rem; }
.cta__phone:hover { color: var(--gold-light); }

/* --- Team / Values --- */
.team-card, .value-card {
  padding: 1.75rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  height: 100%;
}
.team-card__avatar {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--blue-800);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.team-card__role { color: var(--gold-dark); font-size: 0.8125rem; font-weight: 600; margin: 0.25rem 0 0.75rem; }
.team-card p { font-size: 0.875rem; }
.value-card__bar { width: 32px; height: 3px; background: var(--blue-800); margin-bottom: 1rem; }
.value-card h3 { margin-bottom: 0.5rem; }
.value-card p { font-size: 0.875rem; }

.badge {
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.9);
  font-size: 0.875rem;
  font-weight: 500;
}

/* --- Service rows --- */
.service-block {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--gray-200);
}
.service-block:last-child { border-bottom: none; }
.service-block__panel {
  background: var(--gray-50);
  padding: 2rem;
  border-radius: var(--radius);
}
.service-block__panel h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  margin-bottom: 1.25rem;
}
.steps { display: grid; gap: 1.25rem; }
.step { display: flex; gap: 1rem; }
.step__n {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--blue-800);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: var(--radius);
}
.step p { font-size: 0.8125rem; margin-top: 0.2rem; }
.bullet-list li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  color: var(--gray-500);
}
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

/* --- Filters --- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filter {
  padding: 0.625rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius);
  background: var(--gray-100);
  color: var(--gray-800);
  transition: background var(--ease), color var(--ease);
}
.filter.is-active, .filter:hover {
  background: var(--blue-800);
  color: var(--white);
}

/* --- Project detail --- */
.back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
}
.back:hover { color: var(--white); }
.proj-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
}
.proj-meta__label {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.2rem;
}
.proj-meta__value {
  display: block;
  font-weight: 600;
  color: var(--white);
  font-size: 0.875rem;
}
.proj-cover { width: 100%; max-height: 480px; object-fit: cover; }
.story h2 { font-size: 1.375rem; margin-bottom: 0.75rem; }
.story > div { margin-bottom: 2rem; }
.info-box {
  padding: 1.5rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}
.info-box h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  margin-bottom: 1rem;
}
.info-box dl { display: grid; gap: 0.75rem; }
.info-box dt { font-size: 0.6875rem; text-transform: uppercase; color: var(--gray-500); }
.info-box dd { font-weight: 600; color: var(--blue-950); font-size: 0.9375rem; }

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.gallery button {
  border: none; padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform var(--ease); }
.gallery button:hover img { transform: scale(1.03); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(10,22,40,0.96);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 85vh; object-fit: contain; }
.lightbox__btn {
  position: absolute;
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  padding: 0.5rem 1rem;
  opacity: 0.8;
}
.lightbox__btn:hover { opacity: 1; }
.lightbox__close { top: 1rem; right: 1rem; font-size: 2.5rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__count {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 0.8125rem;
}

/* --- Contact form --- */
.contact-layout { display: grid; gap: 3rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blue-950);
  margin-bottom: 0.375rem;
}
.form-control {
  width: 100%;
  padding: 0.75rem 0;
  border: none;
  border-bottom: 1px solid var(--gray-200);
  background: transparent;
  font-size: 0.9375rem;
  font-family: inherit;
  transition: border-color var(--ease);
}
select.form-control {
  appearance: none;
  padding-right: 1.5rem;
  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 fill='%2364748b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  cursor: pointer;
}
textarea.form-control {
  min-height: 6rem;
  resize: vertical;
  line-height: 1.5;
}
.form-control:focus { outline: none; border-bottom-color: var(--blue-800); }
.form-control.is-error { border-bottom-color: var(--danger); }
.form-error { display: block; color: var(--danger); font-size: 0.75rem; margin-top: 0.25rem; }
.form-row { display: grid; gap: 1.25rem; }
.form-success {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}
.contact-info li { margin-bottom: 1.25rem; }
.contact-info strong { display: block; color: var(--blue-950); margin-bottom: 0.2rem; font-size: 0.875rem; }
.contact-info span, .contact-info a { font-size: 0.9375rem; color: var(--gray-500); }
.contact-info a:hover { color: var(--blue-800); }
.map-wrap { margin-top: 1.5rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-200); }
.map-wrap iframe { width: 100%; height: 240px; border: 0; display: block; }

/* --- Footer --- */
.site-footer {
  background: var(--blue-950);
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 0;
}
.site-footer__grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-footer h4 {
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer a { color: rgba(255,255,255,0.72); font-size: 0.875rem; }
.site-footer a:hover { color: var(--white); }
.site-footer ul li { margin-bottom: 0.5rem; }
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.site-footer__brand img { width: 48px; height: 48px; }
.site-footer__brand strong { display: block; color: var(--white); font-family: var(--font-head); font-size: 1.125rem; }
.site-footer__brand span { font-size: 0.6875rem; color: rgba(255,255,255,0.5); }
.site-footer__bottom {
  padding: 1.25rem 0;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
}

/* --- Legal --- */
.legal { max-width: 42rem; }
.legal h2 { font-size: 1.25rem; margin: 2rem 0 0.75rem; }

/* --- Utilities --- */
.text-center { text-align: center; }
.flex-between {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
main { padding-top: 0; }
body:not(.page-has-hero) main { padding-top: var(--header-h); }

/* --- Responsive --- */
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .site-header__brand { display: block; }
  .site-nav { display: flex; }
  .site-header__cta { display: flex; }
  .menu-btn { display: none; }
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
  .stats__item { border-bottom: none; }
  .stats__item:not(:last-child) { border-right: 1px solid var(--gray-100); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: repeat(4, 1fr); }
  .service-block { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
  .service-block--alt .service-block__text { order: 2; }
  .service-block--alt .service-block__panel { order: 1; }
  .contact-layout { grid-template-columns: 1.4fr 1fr; }
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .proj-header { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: end; }
  .detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; }
}
