/* ==========================================================================
   MECHANIC-3 — "Fixarna" — Friendly Neighborhood Mechanic
   Bright, approachable, rounded, Nunito font
   Three themes: Friendly Green (default), Sky Blue, Warm Amber
   ========================================================================== */

/* ---------- THEME: FRIENDLY GREEN (default) ---------- */
:root,
[data-theme="green"] {
  --color-primary: #16A34A;
  --color-primary-dark: #15803D;
  --color-primary-light: #BBF7D0;
  --color-primary-rgb: 22, 163, 74;
  --color-accent: #FDE047;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F0FDF4;
  --color-bg-card: #FFFFFF;
  --color-text: #1E293B;
  --color-text-muted: #64748B;
  --color-border: #E2E8F0;
  --color-hero-overlay: rgba(22, 163, 74, 0.85);
  --gradient-hero: linear-gradient(135deg, rgba(22, 163, 74, 0.92) 0%, rgba(21, 128, 61, 0.88) 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.10);
}

/* ---------- THEME: SKY BLUE ---------- */
[data-theme="blue"] {
  --color-primary: #0284C7;
  --color-primary-dark: #0369A1;
  --color-primary-light: #BAE6FD;
  --color-primary-rgb: 2, 132, 199;
  --color-accent: #FDE68A;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F0F9FF;
  --color-bg-card: #FFFFFF;
  --color-hero-overlay: rgba(2, 132, 199, 0.85);
  --gradient-hero: linear-gradient(135deg, rgba(2, 132, 199, 0.92) 0%, rgba(3, 105, 161, 0.88) 100%);
}

/* ---------- THEME: WARM AMBER ---------- */
[data-theme="amber"] {
  --color-primary: #D97706;
  --color-primary-dark: #B45309;
  --color-primary-light: #FDE68A;
  --color-primary-rgb: 217, 119, 6;
  --color-accent: #A3E635;
  --color-bg: #FFFFFF;
  --color-bg-alt: #FFFBEB;
  --color-bg-card: #FFFFFF;
  --color-hero-overlay: rgba(217, 119, 6, 0.85);
  --gradient-hero: linear-gradient(135deg, rgba(217, 119, 6, 0.92) 0%, rgba(180, 83, 9, 0.88) 100%);
}

/* ---------- BASE / FONT ---------- */
body {
  font-family: 'Nunito', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
}

/* ---------- PILL NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  transition: background 0.3s, box-shadow 0.3s;
}

.navbar .container {
  background: var(--color-bg);
  border-radius: 999px;
  padding: 0.6rem 1.5rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.navbar.scrolled .container {
  box-shadow: var(--shadow-lg);
}

.navbar-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
}

.navbar-logo span {
  color: var(--color-text);
  font-weight: 600;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}

.navbar-links a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.navbar-links a:hover {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--color-text);
  border-radius: 999px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Lang toggle */
.lang-toggle {
  display: flex;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid var(--color-primary-light);
}

.lang-toggle button {
  padding: 0.25rem 0.6rem;
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--color-text-muted);
  font-family: 'Nunito', sans-serif;
  transition: background 0.2s, color 0.2s;
}

.lang-toggle button.active {
  background: var(--color-primary);
  color: #fff;
}

/* Theme dots */
.theme-toggle {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.theme-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  border: 2.5px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
}

.theme-dot:hover { transform: scale(1.2); }
.theme-dot.active { border-color: var(--color-text); }

/* ---------- HERO — SPLIT LAYOUT ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 1rem 3rem;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-text {
  color: #fff;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.15rem;
  opacity: 0.92;
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 500px;
}

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

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--color-primary-rgb), 0.35);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
}

.btn-white {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}

.btn-white:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
}

/* ---------- SECTIONS ---------- */
.section {
  padding: 5rem 1rem;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.section-header p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 550px;
  margin: 0 auto;
}

/* ---------- HOW IT WORKS — NUMBERED STEPS ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.step-card {
  text-align: center;
  position: relative;
}

.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 16px rgba(var(--color-primary-rgb), 0.3);
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

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

/* Connector line between steps */
.step-card:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(50% + 40px);
  width: calc(100% - 80px);
  height: 3px;
  background: var(--color-primary-light);
  border-radius: 999px;
  z-index: -1;
}

/* ---------- SERVICES — EMOJI CARDS ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: var(--color-bg-card);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--color-border);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}

.service-emoji {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  display: block;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

/* ---------- PRICE LIST ---------- */
.price-list {
  max-width: 700px;
  margin: 0 auto;
  background: var(--color-bg-card);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  transition: background 0.2s;
}

.price-item:last-child { border-bottom: none; }

.price-item:hover { background: var(--color-bg-alt); }

.price-item-name {
  font-weight: 600;
  font-size: 1rem;
}

.price-item-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.price-item-cost {
  font-weight: 800;
  color: var(--color-primary);
  font-size: 1.05rem;
  white-space: nowrap;
}

.price-note {
  text-align: center;
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--color-primary-light);
  border-radius: 999px;
  font-weight: 700;
  color: var(--color-primary-dark);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- TRUST BADGES — CHEERFUL PILLS ---------- */
.trust-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}

.trust-pill:hover { transform: translateY(-2px); }

.trust-pill:nth-child(1) { background: #DCFCE7; color: #166534; }
.trust-pill:nth-child(2) { background: #DBEAFE; color: #1E40AF; }
.trust-pill:nth-child(3) { background: #FEF3C7; color: #92400E; }
.trust-pill:nth-child(4) { background: #FCE7F3; color: #9D174D; }
.trust-pill:nth-child(5) { background: #F3E8FF; color: #6B21A8; }
.trust-pill:nth-child(6) { background: #ECFDF5; color: #065F46; }

.trust-pill-icon {
  font-size: 1.3rem;
}

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.about-image img {
  width: 100%;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.about-grid h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.about-grid p {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* ---------- GALLERY ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-item {
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 4/3;
}

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

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

/* ---------- BOOKING ---------- */
.booking-placeholder {
  background: var(--color-bg-alt);
  border: 3px dashed var(--color-primary-light);
  border-radius: 1.25rem;
  padding: 3rem 2rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.booking-placeholder p {
  color: var(--color-text-muted);
}

/* ---------- REVIEWS ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.review-card {
  background: var(--color-bg-card);
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--color-border);
}

.stars {
  color: #FACC15;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.review-card blockquote {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: 0.75rem;
}

.review-card .author {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text);
}

/* ---------- CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.form-group { margin-bottom: 1rem; }

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1.2rem;
  border: 2px solid var(--color-border);
  border-radius: 0.875rem;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(var(--color-primary-rgb), 0.15);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-info-item svg {
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 0.2rem;
}

.contact-info-item h4 {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.contact-info-item p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.map-container {
  border-radius: 1rem;
  overflow: hidden;
  margin-top: 1rem;
}

.map-container iframe {
  width: 100%;
  height: 220px;
  border: none;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--color-text);
  color: #CBD5E1;
  padding: 3.5rem 1rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.footer h3 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer p { line-height: 1.7; font-size: 0.92rem; }

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links a {
  color: #CBD5E1;
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--color-primary-light); }

.hours-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
}

.footer-bottom {
  border-top: 1px solid #334155;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  text-align: center;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.footer-bottom p { font-size: 0.85rem; color: #94A3B8; }

/* ---------- FLOATING ACTION BUTTONS ---------- */
.floating-actions {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 999;
}

.fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
}

.fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.fab-call { background: var(--color-primary); }
.fab-whatsapp { background: #25D366; }

/* ---------- FORM MESSAGE ---------- */
.form-message {
  padding: 0.75rem 1rem;
  border-radius: 0.875rem;
  font-weight: 600;
  font-size: 0.95rem;
  display: none;
}

.form-message.success {
  display: block;
  background: #DCFCE7;
  color: #166534;
}

.form-message.error {
  display: block;
  background: #FEE2E2;
  color: #991B1B;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .step-card:not(:last-child)::after { display: none; }
}

@media (max-width: 768px) {
  .navbar .container {
    border-radius: 1rem;
    padding: 0.5rem 1rem;
  }

  .hamburger { display: flex; }

  .navbar-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1rem;
    right: 1rem;
    background: var(--color-bg);
    border-radius: 1.25rem;
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    flex-direction: column;
    gap: 1rem;
  }

  .navbar-menu.active { display: flex; }

  .navbar-links {
    flex-direction: column;
    gap: 0.25rem;
  }

  .navbar-links a {
    display: block;
    padding: 0.6rem 1rem;
  }

  .navbar-actions {
    justify-content: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
  }

  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    max-width: 320px;
  }

  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }

  .section { padding: 3.5rem 1rem; }
}

@media (max-width: 480px) {
  .steps-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .trust-pills { flex-direction: column; align-items: center; }

  .hero { padding: 6rem 1rem 2.5rem; }
}
