:root {
  --black: #070809;
  --cream: #f8f0e2;
  --gold: #d6aa4c;
  --gray-light: #d0c3b0;
  --gray-mid: #aca18e;
  --gray-dark: #7b7161;
}

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

body {
  background: var(--black);
  color: var(--cream);
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  text-align: center;
}

/* ---------- Black hero panel ---------- */

.hero {
  background: var(--black);
  padding: 40px 24px;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 0;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform, opacity;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 34px;
  animation: cue-bounce 2s ease-in-out infinite;
}

@keyframes cue-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue {
    animation: none;
  }
}

.hero-cta {
  background: var(--gold);
  color: var(--black);
  border: 2px solid var(--gold);
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.88rem;
  padding: 13px 32px;
  border-radius: 999px;
  cursor: pointer;
  margin-bottom: 36px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.hero-cta:hover {
  background: transparent;
  color: var(--gold);
  transform: translateY(-2px);
}

.logo {
  width: 110px;
  height: auto;
  margin-bottom: 18px;
}

.wordmark {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 3.4rem;
  line-height: 1.1;
  color: var(--cream);
  letter-spacing: -1px;
}

.wordmark span {
  color: var(--gold);
}

.subtitle {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.subtitle-text {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 5px;
  font-size: 1.05rem;
  color: var(--cream);
}

.dash {
  width: 42px;
  height: 3px;
  background: var(--gold);
}

.ornament {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 26px;
  width: min(360px, 80%);
}

.ornament .line {
  flex: 1;
  height: 2px;
  background: var(--gold);
}

.ornament .diamond {
  width: 10px;
  height: 10px;
  background: var(--gold);
  transform: rotate(45deg);
}

.message {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-light);
  max-width: 520px;
}

/* Larger hero content on desktop */
@media (min-width: 768px) {
  .hero-cta {
    font-size: 1rem;
    padding: 16px 42px;
    margin-bottom: 42px;
  }

  .logo {
    width: 160px;
    margin-bottom: 24px;
  }

  .wordmark {
    font-size: 5.2rem;
  }

  .subtitle-text {
    font-size: 1.45rem;
    letter-spacing: 7px;
  }

  .dash {
    width: 64px;
    height: 4px;
  }

  .ornament {
    width: min(480px, 80%);
    margin: 28px 0 32px;
  }

  .message {
    font-size: 1.2rem;
    max-width: 620px;
  }
}

/* ---------- Curved divider ---------- */

.divider {
  background: transparent;
  line-height: 0;
  position: relative;
  z-index: 1;
}

.divider svg {
  display: block;
  width: 100%;
  height: 90px;
}

/* ---------- Cream panel ---------- */

.cream {
  background: var(--cream);
  color: var(--black);
  padding: 40px 24px 0;
  min-height: calc(100vh - 90px);
  min-height: calc(100svh - 90px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.cream h2 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 1.3rem;
  margin-bottom: 26px;
  color: var(--black);
}

.services {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 760px;
  margin-bottom: 40px;
}

.services li {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 1rem;
  color: var(--black);
  padding: 6px 18px;
  position: relative;
}

.services li:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: var(--gold);
}

.contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--black);
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
}

.contact-text {
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 1px;
  border-left: 2px solid var(--gold);
  padding-left: 14px;
}

.contact-item:hover .contact-text {
  color: var(--gold);
}

.skyline {
  width: min(900px, 100%);
  height: auto;
  margin-top: auto;
  display: block;
}

/* ---------- Footer ---------- */

footer {
  background: var(--black);
  color: var(--gray-mid);
  font-size: 0.85rem;
  padding: 18px 24px;
  border-top: 4px solid var(--gold);
  position: relative;
  z-index: 1;
}

/* ---------- Quote modal ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(7, 8, 9, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-overlay.open {
  opacity: 1;
}

.modal {
  background: var(--cream);
  color: var(--black);
  width: 100%;
  max-width: 540px;
  border-top: 5px solid var(--gold);
  border-radius: 6px;
  padding: 38px 38px 32px;
  position: relative;
  text-align: center;
  margin: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.28s ease;
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 16px;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--gray-dark);
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--black);
}

.modal-head h2 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 1.5rem;
}

.modal-ornament {
  width: 200px;
  margin: 14px auto 12px;
}

.modal-sub {
  color: var(--gray-dark);
  font-size: 0.92rem;
  margin-bottom: 26px;
}

/* Form fields */

.field {
  text-align: left;
  margin-bottom: 18px;
}

.field label,
.urgency legend {
  display: block;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.78rem;
  margin-bottom: 7px;
  color: var(--black);
}

.req {
  color: var(--gold);
}

.optional {
  color: var(--gray-dark);
  letter-spacing: 1px;
}

.field input[type='text'],
.field input[type='tel'],
.field select,
.field textarea {
  width: 100%;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  color: var(--black);
  background: #fffaf1;
  border: 2px solid var(--gray-light);
  border-radius: 4px;
  padding: 11px 14px;
  transition: border-color 0.2s ease;
}

.field textarea {
  resize: vertical;
  min-height: 76px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #b0a693;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.field input.invalid,
.field select.invalid {
  border-color: #c0392b;
}

.field-row {
  display: flex;
  gap: 14px;
}

.field-row .field {
  flex: 1;
}

.field-row .field-zip {
  flex: 0 0 130px;
}

/* Urgency pills */

.urgency {
  border: none;
  padding: 0;
}

.pills {
  display: flex;
  gap: 10px;
}

.pill {
  flex: 1;
  position: relative;
}

.pill input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.pill span {
  display: block;
  text-align: center;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.78rem;
  padding: 10px 6px;
  border: 2px solid var(--gray-light);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill span:hover {
  border-color: var(--gold);
}

.pill input:checked + span {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
  font-weight: 500;
}

.pill input:focus-visible + span {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}

.urgency.invalid .pill span {
  border-color: #c0392b;
}

/* Submit + messages */

.submit-btn {
  width: 100%;
  background: var(--black);
  color: var(--cream);
  border: 2px solid var(--black);
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.95rem;
  padding: 14px;
  border-radius: 999px;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.25s ease, color 0.25s ease;
}

.submit-btn:hover:not(:disabled) {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.form-error {
  color: #c0392b;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.form-note {
  font-size: 0.82rem;
  color: var(--gray-dark);
  margin-top: 16px;
}

.form-note a {
  color: var(--black);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}

.honeypot {
  display: none !important;
}

/* Success state */

.form-success {
  padding: 10px 0 6px;
}

.form-success[hidden] {
  display: none;
}

.success-mark {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-mark svg {
  width: 30px;
  height: 30px;
}

.form-success h3 {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.form-success p {
  color: var(--gray-dark);
  font-size: 0.92rem;
  margin-bottom: 22px;
}

body.modal-open {
  overflow: hidden;
}

/* ---------- Responsive ---------- */

@media (max-width: 520px) {
  .wordmark {
    font-size: 2.4rem;
  }

  .subtitle-text {
    letter-spacing: 3px;
    font-size: 0.9rem;
  }

  .dash {
    width: 26px;
  }

  .services li {
    font-size: 0.9rem;
    padding: 6px 12px;
  }

  .modal {
    padding: 32px 22px 26px;
  }

  .modal-head h2 {
    font-size: 1.25rem;
    letter-spacing: 2px;
  }

  .field-row {
    flex-direction: column;
    gap: 0;
  }

  .field-row .field-zip {
    flex: 1;
  }

  .pills {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .modal-overlay,
  .modal,
  .hero-cta {
    transition: none;
  }
}
