@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #fffaf7;
  --bg-soft: #fff5ef;
  --surface: #ffffff;
  --surface-warm: #fef3ec;
  --text: #2c1810;
  --text-secondary: #6b4f43;
  --muted: #9a8078;
  --line: rgba(44, 24, 16, 0.08);
  --line-strong: rgba(44, 24, 16, 0.14);
  --accent: #d4725c;
  --accent-hover: #c4624c;
  --accent-soft: rgba(212, 114, 92, 0.10);
  --accent-warm: #d4a574;
  --gold: #c9a96e;
  --shadow: 0 20px 60px rgba(44, 24, 16, 0.08);
  --shadow-hover: 0 24px 70px rgba(44, 24, 16, 0.12);
  --radius-xl: 24px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --max-width: 1160px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.container {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 247, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 80px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-full {
  height: 64px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.site-nav a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a.is-active { color: var(--accent); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}

/* ── Buttons ── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.button:hover { transform: translateY(-1px); }

.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(212, 114, 92, 0.25);
}

.button-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 12px 32px rgba(212, 114, 92, 0.3);
}

.button-secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

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

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  animation: kenBurns 18s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide:nth-child(1) { animation-delay: 0s; transform-origin: center center; }
.hero-slide:nth-child(2) { animation-delay: -6s; transform-origin: left center; }
.hero-slide:nth-child(3) { animation-delay: -12s; transform-origin: right center; }

@keyframes kenBurns {
  0% { transform: scale(1) translateY(0); }
  100% { transform: scale(1.08) translateY(0); }
}

.hero-slideshow::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(255, 250, 247, 0.55);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 80px 0;
  max-width: 640px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 20px;
  color: var(--text);
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin: 0 auto 32px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ── Sections ── */
.section { padding: 72px 0; }
.section-warm { background: var(--bg-soft); }

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

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.section-eyebrow::after {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 16px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin: 0;
}

/* ── Service Cards ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.service-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.service-card-body {
  padding: 28px;
}

.service-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.service-card-body p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

.services-grid-extended {
  grid-template-columns: repeat(3, 1fr);
  justify-content: center;
}

/* Last row: center 2 remaining cards */
.services-grid-extended .service-card:nth-last-child(2):nth-child(3n+1) {
  grid-column: 1 / 2;
  margin-left: auto;
  margin-right: 0;
}

.services-grid-extended .service-card:last-child:nth-child(3n+2) {
  grid-column: 2 / 3;
  margin-left: 0;
  margin-right: auto;
}

/* ── Features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.3s;
}

.feature-card:hover { border-color: var(--accent); }

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

/* ── CTA Band ── */
.cta-band {
  text-align: center;
  padding: 72px 0;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-warm) 100%);
  color: #fff;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  margin: 0 0 16px;
  color: #fff;
}

.cta-band p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin: 0 0 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-band .button-primary {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.cta-band .button-primary:hover {
  background: #fff;
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

/* ── Contact Form ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: start;
}

.contact-card {
  padding: 36px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-card h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.contact-card > p {
  color: var(--text-secondary);
  margin: 0 0 24px;
}

.contact-form { display: grid; gap: 16px; }

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field { display: grid; gap: 6px; }

.form-field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-field textarea { min-height: 140px; resize: vertical; }
.form-field select { appearance: none; }

.form-status {
  margin: 4px 0 0;
  min-height: 24px;
  font-size: 0.92rem;
  font-weight: 600;
}

.form-status.is-success { color: #16a34a; }
.form-status.is-error { color: #dc2626; }

.info-card {
  padding: 36px;
  border-radius: var(--radius-xl);
  background: var(--surface-warm);
  border: 1px solid var(--line);
}

.info-card-logo {
  width: 100%;
  max-width: 240px;
  margin: 0 auto 24px;
  display: block;
  object-fit: contain;
}

.info-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 12px;
}

.info-card p { color: var(--text-secondary); margin: 0 0 8px; }
.info-card a { color: var(--accent); font-weight: 700; }

/* ── Footer ── */
.site-footer {
  padding: 48px 0 24px;
  border-top: 1px solid var(--line);
  background: var(--surface-warm);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.site-footer h4 {
  font-family: var(--font-display);
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.site-footer p,
.site-footer li,
.site-footer a { color: var(--muted); font-size: 0.92rem; }
.site-footer a:hover { color: var(--accent); }

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-bottom {
  padding-top: 24px;
  margin-top: 32px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ── Chat Widget ── */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  font-family: var(--font-body);
}

.chat-fab {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(212, 114, 92, 0.35);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.chat-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(212, 114, 92, 0.45);
}

.chat-panel {
  display: none;
  flex-direction: column;
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 370px;
  max-height: 520px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(44, 24, 16, 0.15);
  overflow: hidden;
}

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

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-warm);
}

.chat-avatar {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.chat-header strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
}

.chat-header span {
  font-size: 0.78rem;
  color: var(--muted);
}

.chat-close {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 280px;
  max-height: 360px;
}

.chat-msg p {
  margin: 0;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 85%;
}

.chat-msg-bot p {
  background: var(--surface-warm);
  color: var(--text);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.chat-msg-user p {
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
  margin-left: auto;
}

.chat-msg-typing p {
  background: var(--surface-warm);
  color: var(--muted);
  font-style: italic;
}

.chat-input {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.chat-input input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.9rem;
  background: var(--surface);
  color: var(--text);
}

.chat-input input:focus {
  outline: none;
  border-color: var(--accent);
}

.chat-input button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

@media (max-width: 480px) {
  .chat-panel {
    width: calc(100vw - 32px);
    right: -8px;
    bottom: 68px;
    max-height: 70vh;
  }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 250, 247, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open { display: flex; }
  .menu-toggle { display: inline-block; margin-left: auto; }

  .hero { min-height: 70vh; }
  .hero-bg::after {
    background: linear-gradient(to bottom, rgba(255, 250, 247, 0.9) 0%, rgba(255, 250, 247, 0.7) 100%);
  }
  .hero-content {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    max-width: 100%;
  }
  .hero-actions { justify-content: center; }

  .services-grid,
  .features-grid,
  .contact-form-grid { grid-template-columns: 1fr; }

  .contact-layout,
  .footer-grid { grid-template-columns: 1fr; }

  .brand-tagline { display: none; }
}
