:root {
  --bg: #090909;
  --bg-soft: #111317;
  --surface: #17191f;
  --surface-2: #22242a;
  --text: #f7f7f5;
  --muted: #bfc3c9;
  --line: rgba(255, 255, 255, 0.12);
  --gold: #f6b914;
  --gold-strong: #ffcc24;
  --steel: #d9dde3;
  --green: #1fbf61;
  --danger: #ff5a4f;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(246, 185, 20, 0.09), transparent 30%),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(255, 255, 255, 0.025) 18px 19px);
  opacity: 0.74;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 999;
  transform: translateY(-150%);
  background: var(--gold);
  color: #111;
  padding: 0.7rem 1rem;
  border-radius: 6px;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 76px;
  padding: 0.7rem clamp(1rem, 4vw, 4.5rem);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 9, 9, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  font-weight: 900;
  text-transform: uppercase;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand span {
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-left: auto;
  color: var(--muted);
  font-weight: 700;
}

.main-nav a {
  padding: 0.4rem 0;
}

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

.header-call,
.primary-action,
.secondary-action,
.calculate-button,
.whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  border-radius: 8px;
  font-weight: 900;
  line-height: 1;
}

.header-call {
  padding: 0.75rem 1rem;
  color: #111;
  background: var(--gold);
}

.header-call svg,
.primary-action svg,
.secondary-action svg,
.calculate-button svg,
.whatsapp-button svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.88fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  min-height: min(760px, 88svh);
  padding: clamp(3.25rem, 7vw, 7rem) clamp(1rem, 5vw, 5.5rem) clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -12% 0 -12%;
  height: 120px;
  background:
    linear-gradient(90deg, transparent, rgba(246, 185, 20, 0.34), transparent),
    repeating-linear-gradient(135deg, #111 0 18px, var(--gold) 18px 34px);
  transform: skewY(-2deg);
  opacity: 0.26;
  z-index: -1;
}

.hero-copy {
  max-width: 770px;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--gold);
  font-size: 0.83rem;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
  color: var(--text);
  font-size: clamp(3.35rem, 9vw, 7.6rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
  text-wrap: balance;
}

h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.hero-copy > p:not(.eyebrow),
.section-heading > p:not(.eyebrow),
.contact-section p {
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
}

.hero-actions,
.form-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.primary-action,
.secondary-action {
  padding: 0.95rem 1.15rem;
}

.primary-action {
  color: #111;
  background: linear-gradient(180deg, var(--gold-strong), var(--gold));
  box-shadow: 0 12px 32px rgba(246, 185, 20, 0.22);
}

.secondary-action {
  color: var(--text);
  border: 1px solid rgba(246, 185, 20, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

.secondary-action.dark {
  border-color: rgba(255, 255, 255, 0.16);
  background: #121212;
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: min(470px, 82vw);
  margin-inline: auto;
  filter: drop-shadow(0 32px 55px rgba(0, 0, 0, 0.62));
}

.quick-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  background: #f7f7f5;
  color: #111;
}

.quick-strip div {
  display: grid;
  gap: 0.2rem;
  padding: 1.3rem clamp(1rem, 4vw, 4rem);
  border-right: 1px solid rgba(0, 0, 0, 0.12);
}

.quick-strip div:last-child {
  border-right: 0;
}

.quick-strip strong {
  color: #111;
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  text-transform: uppercase;
}

.quick-strip span {
  color: #4d535b;
  font-weight: 750;
}

.calculator-section,
.services-section,
.contact-section {
  position: relative;
  z-index: 1;
  padding: clamp(3.5rem, 7vw, 6.5rem) clamp(1rem, 5vw, 5.5rem);
}

.calculator-section {
  background: linear-gradient(180deg, #101114, #090909);
}

.section-heading {
  max-width: 950px;
  margin-bottom: 2rem;
}

.calculator-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(310px, 0.8fr);
  gap: 1rem;
  align-items: stretch;
}

.calculator-form,
.estimate-panel,
.service-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(23, 25, 31, 0.92);
  box-shadow: var(--shadow);
}

.calculator-form,
.estimate-panel {
  padding: clamp(1rem, 2vw, 1.4rem);
}

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

label {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

label.wide {
  grid-column: 1 / -1;
}

label span {
  color: var(--steel);
  font-size: 0.88rem;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  outline: 0;
  background: #0e0f12;
  color: var(--text);
  padding: 0.8rem 0.9rem;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(246, 185, 20, 0.16);
}

.input-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(2, 50px);
  gap: 0.55rem;
}

.input-action button {
  display: inline-grid;
  place-items: center;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  color: #111;
  background: var(--gold);
  cursor: pointer;
}

.input-action button[aria-pressed="true"] {
  color: var(--gold);
  background: #111;
  box-shadow: inset 0 0 0 2px var(--gold);
}

.input-action button svg {
  width: 21px;
  height: 21px;
}

.calculate-button,
.whatsapp-button {
  min-width: 190px;
  border: 0;
  padding: 0.95rem 1.1rem;
  cursor: pointer;
}

.calculate-button {
  color: #111;
  background: var(--gold);
}

.whatsapp-button {
  color: white;
  background: var(--green);
}

.status {
  min-height: 1.45rem;
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.status.is-error {
  color: var(--danger);
}

.status.is-success {
  color: #74e79c;
}

.estimate-panel {
  display: grid;
  grid-template-rows: auto auto minmax(260px, 1fr);
  gap: 1rem;
  min-height: 580px;
}

.estimate-total {
  display: grid;
  gap: 0.4rem;
  padding: 1rem;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--gold-strong), var(--gold));
  color: #111;
}

.estimate-total span {
  font-weight: 900;
  text-transform: uppercase;
}

.estimate-total strong {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.estimate-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
}

.estimate-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.estimate-list dt {
  color: var(--muted);
  font-weight: 750;
}

.estimate-list dd {
  margin: 0;
  text-align: right;
  font-weight: 900;
}

.map {
  min-height: 260px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #202329;
}

.leaflet-container {
  font: inherit;
}

.services-section {
  background: #f7f7f5;
  color: #111;
}

.services-section .eyebrow,
.services-section h2 {
  color: #111;
}

.services-section .section-heading p {
  color: #4d535b;
}

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

.service-grid article {
  display: grid;
  align-content: start;
  gap: 0.65rem;
  min-height: 214px;
  padding: 1.25rem;
  background: white;
  color: #111;
  box-shadow: 0 18px 45px rgba(15, 16, 18, 0.08);
}

.service-grid svg {
  width: 34px;
  height: 34px;
  color: var(--gold);
}

.service-grid p {
  margin: 0;
  color: #4d535b;
  line-height: 1.55;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(246, 185, 20, 0.14), transparent 60%),
    #101114;
}

.contact-section h2 {
  max-width: 780px;
}

.contact-actions {
  flex: 0 0 auto;
  margin-top: 0;
}

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem clamp(1rem, 5vw, 5.5rem);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #070707;
}

@media (max-width: 980px) {
  .site-header {
    gap: 0.9rem;
  }

  .main-nav {
    display: none;
  }

  .hero,
  .calculator-shell,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
  }

  .hero-media {
    order: -1;
  }

  .hero-media img {
    width: min(340px, 76vw);
  }

  .calculator-shell {
    display: grid;
  }

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

  .contact-section {
    display: grid;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 68px;
    padding-inline: 0.8rem;
  }

  .brand span {
    display: none;
  }

  .header-call {
    margin-left: auto;
    padding: 0.75rem 0.85rem;
  }

  .hero {
    padding-inline: 1rem;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 4.5rem);
  }

  .hero-actions,
  .form-actions,
  .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .quick-strip {
    grid-template-columns: 1fr;
  }

  .quick-strip div {
    border-right: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  }

  .quick-strip div:last-child {
    border-bottom: 0;
  }

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

  .estimate-panel {
    min-height: auto;
  }

  .site-footer {
    display: grid;
  }

  .input-action {
    grid-template-columns: minmax(0, 1fr) repeat(2, 46px);
  }
}
