:root {
  --black: #0a0a0a;
  --red: #ff2a1a;
  --red-dark: #d92214;
  --white: #ffffff;
  --gray-100: #f4f4f4;
  --gray-200: #e8e8e8;
  --gray-400: #9a9a9a;
  --gray-600: #5c5c5c;
  --muted: #c8c8c8;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --header-h: 72px;
  --sticky-h: calc(56px + var(--safe-bottom));
  --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-body: "DM Sans", "Segoe UI", sans-serif;
  --radius: 12px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--black);
  background: var(--white);
  padding-bottom: var(--sticky-h);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 900px) {
  body {
    padding-bottom: 0;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--red);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--red-dark);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--red);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 2000;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.wrap {
  width: min(1100px, calc(100% - 1.5rem));
  margin-inline: auto;
}

.nowrap {
  white-space: nowrap;
}

.eyebrow {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  font-size: 1.125rem;
  color: var(--red);
  margin: 0 0 0.35rem;
}

.section {
  padding: 3.5rem 0;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.section-intro {
  margin: 0;
  color: var(--gray-600);
  font-size: 1.05rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.96);
  border-bottom: 3px solid var(--red);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  width: auto;
  max-height: 48px;
}

.desktop-nav {
  display: none;
  gap: 1.25rem;
  margin-left: auto;
}

.desktop-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.desktop-nav a:hover {
  color: var(--red);
}

.header-call {
  display: none;
  margin-left: auto;
  text-decoration: none;
  text-align: right;
  color: var(--white);
  line-height: 1.2;
}

.header-call:hover {
  color: var(--red);
}

.header-quote {
  display: none;
  margin-left: 0.75rem;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

.call-label {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.call-sub {
  font-size: 0.8rem;
  color: var(--muted);
}

.nav-toggle {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--gray-400);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--white);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 0 0.75rem 1rem;
  background: var(--black);
  border-top: 1px solid #222;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  color: var(--white);
  text-decoration: none;
  padding: 0.75rem 0.5rem;
  font-weight: 600;
  border-bottom: 1px solid #222;
}

.mobile-nav-call {
  color: var(--red) !important;
  margin-top: 0.5rem;
}

@media (min-width: 900px) {
  .brand-logo {
    max-height: 56px;
  }

  .desktop-nav {
    display: flex;
  }

  .header-call {
    display: block;
    margin-left: 1rem;
  }

  .header-quote {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }
}

/* Hero */
.hero {
  position: relative;
  color: var(--white);
  padding: 4rem 0 4.5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.75) 50%, rgba(255, 42, 26, 0.15) 100%),
    var(--black);
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 20%, rgba(255, 42, 26, 0.25), transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.hero-slogan {
  font-family: var(--font-display);
  color: var(--red);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  letter-spacing: 0.08em;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 3.75rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--gray-200);
  margin: 0 0 2rem;
  max-width: 36rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--black);
}

.btn-full {
  width: 100%;
}

/* Services */
.services {
  background: var(--gray-100);
}

.service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .service-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  padding: 1.25rem;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.service-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow);
  color: inherit;
}

.service-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--black);
}

.service-desc {
  font-size: 0.925rem;
  color: var(--gray-600);
}

.services-note {
  margin: 2rem 0 0;
  font-size: 0.95rem;
  color: var(--gray-600);
  max-width: 42rem;
}

/* Why local */
.why-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .why-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

.check-list {
  margin: 1.25rem 0 0;
  padding-left: 1.25rem;
}

.check-list li {
  margin-bottom: 0.5rem;
}

.info-card {
  background: var(--black);
  color: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--red);
}

.info-card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
  letter-spacing: 0.04em;
}

.info-card-body {
  margin: 0 0 0.75rem;
}

.info-card-link {
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
}

.info-card-link:hover {
  color: var(--white);
}

/* Gallery */
.portfolio {
  background: var(--black);
  color: var(--white);
}

.portfolio .section-head h2,
.portfolio .eyebrow {
  color: var(--white);
}

.portfolio .eyebrow {
  color: var(--red);
}

.portfolio .section-intro {
  color: var(--muted);
}

.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 700px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid #222;
  aspect-ratio: 4 / 3;
  background: #111;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steps li {
  position: relative;
  padding: 1.5rem;
  background: var(--gray-100);
  border-radius: var(--radius);
  border-top: 4px solid var(--red);
}

.step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--red);
  line-height: 1;
}

.steps h3 {
  font-size: 1.15rem;
  margin: 0.5rem 0 0.35rem;
}

.steps p {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* Quote form */
.quote-section {
  background: linear-gradient(180deg, var(--white) 0%, var(--gray-100) 100%);
}

.form-status {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.form-status.is-success {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #a5d6a7;
}

.form-status.is-error {
  background: #ffebee;
  color: #b71c1c;
  border: 1px solid #ef9a9a;
}

.quote-form {
  max-width: 36rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 600px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.req {
  color: var(--red);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font: inherit;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  background: var(--white);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid rgba(255, 42, 26, 0.35);
  border-color: var(--red);
}

.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid {
  border-color: #c62828;
}

.field-hint {
  margin: -0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.form-foot {
  margin: 0;
  font-size: 0.9rem;
  color: var(--gray-600);
  text-align: center;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* FAQ */
.faq-list {
  margin: 0;
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
  padding: 1.25rem 0;
}

.faq-item dt {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.faq-item dd {
  margin: 0;
  color: var(--gray-600);
}

/* AroundMadison */
.am-connect {
  background: var(--black);
  color: var(--white);
}

.am-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

@media (min-width: 700px) {
  .am-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.am-connect .eyebrow {
  color: var(--red);
}

.am-connect h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  font-weight: 400;
}

.am-connect p {
  margin: 0;
  color: var(--muted);
  max-width: 32rem;
}

.am-connect .btn-secondary {
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  background: #050505;
  color: var(--muted);
  padding: 2.5rem 0 1.5rem;
  font-size: 0.925rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-logo {
  opacity: 0.95;
  margin-bottom: 0.5rem;
}

.footer-slogan {
  color: var(--red);
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  margin: 0;
}

.footer-label {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  margin: 0 0 0.5rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.35rem;
}

.site-footer a {
  color: var(--white);
}

.site-footer a:hover {
  color: var(--red);
}

.footer-copy {
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid #222;
  font-size: 0.85rem;
  text-align: center;
}

.footer-copy a {
  color: var(--muted);
}

/* Mobile sticky bar */
.mobile-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding-bottom: var(--safe-bottom);
  background: var(--black);
  border-top: 3px solid var(--red);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
}

@media (min-width: 900px) {
  .mobile-sticky {
    display: none;
  }
}

.sticky-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.9rem 0.5rem;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
}

.sticky-call {
  background: var(--black);
  color: var(--white);
  border-right: 1px solid #333;
}

.sticky-call:hover {
  background: #151515;
  color: var(--white);
}

.sticky-quote {
  background: var(--red);
  color: var(--white);
}

.sticky-quote:hover {
  background: var(--red-dark);
  color: var(--white);
}
