/* Atwood Acoustics website styles.
   Colors, fonts and spacing come from tokens.css (copied from the brand design system
   in atwood-acoustics-brain/company/design-system). Use the variables, never raw hex codes. */

:root { color-scheme: light; }

* { box-sizing: border-box; }

body { margin: 0; }

h1, h2, h3, p { margin: 0; }

a { color: inherit; }

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

.section { padding-block: var(--space-10); }

/* ---------- Hero (Night) ---------- */

.hero { padding-bottom: var(--space-10); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-block: var(--space-6);
}
.nav .aa-wordmark { text-decoration: none; color: var(--text); }
.nav .aa-btn--text { color: var(--text-muted); }
.nav .aa-btn--text:hover { color: var(--text); }

.hero-body { padding-top: var(--space-9); max-width: 960px; }
.hero .aa-label { color: var(--accent); margin-bottom: var(--space-5); }
.hero h1 { margin-bottom: var(--space-5); }
.hero .aa-body-l { color: var(--text-muted); max-width: 34em; margin-bottom: var(--space-7); }

/* ---------- Services ---------- */

.section-head { margin-bottom: var(--space-8); }
.section-head .aa-rule--brass { width: 64px; margin: var(--space-5) 0 0; }

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gutter);
}
.services .aa-card {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.services .aa-spec { color: var(--text-muted); }
.services h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-variant-numeric: lining-nums;
}
.services p { color: var(--text-2); }

/* ---------- Quote form ---------- */

.contact-band {
  background: var(--surface);
  border-top: var(--thin) solid var(--line);
}
.contact { max-width: 760px; }
.contact .aa-body-l { color: var(--text-muted); margin-top: var(--space-4); }

form { display: grid; gap: var(--space-5); margin-top: var(--space-7); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }

label {
  display: grid;
  gap: var(--space-2);
  font: 600 11px/16px var(--font-sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text);
}
.opt { font-weight: 400; color: var(--text-muted); letter-spacing: .1em; }

input, select, textarea {
  font: 400 16px/24px var(--font-sans);
  letter-spacing: normal;
  text-transform: none;
  min-height: 44px;
  padding: 10px 12px;
  border: var(--thin) solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  width: 100%;
  transition: border-color .3s ease-out, box-shadow .3s ease-out;
}
input:hover, select:hover, textarea:hover { border-color: var(--text-muted); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(140, 122, 75, .18);
}
textarea { resize: vertical; }

form .aa-btn { justify-self: start; border: 0; }
form .aa-btn:disabled { opacity: .6; cursor: wait; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.status {
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-5);
  border: var(--thin) solid currentColor;
  border-radius: var(--radius-sm);
}
.status.ok { color: var(--success); background: var(--bg); }
.status.err { color: var(--signal); background: var(--signal-bg); }

.direct { margin-top: var(--space-7); color: var(--text-muted); }
.direct a { color: var(--text); font-weight: 600; text-underline-offset: 3px; }

/* ---------- Footer (Night) ---------- */

.site-footer { padding-block: var(--space-7); }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.site-footer .aa-spec { color: var(--text-muted); text-transform: uppercase; letter-spacing: .14em; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ---------- Thanks page ---------- */

.thanks { min-height: 100vh; display: flex; flex-direction: column; }
.thanks .wrap { width: 100%; }
.thanks-body { flex: 1; }

/* ---------- Tablet and phone ---------- */

@media (max-width: 960px) {
  .section { padding-block: var(--space-9); }
  .hero { padding-bottom: var(--space-9); }
  .services { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 var(--space-4); }
  .section { padding-block: var(--space-8); }
  .hero { padding-bottom: var(--space-8); }
  .hero-body { padding-top: var(--space-7); }
  .nav .aa-btn--text { display: none; }
  .nav .aa-wordmark { font-size: 16px; }
  .row { grid-template-columns: 1fr; }
  .section-head { margin-bottom: var(--space-7); }
}
