:root {
  --navy: #0a1622;
  --navy-soft: #13283d;
  --red: #cf3428;
  --red-dark: #a9221a;
  --paper: #f6f3ed;
  --white: #ffffff;
  --ink: #152436;
  --muted: #64748b;
  --border: rgba(255, 255, 255, 0.16);
  --panel-border: rgba(21, 36, 54, 0.12);
  --shadow: 0 28px 60px rgba(7, 16, 27, 0.26);
  font-family: "Barlow", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(7, 14, 24, 0.9), rgba(11, 23, 35, 0.62)),
    url("img/IMG_2966.JPG") center / cover no-repeat fixed;
}

.construction-page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

.construction-hero,
.construction-footer {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.construction-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 420px);
  gap: 2rem;
  align-items: center;
}

.construction-copy {
  padding: clamp(2rem, 4vw, 3.5rem);
  border-radius: 2rem;
  background: rgba(10, 22, 34, 0.8);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  color: var(--white);
}

.construction-kicker,
.eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.24em;
}

.construction-kicker {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

.construction-copy h1 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(3rem, 8vw, 5.4rem);
  line-height: 0.94;
  text-transform: uppercase;
  max-width: 10ch;
}

.construction-lead {
  max-width: 40rem;
  margin-top: 1rem;
  font-size: 1.15rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

.construction-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.construction-list {
  margin-top: 1.5rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.construction-list li {
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 600;
}

.construction-card {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 1.8rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.construction-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.construction-card__content {
  padding: 1.6rem;
  display: grid;
  gap: 0.7rem;
}

.eyebrow {
  color: var(--red);
}

.construction-card h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2.1rem;
  line-height: 0.95;
  text-transform: uppercase;
}

.construction-card__content p {
  color: var(--muted);
  line-height: 1.5;
}

.construction-phone,
.construction-mail {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.construction-phone {
  font-size: 1.9rem;
}

.construction-mail {
  font-size: 1.05rem;
  word-break: break-word;
}

.construction-card__photo {
  margin-top: 0.4rem;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 1rem;
  background: rgba(10, 22, 34, 0.04);
  transition: opacity 220ms ease, transform 220ms ease;
  will-change: opacity, transform;
}

.construction-card__photo.is-rotating {
  opacity: 0;
  transform: scale(0.98);
}

.construction-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.95rem 1.45rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.btn:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.btn--primary {
  color: var(--white);
  background: linear-gradient(180deg, #e64639, var(--red-dark));
  box-shadow: 0 16px 30px rgba(207, 52, 40, 0.28);
}

.btn--secondary {
  color: var(--white);
  background: linear-gradient(180deg, var(--navy-soft), var(--navy));
  box-shadow: 0 16px 30px rgba(10, 22, 34, 0.28);
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 180ms ease, visibility 180ms ease;
  z-index: 20;
}

.modal.active {
  visibility: visible;
  opacity: 1;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 12, 20, 0.72);
  backdrop-filter: blur(6px);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100% - 1.5rem));
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 2rem;
  border-radius: 1.5rem;
  background: var(--white);
  box-shadow: 0 36px 90px rgba(7, 16, 27, 0.34);
}

.modal__dialog--wide {
  width: min(680px, calc(100% - 1.5rem));
}

.modal__close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.modal__dialog h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
  text-transform: uppercase;
  line-height: 0.95;
}

.modal__hint,
.modal__support,
.form__note {
  color: var(--muted);
  line-height: 1.55;
}

.modal__hint {
  margin-top: 0.8rem;
}

.modal__support {
  margin-top: 1rem;
}

.support-link {
  color: var(--red);
  text-decoration: none;
  font-weight: 700;
}

.form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
}

.form input,
.form textarea {
  width: 100%;
  border: 1px solid var(--panel-border);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  font: inherit;
  color: var(--ink);
  background: #f8fafc;
}

.form textarea {
  resize: vertical;
}

.form__submit {
  width: 100%;
}

.form__error,
.form__status {
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  font-weight: 600;
}

.form__error {
  background: rgba(207, 52, 40, 0.1);
  border: 1px solid rgba(207, 52, 40, 0.22);
  color: #9f261d;
}

.form__status[data-state="pending"] {
  background: rgba(19, 40, 61, 0.08);
  border: 1px solid rgba(19, 40, 61, 0.14);
  color: var(--navy-soft);
}

.form__status[data-state="success"] {
  background: rgba(14, 116, 72, 0.1);
  border: 1px solid rgba(14, 116, 72, 0.18);
  color: #166534;
}

.form__status[data-state="error"] {
  background: rgba(207, 52, 40, 0.1);
  border: 1px solid rgba(207, 52, 40, 0.22);
  color: #9f261d;
}

@media (max-width: 900px) {
  .construction-hero {
    grid-template-columns: 1fr;
  }

  .construction-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .construction-copy h1 {
    max-width: 100%;
  }

  .construction-actions {
    flex-direction: column;
  }

  .construction-actions .btn {
    width: 100%;
  }

  .construction-list {
    flex-direction: column;
  }

  .construction-footer {
    font-size: 0.95rem;
  }

  .modal__dialog {
    padding: 1.6rem;
  }
}
