/* AC Matthews Roofing — branded landing (inspired by their live site) */

:root {
  --navy: #1a2f4b;
  --navy-deep: #122338;
  --navy-mid: #243f5c;
  --gold: #e8b923;
  --gold-hi: #f0c93a;
  --gold-text: #1a2f4b;
  --paper: #ffffff;
  --ink: #2a3542;
  --muted: #5c6b7a;
  --line: #d9e0e7;
  --field: #f3f5f7;
  --rust: #a85a3a;
  --error: #c0392b;
  --ok: #1f8a70;
  --sans: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --max: 1180px;
  --radius: 6px;
  --shadow: 0 12px 40px rgba(18, 35, 56, 0.18);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

.acm-wrap { min-height: 100vh; }

.acm-container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.acm-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.acm-header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.acm-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.acm-logo-mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  background: var(--navy-deep);
  display: grid;
  place-items: center;
  position: relative;
}

.acm-logo-mark svg { width: 34px; height: 34px; }

.acm-logo-text {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
  max-width: 9.5rem;
}

.acm-logo-text span {
  display: block;
  color: var(--gold);
  font-size: 0.62rem;
}

.acm-tagline {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  flex: 1;
  min-width: 160px;
}

.acm-tagline em {
  font-style: normal;
  color: var(--gold);
}

.acm-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 600;
}

.acm-nav a {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.15s;
}

.acm-nav a:hover,
.acm-nav a.active { color: var(--gold); }

.acm-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--gold-text);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.65rem 1.1rem;
  border-radius: 2px;
  transition: background 0.15s;
  white-space: nowrap;
}

.acm-call:hover { background: var(--gold-hi); }

.acm-header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  margin-left: auto;
}

/* Hero band */
.acm-hero {
  position: relative;
  background: var(--navy-deep) center/cover no-repeat;
  min-height: 420px;
}

.acm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 35, 56, 0.55) 0%, rgba(18, 35, 56, 0.2) 55%, rgba(18, 35, 56, 0.35) 100%),
    linear-gradient(180deg, rgba(18, 35, 56, 0.15) 0%, rgba(18, 35, 56, 0.05) 100%);
}

.acm-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 2rem;
  padding: 2.5rem 0 0;
  align-items: start;
}

.acm-hero-copy {
  color: #fff;
  padding: 2rem 0 3rem;
  max-width: 520px;
}

.acm-hero-copy .eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.75rem;
}

.acm-hero-copy h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  font-weight: 800;
}

.acm-hero-copy h1 span {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  color: var(--gold);
  font-size: 1.15em;
}

.acm-hero-copy p {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 420px;
}

/* Main content + form layout */
.acm-body {
  background: #fff;
  padding-bottom: 4rem;
}

.acm-body-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 2rem;
  margin-top: -3.5rem;
  position: relative;
  z-index: 2;
  align-items: start;
}

.acm-content {
  padding: 4.5rem 0 0;
}

.acm-content .eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 0.6rem;
}

.acm-content h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  color: var(--navy);
  font-weight: 800;
}

.acm-content h2 em {
  font-family: var(--serif);
  font-style: normal;
  color: var(--gold);
  font-weight: 700;
  display: block;
  font-size: 1.15em;
}

.acm-content p {
  color: var(--muted);
  margin: 0 0 1rem;
  max-width: 540px;
}

.acm-bullets {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  max-width: 520px;
}

.acm-bullets li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.4rem;
  color: var(--ink);
  font-size: 0.98rem;
}

.acm-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rust);
}

.acm-bullets strong { color: var(--navy); }

/* Form card — white, like their quote box */
.acm-form-card {
  background: #fff;
  border-radius: 4px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(26, 47, 75, 0.08);
}

.acm-form-head {
  padding: 1.5rem 1.5rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, #f7f9fb 100%);
}

.acm-form-head h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}

.acm-form-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.acm-mascot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.9rem;
  padding: 0.65rem 0.85rem;
  background: var(--navy);
  color: #fff;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: left;
}

.acm-mascot-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--gold);
  display: grid;
  place-items: center;
  color: var(--navy);
  font-size: 1.25rem;
}

.intake-form { padding: 1.25rem 1.5rem 1.5rem; }

.intake-form fieldset {
  border: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.intake-form legend {
  width: 100%;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.45rem;
  margin-bottom: 0.9rem;
}

.intake-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.35rem;
}

.req { color: #c0392b; }
.optional { color: var(--muted); font-weight: 500; font-size: 0.78rem; }

.intake-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin: -0.15rem 0 0.55rem;
  font-weight: 400;
}

.intake-hint-tight { margin-top: -0.35rem; }

.intake-row {
  display: flex;
  gap: 0.75rem;
}

.intake-row > div,
.intake-field { flex: 1; min-width: 0; }

.intake-field { margin-bottom: 0.85rem; }
.intake-field-state { flex: 0 0 88px; }
.intake-field-zip { flex: 0 0 110px; }
.intake-field-grow { flex: 1.4; }

.intake-form input[type="text"],
.intake-form input[type="tel"],
.intake-form input[type="email"],
.intake-form select,
.intake-form textarea {
  width: 100%;
  background: var(--field);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.7rem 0.75rem;
  font-size: 0.95rem;
  font-family: inherit;
  margin-bottom: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.intake-form textarea {
  min-height: 96px;
  resize: vertical;
}

.intake-form input:focus,
.intake-form select:focus,
.intake-form textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26, 47, 75, 0.12);
  background: #fff;
}

.intake-form input.error,
.intake-form select.error,
.intake-form textarea.error {
  border-color: var(--error);
}

.intake-form input.valid { border-color: var(--ok); }

.field-error {
  display: block;
  min-height: 1.1em;
  font-size: 0.75rem;
  color: var(--error);
  margin-top: 0.25rem;
}

.address-preview {
  background: #eef5f2;
  border: 1px solid #c5ddd4;
  border-radius: 4px;
  padding: 0.65rem 0.75rem;
  margin-top: 0.25rem;
  font-size: 0.85rem;
}

.address-preview-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ok);
  margin-bottom: 0.15rem;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

.pill { position: relative; }

.pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pill span {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--muted);
  background: #fff;
  transition: all 0.15s;
  user-select: none;
  font-weight: 600;
}

.pill input:checked + span {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.pill input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(232, 185, 35, 0.45);
}

.drop {
  border: 1.5px dashed #b8c4d0;
  border-radius: 6px;
  padding: 1.25rem 1rem;
  text-align: center;
  cursor: pointer;
  background: var(--field);
  transition: border-color 0.15s, background 0.15s;
}

.drop:hover,
.drop.over {
  border-color: var(--gold);
  background: #fff8e6;
}

.drop strong { color: var(--navy); }
.drop small { display: block; color: var(--muted); margin-top: 0.3rem; font-size: 0.78rem; }

.thumbs {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.thumb {
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.thumb img { width: 100%; height: 100%; object-fit: cover; }

.thumb button {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.75);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.thumb .bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--gold);
  width: 0;
  transition: width 0.2s;
}

.intake-submit {
  width: 100%;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 3px;
  padding: 0.95rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  margin-top: 0.35rem;
}

.intake-submit:hover:not(:disabled) { background: var(--gold-hi); }
.intake-submit:disabled { opacity: 0.55; cursor: not-allowed; }

.intake-consent {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0.85rem 0 0;
  line-height: 1.45;
}

.intake-status {
  display: none;
  padding: 0.75rem 0.9rem;
  border-radius: 4px;
  margin-bottom: 0.9rem;
  font-size: 0.88rem;
  border: 1px solid;
}

.intake-status.err {
  display: block;
  background: #fdecea;
  border-color: var(--error);
  color: var(--error);
}

.intake-success {
  display: none;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.intake-success.show { display: block; }

.intake-check {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--ok);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: #fff;
}

.intake-success h3 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  color: var(--navy);
}

.intake-success p {
  color: var(--muted);
  margin: 0 auto;
  max-width: 360px;
}

.hidden { display: none !important; }

/* Footer */
.acm-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 2rem 0;
  font-size: 0.88rem;
}

.acm-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.acm-footer a { color: var(--gold); }
.acm-footer a:hover { color: var(--gold-hi); }

.acm-demo-note {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Responsive */
@media (max-width: 960px) {
  .acm-hero-inner,
  .acm-body-inner {
    grid-template-columns: 1fr;
  }

  .acm-hero {
    min-height: 280px;
  }

  .acm-hero-inner {
    padding-bottom: 0;
  }

  .acm-hero-copy {
    padding-bottom: 1.5rem;
  }

  .acm-body-inner {
    margin-top: -1.5rem;
  }

  .acm-content {
    padding-top: 1.5rem;
    order: 2;
  }

  .acm-form-card { order: 1; }

  .acm-header-actions {
    width: 100%;
    align-items: stretch;
    margin-left: 0;
  }

  .acm-nav { width: 100%; }
}

@media (max-width: 560px) {
  .acm-row,
  .intake-row {
    flex-direction: column;
    gap: 0;
  }

  .intake-field-state,
  .intake-field-zip { flex: 1; }

  .acm-tagline { display: none; }

  .acm-logo-mark { width: 52px; height: 52px; }
}
