:root {
  --ink: #171717;
  --body: #45413b;
  --paper: #f7f4ee;
  --panel: #ffffff;
  --muted: #ebe6dc;
  --line: #d8d0c3;
  --steel: #52646a;
  --orange: #d95f24;
  --orange-dark: #9f3c16;
  --green: #4d6b57;
  --shadow: 0 20px 60px rgba(23, 23, 23, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: #fff;
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(247, 244, 238, 0.96);
  box-shadow: 0 8px 30px rgba(23, 23, 23, 0.1);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: min(430px, 48vw);
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(23, 23, 23, 0.12);
}

.site-header.is-scrolled .brand-logo,
.site-header.is-open .brand-logo {
  border-color: rgba(23, 23, 23, 0.14);
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

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

.brand-text {
  min-width: 0;
}

.brand small {
  color: currentColor;
  opacity: 0.76;
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  font-size: 0.93rem;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 6px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 6px;
  color: inherit;
  background: transparent;
  padding: 11px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: min(760px, 86svh);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  padding: 132px clamp(18px, 6vw, 80px) 38px;
}

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

.hero-media {
  background-image: url("assets/hero-rebar.png");
  background-image: image-set(
    url("assets/hero-rebar.webp") type("image/webp"),
    url("assets/hero-rebar.png") type("image/png")
  );
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.78) 0%, rgba(10, 10, 10, 0.52) 42%, rgba(10, 10, 10, 0.08) 100%),
    linear-gradient(0deg, rgba(10, 10, 10, 0.62) 0%, rgba(10, 10, 10, 0.02) 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding-bottom: 34px;
}

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

.hero .eyebrow {
  color: #ffb088;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  max-width: 980px;
  font-size: clamp(2.6rem, 5.8vw, 5.25rem);
  letter-spacing: 0;
}

h2 {
  max-width: 820px;
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: 0;
}

h3 {
  font-size: 1.18rem;
}

.hero-lead {
  max-width: 720px;
  margin: 22px 0 0;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 900;
  line-height: 1.15;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  color: #fff;
  background: var(--orange);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--orange-dark);
}

.button.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

.hero-stats {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 980px;
  border-top: 1px solid rgba(255, 255, 255, 0.32);
}

.hero-stats div {
  padding: 20px 24px 0 0;
}

.hero-stats strong {
  display: block;
  font-size: 1.2rem;
}

.hero-stats span {
  display: block;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.93rem;
}

.section {
  padding: clamp(72px, 10vw, 126px) clamp(18px, 5vw, 72px);
  scroll-margin-top: 88px;
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
}

.split p:not(.eyebrow),
.quality p,
.work-section p,
.contact-section p {
  margin: 0;
  color: var(--body);
  font-size: 1.08rem;
}

.muted {
  background: var(--muted);
}

.section-heading {
  display: block;
  max-width: 900px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading .eyebrow {
  margin-bottom: 14px;
}

.section-heading h2 {
  margin-inline: auto;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 278px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(23, 23, 23, 0.05);
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 42px;
  border-radius: 6px;
  color: #fff;
  background: var(--steel);
  font-weight: 900;
  font-size: 0.86rem;
}

.service-card h3 {
  margin: 0 0 12px;
}

.service-card h3 a {
  text-decoration: none;
}

.service-card h3 a:hover,
.service-card h3 a:focus-visible {
  color: var(--orange);
}

.service-card p,
.timeline p {
  margin: 0;
  color: var(--body);
}

.service-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.service-links a {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font-size: 0.9rem;
  font-weight: 900;
}

.service-links a:hover,
.service-links a:focus-visible {
  color: #fff;
  border-color: var(--orange);
  background: var(--orange);
}

.process {
  display: block;
}

.timeline {
  display: grid;
  gap: 18px;
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.timeline li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.timeline span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #fff;
  background: var(--orange);
  font-weight: 900;
}

.timeline h3 {
  margin: 4px 0 8px;
}

.quality {
  padding: clamp(72px, 10vw, 124px) clamp(18px, 5vw, 72px);
  color: #fff;
  background: linear-gradient(135deg, #171717 0%, #34312b 58%, #4d3c31 100%);
}

.quality .eyebrow {
  color: #ffb088;
}

.quality-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: clamp(32px, 6vw, 78px);
  align-items: center;
}

.quality p {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.72);
}

.region-section {
  background: #fdfbf6;
}

.region-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(34px, 7vw, 90px);
  align-items: start;
}

.region-content p {
  margin: 0;
  color: var(--body);
  font-size: 1.08rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font-size: 0.9rem;
  font-weight: 900;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 18px 18px 18px 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 23px;
  width: 14px;
  height: 8px;
  border-left: 3px solid #ffb088;
  border-bottom: 3px solid #ffb088;
  transform: rotate(-45deg);
}

.work-section {
  background: #fdfbf6;
}

.work-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(34px, 7vw, 90px);
  align-items: start;
}

.work-section h2 {
  margin-bottom: 20px;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.document-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(23, 23, 23, 0.05);
}

.document-card h3 {
  margin-bottom: 16px;
}

.document-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 18px;
  color: var(--body);
}

.application-form {
  position: sticky;
  top: 96px;
}

.faq-section {
  background: var(--muted);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.faq-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(23, 23, 23, 0.05);
}

.faq-grid h3 {
  margin-bottom: 12px;
}

.faq-grid p {
  margin: 0;
  color: var(--body);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: start;
}

.contact-section h2 {
  margin-bottom: 20px;
}

.contact-details {
  display: grid;
  gap: 10px;
  margin-top: 30px;
}

.contact-details a,
.contact-details span {
  color: var(--ink);
  font-weight: 900;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--body);
  font-size: 0.92rem;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cfc7ba;
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfaf7;
  font: inherit;
}

.contact-form select {
  appearance: auto;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(217, 95, 36, 0.18);
  border-color: var(--orange);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .button {
  margin-top: 6px;
  border: 0;
  cursor: pointer;
}

.contact-form .button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.form-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--body);
  font-size: 0.92rem;
  font-weight: 800;
}

.form-status[data-state="pending"] {
  color: var(--steel);
}

.form-status[data-state="success"] {
  color: var(--green);
}

.form-status[data-state="error"] {
  color: var(--orange-dark);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: #fff;
  background: #171717;
}

.site-footer a {
  font-weight: 900;
}

.service-hero {
  position: relative;
  padding: 150px clamp(18px, 6vw, 80px) 76px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.82), rgba(10, 10, 10, 0.48)),
    image-set(
      url("assets/hero-rebar.webp") type("image/webp"),
      url("assets/hero-rebar.png") type("image/png")
    ) center / cover;
}

.service-hero-inner {
  max-width: 900px;
}

.service-hero .eyebrow {
  color: #ffb088;
}

.service-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.service-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
}

.service-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: clamp(34px, 7vw, 82px);
  align-items: start;
}

.service-detail p {
  margin: 0 0 18px;
  color: var(--body);
  font-size: 1.08rem;
}

.service-detail p:last-child {
  margin-bottom: 0;
}

.service-aside {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.service-aside h2 {
  margin-bottom: 18px;
  font-size: 1.4rem;
}

.service-aside ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--body);
}

.whatsapp-button {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 28px);
  padding: 6px;
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 999px 999px 12px 999px;
  color: #fff;
  background: #fff;
  box-shadow: 0 12px 32px rgba(23, 23, 23, 0.18);
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.whatsapp-button:hover,
.whatsapp-button:focus-visible {
  background: #fff;
  box-shadow: 0 16px 42px rgba(23, 23, 23, 0.24);
  transform: translateY(-2px);
}

.whatsapp-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: #178f49;
}

.whatsapp-icon svg {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  fill: currentColor;
}

.whatsapp-text {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 0 10px 0 0;
}

.whatsapp-text strong,
.whatsapp-text small {
  display: block;
  white-space: nowrap;
}

.whatsapp-text strong {
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 900;
}

.whatsapp-text small {
  color: var(--body);
  font-size: 0.72rem;
  font-weight: 800;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 8px 18px 18px;
    color: var(--ink);
    background: rgba(247, 244, 238, 0.98);
    box-shadow: 0 20px 30px rgba(23, 23, 23, 0.1);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

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

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .hero {
    min-height: 82svh;
  }

  .split,
  .quality-inner,
  .region-layout,
  .service-detail-layout,
  .work-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .application-form {
    position: static;
  }

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

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

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

@media (max-width: 640px) {
  .site-header {
    padding: 12px 14px;
  }

  .brand-logo {
    width: 52px;
    height: 52px;
  }

  .brand strong {
    max-width: 170px;
    white-space: normal;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 78svh;
    padding: 104px 18px 24px;
  }

  .service-hero {
    padding: 118px 18px 56px;
  }

  .hero-media {
    background-position: 62% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(10, 10, 10, 0.82) 0%, rgba(10, 10, 10, 0.42) 100%),
      linear-gradient(0deg, rgba(10, 10, 10, 0.72) 0%, rgba(10, 10, 10, 0) 58%);
  }

  h1 {
    font-size: clamp(2.45rem, 13vw, 3.8rem);
  }

  h2 {
    font-size: clamp(1.85rem, 11vw, 3rem);
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-stats div {
    padding: 10px 8px 0 0;
  }

  .hero-stats strong {
    font-size: 0.98rem;
  }

  .hero-stats span {
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .section {
    padding-block: 64px;
  }

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

  .service-card {
    min-height: 0;
  }

  .service-icon {
    margin-bottom: 28px;
  }

  .timeline li {
    grid-template-columns: 46px 1fr;
  }

  .timeline span {
    width: 46px;
    height: 46px;
  }

  .contact-form {
    padding: 20px;
  }

  .site-footer {
    display: grid;
    padding-bottom: 86px;
  }

  .whatsapp-button {
    right: 12px;
    bottom: 12px;
    width: 58px;
    height: 58px;
    gap: 0;
    padding: 6px;
    border: 0;
    border-radius: 50%;
    background: #178f49;
    box-shadow: 0 12px 30px rgba(23, 23, 23, 0.24);
  }

  .whatsapp-icon {
    width: 46px;
    height: 46px;
    background: transparent;
  }

  .whatsapp-icon svg {
    width: 28px;
    height: 28px;
  }

  .whatsapp-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}
