/* ============================================
   FixRite Interiors — Static Site Styles
   ============================================
   Design notes (for future agents):
   - Dark theme on a charcoal/black base — premium auto/marine
     repair category. Looks professional in low light, lets photos
     of leather/vinyl pop. Inspired by Sprinter + MOXOM references.
   - Yellow accent (#FFB400) is the only color besides black/white/gray.
     One accent color keeps the brand legible and avoids design-by-committee.
   - Typography: Bebas Neue for display (industrial, bold), Inter for body (clean, readable).
   - Mobile-first. Breakpoints: 640 / 960. Don't add more without reason.
   ============================================ */

:root {
  --bg: #0E0E0E;
  --bg-alt: #161616;
  --bg-card: #1C1C1C;
  --border: #2A2A2A;
  --text: #F2F2F2;
  --text-muted: #A0A0A0;
  --accent: #FFB400;
  --accent-hover: #FFC633;
  --accent-text: #0E0E0E;
  --container-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================
   Header
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(14, 14, 14, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

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

.logo-link {
  display: block;
  flex-shrink: 0;
}

.logo {
  height: 44px;
  width: auto;
  /* Logo is black-on-white; invert for dark theme */
  filter: invert(1);
}

.phone-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  color: var(--text);
  border: 2px solid var(--accent);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  transition: all 0.15s ease;
}

.phone-cta:hover {
  background-color: var(--accent);
  color: var(--accent-text);
}

.phone-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.phone-cta:hover .phone-label {
  color: var(--accent-text);
}

.phone-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  line-height: 1;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 180, 0, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 4rem;
  padding-bottom: 4rem;
  max-width: 800px;
}

.hero-eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1;
  letter-spacing: 0.01em;
  margin-bottom: 1.5rem;
}

.hero-tagline {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 640px;
}

.hero-tagline strong {
  color: var(--text);
  font-weight: 600;
}

.hero-cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  letter-spacing: 0.02em;
}

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

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--accent-text);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--text);
  color: var(--text);
}

/* ============================================
   Sections (shared)
   ============================================ */
section {
  padding: 5rem 0;
}

.section-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 3rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Trust strip — between hero and services.
   Compact, low-noise, single dominant CTA.
   ============================================ */
.trust-strip {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.trust-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.trust-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  color: var(--text);
}

.trust-points li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--accent);
  color: var(--accent-text);
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.trust-cta {
  padding: 0.7rem 1.4rem;
  font-size: 0.95rem;
}

@media (min-width: 860px) {
  .trust-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ============================================
   Damage-type lead splitter
   Stains-first by design — Stuart's higher-margin
   work. Primary card is listed first and weighted
   larger on desktop. Mobile stacks stains-on-top.
   ============================================ */
.damage-splitter {
  background-color: var(--bg);
}

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

@media (min-width: 860px) {
  .damage-cards {
    grid-template-columns: 3fr 2fr;
    gap: 1.5rem;
  }
}

.damage-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background-color: var(--bg-card);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

@media (min-width: 860px) {
  .damage-card {
    min-height: 420px;
  }
}

.damage-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  color: var(--text);
}

.damage-card-photo {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
}

.damage-card-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(14, 14, 14, 0.35) 0%,
    rgba(14, 14, 14, 0.75) 55%,
    rgba(14, 14, 14, 0.95) 100%
  );
}

.damage-card-body {
  position: relative;
  z-index: 1;
  padding: 1.75rem 1.5rem;
}

@media (min-width: 860px) {
  .damage-card-body {
    padding: 2.25rem 2rem;
  }
}

.damage-card-tag {
  display: inline-block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  background-color: var(--accent);
  color: var(--accent-text);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.damage-card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
}

.damage-card--primary .damage-card-title {
  font-size: clamp(2.1rem, 3.8vw, 3rem);
}

.damage-card-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.5;
  margin-bottom: 1.1rem;
  max-width: 36rem;
}

.damage-card-cta {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.damage-card:hover .damage-card-cta {
  color: var(--accent-hover);
}

/* ============================================
   Services
   ============================================ */
.services {
  background-color: var(--bg-alt);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.2s ease;
}

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

.service-pill {
  display: inline-block;
  background-color: var(--accent);
  color: var(--accent-text);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  padding: 0.35rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================
   Gallery
   ============================================ */
.gallery {
  background-color: var(--bg);
}

.gallery-grid {
  display: grid;
  /* Mobile: single column. Pairs render vertically (before above after).
     Desktop: 2-column max so before/after pairs always sit side-by-side. */
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 720px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.gallery-item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 8px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
}

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

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

/* ============================================
   About
   ============================================ */
.about {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-inner {
  max-width: 800px;
}

.about h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.about-text p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.about-text p strong {
  color: var(--text);
}

.service-area {
  font-size: 0.95rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: 1.5rem;
}

/* ============================================
   Contact
   ============================================ */
.contact {
  background-color: var(--bg);
}

.contact-inner {
  max-width: 800px;
  text-align: center;
}

.contact h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.5rem;
}

.contact-sub {
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.contact-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  color: var(--text);
  transition: all 0.2s ease;
}

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

.contact-card-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.contact-card-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  word-break: break-word;
}

.contact-card-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================
   Contact form
   ============================================ */
.quote-form {
  display: grid;
  gap: 1.25rem;
  text-align: left;
  max-width: 720px;
  margin: 0 auto;
}

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

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field,
.form-field-full {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.form-req {
  color: var(--accent);
}

.form-hint {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.quote-form input[type="text"],
.quote-form input[type="tel"],
.quote-form input[type="email"],
.quote-form textarea {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 0.9rem;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.15s ease;
  width: 100%;
}

.quote-form input[type="text"]:focus,
.quote-form input[type="tel"]:focus,
.quote-form input[type="email"]:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.quote-form textarea {
  resize: vertical;
  min-height: 110px;
  font-family: inherit;
}

.quote-form input[type="file"] {
  background-color: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: 6px;
  padding: 0.75rem 0.9rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  width: 100%;
}

.quote-form legend {
  margin-bottom: 0.6rem;
  padding: 0;
}

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

@media (min-width: 640px) {
  .option-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.option-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background-color: var(--bg-card);
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.15s ease;
}

.option-item:hover {
  border-color: var(--accent);
}

.option-item input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin: 0;
}

.option-item:has(input:checked) {
  border-color: var(--accent);
}

.form-submit {
  justify-self: stretch;
  margin-top: 0.5rem;
}

@media (min-width: 640px) {
  .form-submit {
    justify-self: start;
  }
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-status {
  margin: 0;
  font-size: 0.95rem;
  min-height: 1.4em;
}

.form-status--success {
  color: var(--accent);
}

.form-status--error {
  color: #ff6b6b;
}

.contact-fallback {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 1.75rem;
}

.contact-fallback a {
  font-weight: 600;
}

/* ============================================
   Social CTA strip
   ============================================ */
.social-cta {
  background-color: var(--bg);
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.social-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.social-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background-color: var(--bg-card);
  transition: all 0.2s ease;
  font-size: 0.95rem;
  font-weight: 500;
}

.social-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.social-links svg {
  flex-shrink: 0;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.footer-logo {
  height: 36px;
  filter: invert(1);
  margin: 0 auto;
}

.footer-meta p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.footer-area {
  color: var(--text-muted) !important;
}

/* ============================================
   Animation — hero fade-in on load
   Subtle, professional. Respects prefers-reduced-motion.
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .hero-eyebrow,
  .hero h1,
  .hero-tagline,
  .hero-cta-row {
    opacity: 0;
    transform: translateY(12px);
    animation: heroFadeUp 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  }

  .hero-eyebrow { animation-delay: 0.05s; }
  .hero h1 { animation-delay: 0.18s; }
  .hero-tagline { animation-delay: 0.32s; }
  .hero-cta-row { animation-delay: 0.46s; }

  @keyframes heroFadeUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Scroll-triggered reveal for sections */
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Responsive
   ============================================ */
@media (min-width: 640px) {
  section {
    padding: 6rem 0;
  }

  .hero {
    min-height: 80vh;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer-logo {
    margin: 0;
  }
}

@media (min-width: 960px) {
  .hero h1 {
    line-height: 0.95;
  }
}

/* Small mobile fixes */
@media (max-width: 480px) {
  .header-inner {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .logo {
    height: 36px;
  }

  .phone-number {
    font-size: 1.2rem;
  }

  .phone-label {
    font-size: 0.65rem;
  }
}

/* ============================================
   Floating mobile CTA — sticky bottom-right pill.
   Persistent path to the form on small screens, where
   most paid-ad traffic lands.
   ============================================ */
.floating-cta {
  display: none;
}

@media (max-width: 859px) {
  .floating-cta {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-text);
    background-color: var(--accent);
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45),
                0 0 0 1px rgba(255, 180, 0, 0.4);
    text-decoration: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .floating-cta:hover {
    color: var(--accent-text);
    background-color: var(--accent-hover);
  }

  .floating-cta--hidden {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
  }
}
