/* Lederman's Sealcoating — static site styles */
@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Figtree:wght@400;500;600;700&display=swap");

:root {
  --bg: #0c0c0b;
  --surface: #161614;
  --raised: #1f1e1b;
  --fg: #f3efe6;
  --muted: #9c9688;
  --faint: #6e6a60;
  --accent: #f05a1a;
  --accent-hover: #ff6d32;
  --accent-fg: #140c08;
  --border: #2c2a26;
  --asphalt: #080807;
  --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --radius: 0.625rem;
  --shadow: 0 0 0 1px rgba(243, 239, 230, 0.08);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
  outline: 1px solid rgba(243, 239, 230, 0.08);
  outline-offset: -1px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
[role="button"] {
  cursor: pointer;
  font-family: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-wrap: balance;
  margin: 0;
}

p {
  text-wrap: pretty;
  margin: 0;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(12, 12, 11, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  gap: 1rem;
}

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

.logo-main {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  background: linear-gradient(180deg, #f6c14a 0%, #f05a1a 42%, #c83a0c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform: skewX(-6deg);
}

.logo-sub {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.15rem;
}

.nav-desktop {
  display: none;
  gap: 2rem;
}

.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s;
}

.nav-desktop a:hover {
  color: var(--fg);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  min-height: 2.75rem;
}

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: transparent;
  border: 0;
  color: var(--fg);
  padding: 0;
}

.menu-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 4rem 0 0 0;
  background: var(--bg);
  padding: 1.5rem 1rem;
  z-index: 30;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 3rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 2.25rem;
  letter-spacing: 0.04em;
}

.mobile-nav .btn {
  margin-top: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 1.1rem;
  border-radius: var(--radius);
  border: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  text-align: center;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--fg);
  box-shadow: var(--shadow);
}

.btn-secondary:hover {
  background: var(--raised);
}

.btn-inverse {
  background: var(--fg);
  color: var(--bg);
}

.btn-lg {
  min-height: 3rem;
  padding: 0 1.25rem;
}

.btn svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 88dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--asphalt);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--asphalt) 0%,
    rgba(8, 8, 7, 0.55) 45%,
    rgba(8, 8, 7, 0.25) 100%
  );
  z-index: -1;
}

.hero-content {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
  padding: 7rem 0 4rem;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(243, 239, 230, 0.8);
}

.hero h1 {
  margin-top: 0.75rem;
  font-size: clamp(3.4rem, 12vw, 7.5rem);
  line-height: 0.86;
  letter-spacing: 0.04em;
}

.hero-lead {
  margin-top: 1.25rem;
  max-width: 26rem;
  color: rgba(243, 239, 230, 0.85);
  font-size: 1.05rem;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Profile strip */
.profile {
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}

.profile-row {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.profile-avatar {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--asphalt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.profile-avatar svg {
  width: 2.5rem;
  height: 2.5rem;
}

.profile h2 {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  letter-spacing: 0.04em;
}

.profile-meta {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.profile-bio {
  margin-top: 0.75rem;
  max-width: 32rem;
  font-size: 0.875rem;
  color: var(--fg);
  line-height: 1.55;
}

.profile-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.highlights {
  margin-top: 2rem;
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  width: 4.5rem;
}

.highlight-ring {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: var(--accent);
  padding: 2px;
  display: flex;
}

.highlight-ring span {
  flex: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg);
  padding: 2px;
}

.highlight-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.highlight-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  margin-top: 0.75rem;
  font-size: clamp(2.5rem, 7vw, 3.75rem);
  line-height: 1;
  letter-spacing: 0.04em;
}

.section-lead {
  margin-top: 1rem;
  max-width: 28rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Before / After */
.ba-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.ba-slider {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--surface);
  user-select: none;
  touch-action: none;
  cursor: ew-resize;
}

.ba-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-after {
  clip-path: inset(0 0 0 54%);
}

.ba-handle {
  position: absolute;
  inset: 0 auto 0 54%;
  width: 1px;
  background: var(--fg);
  z-index: 2;
}

.ba-handle-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ba-label {
  position: absolute;
  top: 0.75rem;
  z-index: 3;
  background: rgba(8, 8, 7, 0.8);
  padding: 0.25rem 0.5rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  border-radius: 0.25rem;
  pointer-events: none;
}

.ba-label-before {
  left: 0.75rem;
}

.ba-label-after {
  right: 0.75rem;
}

.ba-range {
  position: absolute;
  inset: auto 0 0.75rem 0;
  width: min(100%, 20rem);
  margin-inline: auto;
  height: 2.75rem;
  opacity: 0;
  z-index: 4;
  cursor: ew-resize;
}

/* Work grid */
.work-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

.work-head a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  max-width: 1120px;
  margin-inline: auto;
}

.work-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface);
  border: 0;
  padding: 0;
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.work-item:hover img {
  transform: scale(1.03);
}

/* Services */
.services-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1rem;
}

.service-card {
  background: var(--surface);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s;
}

.service-card:hover {
  box-shadow: 0 0 0 1px rgba(243, 239, 230, 0.14);
}

.service-card img {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
}

.service-body {
  padding: 1.25rem;
}

.service-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.service-body h3 {
  margin-top: 0.25rem;
  font-size: 1.75rem;
}

.service-body p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Why */
.why {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--asphalt);
  padding: 5rem 0;
}

.why-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  z-index: -2;
}

.why-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 7, 0.7);
  z-index: -1;
}

.why-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.5rem;
}

.why-card {
  background: rgba(12, 12, 11, 0.7);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.why-card svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent);
}

.why-card h3 {
  margin-top: 1rem;
  font-size: 1.75rem;
}

.why-card p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Estimate */
.estimate-grid {
  display: grid;
  gap: 2.5rem;
}

.estimate-phone {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 2.5rem);
  letter-spacing: 0.04em;
  color: var(--accent);
  min-height: 3rem;
}

.form-card {
  background: var(--surface);
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0 0.875rem;
  border-radius: var(--radius);
  border: 0;
  background: var(--raised);
  color: var(--fg);
  font: inherit;
  font-size: 0.875rem;
  box-shadow: var(--shadow);
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.form-note {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--faint);
}

.form-error {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--accent);
}

.form-success {
  display: none;
}

.form-success.show {
  display: block;
}

.form-card.sent .form-fields {
  display: none;
}

.form-card.sent .form-success {
  display: block;
}

.form-success h3 {
  font-size: 1.75rem;
}

.form-success p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

.form-success-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Footer */
.site-footer {
  background: var(--asphalt);
}

.footer-stripe {
  height: 0.5rem;
  background: var(--accent);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding: 3.5rem 0;
}

.footer-owner {
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

.footer-copy {
  margin-top: 0.75rem;
  max-width: 18rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

.footer-social {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  font-size: 0.875rem;
}

.footer-social svg {
  width: 1rem;
  height: 1rem;
}

.footer-col h3 {
  font-size: 1.5rem;
}

.footer-col ul {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--muted);
}

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

.footer-phone {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  color: var(--accent);
  min-height: 2.75rem;
}

.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  min-height: 2.75rem;
}

.footer-city {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}

.footer-bottom p {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.footer-bottom p + p {
  margin-top: 0.75rem;
  letter-spacing: 0;
  text-transform: none;
}

/* Sticky call bar */
.sticky-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 40;
  background: rgba(12, 12, 11, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 0.75rem;
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
}

.sticky-bar-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.sticky-bar .btn {
  min-height: 3rem;
}

body {
  padding-bottom: 5rem;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(8, 8, 7, 0.92);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox.open {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox figure {
  max-width: 48rem;
  width: 100%;
  margin: 0;
}

.lightbox img {
  max-height: 72vh;
  width: 100%;
  object-fit: contain;
  border-radius: 0.5rem;
}

.lightbox figcaption {
  margin-top: 1rem;
  padding-inline: 0.25rem;
}

.lightbox figcaption p {
  font-size: 0.875rem;
  line-height: 1.55;
}

.lightbox figcaption .loc {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Desktop */
@media (min-width: 768px) {
  .nav-desktop,
  .header-actions {
    display: flex;
  }

  .menu-btn {
    display: none;
  }

  .hero-actions {
    flex-direction: row;
  }

  .profile-avatar {
    width: 6rem;
    height: 6rem;
  }

  .ba-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

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

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

  .estimate-grid {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
  }

  .form-card {
    padding: 2rem;
  }

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

  .field-span {
    grid-column: 1 / -1;
  }

  .form-success-actions {
    flex-direction: row;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 0.7fr 1fr;
  }

  .sticky-bar {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
