:root {
  --navy: #102836;
  --deep-navy: #081721;
  --cream: #f5edcf;
  --sea: #8fbdc0;
  --blue: #5b95aa;
  --wood: #a47643;
  --orange: #f48a32;
  --foam: #f8fbef;
  --ink: #0c1e29;
  --muted: #5d6d6f;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  background:
    linear-gradient(180deg, rgba(16, 40, 54, 0.98), rgba(8, 23, 33, 0.98)),
    var(--navy);
  font-family: "Trebuchet MS", Tahoma, Arial, sans-serif;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: auto 0 0;
  height: 44vh;
  background:
    linear-gradient(168deg, transparent 0 35%, rgba(143, 189, 192, 0.18) 35% 51%, transparent 51%),
    linear-gradient(174deg, transparent 0 44%, rgba(91, 149, 170, 0.22) 44% 61%, transparent 61%);
  pointer-events: none;
}

a {
  color: inherit;
}

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

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 6px 0 28px;
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  display: grid;
  gap: clamp(8px, 1.4vw, 16px);
  align-content: start;
  align-items: start;
  justify-items: center;
  min-height: auto;
  overflow: hidden;
  padding: clamp(4px, 1vw, 12px) clamp(18px, 4vw, 52px) clamp(34px, 5vw, 58px);
  border: 3px solid rgba(245, 237, 207, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(245, 237, 207, 0.06), rgba(143, 189, 192, 0.08)),
    var(--deep-navy);
  box-shadow: var(--shadow);
  text-align: center;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  height: 160px;
  border: 3px solid rgba(245, 237, 207, 0.12);
  border-color: rgba(245, 237, 207, 0.12) transparent transparent transparent;
  border-radius: 50% 50% 0 0;
  pointer-events: none;
}

.hero::before {
  top: 5%;
  transform: rotate(-4deg);
}

.hero::after {
  bottom: 1%;
  transform: rotate(4deg);
}

.hero-mark {
  position: relative;
  z-index: 2;
  width: min(88vw, 650px);
  height: auto;
  margin-top: 0;
  filter: drop-shadow(0 28px 36px rgba(0, 0, 0, 0.45));
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 850px;
}

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

h1,
h2 {
  margin: 0;
  color: var(--cream);
  line-height: 0.98;
  font-family: "Cooper Black", "Rockwell Extra Bold", Rockwell, Georgia, serif;
  font-weight: 900;
}

h1 {
  color: var(--cream);
  font-size: clamp(4.4rem, 11vw, 8.8rem);
  text-shadow:
    5px 5px 0 var(--navy),
    10px 10px 0 rgba(0, 0, 0, 0.34);
}

h2 {
  color: var(--navy);
  font-size: clamp(2rem, 4.6vw, 3.55rem);
}

.intro {
  max-width: 58ch;
  margin: 22px 0 0;
  color: rgba(245, 237, 207, 0.9);
  font-size: clamp(1.06rem, 2vw, 1.28rem);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid var(--navy);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(8, 23, 33, 0.16);
}

.button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(244, 138, 50, 0.5);
  outline-offset: 2px;
}

.button.primary {
  background: var(--orange);
  color: var(--deep-navy);
}

.button.secondary {
  border-color: rgba(245, 237, 207, 0.65);
  background: rgba(245, 237, 207, 0.1);
  color: var(--cream);
}

.hero-bottom {
  position: absolute;
  right: clamp(-110px, -8vw, -52px);
  bottom: clamp(-140px, -10vw, -80px);
  z-index: 1;
  width: min(44vw, 420px);
  opacity: 0.16;
  pointer-events: none;
}

.crest-logo {
  display: block;
  width: 100%;
  height: auto;
}

.info-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 3px solid rgba(245, 237, 207, 0.2);
  border-radius: 8px;
  background: rgba(245, 237, 207, 0.2);
  box-shadow: var(--shadow);
  margin-top: 24px;
}

.info-band > div {
  min-height: 114px;
  padding: 24px;
  background: rgba(245, 237, 207, 0.94);
}

.label {
  display: block;
  margin-bottom: 8px;
  color: var(--wood);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.info-band strong {
  display: block;
  color: var(--navy);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  line-height: 1.18;
}

.content-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

.panel {
  border: 3px solid rgba(245, 237, 207, 0.2);
  border-radius: 8px;
  background: rgba(248, 251, 239, 0.94);
  box-shadow: var(--shadow);
}

.services-panel,
.quote-panel {
  padding: clamp(24px, 4vw, 38px);
}

.services-panel .eyebrow,
.quote-panel .eyebrow {
  color: var(--wood);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.service-list li {
  position: relative;
  min-height: 42px;
  padding: 10px 12px 10px 42px;
  border: 2px solid rgba(16, 40, 54, 0.16);
  border-radius: 6px;
  background: rgba(143, 189, 192, 0.22);
  color: var(--navy);
  font-weight: 800;
}

.service-list li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 14px;
  width: 14px;
  height: 14px;
  border: 3px solid var(--navy);
  border-radius: 50%;
  background: var(--orange);
  transform: translateY(-50%);
}

.quote-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 2px solid rgba(16, 40, 54, 0.28);
  border-radius: 6px;
  background: #fffdf3;
  color: var(--ink);
}

input,
select {
  min-height: 48px;
  padding: 0 12px;
}

textarea {
  min-height: 126px;
  padding: 12px;
  resize: vertical;
}

input[type="file"] {
  min-height: auto;
  padding: 13px 12px;
  background: rgba(255, 253, 243, 0.82);
}

.help-text {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.submit-button {
  width: 100%;
}

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

.form-status.error {
  color: #9f321f;
}

.hidden {
  display: none;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px 0 8px;
  color: rgba(245, 237, 207, 0.88);
  font-weight: 800;
}

.site-footer p {
  margin: 0;
}

.built-by {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
  padding: 20px 0 8px;
  border-top: 1px solid rgba(245, 237, 207, 0.18);
  color: rgba(245, 237, 207, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.built-by img {
  width: min(52vw, 220px);
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.24));
}

@media (max-width: 860px) {
  .site-shell {
    width: min(100% - 22px, 680px);
    padding-top: 16px;
  }

  .hero,
  .content-grid,
  .info-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 12px;
  }

  .hero-mark {
    width: min(92vw, 420px);
  }

  .hero-copy {
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .info-band > div {
    min-height: auto;
  }

  .built-by {
    gap: 12px;
  }
}

@media (max-width: 580px) {
  .site-shell {
    width: min(100% - 16px, 480px);
  }

  .field-row {
    grid-template-columns: 1fr;
  }

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

  .button {
    flex: 1 1 30%;
    min-width: 92px;
    padding: 0 14px;
  }

  .hero-actions {
    gap: 8px;
  }

  h1 {
    font-size: clamp(3.4rem, 20vw, 5rem);
  }

  .built-by {
    flex-direction: column;
  }

  .built-by img {
    width: min(72vw, 210px);
  }
}
