/* =====================================================
   REDLINE REPAIRS LLC — Static Site Stylesheet
   Aesthetic: Industrial precision, bold & trustworthy
   Fonts: Barlow Condensed (headers) + Barlow (body)
   ===================================================== */

:root {
  --primary:   #0f1923;
  --primary-l: #1c2d3d;
  --accent:    #d9232d;
  --accent-h:  #f02834;
  --white:     #ffffff;
  --gray-100:  #f4f5f7;
  --gray-200:  #e5e7eb;
  --gray-400:  #9ca3af;
  --gray-600:  #4b5563;
  --gray-700:  #374151;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.18);
  --radius:    12px;
  --transition: .2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
}

/* Utility */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .01em;
}
h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--primary); margin-bottom: .5rem; }
h3 { font-size: 1.5rem; color: var(--primary); }

/* ===== NAV ===== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(15,25,35,.96);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--accent);
  transition: box-shadow var(--transition);
}
#navbar.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.3); }

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}

.nav-brand {
  display: flex; align-items: center; gap: .75rem;
  text-decoration: none;
}
.nav-logo {
  width: 70px;
  height: auto;
  object-fit: contain;
}

.footer-logo {
  width: 120px;
  height: auto;
  object-fit: contain;
}
.brand-icon {
  background: var(--accent);
  width: 40px; height: 40px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.brand-icon svg { width: 22px; height: 22px; color: white; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: 'Barlow Condensed', sans-serif; font-size: 1.4rem; font-weight: 800; color: var(--white); line-height: 1; letter-spacing: .02em; }
.brand-sub { font-size: .7rem; color: var(--accent); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-link { color: rgba(255,255,255,.85); text-decoration: none; font-weight: 500; font-size: .95rem; transition: color var(--transition); }
.nav-link:hover { color: var(--accent); }

.btn-book-nav {
  background: var(--accent); color: white;
  border: none; cursor: pointer;
  padding: .55rem 1.4rem; border-radius: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem; font-weight: 700; letter-spacing: .04em;
  transition: background var(--transition), transform var(--transition);
}
.btn-book-nav:hover { background: var(--accent-h); transform: translateY(-1px); }

.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: white; border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--primary);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1rem 1.25rem 1.5rem;
  gap: .25rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: rgba(255,255,255,.85); text-decoration: none; font-size: 1.1rem;
  padding: .6rem 0; border-bottom: 1px solid rgba(255,255,255,.05);
}
.mobile-menu a:hover { color: var(--accent); }
.btn-book-mobile {
  margin-top: .75rem;
  background: var(--accent); color: white;
  border: none; cursor: pointer; border-radius: 8px;
  padding: .75rem; font-size: 1rem; font-weight: 700;
  font-family: 'Barlow Condensed', sans-serif; letter-spacing: .04em;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--accent); color: white;
  border: none; cursor: pointer; border-radius: 10px;
  padding: .85rem 2rem; font-size: 1.1rem; font-weight: 700;
  font-family: 'Barlow Condensed', sans-serif; letter-spacing: .04em;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(217,35,45,.35);
}
.btn-primary:hover { background: var(--accent-h); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(217,35,45,.45); }
.btn-primary svg { width: 20px; height: 20px; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: white; color: var(--primary);
  border: none; cursor: pointer; border-radius: 10px;
  padding: .85rem 2rem; font-size: 1.1rem; font-weight: 700;
  font-family: 'Barlow Condensed', sans-serif; letter-spacing: .04em;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.btn-secondary:hover { background: var(--gray-100); transform: translateY(-2px); }
.btn-secondary svg { width: 20px; height: 20px; }

.btn-outline {
  display: inline-flex; align-items: center; gap: .5rem;
  background: transparent; color: var(--accent);
  border: 2px solid var(--accent); border-radius: 10px;
  padding: .75rem 1.75rem; font-size: 1rem; font-weight: 700;
  font-family: 'Barlow Condensed', sans-serif; letter-spacing: .04em;
  text-decoration: none; cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.btn-outline:hover { background: var(--accent); color: white; }

/* ===== SECTION SHARED ===== */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-label {
  display: inline-block;
  color: var(--accent); font-weight: 700; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: .5rem;
}
.section-header p { font-size: 1.15rem; color: var(--gray-600); max-width: 560px; margin: .5rem auto 0; }
.section-cta { text-align: center; margin-top: 3rem; }
.section-cta p { color: var(--gray-600); margin-bottom: 1rem; }

/* ===== HERO ===== */
#hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('https://images.pexels.com/photos/13065690/pexels-photo-13065690.jpeg?auto=compress&cs=tinysrgb&w=1920') center/cover no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(15,25,35,.97) 35%, rgba(15,25,35,.75) 70%, rgba(15,25,35,.5) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  padding-top: 100px; padding-bottom: 5rem;
  max-width: 780px;
}
.hero-badge {
  display: inline-block;
  background: var(--accent); color: white;
  padding: .4rem 1.1rem; border-radius: 50px;
  font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 800; color: white; line-height: 1;
  margin-bottom: 1.25rem; letter-spacing: .01em;
}
.hero-accent { color: var(--accent); display: block; }
.hero-sub { font-size: 1.2rem; color: rgba(255,255,255,.8); margin-bottom: 2.5rem; max-width: 640px; line-height: 1.7; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }

.hero-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 660px; }
.badge-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.badge-card svg { width: 28px; height: 28px; color: var(--accent); margin-bottom: .6rem; display: block; }
.badge-card strong { display: block; color: white; font-size: 1rem; margin-bottom: .3rem; }
.badge-card span { color: rgba(255,255,255,.6); font-size: .85rem; line-height: 1.4; }

.hero-fade-bottom {
  position: absolute; bottom: 0; left: 0; right: 0; height: 120px;
  background: linear-gradient(to top, white, transparent);
}

/* ===== MISSION ===== */
#mission { padding: 5rem 0; background: white; }
.mission-inner { max-width: 860px; margin: 0 auto; text-align: center; }
#mission h2 { margin-bottom: 1.5rem; }
#missionText { font-size: 1.15rem; color: var(--gray-600); line-height: 1.8; }

/* ===== SERVICES ===== */
#services { padding: 5rem 0; background: var(--gray-100); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}
.service-card {
  background: white; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.service-img-placeholder {
  width: 100%; height: 200px;
  background: linear-gradient(135deg, var(--primary-l), var(--primary));
  display: flex; align-items: center; justify-content: center;
}
.service-img-placeholder svg { width: 48px; height: 48px; color: rgba(255,255,255,.3); }
.service-body { padding: 1.5rem; }
.service-body h3 { margin-bottom: .5rem; }
.service-body p { color: var(--gray-600); font-size: .95rem; margin-bottom: 1.25rem; line-height: 1.6; }
.btn-service {
  width: 100%; background: var(--primary); color: white;
  border: none; cursor: pointer; border-radius: 8px;
  padding: .75rem; font-size: 1rem; font-weight: 700;
  font-family: 'Barlow Condensed', sans-serif; letter-spacing: .04em;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  transition: background var(--transition);
}
.btn-service:hover { background: var(--primary-l); }
.btn-service svg { width: 18px; height: 18px; }

/* ===== REVIEWS ===== */
#reviews { padding: 5rem 0; background: white; }
.rating-summary { display: flex; align-items: center; gap: .6rem; justify-content: center; margin: .75rem 0; }
.stars { display: flex; gap: 2px; }
.star { width: 22px; height: 22px; }
.star.filled { color: #f59e0b; fill: #f59e0b; }
.star.empty { color: var(--gray-200); fill: var(--gray-200); }
.rating-num { font-family: 'Barlow Condensed', sans-serif; font-size: 1.75rem; font-weight: 700; color: var(--primary); }
.rating-count { color: var(--gray-400); font-size: .95rem; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}
.review-card {
  background: var(--gray-100); border-radius: var(--radius);
  padding: 2rem; position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.review-quote {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 36px; height: 36px; color: rgba(217,35,45,.12);
}
.review-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.review-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  object-fit: cover; border: 3px solid white; box-shadow: var(--shadow-sm);
  background: var(--gray-200); display: block;
}
.review-author strong { display: block; color: var(--primary); font-size: 1.05rem; font-weight: 700; }
.review-author span { color: var(--gray-400); font-size: .85rem; }
.review-stars { display: flex; gap: 2px; margin-bottom: .75rem; }
.review-stars svg { width: 18px; height: 18px; }
.review-text { color: var(--gray-700); font-size: .95rem; line-height: 1.7; }
.review-footer { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--gray-200); }
.review-verified { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--gray-400); }
.review-verified svg { width: 16px; height: 16px; }

/* ===== LOCATION ===== */
#location { padding: 5rem 0; background: var(--gray-100); }
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.map-wrap { position: relative; border-radius: var(--radius); overflow: hidden; height: 380px; box-shadow: var(--shadow-md); background: var(--gray-200); }
#map { width: 100%; height: 100%; }
.map-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.map-link-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--primary); color: white;
  padding: .75rem 1.5rem; border-radius: 10px;
  text-decoration: none; font-weight: 700;
  font-family: 'Barlow Condensed', sans-serif; font-size: 1.1rem;
  transition: background var(--transition);
}
.map-link-btn:hover { background: var(--accent); }
.map-link-btn svg { width: 20px; height: 20px; }

.info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.25rem; }
.info-card {
  background: white; border-radius: var(--radius);
  padding: 1.25rem; display: flex; gap: .85rem;
  box-shadow: var(--shadow-sm);
}
.info-card svg { width: 28px; height: 28px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.info-card strong { display: block; color: var(--primary); font-size: .95rem; margin-bottom: .25rem; }
.info-card a { color: var(--gray-600); text-decoration: none; font-size: .9rem; line-height: 1.5; }
.info-card a:hover { color: var(--accent); }
.info-card span { display: block; color: var(--gray-600); font-size: .9rem; line-height: 1.5; }

/* ===== CONTACT FORM ===== */
.contact-form {
  background: white; border-radius: var(--radius);
  padding: 2.5rem; box-shadow: var(--shadow-md);
}
.contact-form h3 { margin-bottom: 1.75rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; color: var(--gray-700); margin-bottom: .4rem; }
.form-group label span { color: var(--accent); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: .75rem 1rem;
  border: 1.5px solid var(--gray-200); border-radius: 8px;
  font-family: 'Barlow', sans-serif; font-size: 1rem; color: var(--gray-700);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: white;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217,35,45,.12);
}
.form-group textarea { resize: vertical; }

.btn-submit {
  width: 100%; background: var(--accent); color: white;
  border: none; cursor: pointer; border-radius: 10px;
  padding: .9rem; font-size: 1.1rem; font-weight: 700;
  font-family: 'Barlow Condensed', sans-serif; letter-spacing: .04em;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  transition: background var(--transition), transform var(--transition);
  box-shadow: 0 4px 16px rgba(217,35,45,.3);
}
.btn-submit:hover:not(:disabled) { background: var(--accent-h); transform: translateY(-1px); }
.btn-submit:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-submit svg { width: 18px; height: 18px; }

.form-divider { position: relative; text-align: center; margin: 1.25rem 0; }
.form-divider::before {
  content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--gray-200);
}
.form-divider span { position: relative; background: white; padding: 0 .75rem; color: var(--gray-400); font-size: .85rem; }

.btn-book-form {
  width: 100%; background: var(--primary); color: white;
  border: none; cursor: pointer; border-radius: 10px;
  padding: .9rem; font-size: 1.1rem; font-weight: 700;
  font-family: 'Barlow Condensed', sans-serif; letter-spacing: .04em;
  transition: background var(--transition);
}
.btn-book-form:hover { background: var(--primary-l); }

.form-success {
  background: #dcfce7; border: 1px solid #86efac; color: #166534;
  padding: 1rem 1.25rem; border-radius: 8px; margin-bottom: 1.25rem; font-size: .95rem;
}
.form-error {
  background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b;
  padding: 1rem 1.25rem; border-radius: 8px; margin-bottom: 1.25rem; font-size: .95rem;
}

/* ===== FOOTER ===== */
#footer { background: var(--primary); color: white; padding-top: 4rem; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.25fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.footer-col > p { color: rgba(255,255,255,.6); font-size: .9rem; line-height: 1.7; margin-bottom: 1.25rem; }
.footer-col h4 { font-family: 'Barlow Condensed', sans-serif; font-size: 1.1rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1rem; color: white; }
.footer-col ul { list-style: none; }
.footer-col ul li { color: rgba(255,255,255,.6); font-size: .9rem; margin-bottom: .5rem; }
.footer-col ul a { color: rgba(255,255,255,.6); text-decoration: none; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--accent); }

.footer-contact li { display: flex; align-items: flex-start; gap: .6rem; }
.footer-contact svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }

.footer-social { display: flex; gap: .75rem; }
.footer-social a {
  background: rgba(255,255,255,.1); width: 40px; height: 40px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white; text-decoration: none;
  transition: background var(--transition);
}
.footer-social a:hover { background: var(--accent); }
.footer-social svg { width: 18px; height: 18px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.5rem 1.25rem;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { color: rgba(255,255,255,.4); font-size: .85rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: rgba(255,255,255,.4); text-decoration: none; font-size: .85rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.65); backdrop-filter: blur(4px);
}
.modal {
  position: fixed; z-index: 201;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: white; border-radius: 16px;
  width: min(760px, calc(100vw - 2rem));
  max-height: 90vh; display: flex; flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
  animation: modalIn .2s ease-out;
}
@keyframes modalIn {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 16px)); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}
.modal-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 1.5rem 1.75rem 1.25rem;
  border-bottom: 1px solid var(--gray-200);
}
.modal-header h2 { font-size: 1.5rem; color: var(--primary); margin-bottom: .2rem; }
.modal-header p { color: var(--gray-400); font-size: .9rem; }
.modal-close {
  background: none; border: none; cursor: pointer;
  padding: .4rem; border-radius: 50%;
  color: var(--gray-400); transition: background var(--transition), color var(--transition);
}
.modal-close:hover { background: var(--gray-100); color: var(--primary); }
.modal-close svg { width: 22px; height: 22px; }
.modal-body { flex: 1; overflow: auto; }
.modal-body iframe { display: block; width: 100%; height: 62vh; border: none; }
.modal-phone-fallback {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 3rem 2rem; text-align: center; gap: 1rem;
}
.modal-phone-fallback svg { width: 48px; height: 48px; color: var(--gray-300); }
.modal-phone-fallback h3 { color: var(--primary); }
.modal-phone-fallback p { color: var(--gray-400); max-width: 320px; }
.modal-phone-fallback a { background: var(--accent); color: white; padding: .75rem 1.75rem; border-radius: 10px; text-decoration: none; font-weight: 700; font-family: 'Barlow Condensed', sans-serif; font-size: 1.1rem; }

/* ===== LOADING SPINNER ===== */
.loading-spinner { display: flex; justify-content: center; padding: 4rem; width: 100%; }
.spinner {
  width: 48px; height: 48px; border-radius: 50%;
  border: 4px solid var(--gray-200);
  border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed; bottom: 2rem; right: 1.5rem; z-index: 50;
  background: var(--accent); color: white; border: none; cursor: pointer;
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(217,35,45,.4);
  opacity: 0; transform: translateY(10px);
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}
.back-to-top.visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { background: var(--accent-h); }
.back-to-top svg { width: 20px; height: 20px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .location-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero-badges { grid-template-columns: 1fr; max-width: 360px; }
  .info-cards { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: .75rem; text-align: center; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .btn-primary, .btn-secondary { justify-content: center; }
  .contact-form { padding: 1.5rem; }
}
