:root {
  --bordeaux: #802520;
  --rojo: #d12229;
  --beige: #f3e9e8;
  --white: #ffffff;
  --ink: #3a1815;
  --muted: #6b4a46;
  --line: #e4d0cd;
  --surface: #f3e9e8;
  --shadow: 0 12px 40px rgba(128, 37, 32, 0.14);
  --radius: 16px;
  --header-h: 72px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--bordeaux);
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--bordeaux);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}

.brand img {
  height: 40px;
  width: auto;
}

.brand-text {
  display: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--rojo);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1.35rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--rojo);
  color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--bordeaux);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--bordeaux);
  border: 2px solid var(--rojo);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--beige);
}

.btn-header {
  padding: 0.65rem 1.1rem;
}

/* Hero */
.hero {
  padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(circle at top right, rgba(209, 34, 41, 0.12), transparent 45%),
    linear-gradient(180deg, var(--beige), var(--white) 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(128, 37, 32, 0.1);
  color: var(--bordeaux);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--bordeaux);
}

.hero p {
  margin: 0 0 1.75rem;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.1rem;
}

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

.hero-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.hero-card img {
  width: min(220px, 100%);
  height: auto;
  margin: 0 auto 1rem;
}

.hero-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  text-align: center;
  color: var(--bordeaux);
}

.hero-card p {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

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

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

.section-head {
  margin-bottom: 2rem;
  max-width: 40rem;
}

.section-head h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--bordeaux);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

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

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 100%;
}

.service-card h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--bordeaux);
}

.service-card p {
  margin: 0;
  color: var(--muted);
  flex: 1;
}

.service-card .note {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--rojo);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
}

.contact-card,
.map-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.contact-list li {
  display: grid;
  gap: 0.2rem;
}

.contact-list span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-list a,
.contact-list strong {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  color: var(--rojo);
}

.map-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  background:
    linear-gradient(160deg, rgba(209, 34, 41, 0.1), rgba(128, 37, 32, 0.04)),
    var(--white);
}

.map-card h3 {
  margin: 0 0 0.5rem;
  color: var(--bordeaux);
}

.map-card p {
  margin: 0;
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: var(--bordeaux);
  color: rgba(255, 255, 255, 0.92);
  padding: 2.5rem 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand img {
  height: 44px;
  width: auto;
  background: var(--white);
  border-radius: 10px;
  padding: 6px 10px;
}

.footer-brand strong {
  display: block;
}

.footer-meta {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-meta a {
  color: #f7d4d2;
}

/* Chat widget */
.chat-widget {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  font-family: var(--font);
}

.chat-toggle {
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 50%;
  background: var(--rojo);
  color: var(--white);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
}

.chat-toggle:hover,
.chat-toggle:focus-visible {
  background: var(--bordeaux);
}

.chat-panel {
  position: absolute;
  right: 0;
  bottom: calc(58px + 0.75rem);
  width: min(340px, calc(100vw - 2rem));
  height: 420px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chat-panel.is-open {
  display: flex;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.9rem 1rem;
  background: var(--bordeaux);
  color: var(--white);
}

.chat-header strong {
  display: block;
}

.chat-header small {
  opacity: 0.9;
}

.chat-close {
  border: none;
  background: transparent;
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: var(--beige);
}

.chat-bubble {
  max-width: 85%;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  font-size: 0.92rem;
}

.chat-bubble.bot {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--rojo);
  color: var(--white);
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.chat-form input {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.7rem 0.95rem;
  font: inherit;
}

.chat-form input:focus {
  outline: 2px solid rgba(209, 34, 41, 0.35);
  border-color: var(--rojo);
}

.chat-form button {
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  background: var(--bordeaux);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.chat-form button:hover,
.chat-form button:focus-visible {
  background: var(--rojo);
}

@media (max-width: 900px) {
  .hero-grid,
  .contact-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .nav .nav-link {
    display: none;
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }

  .brand img {
    height: 32px;
  }

  .chat-panel {
    height: min(60vh, 420px);
  }
}
