/* A-First Choice Roofing — temporary landing page
   Visual language (colors, spacing, card/button/form styling) is modeled
   after an internal design reference; this page has no shared code or
   backend with that project. */

:root {
  --color-primary: #15467a;
  --color-primary-dark: #0f3255;
  --color-accent: #e08a00;
  --color-bg: #f9fafb;
  --color-surface: #ffffff;
  --color-text: #111827;
  --color-text-muted: #4b5563;
  --color-border: #e5e7eb;
  --color-success-bg: #ecfdf5;
  --color-success-border: #a7f3d0;
  --color-success-text: #065f46;
  --color-error-bg: #fef2f2;
  --color-error-border: #fecaca;
  --color-error-text: #991b1b;
  --radius: 12px;
  --max-width: 960px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
}

img, video {
  max-width: 100%;
}

a {
  color: var(--color-primary);
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.wrap-narrow {
  max-width: 680px;
}

/* ---- Header ---- */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.wordmark {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

.wordmark-accent {
  color: var(--color-accent);
}

.header-call {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 15px;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
}

.header-call:hover {
  text-decoration: underline;
}

.phone-icon {
  font-size: 16px;
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #ffffff;
}

.hero-inner {
  padding: 56px 20px 48px;
  text-align: center;
  max-width: 700px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent);
  margin: 0 0 12px;
}

.hero h1 {
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 800;
}

.hero-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 auto 28px;
  max-width: 560px;
}

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

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: opacity 0.15s ease, transform 0.05s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--color-accent);
  color: #1a1a1a;
}

.btn-primary:hover {
  opacity: 0.92;
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---- Sections ---- */
.section {
  padding: 48px 0;
}

.section-alt {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--color-text);
}

/* ---- Video ---- */
.video-figure {
  margin: 0;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0b0b0b;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.video-frame video {
  display: block;
  width: 100%;
  height: auto;
}

.video-caption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ---- Check list ---- */
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  color: var(--color-text);
}

.license-note {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: 800;
}

/* ---- Card / Form ---- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.card-sub {
  color: var(--color-text-muted);
  font-size: 15px;
  margin: 0 0 24px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}

.req {
  color: #b91c1c;
}

.field input,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  font-size: 16px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: inherit;
  color: var(--color-text);
  background: #fff;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(21, 70, 122, 0.15);
}

.field textarea {
  resize: vertical;
}

/* Honeypot: visually hidden but present in DOM for bots to fill */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-message {
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: 8px;
  font-size: 14px;
  border: 1px solid transparent;
}

.form-success {
  background: var(--color-success-bg);
  border-color: var(--color-success-border);
  color: var(--color-success-text);
}

.form-error {
  background: var(--color-error-bg);
  border-color: var(--color-error-border);
  color: var(--color-error-text);
}

.form-error a {
  color: var(--color-error-text);
  font-weight: 700;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 28px 0;
  text-align: center;
  font-size: 14px;
}

.site-footer a {
  color: #ffffff;
  font-weight: 600;
}

.site-footer p {
  margin: 4px 0;
}

.footer-license {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

/* ---- Responsive ---- */
@media (min-width: 640px) {
  .hero h1 {
    font-size: 36px;
  }
}

@media (max-width: 480px) {
  .wordmark {
    font-size: 15px;
  }

  .header-call {
    font-size: 14px;
  }

  .card {
    padding: 22px 16px;
  }
}
