/* Hydraulic Cylinder Repair and Rebuilds — site styles */

:root {
  --navy: #141c24;
  --navy-2: #1c2834;
  --steel: #2a3846;
  --ink: #1b1f24;
  --muted: #5a646e;
  --line: #d6d0c6;
  --cream: #f4f0e8;
  --paper: #fbf8f3;
  --white: #fffcf8;
  --copper: #c45c26;
  --copper-dark: #9d4518;
  --copper-light: #e07840;
  --focus: #1b6fb5;
  --error: #9b1c1c;
  --success: #1f6b3a;
  --shadow: 0 12px 30px rgba(20, 28, 36, 0.12);
  --radius: 10px;
  --header-h: 4.5rem;
  --font: "Barlow", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  --max: 70rem;
}

*,
*::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;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--copper-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

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

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 1000;
  background: var(--white);
  color: var(--ink);
  padding: 0.6rem 1rem;
  font-weight: 600;
}

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

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

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--navy);
}

h1 {
  font-size: clamp(2.35rem, 5.2vw, 4.1rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.7rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.35rem;
  margin: 0 0 0.4rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--steel);
  max-width: 42rem;
}

.section {
  padding: 4.25rem 0;
}

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

.section-head p {
  margin: 0;
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.85rem;
  padding: 0.65rem 1.15rem;
  border: 2px solid transparent;
  border-radius: 6px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  color: inherit;
}

.btn-primary {
  background: var(--copper);
  color: #fff;
  border-color: var(--copper);
}

.btn-primary:hover {
  background: var(--copper-dark);
  border-color: var(--copper-dark);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn-ghost {
  background: var(--white);
  color: var(--navy);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-call svg,
.icon-phone {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: #fff;
  border-bottom: 3px solid var(--copper);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  text-decoration: none;
  min-width: 0;
}

.logo:hover {
  color: #fff;
}

.logo-mark {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.logo-text strong {
  font-size: 0.98rem;
  font-weight: 700;
}

.logo-text span {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--copper-light);
  font-weight: 600;
}

.site-nav ul {
  display: flex;
  gap: 0.15rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: #e8ecef;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.35rem 0;
}

.site-nav a:hover {
  color: #fff;
}

.header-call {
  background: var(--copper);
  color: #fff;
  border-color: var(--copper);
  white-space: nowrap;
}

.header-call:hover {
  background: var(--copper-light);
  border-color: var(--copper-light);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 6px;
  padding: 0;
  cursor: pointer;
}

.nav-toggle-bars {
  display: block;
  width: 1.15rem;
  height: 2px;
  margin: 0 auto;
  background: #fff;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 1.15rem;
  height: 2px;
  background: #fff;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, #243140 100%);
  color: #fff;
  overflow: hidden;
  padding: 4.5rem 0 5rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -24px;
  background: url("../images/hydraulic-cylinder-rebuild-raleigh.jpg") center 40% / cover no-repeat;
  filter: blur(18px) saturate(1.15);
  opacity: 0.28;
  pointer-events: none;
  transform: scale(1.06);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(196, 92, 38, 0.16), transparent 50%),
    linear-gradient(100deg, rgba(20, 28, 36, 0.88) 0%, rgba(20, 28, 36, 0.72) 48%, rgba(20, 28, 36, 0.5) 100%);
  pointer-events: none;
}

.hero .wrap,
.hero-pattern {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr minmax(18rem, 26rem);
  gap: 2.5rem;
  align-items: center;
}

.hero h1 {
  color: #fff;
}

.hero .lead {
  color: #d7dde3;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.6rem 0 1.8rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  padding: 0;
  margin: 0;
  list-style: none;
  color: #c9d2da;
  font-size: 0.98rem;
}

.hero-meta strong {
  display: block;
  color: #fff;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

.hero-art {
  position: relative;
  justify-self: end;
  width: 100%;
  margin: 0;
}

.hero-art img {
  width: 100%;
  height: auto;
  aspect-ratio: 678 / 452;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.45);
  background: #1c2834;
}

.hero-art figcaption {
  margin: 0.7rem 0 0;
  color: #c9d2da;
  font-size: 0.92rem;
  line-height: 1.45;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 70% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero::before {
    filter: none;
    transform: none;
    inset: 0;
    opacity: 0.16;
  }
}

/* Process */
.process {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.process-steps li {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.1rem 1.35rem;
}

.process-steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--copper);
  letter-spacing: 0.04em;
  margin-bottom: 0.45rem;
}

.process-steps h3 {
  font-size: 1.2rem;
}

.process-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Process photos */
.photo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  margin-top: 2.5rem;
}

.photo-card {
  margin: 0;
}

.photo-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1152 / 864;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--cream);
  box-shadow: 0 8px 20px rgba(20, 28, 36, 0.08);
}

.photo-card figcaption {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

/* Who we serve */
.serve {
  background: var(--cream);
}

.serve-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.serve-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.4rem;
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.serve-card svg {
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.7rem;
  color: var(--copper);
}

.serve-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Service area */
.areas {
  background: var(--navy);
  color: #e8ecef;
}

.areas h2,
.areas .eyebrow {
  color: #fff;
}

.areas .eyebrow {
  color: var(--copper-light);
}

.areas .section-head p {
  color: #c5ced6;
}

.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.area-list li {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  padding: 1.05rem 3rem 1.05rem 1.15rem;
  cursor: pointer;
  position: relative;
}

.faq-question::after {
  content: "";
  position: absolute;
  right: 1.15rem;
  top: 50%;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid var(--copper);
  border-bottom: 2px solid var(--copper);
  transform: translateY(-70%) rotate(45deg);
}

.faq-item.is-open .faq-question::after {
  transform: translateY(-20%) rotate(225deg);
}

.faq-answer {
  padding: 0 1.15rem 1.15rem;
  color: var(--steel);
}

.faq-answer p {
  margin: 0 0 0.7rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.note {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.2rem 0.45rem;
  background: #f3e6d8;
  color: var(--copper-dark);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 4px;
}

/* Contact */
.contact {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 2.5rem;
  align-items: start;
}

.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.5rem;
}

.contact-card dl {
  margin: 0;
}

.contact-card dt {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin: 1rem 0 0.2rem;
}

.contact-card dt:first-child {
  margin-top: 0;
}

.contact-card dd {
  margin: 0;
  font-size: 1.05rem;
}

.directions-note {
  margin: 0.65rem 0 0;
  padding: 0.7rem 0.85rem;
  background: #efe4d4;
  border-left: 4px solid var(--copper);
  border-radius: 0 6px 6px 0;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.98rem;
}

.map-frame {
  margin-top: 1.15rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 11;
  background: var(--cream);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-fallback {
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
}

/* Form */
.quote-form {
  display: grid;
  gap: 0.85rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.3rem;
}

.req {
  color: var(--copper);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1.5px solid #b7b0a4;
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  padding: 0.65rem 0.75rem;
  min-height: 2.75rem;
}

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

.field input:focus,
.field textarea:focus {
  border-color: var(--navy);
  outline: 2px solid rgba(27, 111, 181, 0.25);
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-status {
  margin: 0;
  padding: 0.8rem 0.9rem;
  border-radius: 6px;
  font-weight: 600;
}

.form-status.is-error {
  background: #fde8e8;
  color: var(--error);
}

.form-status.is-success {
  background: #e5f4ea;
  color: var(--success);
}

.form-status.is-pending {
  background: var(--cream);
  color: var(--navy);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #c5ced6;
  padding: 2.5rem 0 6.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.site-footer h2,
.site-footer h3 {
  color: #fff;
}

.site-footer a {
  color: #fff;
}

.site-footer .logo-text span {
  color: var(--copper-light);
}

.footer-hours,
.footer-contact {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-hours li,
.footer-contact li {
  margin: 0.25rem 0;
}

.copyright {
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* Sticky mobile call bar */
.sticky-call {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--copper);
  color: #fff;
  text-decoration: none;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.9rem 1rem;
  min-height: 3.25rem;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.18);
}

.sticky-call:hover {
  color: #fff;
  background: var(--copper-dark);
}

/* Responsive */
@media (max-width: 920px) {
  .hero-grid,
  .contact-grid,
  .serve-grid,
  .footer-grid,
  .photo-row {
    grid-template-columns: 1fr 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr 1fr;
  }

  .process-steps li:last-child {
    grid-column: span 2;
  }

  .hero-art {
    justify-self: stretch;
    max-width: 36rem;
    width: 100%;
    margin-inline: auto 0;
  }

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

  .hero::after {
    background:
      radial-gradient(ellipse at 80% 10%, rgba(196, 92, 38, 0.14), transparent 48%),
      linear-gradient(180deg, rgba(20, 28, 36, 0.86) 0%, rgba(20, 28, 36, 0.7) 55%, rgba(20, 28, 36, 0.55) 100%);
  }
}

@media (max-width: 800px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .header-call {
    display: none;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--navy-2);
    border-bottom: 3px solid var(--copper);
    display: none;
    padding: 0.5rem 0 1rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    width: min(100% - 2rem, var(--max));
    margin: 0 auto;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: 0.75rem 0;
    font-size: 1.05rem;
  }

  .sticky-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  .site-footer {
    padding-bottom: 2.5rem;
  }

  body {
    padding-bottom: 4.75rem;
  }

  body.nav-open {
    overflow: hidden;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .process-steps li:last-child {
    grid-column: auto;
  }

  .form-row,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .form-row,
  .serve-grid,
  .photo-row,
  .footer-grid,
  .contact-grid,
  .process-steps {
    grid-template-columns: 1fr;
  }

  .process-steps li:last-child {
    grid-column: auto;
  }

  .field {
    min-width: 0;
  }

  .logo-text strong {
    font-size: 0.86rem;
  }

  .section {
    padding: 3.25rem 0;
  }

  .hero {
    padding: 3rem 0 3.4rem;
  }
}
