/* ==========================================================================
   Auto Magic Door Opener Corp. — industrial single-page theme
   ========================================================================== */

:root {
  --charcoal:      #1a1c20;
  --charcoal-2:    #23262b;
  --charcoal-3:    #2c3037;
  --line:          #3a3f47;
  --yellow:        #ffd21e;
  --yellow-dark:   #e6b800;
  --white:         #ffffff;
  --ink:           #f4f5f7;
  --muted:         #a6adb8;
  --muted-2:       #8a919c;

  --font-display:  "Anton", "Oswald", Impact, sans-serif;
  --font-head:     "Oswald", "Barlow", sans-serif;
  --font-body:     "Barlow", "Inter", system-ui, sans-serif;

  --wrap:          1200px;
  --radius:        4px;
  --topbar-h:      72px;

  --shadow:        0 12px 30px rgba(0,0,0,.45);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--topbar-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--yellow);
  color: var(--charcoal);
  padding: .75rem 1.25rem;
  font-family: var(--font-head);
  font-weight: 700;
  z-index: 200;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--yellow);
  --btn-fg: var(--charcoal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1.25rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 2px solid var(--btn-bg);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .12s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--yellow); --btn-fg: var(--charcoal); box-shadow: 0 6px 0 var(--yellow-dark); }
.btn--primary:hover { box-shadow: 0 8px 0 var(--yellow-dark); }
.btn--primary:active { box-shadow: 0 2px 0 var(--yellow-dark); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  border-color: var(--white);
}
.btn--ghost:hover { background: var(--white); color: var(--charcoal); }

.btn--lg { padding: .95rem 1.75rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

.icon { flex: 0 0 auto; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26,28,32,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand { display: flex; align-items: center; }
.brand__logo { width: 200px; height: auto; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 1.75rem; }
.nav__link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  padding: .5rem 0;
  position: relative;
  transition: color .18s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.nav__link:hover { color: var(--white); }
.nav__link.is-active { color: var(--white); }
.nav__link.is-active::after { transform: scaleX(1); }

.topbar__cta { display: flex; align-items: center; gap: .75rem; margin-left: 0; }
.nav + .topbar__cta { margin-left: 1rem; }

.btn--call {
  flex-direction: column;
  gap: 0;
  line-height: 1.1;
  padding: .5rem 1.1rem;
}
.btn--call .btn__label { font-size: .7rem; letter-spacing: .12em; }
.btn--call .btn__num { font-size: 1rem; }
.btn--call .icon { display: none; }

/* Hamburger */
.hb {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  background: transparent;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.hb span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: transform .25s ease, opacity .2s ease;
}
.hb[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hb[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hb[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--charcoal-2);
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(26,28,32,.94) 0%, rgba(26,28,32,.78) 45%, rgba(26,28,32,.35) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
  padding: 4rem 0;
}
.hero__eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .8rem;
  color: var(--yellow);
  margin-bottom: 1.25rem;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 8vw, 5.25rem);
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--white);
}
.hero__title .hl { color: var(--yellow); }
.hero__lede {
  margin: 1.5rem 0 2rem;
  font-size: 1.15rem;
  color: var(--ink);
  max-width: 52ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.75rem;
  margin-top: 2.25rem;
}
.hero__badges li {
  position: relative;
  padding-left: 1.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__badges li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 10px; height: 10px;
  transform: translateY(-50%) rotate(45deg);
  background: var(--yellow);
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.services { background: var(--charcoal); }
.why { background: var(--charcoal-2); border-block: 1px solid var(--line); }
.area { background: var(--charcoal); }
.contact { background: var(--charcoal-2); border-top: 1px solid var(--line); }

.section__head { max-width: 640px; margin-bottom: 3rem; }
.kicker {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-size: .8rem;
  color: var(--yellow);
  margin-bottom: .75rem;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .01em;
  font-size: clamp(2rem, 5vw, 3.25rem);
  color: var(--white);
}
.section__intro { margin-top: 1rem; color: var(--muted); font-size: 1.1rem; }

/* ---------- Services grid ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--services { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--yellow);
  box-shadow: var(--shadow);
}
.card__media { aspect-ratio: 16 / 10; background: var(--charcoal-3); border-bottom: 3px solid var(--yellow); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 1.5rem 1.5rem 1.75rem; }
.card__title {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: .6rem;
}
.card__body p { color: var(--muted); margin: 0; }

/* Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 2.5rem;
}
.chips li {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .82rem;
  color: var(--ink);
  background: var(--charcoal-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .45rem 1rem;
}

/* ---------- Why grid ---------- */
.grid--why { grid-template-columns: repeat(4, 1fr); }
.feature {
  padding: 1.75rem 1.5rem;
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-top: 3px solid var(--yellow);
  border-radius: var(--radius);
}
.feature__ic {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  color: var(--yellow);
  background: var(--charcoal-3);
  border-radius: var(--radius);
  margin-bottom: 1.1rem;
}
.feature h3 {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: .5rem;
}
.feature p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Area ---------- */
.area__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.area__media img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.area__text .section__title { margin-bottom: 1.25rem; }
.area__text p { color: var(--muted); font-size: 1.1rem; }
.area__text strong { color: var(--white); }
.area__list { margin: 1.5rem 0 2rem; display: grid; gap: .6rem; }
.area__list li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--ink);
  font-weight: 500;
}
.area__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .45em;
  width: 12px; height: 12px;
  background: var(--yellow);
  transform: rotate(45deg);
}

/* ---------- Contact ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
.contact__intro p { color: var(--muted); font-size: 1.1rem; }
.contact__intro .section__title { margin-bottom: 1rem; }
.contact__list { margin-top: 2rem; display: grid; gap: 1.25rem; }
.contact__list li { display: grid; gap: .2rem; }
.contact__lbl {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .75rem;
  color: var(--yellow);
}
.contact__list a { color: var(--white); font-size: 1.15rem; font-weight: 500; }
.contact__list a:hover { color: var(--yellow); }
.contact__list address { color: var(--ink); font-size: 1.1rem; }

/* Form */
.form {
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}
.form__hp { position: absolute; left: -9999px; }
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: .8rem;
  color: var(--ink);
  margin-bottom: .4rem;
}
.field input,
.field textarea {
  width: 100%;
  padding: .8rem .9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--white);
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-2); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255,210,30,.25);
}
.field textarea { resize: vertical; min-height: 120px; }
.field__err {
  display: block;
  color: #ff9d9d;
  font-size: .85rem;
  margin-top: .35rem;
  min-height: 1em;
}
.field.is-invalid input,
.field.is-invalid textarea { border-color: #ff7a7a; }

.form__note { margin: 1.25rem 0 0; color: var(--muted); font-size: .95rem; }
.form__note a { color: var(--yellow); font-weight: 600; }

/* ---------- Footer ---------- */
.foot {
  background: var(--charcoal);
}

/* Action band — full-width safety-yellow call-to-action */
.foot-band {
  background: var(--yellow);
  color: var(--charcoal);
}
.foot-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding-block: 1.75rem;
}
.foot-band__pitch {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.05;
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  color: var(--charcoal);
  max-width: 24ch;
}
.foot-band__cta {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .1rem;
  flex: 0 0 auto;
  background: var(--charcoal);
  color: var(--white);
  padding: .8rem 1.6rem;
  border: 3px solid var(--charcoal);
  border-radius: var(--radius);
  box-shadow: 0 6px 0 rgba(0,0,0,.35);
  transition: transform .12s ease, box-shadow .12s ease;
}
.foot-band__cta:hover { box-shadow: 0 8px 0 rgba(0,0,0,.35); transform: translateY(-1px); }
.foot-band__cta:active { box-shadow: 0 2px 0 rgba(0,0,0,.35); transform: translateY(2px); }
.foot-band__cta-label {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .68rem;
  color: var(--yellow);
}
.foot-band__cta-num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1;
  letter-spacing: .01em;
}

/* Compact inline row */
.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding-block: 1.75rem;
  border-top: 3px solid var(--yellow);
}
.foot-row__brand { line-height: 0; flex: 0 0 auto; }
.foot-row__brand .brand__logo { width: 190px; height: auto; }
.foot-row__nav { flex: 1 1 auto; }
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .35rem 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.foot-nav li { display: flex; align-items: center; }
.foot-nav li + li::before {
  content: "";
  width: 1px;
  height: 1rem;
  margin: 0 1.1rem;
  background: var(--line);
}
.foot-nav a {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .85rem;
  color: var(--muted);
  white-space: nowrap;
}
.foot-nav a:hover { color: var(--yellow); }
.foot-row__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .15rem;
  flex: 0 0 auto;
  text-align: right;
}
.foot-row__phone {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: .01em;
  color: var(--white);
}
.foot-row__phone:hover { color: var(--yellow); }
.foot-row__email { color: var(--muted); font-size: .9rem; }
.foot-row__email:hover { color: var(--yellow); }

/* Bottom hairline */
.foot-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--line);
}
.foot-base__place {
  margin: 0;
  font-style: normal;
  color: var(--muted-2);
  font-size: .82rem;
  letter-spacing: .02em;
}
.foot-base__sep { color: var(--yellow); padding: 0 .35rem; }
.foot-base__meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.foot-base .bbb-badge { margin-top: 0; }
.foot-base__copy { margin: 0; color: var(--muted-2); font-size: .82rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .grid--why { grid-template-columns: repeat(2, 1fr); }
  .area__grid,
  .contact__grid { grid-template-columns: 1fr; gap: 2rem; }
  .area__media { order: -1; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    inset: calc(var(--topbar-h) + 1px) 0 auto 0;
    background: var(--charcoal-2);
    border-bottom: 1px solid var(--line);
    margin: 0;
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform .3s ease, visibility 0s linear .3s;
    z-index: 90;
    box-shadow: var(--shadow);
  }
  .nav.is-open { transform: translateY(0); visibility: visible; transition: transform .3s ease, visibility 0s; }
  .nav__list {
    flex-direction: column;
    gap: 0;
    padding: .5rem 0;
    width: min(100% - 2.5rem, var(--wrap));
    margin-inline: auto;
  }
  .nav__link {
    display: block;
    padding: 1rem .25rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
  .nav__link::after { display: none; }
  .nav__link.is-active { color: var(--yellow); }
  .hb { display: flex; }
  .brand__logo { width: 150px; }
  .grid--services { grid-template-columns: 1fr; }
  .topbar__cta { margin-left: auto; }
  .nav + .topbar__cta { margin-left: auto; }
}

@media (max-width: 560px) {
  .topbar__inner { gap: .5rem; }
  .topbar__cta { gap: .5rem; }
  .btn--call { padding: .55rem .65rem; }
  .btn--call .btn__label { display: none; }
  .btn--call .btn__num { font-size: .8rem; white-space: nowrap; }
  .brand__logo { width: 124px; height: auto; }
  .hb { width: 42px; height: 42px; }
  .foot-band__inner { flex-direction: column; align-items: flex-start; }
  .foot-band__cta { align-self: stretch; align-items: center; }
  .foot-row { flex-direction: column; align-items: center; text-align: center; gap: 1.5rem; }
  .foot-row__contact { align-items: center; text-align: center; }
  .foot-base { flex-direction: column; text-align: center; gap: 1.25rem; }
  .foot-base__place { text-align: center; }
  .foot-base__meta { flex-direction: column; }
  .grid--why { grid-template-columns: 1fr; }
  .hero__badges { gap: .5rem 1.25rem; }
  .form { padding: 1.5rem; }
  .hero__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

.bbb-badge { display:inline-block; background:none; border:0; padding:0; line-height:0; margin-top: 14px; }
.bbb-badge img { display:block; width:120px; max-width:100%; height:auto; }
.bbb-strip { padding:20px 0; }
.bbb-strip__inner { display:flex; align-items:center; justify-content:center; }

/* Hero BBB — accreditation seal pinned to the hero's top-right corner */
.hero__seal { position: absolute; z-index: 3; top: clamp(20px, 3vw, 34px); right: clamp(16px, 4vw, 40px); margin: 0; }
.hero__seal img { filter: drop-shadow(0 6px 16px rgba(0,0,0,.55)); }
@media (max-width: 700px) { .hero__seal { top: 14px; right: 14px; } .hero__seal img { width: 96px; } }
