/* CV Spoed — static pages design system */
:root {
  --cream: #fffdf8;
  --paper: #f3efe6;
  --ink: #1a1a2e;
  --ink-muted: #5c5c6d;
  --emergency: #c41e3a;
  --emergency-dark: #9a1730;
  --trust: #1b6b4a;
  --trust-light: #e8f5ef;
  --border: #e0dbd2;
  --surface: #ffffff;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }

/* Emergency bar */
.emergency-bar {
  background: var(--emergency);
  color: #fff;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
}

.emergency-bar a { color: #fff; text-decoration: none; }
.emergency-bar a:hover { text-decoration: underline; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(26,26,46,0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  max-width: 68rem;
  margin: 0 auto;
}

.site-header__logo { height: 2.5rem; }

.site-nav { display: none; align-items: center; gap: 2rem; }

.site-nav a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav a:hover { color: var(--emergency); }

.site-nav a.btn-call,
.site-nav a.btn-call:hover {
  color: #fff;
}

.menu-toggle {
  display: flex;
  padding: 0.5rem;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 1.5rem;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 1.125rem; font-weight: 700; text-decoration: none; }
.mobile-nav a.btn-call,
.mobile-nav a.btn-call:hover {
  color: #fff;
}

@media (min-width: 768px) {
  .site-nav { display: flex; }
  .menu-toggle { display: none; }
  .site-header__logo { height: 2.75rem; }
}

/* Buttons */
.btn-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9375rem;
  color: #fff;
  background: var(--emergency);
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(196,30,58,0.3);
  transition: background 0.2s, transform 0.15s;
}

.btn-call:hover { background: var(--emergency-dark); transform: translateY(-1px); }

/* Header nav CTA — matches React homepage */
.btn-call--header {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

.btn-call--header svg {
  flex-shrink: 0;
}

.mobile-nav .btn-call {
  font-size: 1.125rem;
  padding: 0.875rem 1.75rem;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 0.375rem;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s;
}

.btn-outline:hover { border-color: var(--ink); }

/* Page hero */
.page-hero {
  position: relative;
  background: var(--cream);
  background-image: repeating-linear-gradient(-45deg, transparent, transparent 12px, rgba(196,30,58,0.04) 12px, rgba(196,30,58,0.04) 13px);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0 3rem;
  overflow: hidden;
}

.page-hero--image {
  background-image: none;
  background-color: var(--ink);
  padding: 5rem 0 3.5rem;
  min-height: 16rem;
  display: flex;
  align-items: center;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.page-hero__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  display: block;
}

/* Services & contact hero backgrounds */
.page-hero__bg-image--services {
  object-position: center center;
}

.page-hero__bg-image--contact {
  object-position: center 40%;
}

.page-hero--image .page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255, 253, 248, 0.97) 0%,
    rgba(255, 253, 248, 0.88) 45%,
    rgba(255, 253, 248, 0.45) 100%
  );
}

.page-hero--image .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin: 0 0 0.75rem;
}

.page-hero p {
  color: var(--ink-muted);
  font-size: 1.0625rem;
  max-width: 36rem;
  margin: 0;
}

.badge {
  display: inline-block;
  background: var(--trust-light);
  color: var(--trust);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
  margin-bottom: 1rem;
}

/* Sections */
.section { padding: 3.5rem 0; }
.section--white { background: var(--surface); }
.section--paper { background: var(--paper); }
.section--cream { background: var(--cream); }

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 0.5rem;
}

.section__subtitle {
  color: var(--ink-muted);
  margin: 0 0 2.5rem;
}

/* Service blocks */
.service-block {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--emergency);
  border-radius: 0.5rem;
  padding: 0;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.service-block__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
  display: block;
}

.service-block__content {
  padding: 1.5rem 1.5rem 1.75rem;
}

.service-block h2 {
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
}

.service-block p {
  color: var(--ink-muted);
  margin: 0 0 1rem;
}

@media (min-width: 768px) {
  .service-block {
    grid-template-columns: 1fr 1fr;
    padding: 0;
  }

  .service-block--reverse .service-block__image {
    order: 2;
  }

  .service-block--reverse .service-block__content {
    order: 1;
  }

  .service-block__image img {
    aspect-ratio: auto;
    min-height: 100%;
  }
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: grid;
  gap: 0.375rem;
}

.service-features li {
  font-size: 0.9375rem;
  padding-left: 1.25rem;
  position: relative;
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--trust);
  font-weight: 700;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1.4fr; }
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 2rem;
}

.contact-info-item {
  margin-bottom: 1.25rem;
}

.contact-info-item strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  margin-bottom: 0.25rem;
}

.contact-info-item a,
.contact-info-item span {
  font-size: 1rem;
  text-decoration: none;
  color: var(--ink);
}

.contact-info-item a:hover { color: var(--emergency); }

.form-group { margin-bottom: 1rem; }

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9375rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--emergency);
}

.form-group textarea { min-height: 7rem; resize: vertical; }

.alert {
  padding: 1rem 1.25rem;
  border-radius: 0.375rem;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.alert--success {
  background: var(--trust-light);
  border: 1px solid #a7d4bc;
  color: var(--trust);
}

.alert--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

/* CTA band */
.cta-band {
  background: var(--emergency);
  color: #fff;
  text-align: center;
  padding: 3.5rem 1.5rem;
}

.cta-band h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 0.75rem;
}

.cta-band p {
  color: rgba(255,255,255,0.85);
  margin: 0 0 1.5rem;
}

.cta-band__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: var(--emergency);
  font-weight: 700;
  font-size: 1.125rem;
  padding: 0.875rem 2rem;
  border-radius: 0.375rem;
  text-decoration: none;
}

.cta-band__phone:hover { background: var(--paper); }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #fff;
  padding: 2.5rem 0 1.5rem;
}

.site-footer__grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: repeat(3, 1fr); }
}

.site-footer h3 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.5);
  margin: 0 0 0.75rem;
}

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.375rem; }

.site-footer a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}

.site-footer a:hover { color: #fff; }

.site-footer__logo {
  height: 2.25rem;
  margin-bottom: 0.75rem;
  filter: brightness(0) invert(1);
}

.site-footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

.site-footer__legal { display: flex; flex-wrap: wrap; gap: 1rem; }

/* FAQ */
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9375rem;
  text-align: left;
  cursor: pointer;
}

.faq-question:hover { color: var(--emergency); }

.faq-answer {
  display: none;
  padding: 0 1.25rem 1rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-chevron { transition: transform 0.2s; flex-shrink: 0; margin-left: 0.75rem; }

.faq-section {
  max-width: 42rem;
  margin: 0 auto;
}

/* Floating widgets */
.floating-widgets {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.floating-widget {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.5rem;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.15s;
}

.floating-widget:hover { transform: scale(1.05); }
.floating-widget--phone { background: var(--emergency); }
.floating-widget--whatsapp { background: #25D366; }

/* Legal */
.legal-content { max-width: 42rem; margin: 0 auto; padding: 2rem 0 3rem; }
.legal-content h2 { font-size: 1.125rem; margin: 1.75rem 0 0.5rem; color: var(--ink); }
.legal-content h3 { font-size: 1rem; margin: 1.25rem 0 0.375rem; color: var(--ink); }
.legal-content p, .legal-content li { color: var(--ink-muted); font-size: 0.9375rem; line-height: 1.7; }
.legal-content ul, .legal-content ol { padding-left: 1.25rem; margin: 0.5rem 0 1rem; }
.legal-content a { color: var(--emergency); font-weight: 600; text-decoration: none; }
.legal-content a:hover { text-decoration: underline; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; margin-bottom: 2rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); font-size: 0.875rem; }
.legal-nav a { color: var(--ink-muted); font-weight: 600; text-decoration: none; }
.legal-nav a:hover, .legal-nav a.is-active { color: var(--emergency); }

.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }

/* Map */
.map-section {
  padding: 0 0 3.5rem;
}

.map-wrapper {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--paper);
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 22rem;
  border: 0;
}

@media (min-width: 768px) {
  .map-wrapper iframe {
    height: 28rem;
  }
}

.map-caption {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.map-caption a {
  color: var(--emergency);
  font-weight: 600;
  text-decoration: none;
}

.map-caption a:hover {
  text-decoration: underline;
}
