:root {
  --ink: #1e2321;
  --muted: #5d675f;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --line: #dad6ca;
  --cement: #ece9e0;
  --signal: #f1bd32;
  --signal-dark: #8a6410;
  --green: #2f6b4f;
  --terra: #a95738;
  --shadow: 0 18px 50px rgba(30, 35, 33, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 16px;
  background: rgba(251, 250, 246, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

.brand-logo {
  display: block;
  width: 86px;
  height: 42px;
  flex: 0 0 auto;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.main-nav {
  grid-column: 1 / -1;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.main-nav a {
  flex: 0 0 auto;
  padding: 8px 9px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.main-nav a:hover {
  color: var(--green);
}

.call-button {
  justify-self: end;
  display: grid;
  min-width: 144px;
  padding: 8px 10px;
  color: #111;
  background: var(--signal);
  border: 2px solid #111;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.call-button strong {
  display: block;
  font-size: 0.76rem;
}

.hero {
  position: relative;
  min-height: 86svh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  background-image: url("assets/chantiers/chantier-01.jpeg");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(16, 18, 17, 0.86), rgba(16, 18, 17, 0.45) 56%, rgba(16, 18, 17, 0.16)),
    linear-gradient(0deg, rgba(16, 18, 17, 0.68), transparent 46%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  padding: 88px 18px 44px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--signal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.35rem, 12vw, 4.9rem);
}

h2 {
  font-size: clamp(1.85rem, 7vw, 3.1rem);
}

h3 {
  font-size: 1.2rem;
}

.hero-content > p {
  max-width: 630px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.primary-action,
.secondary-action,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 16px;
  border: 2px solid transparent;
  font-weight: 900;
}

.primary-action {
  color: #111;
  background: var(--signal);
  border-color: var(--signal);
}

.primary-action:hover {
  background: #ffd45e;
}

.secondary-action {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.72);
}

.secondary-action:hover {
  background: rgba(255, 255, 255, 0.14);
}

.trust-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
}

.trust-strip div {
  padding: 18px;
  background: var(--surface);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip span {
  margin-top: 4px;
  color: var(--muted);
}

.section {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 58px 18px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.section-heading p:not(.eyebrow),
.split p {
  color: var(--muted);
  font-size: 1.02rem;
}

.services-grid,
.gallery-grid,
.photo-grid,
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.service-card,
.project-card,
.contact-card,
.post-preview {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-card {
  min-height: 220px;
  padding: 22px;
}

.service-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 18px;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.service-card p,
.project-copy p,
.post-preview p,
.contact-card p {
  color: var(--muted);
}

.contrast {
  width: 100%;
  max-width: none;
  padding-right: max(18px, calc((100vw - 1180px) / 2));
  padding-left: max(18px, calc((100vw - 1180px) / 2));
  background: var(--cement);
}

.project-card {
  overflow: hidden;
  box-shadow: var(--shadow);
}

.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--cement);
}

.project-copy {
  padding: 18px;
}

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

.text-link {
  min-height: 0;
  padding: 0 0 4px;
  color: var(--green);
  border-bottom: 2px solid var(--signal);
}

.social-panel {
  display: grid;
  gap: 12px;
  align-content: start;
}

.post-preview {
  padding: 20px;
}

.post-preview span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--terra);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-section {
  padding-top: 48px;
}

.quote-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-content: start;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #bfb8aa;
  border-radius: 6px;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(241, 189, 50, 0.45);
  border-color: var(--signal-dark);
}

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

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.contact-card {
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(241, 189, 50, 0.16), transparent 48%),
    #fff;
}

.phone-number {
  display: block;
  margin: 12px 0;
  color: var(--green);
  font-size: clamp(1.55rem, 8vw, 2.35rem);
  font-weight: 900;
  line-height: 1;
}

dl {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

dd {
  margin: 2px 0 0;
  font-weight: 800;
}

.site-footer {
  display: grid;
  gap: 8px;
  padding: 28px 18px 90px;
  color: #fff;
  background: #1e2321;
}

.site-footer span {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a {
  color: var(--signal);
  font-weight: 900;
}

@media (min-width: 700px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    padding: 12px 24px;
  }

  .main-nav {
    grid-column: auto;
    justify-content: center;
  }

  .hero-content {
    padding: 110px 32px 64px;
  }

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

  .section {
    padding: 76px 28px;
  }

  .contrast {
    padding-right: max(28px, calc((100vw - 1180px) / 2));
    padding-left: max(28px, calc((100vw - 1180px) / 2));
  }

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

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

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

  .split {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.75fr);
    align-items: start;
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
    align-items: start;
  }

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

@media (min-width: 1040px) {
  .services-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .hero-content {
    margin-left: max(0px, calc((100vw - 1180px) / 2));
  }
}

@media (max-width: 420px) {
  .call-button {
    min-width: 122px;
    padding: 7px;
  }

  .call-button strong {
    font-size: 0.65rem;
  }

  .hero-actions a {
    width: 100%;
  }
}
