/* ============================================================
   RATSIA PALVELUT — Main Stylesheet
   Color System:
     --bg:         #0a0a0a  (near black)
     --bg-2:       #111111  (dark card bg)
     --bg-3:       #1a1a1a  (elevated surface)
     --border:     #2a2a2a  (subtle border)
     --yellow:     #f5c800  (primary accent)
     --yellow-d:   #d4a900  (hover/dark yellow)
     --text:       #f0f0f0  (primary text)
     --text-muted: #888888  (secondary text)
   ============================================================ */

/* ——— RESET & BASE ——— */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #0a0a0a;
  --bg-2:       #111111;
  --bg-3:       #1a1a1a;
  --border:     #2a2a2a;
  --yellow:     #f5c800;
  --yellow-d:   #d4a900;
  --yellow-glow:rgba(245,200,0,0.15);
  --text:       #f0f0f0;
  --text-muted: #888888;
  --text-faint: #444444;
  --radius:     8px;
  --radius-lg:  16px;
  --shadow:     0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg:  0 8px 48px rgba(0,0,0,0.7);
  --transition: 0.22s ease;
  --max-w:      1200px;
  --nav-h:      72px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

/* ——— UTILITIES ——— */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.text-yellow { color: var(--yellow); }

.section {
  padding: 96px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  background: var(--yellow-glow);
  border: 1px solid rgba(245,200,0,0.25);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-header h2 {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* ——— BUTTONS ——— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--yellow);
  color: #0a0a0a;
  border: 2px solid var(--yellow);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--yellow-d);
  border-color: var(--yellow-d);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245,200,0,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}
.btn-outline:hover, .btn-outline:focus-visible {
  border-color: var(--yellow);
  color: var(--yellow);
  transform: translateY(-1px);
}

.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }


/* ——— NAVIGATION ——— */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(10,10,10,0.97);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 24px;
}

.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-img { height: 80px; width: auto; }
.hero-title-row { display: flex; align-items: center; gap: 24px; margin-bottom: 0; }
.hero-logo { height: 220px; width: auto; flex-shrink: 0; }
.logo-text-fallback {
  display: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--text);
  align-items: center;
}
.logo-accent { color: var(--yellow); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover, .nav-links a:focus-visible {
  color: var(--text);
  background: var(--bg-3);
}

.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.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); }


/* ——— HERO ——— */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* PLACEHOLDER: replaced by JS or inline style with actual image */
  background-color: #0d0d0d;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.hero:hover .hero-bg { transform: scale(1.0); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.88) 0%,
    rgba(0,0,0,0.65) 60%,
    rgba(0,0,0,0.5) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding-top: 48px;
  padding-bottom: 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  border: 1px solid rgba(245,200,0,0.4);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  animation: fadeUp 0.7s 0.1s both ease;
}

.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  animation: fadeUp 0.7s 0.2s both ease;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(240,240,240,0.8);
  line-height: 1.65;
  margin-bottom: 40px;
  animation: fadeUp 0.7s 0.3s both ease;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  animation: fadeUp 0.7s 0.4s both ease;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 0.875rem;
  color: rgba(240,240,240,0.65);
  animation: fadeUp 0.7s 0.5s both ease;
}
.hero-trust span::before { content: ''; }

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero-scroll span {
  display: block;
  width: 24px;
  height: 38px;
  border: 2px solid rgba(245,200,0,0.4);
  border-radius: 12px;
  position: relative;
}
.hero-scroll span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--yellow);
  border-radius: 2px;
  animation: scrollDot 1.6s infinite ease;
}

@keyframes scrollDot {
  0%   { top: 6px; opacity: 1; }
  80%  { top: 18px; opacity: 0; }
  100% { top: 6px; opacity: 0; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ——— SERVICES ——— */
.services { background: var(--bg); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover {
  border-color: rgba(245,200,0,0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.service-card:hover::before { transform: scaleX(1); }

.service-card--wide {
  grid-column: span 3;
  display: flex;
  align-items: center;
  gap: 28px;
}
.service-card--wide .service-icon { flex-shrink: 0; }

.service-icon {
  width: 52px;
  height: 52px;
  color: var(--yellow);
  margin-bottom: 20px;
}
.service-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}
.service-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--yellow);
  transition: gap var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.service-link:hover { gap: 8px; }


/* ——— PESTS ——— */
.pests { background: var(--bg-2); }

.pests-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pest-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.pest-card:hover {
  border-color: rgba(245,200,0,0.4);
  transform: translateY(-3px);
}

.pest-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg);
}
.pest-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.pest-card:hover .pest-img-wrap img { transform: scale(1.06); }
.pest-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: var(--bg-3);
  pointer-events: none;
  transition: opacity var(--transition);
}
/* Show emoji only when image fails */
.pest-img-wrap:not(.no-img) .pest-img-placeholder { opacity: 0; }
.pest-img-wrap.no-img img { display: none; }
.pest-img-wrap.no-img .pest-img-placeholder { opacity: 1; }

.pest-card h3 {
  font-size: 1rem;
  font-weight: 700;
  padding: 16px 20px;
  text-align: center;
}

.pest-card--cta {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow-glow);
  border-color: rgba(245,200,0,0.25);
  aspect-ratio: unset;
  min-height: 180px;
}
.pest-cta-content { text-align: center; }
.pest-cta-content p {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-muted);
}


/* ——— WHY US ——— */
.why-us { background: var(--bg); }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-content .section-tag { display: inline-block; margin-bottom: 16px; }
.why-content h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 40px;
}

.why-points { display: flex; flex-direction: column; gap: 28px; }

.why-point {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.why-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--yellow-glow);
  border: 1px solid rgba(245,200,0,0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.why-point h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.why-point p  { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

.why-visual { display: flex; flex-direction: column; gap: 20px; }

.why-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--border);
}
.why-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.why-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-faint);
  font-size: 0.875rem;
  text-align: center;
}
.why-img-placeholder span {
  font-size: 2rem;
  font-weight: 900;
  color: var(--border);
  letter-spacing: 0.2em;
}
.why-img-placeholder small { color: var(--text-faint); line-height: 1.5; }

.why-hours {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hours-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9375rem;
}
.hours-day { font-weight: 500; }
.hours-status {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}
.hours-status.open  { background: rgba(34,197,94,0.15); color: #4ade80; }
.hours-status.closed { background: rgba(255,255,255,0.06); color: var(--text-muted); }


/* ——— GALLERY ——— */
.gallery { background: var(--bg-2); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-3);
  cursor: pointer;
  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.06); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--yellow);
  border: 1px solid var(--yellow);
  padding: 8px 16px;
  border-radius: 6px;
}

.gallery-item.gallery-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--text-faint);
  font-size: 0.8rem;
  text-align: center;
  padding: 16px;
}
.gallery-item.gallery-placeholder::before {
  content: 'KUVA';
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-faint);
}

.gallery-hint {
  margin-top: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-faint);
}
.gallery-hint code {
  background: var(--bg-3);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
}

/* ——— LIGHTBOX ——— */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.lightbox[aria-hidden="false"] {
  opacity: 1;
  pointer-events: all;
}
.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: fixed;
  background: rgba(255,255,255,0.1);
  color: var(--text);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  cursor: pointer;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(255,255,255,0.2);
}
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev  { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 20px; top: 50%; transform: translateY(-50%); }


/* ——— REVIEWS ——— */
.reviews { background: var(--bg); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
}
.review-card::before {
  content: '\201C';
  position: absolute;
  top: -8px;
  right: 20px;
  font-size: 8rem;
  color: var(--yellow-glow);
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}
.review-stars {
  color: var(--yellow);
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.review-card p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 20px;
}
.review-card cite {
  font-size: 0.8375rem;
  font-weight: 600;
  color: var(--text);
  font-style: normal;
}
.reviews-note {
  margin-top: 24px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-faint);
}


/* ——— FAQ ——— */
.faq { background: var(--bg-2); }

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item:focus-within { border-color: rgba(245,200,0,0.4); }

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color var(--transition);
  background: none;
  border: none;
  cursor: pointer;
}
.faq-question:hover { color: var(--yellow); }
.faq-question[aria-expanded="true"] { color: var(--yellow); }

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
  transition: transform var(--transition), border-color var(--transition);
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.faq-icon::before { width: 10px; height: 2px; }
.faq-icon::after  { width: 2px; height: 10px; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }

.faq-answer {
  padding: 0 24px 20px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}


/* ——— CONTACT ——— */
.contact { background: var(--bg); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 48px;
  align-items: start;
}

/* Form */
.contact-form-wrap {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.form-row .form-group { margin-bottom: 0; }

label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

input[type="text"],
input[type="tel"],
input[type="email"],
textarea,
select {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 12px 16px;
  font-size: 0.9375rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}
input::placeholder, textarea::placeholder { color: var(--text-faint); }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px var(--yellow-glow);
}
input.invalid, textarea.invalid, select.invalid {
  border-color: #ef4444;
}
textarea { resize: vertical; min-height: 120px; }
select { cursor: pointer; }
select option { background: var(--bg-2); }

.form-error {
  font-size: 0.8rem;
  color: #ef4444;
  min-height: 18px;
}
.form-hint {
  font-size: 0.78rem;
  color: var(--text-faint);
}

/* File input */
.file-input { display: none; }
.file-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--bg-3);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: border-color var(--transition), color var(--transition);
  width: 100%;
}
.file-label:hover { border-color: var(--yellow); color: var(--yellow); }
.file-chosen { font-size: 0.8rem; color: var(--yellow); min-height: 18px; }

/* Submit */
#form-submit { margin-top: 4px; }
.btn-loading { display: none; }
.btn.loading .btn-text { display: none; }
.btn.loading .btn-loading { display: inline; }

.form-success {
  margin-top: 16px;
  padding: 16px 20px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--radius);
  color: #4ade80;
  font-weight: 600;
  font-size: 0.9rem;
}
.form-error-global {
  margin-top: 16px;
  padding: 16px 20px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius);
  color: #f87171;
  font-size: 0.9rem;
}
.form-error-global a { color: var(--yellow); text-decoration: underline; }

/* Contact card */
.contact-info { display: flex; flex-direction: column; gap: 20px; }

.contact-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.contact-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.contact-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 28px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: border-color var(--transition), background var(--transition);
  color: var(--text);
}
.contact-item:hover { border-color: rgba(245,200,0,0.4); background: var(--bg-3); }
.contact-item--phone { color: var(--yellow); border-color: rgba(245,200,0,0.2); }
.contact-item--phone:hover { border-color: var(--yellow); background: var(--yellow-glow); }
.contact-item--whatsapp { color: #4ade80; border-color: rgba(34,197,94,0.2); }
.contact-item--whatsapp:hover { border-color: rgba(34,197,94,0.5); background: rgba(34,197,94,0.05); }

.contact-item-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-3);
  border-radius: 8px;
  flex-shrink: 0;
}

.contact-hours h4, .contact-area h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.contact-hours table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.contact-hours td {
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.contact-hours td:last-child { text-align: right; font-weight: 600; color: var(--text); }
.contact-area p { font-size: 0.9rem; color: var(--text-muted); }

/* Map */
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.map-wrap iframe { display: block; filter: invert(90%) hue-rotate(180deg); }


/* ——— FOOTER ——— */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.footer-brand { max-width: 320px; }
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }

.footer-links h4, .footer-contact h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-links ul, .footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a, .footer-contact a, .footer-contact li {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-links a:hover, .footer-contact a:hover { color: var(--yellow); }

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-faint);
}
.footer-vat { font-size: 0.78rem; }


/* ——— FLOATING BUTTONS ——— */
.float-buttons {
  position: fixed;
  right: 24px;
  bottom: 88px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  transition: transform var(--transition), box-shadow var(--transition);
  color: #fff;
}
.float-btn:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(0,0,0,0.6); }
.float-btn--call    { background: var(--yellow); color: #0a0a0a; }
.float-btn--whatsapp{ background: #25d366; }

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  width: 44px;
  height: 44px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  box-shadow: var(--shadow);
}
.back-to-top:hover { background: var(--yellow); color: #0a0a0a; border-color: var(--yellow); transform: translateY(-2px); }


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .services-grid    { grid-template-columns: repeat(2, 1fr); }
  .service-card--wide { grid-column: span 2; }
  .pests-grid       { grid-template-columns: repeat(3, 1fr); }
  .why-grid         { grid-template-columns: 1fr; gap: 48px; }
  .why-visual       { order: -1; }
  .why-img-wrap     { max-width: 480px; }
  .contact-grid     { grid-template-columns: 1fr; }
  .contact-info     { display: grid; grid-template-columns: 1fr 1fr; }
  .footer-grid      { grid-template-columns: 1fr 1fr; }
  .footer-brand     { grid-column: span 2; max-width: 100%; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  /* Mobile nav menu */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(10,10,10,0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 24px 24px 32px;
    gap: 4px;
    z-index: 999;
    animation: slideDown 0.25s ease;
  }
  .nav-links.open a {
    font-size: 1.1rem;
    padding: 14px 16px;
    border-radius: var(--radius);
  }
  .nav-links.open .nav-cta-mobile {
    margin-top: 12px;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .section { padding: 64px 0; }
  .section-header { margin-bottom: 40px; }

  .hero-title { font-size: clamp(2.5rem, 10vw, 4rem); }

  .services-grid    { grid-template-columns: 1fr; gap: 16px; }
  .service-card--wide { grid-column: span 1; flex-direction: column; }

  .pests-grid       { grid-template-columns: repeat(2, 1fr); }

  .reviews-grid     { grid-template-columns: 1fr; }

  .gallery-grid     { grid-template-columns: repeat(2, 1fr); }

  .form-row         { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 24px; }
  .contact-card     { padding: 24px; }
  .contact-info     { display: flex; flex-direction: column; }

  .footer-grid      { grid-template-columns: 1fr; }
  .footer-brand     { grid-column: auto; }
  .footer-bottom    { flex-direction: column; text-align: center; gap: 8px; }

  .float-buttons    { right: 16px; bottom: 76px; }
  .back-to-top      { right: 16px; bottom: 16px; }

  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .pests-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-trust { flex-direction: column; gap: 8px; }
}

/* ——— PRINT ——— */
@media print {
  /* ── Hide decorative / interactive elements ── */
  .site-header, .float-buttons, .back-to-top, .hero-scroll,
  .lightbox, .gallery-overlay, .faq-icon, .btn, .hero-actions,
  .hero-bg, .hero-overlay, .gallery-hint,
  .why-img-wrap, .why-img-placeholder { display: none !important; }

  /* ── Base ── */
  *, *::before, *::after {
    box-shadow: none !important;
    text-shadow: none !important;
    background: transparent !important;
    color: black !important;
    border-color: #ccc !important;
  }
  body { font-size: 10pt; line-height: 1.4; }
  a { text-decoration: none !important; }
  .text-yellow { color: #a07800 !important; }

  /* ── Force ALL flex/grid containers to plain block ──
     This is the key fix: Chrome can't honour break-inside
     on flex/grid children, so we remove those layouts entirely. */
  .hero-content,
  .hero-title-row,
  .hero-trust,
  .services-grid,
  .pests-grid,
  .why-grid,
  .why-content,
  .why-points,
  .why-visual,
  .gallery-grid,
  .reviews-grid,
  .faq-list,
  .contact-grid,
  .contact-info,
  .contact-list,
  .footer-grid,
  .footer-brand,
  .nav-logo { display: block !important; width: 100% !important; }

  /* ── Hero ── */
  .hero { min-height: auto !important; padding: 16pt 0 8pt !important; }
  .hero-logo { height: 80pt !important; display: block !important; margin-bottom: 8pt !important; }
  .hero-badge { margin-bottom: 4pt !important; }

  /* ── Sections: each starts fresh, never splits internally ── */
  .section {
    padding: 16pt 0 !important;
    break-before: page;
    page-break-before: always;
  }
  .hero { break-before: auto !important; page-break-before: auto !important; }

  /* ── Individual cards / items ── */
  .service-card,
  .pest-card,
  .review-card,
  .contact-card,
  .contact-item,
  .faq-item,
  .why-point {
    display: block !important;
    width: 100% !important;
    overflow: hidden !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
    margin-bottom: 8pt !important;
    padding: 8pt !important;
    border: 1px solid #ccc !important;
    border-radius: 0 !important;
  }

  /* ── Gallery: show 2-up so it's not endless ── */
  .gallery-item {
    display: inline-block !important;
    width: 48% !important;
    vertical-align: top !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
    margin-bottom: 8pt !important;
    border: 1px solid #ccc !important;
  }
  .gallery-item img { width: 100% !important; height: auto !important; }

  /* ── Pest images: keep small so cards don't waste space ── */
  .pest-img-wrap { height: 60pt !important; overflow: hidden !important; }
  .pest-img-wrap img { width: 100% !important; height: 60pt !important; object-fit: cover !important; }

  /* ── Headings stay with content below ── */
  h1, h2, h3, h4 {
    break-after: avoid !important;
    page-break-after: avoid !important;
  }

  /* ── Footer ── */
  .site-footer {
    break-before: auto !important;
    page-break-before: auto !important;
    padding: 12pt 0 !important;
  }

  /* ── Form: readable in print ── */
  input, select, textarea {
    border: 1px solid #999 !important;
    background: white !important;
    padding: 4pt !important;
  }
  .contact-form-wrap {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }
}

/* ——— REDUCED MOTION ——— */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
