:root {
  --bg: #0f0d16;
  --bg-alt: #17131f;
  --card: #1c1826;
  --text: #f2eefb;
  --text-muted: #b9b2cc;
  --accent: #c9a24b;
  --accent-soft: rgba(201, 162, 75, 0.14);
  --border: #2c2638;
  --radius: 14px;
  --max-width: 1080px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #faf7f2;
    --bg-alt: #f1ecdf;
    --card: #ffffff;
    --text: #221c30;
    --text-muted: #5c5570;
    --accent: #9c7a2e;
    --accent-soft: rgba(156, 122, 46, 0.12);
    --border: #e6e0d2;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

a { color: inherit; text-decoration: none; }

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 13, 22, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

@media (prefers-color-scheme: light) {
  header.site-header { background: rgba(250, 247, 242, 0.9); }
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  color: var(--accent);
  flex-shrink: 0;
}

.brand-mark {
  width: 30px;
  height: 30px;
  color: var(--accent);
  flex-shrink: 0;
}

.brand-name {
  white-space: nowrap;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
}

nav.main-nav > a {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown summary::-webkit-details-marker { display: none; }

.nav-dropdown summary::after {
  content: "▾";
  font-size: 0.7em;
  margin-left: 2px;
}

.nav-dropdown summary:hover,
.nav-dropdown summary.active {
  color: var(--accent);
}

.nav-dropdown .dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 220px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  z-index: 60;
}

.nav-dropdown .dropdown-menu a {
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 0.92rem;
  color: var(--text);
  white-space: nowrap;
}

.nav-dropdown .dropdown-menu a:hover,
.nav-dropdown .dropdown-menu a.active {
  background: var(--accent-soft);
  color: var(--accent);
}

/* Close the dropdown when clicking elsewhere, via native <details> click-outside is not automatic;
   this simple approach relies on the summary click to toggle, which is native behaviour. */

.call-btn {
  background: var(--accent);
  color: #1a1508;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.hero {
  padding: 80px 24px 60px;
  text-align: center;
}

.hero-image {
  background-size: cover;
  background-position: center;
  color: #f2eefb;
  padding: 120px 24px;
}

.hero-image h1,
.hero-image p.lead {
  color: #f2eefb;
}

.page-hero {
  background-size: cover;
  background-position: center;
  color: #f2eefb;
}

.page-hero h1,
.page-hero p {
  color: #f2eefb;
}

.hero .eyebrow {
  font-family: "Fraunces", serif;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0 0 20px;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 32px;
}

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

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #1a1508;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-whatsapp {
  background: #25D366;
  color: #06341c;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-whatsapp:hover { opacity: 0.92; }

.call-btn {
  background: #25D366 !important;
  color: #06341c !important;
}

.whatsapp-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #25D366;
  color: #06341c;
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 36px;
  transition: transform 0.15s ease;
}

.whatsapp-cta:hover { transform: translateY(-2px); }

.whatsapp-cta svg { width: 40px; height: 40px; flex-shrink: 0; }

.whatsapp-cta span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.whatsapp-cta strong { font-size: 1.15rem; }
.whatsapp-cta small { color: #06341c; opacity: 0.75; }

section {
  padding: 60px 24px;
}

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

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

.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.section-head p { color: var(--text-muted); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.card-body {
  padding: 28px;
}

.card h3 { margin: 0 0 12px; font-size: 1.25rem; }
.card p { color: var(--text-muted); margin: 0 0 18px; }
.card a.card-link { color: var(--accent); font-weight: 600; font-size: 0.9rem; }

.card-img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: center;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 40px;
  align-items: center;
}

.about-img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center;
  aspect-ratio: 4 / 5;
}

@media (max-width: 720px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-img {
    aspect-ratio: 16 / 9;
  }
}

.page-hero {
  padding: 64px 24px 40px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 16px; }
.page-hero p { color: var(--text-muted); max-width: 640px; margin: 0 auto; }

.content-block {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px;
}

.content-block h2 { margin-top: 40px; }
.content-block p { color: var(--text-muted); }

p.note {
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--text-muted);
  opacity: 0.7;
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
}

.contact-card .label { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 6px; }
.contact-card .value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  max-width: 100%;
}

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer.site-footer a { color: var(--accent); }

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
  z-index: 100;
  animation: whatsapp-pulse 2.4s ease-in-out infinite;
}

.whatsapp-float svg { width: 32px; height: 32px; }

@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5), 0 0 0 0 rgba(37, 211, 102, 0.55); }
  50% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5), 0 0 0 12px rgba(37, 211, 102, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { animation: none; }
}

@media (max-width: 720px) {
  .nav-inner { flex-wrap: wrap; row-gap: 10px; }
  nav.main-nav { gap: 16px; order: 3; width: 100%; justify-content: center; }
  .call-btn { order: 2; margin-left: auto; padding: 8px 14px; font-size: 0.85rem; }
  .brand-name { font-size: 1.05rem; }
  .brand { gap: 6px; }
}
