/* Dixon Garage Doors — landing */

:root {
  --ink: #101820;
  --ink-soft: #3a4652;
  --steel: #6d8499;
  --signal: #e07a3d;
  --signal-deep: #c45f24;
  --mist: #e8eef2;
  --panel: #f4f7f9;
  --white: #fafcfd;
  --max: 1140px;
  --header-h: 4.4rem;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font-display: "Saira", "Arial Narrow", sans-serif;
  --font-body: "Karla", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    linear-gradient(160deg, rgba(109, 132, 153, 0.12), transparent 42%),
    linear-gradient(180deg, var(--panel) 0%, var(--mist) 100%);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal-deep);
}

h1,
h2,
h3,
.hero__brand,
.logo,
.site-footer__brand {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--header-h);
  color: var(--white);
  background: linear-gradient(180deg, rgba(16, 24, 32, 0.82), transparent);
}

.site-header__inner {
  width: min(100% - 2rem, var(--max));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--white);
  text-transform: uppercase;
}

.nav__list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.6rem;
  align-items: center;
}

.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(250, 252, 253, 0.9);
}

.nav a:hover {
  color: var(--white);
}

.nav__phone {
  color: var(--signal) !important;
  border: 1px solid rgba(224, 122, 61, 0.65);
  padding: 0.45rem 0.8rem;
}

.nav-toggle {
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(250, 252, 253, 0.35);
  background: rgba(16, 24, 32, 0.45);
  display: inline-grid;
  place-content: center;
  gap: 0.35rem;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.mobile-nav {
  position: absolute;
  inset: var(--header-h) 0 auto;
  background: rgba(16, 24, 32, 0.97);
  padding: 0.5rem 1rem 1.25rem;
  border-bottom: 1px solid rgba(224, 122, 61, 0.3);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav a {
  display: block;
  padding: 0.9rem 0.35rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(250, 252, 253, 0.08);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.05rem;
  padding: 0.7rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--signal);
  color: var(--ink);
}

.btn--primary:hover {
  background: #ef8a4d;
  color: var(--ink);
}

.btn--ghost {
  border-color: rgba(250, 252, 253, 0.55);
  color: var(--white);
}

.btn--ghost:hover {
  border-color: var(--white);
  color: var(--white);
}

.btn--on-light {
  color: var(--white);
  background: var(--ink);
}

.btn--on-light:hover {
  background: #1c2a38;
  color: var(--white);
}

/* Hero — left-aligned */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--white);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  transform: scale(1.05);
  animation: drift 18s var(--ease) infinite alternate;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(16, 24, 32, 0.5) 0%, rgba(16, 24, 32, 0.2) 40%, rgba(16, 24, 32, 0.9) 100%),
    linear-gradient(90deg, rgba(16, 24, 32, 0.85) 0%, rgba(16, 24, 32, 0.45) 50%, rgba(16, 24, 32, 0.2) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: calc(var(--header-h) + 1.5rem) 0 2.75rem;
}

.hero__content {
  width: min(100% - 2rem, var(--max));
  max-width: 38rem;
  margin-left: max(1rem, calc((100% - var(--max)) / 2));
  margin-right: auto;
  text-align: left;
  animation: rise 0.9s var(--ease) both;
}

.hero__brand {
  margin: 0 0 0.85rem;
  font-size: clamp(2.2rem, 7.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero__headline {
  margin: 0 0 0.85rem;
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  font-weight: 600;
  line-height: 1.25;
  max-width: 22ch;
  color: rgba(250, 252, 253, 0.95);
}

.hero__lede {
  margin: 0 0 1.5rem;
  max-width: 36ch;
  color: rgba(250, 252, 253, 0.84);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@keyframes drift {
  from {
    transform: scale(1.05);
  }

  to {
    transform: scale(1.12) translate(-1%, -0.5%);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.2rem);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* About — media left, copy right */

.about {
  padding: clamp(3.5rem, 9vw, 6.5rem) 0;
}

.about__layout {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid;
  gap: 1.75rem;
}

.about__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: contrast(1.04) saturate(0.95);
}

.about__copy {
  padding: 0.25rem 0 0;
}

.about__copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  line-height: 1.08;
  max-width: 14ch;
  color: var(--ink);
}

.about__copy p {
  margin: 0 0 0.95rem;
  color: var(--ink-soft);
}

.about__address {
  margin: 1.5rem 0 0;
  padding: 1rem 0 0;
  border-top: 3px solid var(--signal);
  font-style: normal;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink);
}

.about__address a {
  color: var(--signal-deep);
  font-weight: 700;
  text-decoration: none;
}

.about__address a:hover {
  color: var(--ink);
}

/* Services — full bands, not cards */

.services {
  padding: 0 0 clamp(3.5rem, 9vw, 6.5rem);
}

.services__head {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto 2rem;
}

.services__head h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  color: var(--ink);
}

.services__lede {
  margin: 0;
  color: var(--ink-soft);
  max-width: 36ch;
}

.services__rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}

.band {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}

.band__image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.band:hover .band__image img {
  transform: scale(1.04);
}

.band__text {
  padding: 1.5rem 1.35rem 1.75rem;
}

.band__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  color: var(--signal);
  margin-bottom: 0.4rem;
}

.band h3 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.45rem, 3vw, 1.95rem);
}

.band p {
  margin: 0;
  color: rgba(250, 252, 253, 0.78);
  max-width: 38ch;
}

.services__cta {
  width: min(100% - 2rem, var(--max));
  margin: 2.5rem auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(16, 24, 32, 0.14);
}

.services__cta p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-weight: 700;
  max-width: 20ch;
  line-height: 1.15;
  color: var(--ink);
}

/* Footer */

.site-footer {
  background: var(--ink);
  color: rgba(250, 252, 253, 0.78);
  padding: 2.75rem 0;
}

.site-footer__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid;
  gap: 0.45rem;
}

.site-footer__brand {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
}

.site-footer__address {
  margin: 0;
  font-style: normal;
  font-size: 0.92rem;
}

.site-footer__meta {
  margin: 0.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--signal);
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover {
  color: #ef8a4d;
}

.site-footer__copy {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  color: rgba(250, 252, 253, 0.5);
}

/* Reveal */

.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Breakpoints */

@media (min-width: 760px) {
  .nav__list {
    display: flex;
  }

  .nav-toggle,
  .mobile-nav {
    display: none !important;
  }

  .about__layout {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
  }

  .about__media img {
    min-height: 26rem;
    aspect-ratio: auto;
  }

  .band,
  .band--flip {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: stretch;
  }

  .band--flip .band__image {
    order: 2;
  }

  .band__text {
    display: grid;
    align-content: center;
    padding: 2rem 2.25rem;
  }

  .band__image img {
    height: 100%;
    min-height: 16rem;
    aspect-ratio: auto;
  }
}

@media (min-width: 1040px) {
  .hero__inner {
    padding-bottom: 4.25rem;
  }
}
