/* Stublla Elektro – 2026 Design
   Light & dark mode, professional electrician site */

:root {
  /* Light (default) */
  --bg: #f8f9fc;
  --bg-card: #ffffff;
  --text: #1a1d2e;
  --text-muted: #5c6370;
  --accent: #f5b400;
  --accent-hover: #e0a500;
  --primary: #0d2840;
  --primary-hover: #0a1f33;
  --border: #e2e6ef;
  --shadow: 0 4px 20px rgba(13, 40, 64, 0.08);
  --shadow-hover: 0 12px 40px rgba(13, 40, 64, 0.12);
  --hero-overlay: rgba(13, 40, 64, 0.55);
  --input-bg: #fff;
}

[data-theme="dark"] {
  --bg: #0f1419;
  --bg-card: #1a1f28;
  --text: #e8eaef;
  --text-muted: #9ca3b4;
  --accent: #f5b400;
  --accent-hover: #ffc61e;
  --primary: #3b82f6;
  --primary-hover: #60a5fa;
  --border: #2d3548;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.35);
  --hero-overlay: rgba(15, 20, 25, 0.75);
  --input-bg: #252b36;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 0.5rem;
  color: var(--text);
}

.section-lead {
  margin: 0 0 2.5rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.9rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }

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

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 2px solid var(--border);
}
.btn-secondary:hover { border-color: var(--text-muted); }

.btn-accent {
  background: var(--accent);
  color: #0d2840;
}
.btn-accent:hover { background: var(--accent-hover); }

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

.btn-whatsapp {
  background: #25d366;
  color: #fff;
}
.btn-whatsapp:hover { background: #20bd5a; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-icon {
  font-size: 1.5rem;
}

.logo-img {
  display: block;
  height: auto;
  object-fit: contain;
}

.site-header .logo-img {
  max-height: 4rem;
  width: auto;
}

.logo-header {
  padding: 0.35rem 0.5rem;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.logo-header:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(13, 40, 64, 0.12);
}
[data-theme="dark"] .logo-header {
  background: var(--bg-card);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.footer-logo {
  max-height: 4rem;
  width: auto;
}

.nav-main ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-main a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  padding: 0.25rem 0;
  border-radius: 6px;
  transition: color 0.2s;
}
.nav-main a:hover { color: var(--primary); }

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

.theme-toggle {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background 0.2s;
}
.theme-toggle:hover { background: var(--border); }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon,
:not([data-theme]) .icon-moon { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 2rem;
  height: 2rem;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-main { display: none; }
  .header-actions .btn-outline { display: none; }
  .nav-toggle { display: flex; }
  .nav-main.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    padding: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-main.is-open ul { flex-direction: column; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem 1.5rem 4rem;
  text-align: center;
}

/* Hero split: left text, right animated */
.hero-split {
  text-align: left;
  padding: 5rem 0 5.5rem;
  position: relative;
  background: var(--bg);
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .hero-bg-overlay {
  background: rgba(15, 20, 25, 0.88);
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: radial-gradient(circle at 1px 1px, var(--border) 1px, transparent 0);
  background-size: 24px 24px;
  opacity: 0.2;
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 3;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-left { text-align: center; }
  .hero-desc { max-width: none; margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-right { min-height: 340px; }
  .hero-split { padding: 3.5rem 0 4rem; }
}

.hero-left {
  padding: 0.5rem 0;
}

.hero-tagline {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(245, 180, 0, 0.4);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin: 0 0 1.25rem;
  color: var(--text);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero-title-stack {
  display: flex;
  flex-direction: column;
  gap: 0.05em;
}

.hero-desc {
  margin: 0 0 2.25rem;
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 460px;
}

.hero-split .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.25rem;
  justify-content: flex-start;
}

.hero-split .hero-cta .btn {
  border-radius: 14px;
  padding: 1rem 1.75rem;
  font-size: 1.05rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-split .hero-cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(13, 40, 64, 0.15);
}

.hero-split .hero-cta .btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #0f3460 100%);
  color: #fff;
  border: none;
}

.hero-split .hero-cta .btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
  box-shadow: 0 10px 28px rgba(13, 40, 64, 0.25);
}

.hero-split .hero-cta .btn-secondary {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.hero-split .hero-cta .btn-secondary:hover {
  background: var(--primary);
  color: #fff;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  list-style: none;
  margin: 0;
  padding: 1.25rem 0 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.hero-split .trust-dot {
  background: var(--accent);
  width: 8px;
  height: 8px;
}

/* Hero right: animated visual */
.hero-right {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 380px;
  margin: 0 auto;
}

.hero-central {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-2deg);
  width: 300px;
  background: var(--bg-card);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(13, 40, 64, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border);
  animation: central-float 5s ease-in-out infinite;
}

.hero-central img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.hero-central-label {
  display: block;
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-card) 100%);
  border-top: 1px solid var(--border);
}

@keyframes central-float {
  0%, 100% { transform: translate(-50%, -50%) rotate(-2deg) translateY(0); }
  50% { transform: translate(-50%, -50%) rotate(-2deg) translateY(-10px); }
}

/* Floating cards around central */
.hero-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.2rem;
  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: 0 10px 32px rgba(13, 40, 64, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s, box-shadow 0.25s;
  animation: float-card 6s ease-in-out infinite;
}

.hero-float:hover {
  transform: scale(1.06);
  box-shadow: 0 16px 40px rgba(13, 40, 64, 0.16);
}

.hero-float-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--bg);
  border-radius: 10px;
  font-size: 1rem;
}

.hero-float-1 { top: 2%; right: -5%; animation-delay: 0s; }
.hero-float-2 { top: 12%; left: -12%; animation-delay: -1.5s; }
.hero-float-3 {
  bottom: 18%; left: -8%;
  background: linear-gradient(135deg, #25d366, #20bd5a);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.35);
  animation-delay: -3s;
}
.hero-float-3 .hero-float-icon { background: rgba(255, 255, 255, 0.25); }
.hero-float-4 {
  bottom: 2%; right: 0;
  background: linear-gradient(135deg, var(--primary), #0f3460);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 32px rgba(13, 40, 64, 0.25);
  animation-delay: -4.5s;
}
.hero-float-4 .hero-float-icon { background: rgba(255, 255, 255, 0.25); }

@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-float:hover {
  animation: none;
}

@media (max-width: 560px) {
  .hero-float { font-size: 0.82rem; padding: 0.6rem 0.9rem; }
  .hero-float-icon { width: 28px; height: 28px; font-size: 0.9rem; }
  .hero-central { width: 260px; }
  .hero-central img { height: 160px; }
  .hero-visual { height: 340px; }
}

.trust-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.35rem;
  background: var(--accent);
  border-radius: 50%;
  vertical-align: middle;
}

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

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.75rem;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-card {
  padding: 2rem;
}
.service-card .card-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 1rem;
}

/* Professional SVG service icons */
.service-icon-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
}

.service-card .svg-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}
.service-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Booking section */
.booking-section {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(13, 40, 64, 0.03) 100%);
}

.section-badge-booking {
  color: var(--accent);
  font-weight: 600;
}

.booking-title {
  margin-bottom: 0.5rem;
}

.booking-lead {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
  line-height: 1.6;
}

.booking-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.booking-trust li {
  position: relative;
  padding-left: 1.25rem;
}

.booking-trust li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Booking card */
.booking-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(13, 40, 64, 0.1);
}

.booking-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

.booking-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.booking-card-icon svg {
  width: 22px;
  height: 22px;
}

.booking-form {
  padding: 2rem 1.5rem 2.25rem;
}

.booking-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 560px) {
  .booking-form-grid {
    grid-template-columns: 1fr;
  }
}

.booking-form .form-row {
  margin-bottom: 1.25rem;
}

.booking-form .booking-form-grid .form-row {
  margin-bottom: 0;
}

.booking-form .form-actions {
  margin-bottom: 0;
}

.booking-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.required { color: #c53030; }

.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 40, 64, 0.15);
}

[data-theme="dark"] .booking-form input:focus,
[data-theme="dark"] .booking-form select:focus,
[data-theme="dark"] .booking-form textarea:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.form-row-half {
  display: inline-block;
  width: calc(50% - 0.5rem);
  vertical-align: top;
}
.form-row-half:first-of-type { margin-right: 0.5rem; }
@media (max-width: 480px) {
  .form-row-half { width: 100%; margin-right: 0; }
}

.form-actions {
  margin-top: 1.75rem;
  margin-bottom: 0;
}

.btn-booking-submit {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
}
.btn-booking-submit:hover {
  background: var(--primary-hover);
  color: #fff;
}

.form-feedback {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 10px;
  font-weight: 500;
}
.form-feedback.success { background: #d4edda; color: #155724; }
.form-feedback.error { background: #f8d7da; color: #721c24; }
[data-theme="dark"] .form-feedback.success { background: #1e4620; color: #a3d9a5; }
[data-theme="dark"] .form-feedback.error { background: #4a1c1c; color: #f5c2c7; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gallery-item {
  margin: 0;
}

.gallery-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.gallery-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

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

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-content .section-title { margin-bottom: 0.5rem; }

.about-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.about-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}
.about-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.about-visual img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-hover);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.testimonial-card {
  padding: 2rem;
}

.testimonial-card .stars {
  color: var(--accent);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.testimonial-card blockquote {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-style: italic;
  color: var(--text);
}

.testimonial-card cite {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: normal;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-card {
  padding: 2rem;
  text-align: center;
}
.contact-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--text);
}
.contact-card p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}
.contact-card p a {
  color: var(--primary);
  text-decoration: none;
  padding: 0.1em 0;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.contact-card p a:hover {
  text-decoration: underline;
  color: var(--primary-hover);
}
.contact-card p a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* Buttons in contact cards: keep their own colors (don't inherit .contact-card a) */
.contact-card .btn-primary {
  color: #fff;
  background: var(--primary);
}
.contact-card .btn-primary:hover {
  color: #fff;
  background: var(--primary-hover);
}
.contact-card .btn-outline {
  color: var(--primary);
  border-color: var(--primary);
}
.contact-card .btn-outline:hover {
  color: #fff;
  background: var(--primary);
}
.contact-card .btn-whatsapp {
  color: #fff;
}
.contact-card .btn-whatsapp:hover {
  color: #fff;
}

.contact-map {
  grid-column: 1 / -1;
}
.map-address {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

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

.footer-inner { text-align: center; }

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}
.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--primary); }

.footer-admin { font-size: 0.85rem; opacity: 0.85; }

.footer-badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg);
  border-radius: 8px;
}

.footer-copy {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Chat widget */
.chat-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  font-family: inherit;
}

.chat-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-hover);
  transition: transform 0.2s;
}
.chat-toggle:hover { transform: scale(1.03); }

.chat-toggle-icon { font-size: 1.25rem; }

.chat-panel {
  position: absolute;
  bottom: calc(100% + 0.75rem);
  right: 0;
  width: 360px;
  max-width: calc(100vw - 2rem);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-hover);
  overflow: hidden;
}
.chat-panel[hidden] { display: none !important; }

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--primary);
  color: #fff;
}
.chat-header h3 { margin: 0; font-size: 1rem; }
.chat-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
}
.chat-close:hover { opacity: 0.9; }

.chat-body {
  padding: 1rem;
  max-height: 320px;
  overflow-y: auto;
}

.chat-intro {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.chat-quick {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}
.chat-quick button {
  display: block;
  width: 100%;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.4rem;
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s;
}
.chat-quick button:hover { background: var(--border); }

.chat-messages {
  min-height: 60px;
  margin-bottom: 0.75rem;
}

.chat-msg {
  padding: 0.6rem 0.9rem;
  margin-bottom: 0.5rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.4;
}
.chat-msg.user {
  background: var(--primary);
  color: #fff;
  margin-left: 1.5rem;
}
.chat-msg.bot {
  background: var(--bg);
  color: var(--text);
  margin-right: 1.5rem;
}

.chat-input-wrap {
  display: flex;
  gap: 0.5rem;
}
.chat-input-wrap input {
  flex: 1;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--text);
}
.chat-input-wrap input:focus {
  outline: none;
  border-color: var(--primary);
}
.chat-input-wrap button {
  padding: 0.65rem 1rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}
.chat-input-wrap button:hover { opacity: 0.95; }

/* Legal pages */
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.legal-page h1 {
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}
.legal-page h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.2rem;
}
.legal-page p, .legal-page ul {
  margin: 0 0 1rem;
  color: var(--text-muted);
}
.legal-page a {
  color: var(--primary);
}
.legal-page .back {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--primary);
  text-decoration: none;
}
.legal-page .back:hover { text-decoration: underline; }
