/* ============================================================
   MALDO'S WORKSHOP — STYLESHEET
   Mobile-first, professional auto repair site
   ============================================================ */

/* ── Reset & Variables ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:        #c0392b;
  --red-dark:   #922b21;
  --red-light:  #e74c3c;
  --blue:       #1a3a5c;
  --blue-mid:   #2471a3;
  --blue-light: #2e86c1;
  --yellow:     #f1c40f;
  --dark:       #111827;
  --dark-2:     #1f2937;
  --dark-3:     #374151;
  --gray:       #6b7280;
  --gray-light: #d1d5db;
  --gray-bg:    #f3f4f6;
  --white:      #ffffff;
  --font-main:  'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius:     8px;
  --radius-lg:  14px;
  --shadow:     0 2px 12px rgba(0,0,0,.12);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.18);
  --transition: .25s ease;
  --max-w:      1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.65;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

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

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
p  { margin-bottom: 1rem; }

.section-label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .5rem;
}
.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  color: var(--dark);
  margin-bottom: 1rem;
}
.section-title span { color: var(--red); }
.section-sub {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 640px;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.6rem;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 700;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(192,57,43,.35); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--dark); }
.btn-outline-dark {
  background: transparent;
  color: var(--dark);
  border-color: var(--dark-3);
}
.btn-outline-dark:hover { background: var(--dark); color: var(--white); }
.btn-blue {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-blue:hover { background: var(--blue-mid); border-color: var(--blue-mid); transform: translateY(-2px); }
.btn-lg { padding: .9rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: .55rem 1.1rem; font-size: .875rem; }

/* ── Header / Nav ───────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--dark);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.4); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1.25rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.01em;
}
.logo-name span { color: var(--red-light); }
.logo-sub {
  font-size: .7rem;
  color: var(--gray-light);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--dark-2);
  padding: 1rem 1.25rem;
  gap: .25rem;
  border-top: 2px solid var(--red);
}
.nav-menu.open { display: flex; }
.nav-link {
  display: block;
  padding: .6rem .75rem;
  color: var(--gray-light);
  font-size: .95rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,.08);
}
.nav-link.active { color: var(--red-light); }

.nav-cta {
  display: none;
  align-items: center;
  gap: .75rem;
}
.nav-phone {
  color: var(--white);
  font-weight: 700;
  font-size: .95rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.nav-phone:hover { color: var(--yellow); }

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

@media (min-width: 768px) {
  .nav-menu {
    display: flex !important;
    flex-direction: row;
    position: static;
    background: none;
    padding: 0;
    border: none;
    gap: .25rem;
  }
  .nav-cta { display: flex; }
  .nav-toggle { display: none; }
}

/* ── Top bar ────────────────────────────────────────────── */
.top-bar {
  background: var(--red);
  color: var(--white);
  font-size: .8rem;
  font-weight: 600;
  padding: .35rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  text-align: center;
}
.top-bar a { color: var(--white); }
.top-bar a:hover { text-decoration: underline; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  filter: brightness(.45);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17,24,39,.85) 0%, rgba(192,57,43,.25) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 1.25rem;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(192,57,43,.85);
  color: var(--white);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 99px;
  margin-bottom: 1rem;
}
.hero h1 {
  color: var(--white);
  max-width: 680px;
  margin-bottom: .75rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.hero-sub {
  color: rgba(255,255,255,.85);
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 2rem;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.15);
}
.hero-stat {
  color: var(--white);
  text-align: center;
}
.hero-stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--yellow);
}
.hero-stat span { font-size: .8rem; opacity: .8; }

/* ── Sections ───────────────────────────────────────────── */
.section { padding: 4rem 0; }
.section-alt { background: var(--gray-bg); }
.section-dark { background: var(--dark); color: var(--white); }
.section-dark .section-title { color: var(--white); }
.section-dark .section-sub { color: var(--gray-light); }
.section-header { margin-bottom: 2.5rem; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

/* ── Service Cards ──────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.service-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-card-icon {
  font-size: 1.8rem;
  margin-bottom: .5rem;
}
.service-card h3 { margin-bottom: .5rem; font-size: 1.1rem; }
.service-card p { color: var(--gray); font-size: .9rem; flex: 1; }
.service-card .btn { margin-top: 1rem; align-self: flex-start; }

/* ── Trust Section ──────────────────────────────────────── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.trust-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.trust-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(192,57,43,.1);
  border-radius: var(--radius);
}
.trust-item h4 { font-size: 1rem; margin-bottom: .25rem; }
.trust-item p { font-size: .875rem; color: var(--gray); margin: 0; }

/* ── Gallery Grid ───────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: var(--white);
  padding: .75rem 1rem .5rem;
  font-size: .85rem;
  font-weight: 600;
  transform: translateY(100%);
  transition: var(--transition);
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }

/* ── Hours Table ────────────────────────────────────────── */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}
.hours-table td {
  padding: .6rem .75rem;
  border-bottom: 1px solid var(--gray-light);
}
.hours-table td:last-child { text-align: right; font-weight: 600; }
.hours-table tr.closed td { color: var(--gray); }
.hours-table tr:last-child td { border-bottom: none; }

/* ── Contact Section ────────────────────────────────────── */
.contact-grid {
  display: grid;
  gap: 2.5rem;
}
.contact-info h3 { margin-bottom: 1rem; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: 1rem;
}
.contact-item-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: rgba(192,57,43,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-item-text strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gray); }
.contact-item-text a, .contact-item-text span { font-size: 1rem; font-weight: 600; color: var(--dark); }
.contact-item-text a:hover { color: var(--red); }

/* ── Form ───────────────────────────────────────────────── */
.form-grid {
  display: grid;
  gap: 1rem;
}
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group label { font-size: .875rem; font-weight: 600; color: var(--dark-3); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: .7rem 1rem;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: inherit;
  color: var(--dark);
  transition: border-color var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(36,113,163,.15);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-result {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  margin-top: 1rem;
}
.form-result.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-result.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.generated-msg-box { display: none; margin-top: 1.5rem; }
.generated-msg-box h4 { margin-bottom: .5rem; }
.generated-msg-box pre {
  background: var(--gray-bg);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 1rem;
  font-family: inherit;
  font-size: .875rem;
  white-space: pre-wrap;
  word-break: break-word;
}
.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }

/* ── Area Tags ──────────────────────────────────────────── */
.areas-wrap { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.area-tag {
  background: rgba(192,57,43,.1);
  color: var(--red-dark);
  padding: .3rem .8rem;
  border-radius: 99px;
  font-size: .8rem;
  font-weight: 600;
}

/* ── CTA Banner ─────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--blue) 100%);
  color: var(--white);
  padding: 3.5rem 1.25rem;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: .75rem; }
.cta-banner p { color: rgba(255,255,255,.85); margin-bottom: 1.75rem; font-size: 1.05rem; }
.cta-btns { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* ── Page Hero (inner pages) ────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  padding: 3.5rem 1.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,.015) 40px,
    rgba(255,255,255,.015) 80px
  );
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: .75rem; }
.page-hero p { color: rgba(255,255,255,.75); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,.6); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,.4); }

/* ── Content Sections ───────────────────────────────────── */
.content-block { max-width: 780px; margin: 0 auto; }
.content-block h2 { margin-bottom: 1rem; color: var(--dark); }
.content-block h3 { margin: 1.5rem 0 .5rem; color: var(--dark); }
.content-block ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.content-block ul li { margin-bottom: .4rem; color: var(--dark-3); }

.warning-list {
  background: #fff8e1;
  border-left: 4px solid var(--yellow);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.warning-list h4 { color: #856404; margin-bottom: .75rem; font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; }
.warning-list ul { list-style: none; padding: 0; }
.warning-list ul li { padding: .3rem 0; color: var(--dark-3); font-size: .95rem; }
.warning-list ul li::before { content: '⚠️ '; }

.info-card {
  background: var(--gray-bg);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 1.5rem 0;
}
.info-card h3 { margin-bottom: .75rem; }

/* ── Two-col layout ─────────────────────────────────────── */
.two-col {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.two-col img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  color: var(--gray-light);
  padding: 3rem 0 0;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.footer-brand .logo-name { font-size: 1.4rem; }
.footer-brand p { font-size: .9rem; margin-top: .75rem; color: var(--gray); max-width: 280px; }
.footer-col h4 {
  color: var(--white);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}
.footer-col ul li { margin-bottom: .4rem; }
.footer-col ul li a { color: var(--gray); font-size: .9rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--white); padding-left: 4px; }
.footer-col p { font-size: .9rem; color: var(--gray); }
.footer-col a { color: var(--gray); }
.footer-col a:hover { color: var(--white); }
.footer-social { display: flex; gap: .75rem; margin-top: .75rem; }
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--red); color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.25rem 0;
  text-align: center;
  font-size: .8rem;
  color: var(--gray);
}
.footer-bottom a { color: var(--gray); }
.footer-bottom a:hover { color: var(--white); }

/* ── Sticky Mobile Call Button ──────────────────────────── */
.sticky-call {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  gap: .5rem;
}
.sticky-call .btn {
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
  padding: .8rem 1.4rem;
  font-size: .9rem;
}
@media (min-width: 768px) { .sticky-call { display: none; } }

/* ── Reveal animation ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (min-width: 600px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .section { padding: 5rem 0; }
  .hero { min-height: 600px; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  .hero { min-height: 680px; }
  .hero-content { padding: 6rem 1.25rem; }
}

/* ── Map ────────────────────────────────────────────────── */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 320px;
}
.map-container iframe { width: 100%; height: 100%; border: none; }

/* ── Certification badge ────────────────────────────────── */
.cert-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.cert-badge img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius);
}
.cert-badge-text strong { display: block; font-size: 1rem; margin-bottom: .25rem; }
.cert-badge-text span { font-size: .85rem; color: var(--gray); }

/* ── Divider ────────────────────────────────────────────── */
.divider { height: 4px; background: linear-gradient(90deg, var(--red) 0%, var(--blue) 100%); }

/* ── About page ─────────────────────────────────────────── */
.about-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-photo img { width: 100%; height: 380px; object-fit: cover; }

/* ── Page-specific hero images ──────────────────────────── */
.page-hero.has-bg {
  background-size: cover;
  background-position: center;
}
.page-hero.has-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(17,24,39,.72);
  z-index: 0;
}
.page-hero.has-bg .page-hero-content { z-index: 1; }

/* ── Utility ────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-red { color: var(--red); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.gap-1 { gap: .5rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
