/* RM Construction — Repair Man LLC. Mobile-first single page. */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


@font-face {
  font-family: "Nunito Sans";
  src: url("fonts/NunitoSans-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("fonts/NunitoSans-ExtraBold.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("fonts/NunitoSans-Black.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #0b89c6;
  --blue-dark: #14578b;
  --blue-deeper: #153a66;
  --blue-soft: #e6f4fb;
  --ink: #1c2430;
  --muted: #5b6573;
  --line: #d5dce6;
  --paper: #f6f8fb;
  --white: #fff;
  --shadow: 0 1px 2px rgba(14, 47, 99, 0.06), 0 8px 24px rgba(14, 47, 99, 0.06);
  --radius: 6px;
  --header-h: 4.25rem;
  --content: 70rem;
  --font: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --dock-h: 0px;
}

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

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

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 1000;
  background: var(--blue);
  color: var(--white);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 0.75rem; color: var(--white); }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--blue);
  min-width: 0;
}
.brand:hover { color: var(--blue-dark); }
.brand img { width: 4.3rem; height: 2.5rem; flex: none; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}
.brand-name {
  font-family: "Nunito Sans", var(--font);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--blue);
}
.brand-tag {
  font-size: 0.68rem;
  font-weight: 500;
  color: #14578b;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle-bars {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  position: relative;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
  box-shadow: none;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before,
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 1rem 1rem;
  box-shadow: var(--shadow);
}
.site-nav.is-open { display: block; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.site-nav a {
  display: block;
  padding: 0.7rem 0.35rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.site-nav a:hover { color: var(--blue); }

.btn.header-call { display: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}
.btn-call {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-call:hover,
.btn-call:focus-visible {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.85);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--white);
  color: var(--blue-deeper);
  border-color: var(--white);
}
.btn-ghost-dark {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-ghost-dark:hover,
.btn-ghost-dark:focus-visible {
  background: var(--blue);
  color: var(--white);
}
.btn-block { width: 100%; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.75rem;
  max-width: 26rem;
}

/* Hero */
.hero {
  position: relative;
  color: var(--white);
  min-height: 34rem;
  display: flex;
  align-items: center;
  background-color: var(--blue-deeper);
  background-image:
    linear-gradient(180deg, rgba(10, 22, 44, 0.35) 0%, rgba(10, 22, 44, 0.55) 40%, rgba(8, 16, 32, 0.88) 100%),
    url("img/hero.jpg");
  background-size: cover;
  background-position: center;
}
.hero-inner {
  padding: 3rem 0 5.5rem;
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
}
.eyebrow {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d5e4f8;
}
.hero h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(2.15rem, 8vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.hero .tagline {
  margin: 0 0 1rem;
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  font-weight: 500;
  color: #e6f4fb;
}
.hero .lede {
  margin: 0;
  max-width: 36rem;
  font-size: 1.05rem;
  color: #dce6f2;
}

/* Sections */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--paper); }
.section-blue {
  background: var(--blue-deeper);
  color: var(--white);
}
.section h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.65rem, 3.4vw, 2.15rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.section-intro {
  margin: 0 0 2rem;
  max-width: 40rem;
  color: var(--muted);
}
.section-blue .section-intro { color: #c9d6e8; }

.kicker {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}
.section-blue .kicker { color: #9db8e8; }

/* Services */
.services-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.35rem 1.25rem 1.3rem;
  box-shadow: var(--shadow);
}
.service-card h3 {
  margin: 0.7rem 0 0.35rem;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}
.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}
.service-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--blue);
}
.service-icon svg { width: 100%; height: 100%; }

/* Gallery */
.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.gallery-item {
  margin: 0;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--blue-soft);
}
.gallery-item figcaption {
  padding: 0.7rem 0.9rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
}

/* Why us */
.why-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.why-card {
  padding: 1.35rem 1.2rem;
  border-top: 3px solid var(--blue);
  background: var(--white);
  border-radius: 0 0 8px 8px;
  box-shadow: var(--shadow);
}
.why-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.12rem;
}
.why-card p { margin: 0; color: var(--muted); }

.review-invite {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}
.review-invite p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink);
}
.review-btn {
  min-height: 2.85rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.98rem;
}
.review-btn-footer {
  min-height: 2.5rem;
  padding: 0.4rem 0.95rem;
  font-size: 0.92rem;
}
.footer-review {
  margin: 0.7rem 0 0.45rem;
  color: var(--ink);
}
.footer-review-action { margin: 0 0 0.7rem; }

/* Service area */
.area-inner {
  display: grid;
  gap: 1.5rem;
}
.area-copy p { margin: 0 0 0.8rem; }
.area-copy p:last-child { margin-bottom: 0; }
.area-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.area-list li {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-weight: 500;
  font-size: 0.95rem;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
}
.contact-panel h2 { margin-bottom: 0.75rem; }
.contact-lead { margin: 0 0 1.25rem; color: var(--muted); }
.contact-methods {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.contact-methods a {
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}
.contact-methods a:hover { color: var(--blue); }
.contact-methods .method-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}
.phone-xl {
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  color: var(--blue) !important;
}
.trust-note {
  margin: 1.25rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.estimate-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.35rem 1.15rem 1.4rem;
}
.estimate-form h3 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
}
.form-row { margin-bottom: 0.85rem; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}
.req { color: var(--blue); }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
  min-height: 2.85rem;
}
.form-row textarea { min-height: 8rem; resize: vertical; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 3px solid color-mix(in srgb, var(--blue) 35%, white);
  border-color: var(--blue);
}
.form-status {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
  min-height: 1.3em;
}
.form-status.is-error { color: #8a1f1f; }

/* Footer */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 2.25rem 0 calc(2rem + var(--dock-h));
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-inner {
  display: grid;
  gap: 1.25rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--blue);
  font-weight: 700;
}
.footer-brand img { width: 3.4rem; height: 1.98rem; }
.legal-line { margin: 0.35rem 0 0; color: var(--ink); font-weight: 500; }
.footer-meta { margin: 0; }
.footer-meta a { color: inherit; }

/* Mobile dock */
.mobile-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 180;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom));
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(14, 47, 99, 0.08);
}
body { --dock-h: 4.6rem; padding-bottom: var(--dock-h); }

/* Desktop */
@media (min-width: 720px) {
  .brand-name { font-size: 1.2rem; }
  .brand-tag { font-size: 0.72rem; }
  .brand img { width: 5rem; height: 2.9rem; }

  .nav-toggle { display: none; }
  .site-nav {
    display: block;
    position: static;
    border: 0;
    box-shadow: none;
    padding: 0;
    background: transparent;
  }
  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
  }
  .site-nav a { padding: 0.5rem 0.7rem; font-size: 0.98rem; }

  .btn.header-call {
    display: inline-flex;
    min-height: 2.6rem;
    padding: 0.4rem 0.9rem;
    font-size: 0.95rem;
  }

  .hero { min-height: 38rem; align-items: center; }
  .hero-inner { padding: 5rem 0 6.5rem; }
  .hero-actions {
    flex-direction: row;
    max-width: none;
    flex-wrap: wrap;
  }
  .hero-actions .btn { min-width: 15.5rem; }

  .section { padding: 4.5rem 0; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1.1fr; align-items: start; }
  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

@media (min-width: 960px) {
  .services-grid { grid-template-columns: repeat(6, 1fr); }
  .services-grid .service-card { grid-column: span 2; }
  .services-grid .service-card:nth-child(4) { grid-column: 2 / span 2; }
  .services-grid .service-card:nth-child(5) { grid-column: 4 / span 2; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(4, 1fr); }
  .hero { min-height: 42rem; }
}

@media (min-width: 720px) {
  .mobile-dock { display: none; }
  body { --dock-h: 0px; padding-bottom: 0; }
}
