/* =========================================================
   Hilltop Equipment Repair — industrial / trustworthy styles
   Palette: charcoal, steel gray, safety orange accent
   ========================================================= */

:root {
  /* Brand colors */
  --charcoal: #1a1d21;
  --charcoal-deep: #121417;
  --steel: #3d4650;
  --steel-mid: #5c6773;
  --steel-light: #8b95a1;
  --mist: #c5ccd4;
  --paper: #e8ebef;
  --white: #f5f6f8;
  --accent: #e85d04; /* safety orange */
  --accent-hot: #ff7a1a;
  --accent-dark: #c44a00;
  --warning: #f4b400; /* secondary caution yellow */

  /* Typography */
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Segoe UI", sans-serif;

  /* Layout */
  --header-h: 4.25rem;
  --container: 72rem;
  --radius: 2px;
  --ease: 200ms ease;
  --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.35);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--paper);
  background: var(--charcoal-deep);
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-hot);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  transition: color var(--ease);
}

a:hover {
  color: var(--warning);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--warning);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.4rem, 7vw, 4.25rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--accent);
  color: var(--charcoal-deep);
  padding: 0.6rem 1rem;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
}

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

.btn-accent {
  background: var(--accent);
  color: var(--charcoal-deep);
  border-color: var(--accent);
}

.btn-accent:hover {
  background: var(--accent-hot);
  border-color: var(--accent-hot);
  color: var(--charcoal-deep);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--mist);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-hot);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: transparent;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.btn-sm {
  min-height: 42px;
  padding: 0.45rem 0.95rem;
  font-size: 0.95rem;
}

.btn-block {
  width: 100%;
}

/* ---------- Sticky header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(18, 20, 23, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(197, 204, 212, 0.12);
}

.header-inner {
  height: 100%;
  width: min(100% - 1.25rem, var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--white);
  flex-shrink: 0;
}

.logo:hover {
  color: var(--white);
}

.logo-mark {
  width: 2.15rem;
  height: 2.15rem;
  background:
    linear-gradient(135deg, var(--accent) 0 35%, transparent 35% 65%, var(--steel-mid) 65%),
    var(--steel);
  border: 2px solid var(--mist);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.logo-sub {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-light);
}

.site-nav {
  display: none;
}

.site-nav ul {
  display: flex;
  gap: 0.15rem 1.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--accent-hot);
  border-bottom-color: var(--accent);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.header-phone {
  display: none;
  align-items: center;
  gap: 0.4rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--accent-hot);
}

/* Mobile nav toggle */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: 0.25rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  order: 3;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--white);
  transition: transform var(--ease), opacity var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero (full-bleed) ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  /* Atmosphere: steel grit over photo */
  background: var(--charcoal);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  /* Subtle zoom-in motion for presence */
  animation: hero-kenburns 18s ease-out forwards;
  filter: saturate(0.75) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 20, 23, 0.55) 0%, rgba(18, 20, 23, 0.35) 35%, rgba(18, 20, 23, 0.92) 100%),
    radial-gradient(ellipse at 20% 80%, rgba(232, 93, 4, 0.18), transparent 50%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 3px,
      rgba(0, 0, 0, 0.04) 3px,
      rgba(0, 0, 0, 0.04) 4px
    );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
  padding: 4.5rem 0 3.5rem;
  max-width: 40rem;
  margin-left: max(1rem, calc((100% - var(--container)) / 2));
  /* Entrance motion */
  animation: rise-in 0.7s ease-out both;
}

.hero-brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.hero-lead {
  color: var(--mist);
  font-size: 1.1rem;
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@keyframes hero-kenburns {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Sections ---------- */
.section {
  padding: 4.5rem 0;
  position: relative;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-sub {
  color: var(--steel-light);
  margin: 0;
  max-width: 36rem;
}

.section-sub.left {
  margin-bottom: 1.5rem;
}

.section-cta {
  margin-top: 2.25rem;
  text-align: center;
}

/* ---------- Services preview ---------- */
.services-preview {
  background:
    linear-gradient(180deg, var(--charcoal) 0%, var(--charcoal-deep) 100%);
  border-top: 3px solid var(--accent);
}

.preview-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.preview-item {
  background: transparent;
}

.preview-img {
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 0.9rem;
  aspect-ratio: 16 / 10;
  background: var(--steel);
  /* Industrial frame */
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.preview-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.05);
  transition: transform 0.45s ease;
}

.preview-item:hover .preview-img img {
  transform: scale(1.04);
}

.preview-item h3 {
  margin-bottom: 0.35rem;
}

.preview-item p {
  color: var(--steel-light);
  margin: 0;
  font-size: 0.98rem;
}

/* ---------- About ---------- */
.about {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(232, 93, 4, 0.08), transparent 45%),
    linear-gradient(135deg, #22262c 0%, var(--charcoal-deep) 55%, #1e2329 100%);
}

.about-grid {
  display: grid;
  gap: 2.5rem;
}

.about-copy p {
  color: var(--mist);
}

.about-points {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.65rem;
}

.about-points li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--paper);
  font-weight: 500;
}

.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.65rem;
  height: 0.65rem;
  background: var(--accent);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.about-aside {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.aside-panel {
  padding: 1.35rem 1.4rem;
  background: rgba(61, 70, 80, 0.35);
  border-left: 3px solid var(--steel-mid);
}

.accent-panel {
  border-left-color: var(--accent);
  background: rgba(232, 93, 4, 0.1);
}

.aside-panel h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.aside-panel p {
  margin: 0;
  color: var(--mist);
  font-size: 0.98rem;
}

.hours-note {
  font-size: 0.85rem !important;
  color: var(--warning) !important;
  font-style: italic;
  margin-bottom: 0.75rem !important;
}

.hours-list {
  display: grid;
  gap: 0.45rem;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--paper);
  border-bottom: 1px dashed rgba(197, 204, 212, 0.2);
  padding-bottom: 0.35rem;
}

/* ---------- Services grid ---------- */
.services {
  background: var(--charcoal);
}

.services::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, black, transparent 90%);
}

.services-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.service-card {
  padding: 1.35rem 1.25rem;
  background: rgba(18, 20, 23, 0.65);
  border: 1px solid rgba(197, 204, 212, 0.12);
  border-top: 3px solid var(--steel-mid);
  transition: border-color var(--ease), transform var(--ease);
}

.service-card:hover {
  border-top-color: var(--accent);
  transform: translateY(-2px);
}

.service-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card p {
  margin: 0;
  color: var(--steel-light);
  font-size: 0.98rem;
}

/* ---------- Gallery ---------- */
.gallery {
  background:
    linear-gradient(180deg, var(--charcoal-deep), #1c2026);
}

.gallery-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr 1fr;
}

.gallery-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--steel);
}

.gallery-item.tall {
  grid-row: span 2;
  aspect-ratio: auto;
  min-height: 100%;
}

.gallery-item.wide {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.08) brightness(0.92);
  transition: transform 0.5s ease, filter 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: saturate(0.9) contrast(1.05) brightness(0.98);
}

.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
}

/* ---------- Reviews ---------- */
.reviews {
  background: var(--charcoal);
  border-block: 1px solid rgba(197, 204, 212, 0.08);
}

.reviews-grid {
  display: grid;
  gap: 1.15rem;
}

.review-card {
  margin: 0;
  padding: 1.5rem 1.35rem;
  background: linear-gradient(160deg, #252a31, #1a1e24);
  border-left: 4px solid var(--accent);
}

.stars {
  color: var(--warning);
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.review-card p {
  color: var(--paper);
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
}

.review-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  align-items: baseline;
}

.review-card cite {
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
}

.review-card footer span {
  color: var(--steel-light);
  font-size: 0.9rem;
}

/* ---------- Contact ---------- */
.contact {
  background:
    radial-gradient(ellipse at 0% 100%, rgba(232, 93, 4, 0.12), transparent 40%),
    var(--charcoal-deep);
}

.contact-grid {
  display: grid;
  gap: 2.5rem;
}

.contact-details {
  display: grid;
  gap: 1.15rem;
  margin-bottom: 1.5rem;
}

.contact-details li {
  display: grid;
  gap: 0.25rem;
}

.contact-details strong {
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--accent);
}

.contact-details a,
.contact-details span {
  color: var(--paper);
  text-decoration: none;
  line-height: 1.5;
}

.contact-details a:hover {
  color: var(--accent-hot);
}

.map-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(197, 204, 212, 0.15);
  aspect-ratio: 16 / 11;
  background: var(--steel);
}

.map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.35) contrast(1.05);
}

.contact-form {
  padding: 1.75rem 1.35rem;
  background: rgba(61, 70, 80, 0.28);
  border: 1px solid rgba(197, 204, 212, 0.14);
  border-top: 3px solid var(--accent);
}

.contact-form h3 {
  margin-bottom: 0.35rem;
}

.form-note {
  color: var(--steel-light);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--mist);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  font: inherit;
  color: var(--white);
  background: var(--charcoal-deep);
  border: 1px solid rgba(197, 204, 212, 0.22);
  border-radius: var(--radius);
  transition: border-color var(--ease);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--steel-mid);
}

.field input:hover,
.field textarea:hover {
  border-color: rgba(197, 204, 212, 0.4);
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
}

.form-disclaimer {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  color: var(--steel-light);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0d0f12;
  border-top: 3px solid var(--accent);
  padding-top: 3rem;
  color: var(--steel-light);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 0.5rem;
}

.footer-col h3 {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.footer-col p,
.footer-brand p {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.footer-col a {
  color: var(--paper);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--accent-hot);
}

.social-links {
  display: flex;
  gap: 0.65rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(197, 204, 212, 0.15);
  transition: background var(--ease), color var(--ease);
}

.social-links a:hover {
  background: var(--accent);
  color: var(--charcoal-deep);
}

.footer-bottom {
  border-top: 1px solid rgba(197, 204, 212, 0.1);
  padding: 1.1rem 0;
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .preview-grid {
    grid-template-columns: 1fr 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .header-phone {
    display: inline-flex;
  }

  .header-actions .btn-sm {
    display: inline-flex;
  }
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    margin-left: 1.5rem;
  }

  .about-grid {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }

  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid {
    grid-template-columns: 1.1fr 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .gallery-item.tall {
    grid-row: 1 / 3;
  }

  .gallery-item.wide {
    grid-column: 2 / 4;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
  }
}

@media (min-width: 960px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .preview-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
  }

  .hero-content {
    padding-bottom: 5rem;
  }
}

@media (max-width: 767px) {
  /* Slide-down mobile nav panel */
  .site-nav {
    display: block;
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(12, 14, 17, 0.98);
    border-bottom: 1px solid rgba(197, 204, 212, 0.12);
    padding: 1rem 1.25rem 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(197, 204, 212, 0.1);
  }

  .header-actions .btn-sm {
    display: none;
  }

  .header-phone span {
    font-size: 0.85rem;
  }

  .gallery-item.tall {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }
}

/* Reduced motion: keep layout, drop motion noise */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-media img,
  .hero-content,
  .preview-img img,
  .gallery-item img,
  .service-card,
  .btn {
    animation: none !important;
    transition: none !important;
  }

  .hero-media img {
    transform: none;
  }
}
