:root {
  --bg: #f7f4ef;
  --bg-2: #efe9df;
  --ink: #1c1b18;
  --ink-soft: #4a4843;
  --muted: #8d877d;
  --accent: #b08a5a;
  --line: rgba(28, 27, 24, 0.12);
  --card: #ffffff;
  --shadow: 0 14px 40px -28px rgba(28, 27, 24, 0.45);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(28, 27, 24, 0.25); }
a:hover { color: var(--accent); border-color: var(--accent); }

main { max-width: 980px; margin: 0 auto; padding: 32px 22px 64px; }

/* Language toggle: show only the active language */
body.lang-en .es,
body.lang-es .en { display: none !important; }

.topbar { background: rgba(247, 244, 239, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.topbar-inner { max-width: 980px; margin: 0 auto; padding: 14px 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.topbar-name { font-family: "Pinyon Script", "Brush Script MT", cursive; font-size: 28px; color: var(--ink); letter-spacing: 0.02em; }
.lang-switch { display: inline-flex; gap: 2px; padding: 4px; background: var(--bg-2); border-radius: 999px; border: 1px solid var(--line); }
.lang-btn {
  border: 0; background: transparent; padding: 6px 14px; font: inherit; font-weight: 600; font-size: 12px;
  letter-spacing: 0.1em; color: var(--ink-soft); border-radius: 999px; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-btn.active { background: var(--ink); color: var(--bg); }
.lang-btn:not(.active):hover { color: var(--ink); }

/* Hero */
.hero {
  display: grid; grid-template-columns: 180px 1fr; gap: 32px; align-items: center;
  padding: 40px 28px; margin-bottom: 36px;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
}
.hero-photo {
  width: 180px; height: 180px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, #e6d9c4, #c8b08a);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
}
.hero-photo-fallback {
  font-family: "Pinyon Script", cursive; font-size: 84px; color: rgba(28, 27, 24, 0.55); transform: translateY(-4px);
}
.hero-eyebrow { margin: 0 0 4px; color: var(--accent); letter-spacing: 0.18em; text-transform: uppercase; font-size: 11px; font-weight: 600; }
.hero-name {
  font-family: "Pinyon Script", "Brush Script MT", cursive;
  font-size: 64px; line-height: 1; margin: 0 0 8px; color: var(--ink); font-weight: 400;
}
.hero-tag { font-family: "Cormorant Garamond", "Times New Roman", serif; font-size: 22px; line-height: 1.35; color: var(--ink-soft); margin: 0 0 16px; }
.hero-meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; color: var(--ink-soft); font-size: 14px; }
.hero-meta span { color: var(--muted); }

/* Section eyebrows */
.section-eyebrow {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent);
  font-weight: 700; margin: 0 0 16px;
}

/* Reach */
.reach { margin-bottom: 44px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 18px 16px; box-shadow: var(--shadow);
}
.stat-label { margin: 0; font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.stat-number { margin: 8px 0 2px; font-family: "Cormorant Garamond", serif; font-size: 42px; font-weight: 500; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.stat-sub { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.stat-link { font-size: 12px; color: var(--ink-soft); border-bottom-color: rgba(28, 27, 24, 0.15); }
.stat-total { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.stat-total .stat-label { color: var(--bg); opacity: 0.78; }
.stat-total .stat-number { color: var(--bg); }
.stat-total .stat-sub { color: rgba(247, 244, 239, 0.72); }
.reach-foot { color: var(--muted); font-size: 12px; margin: 14px 0 0; }

/* About */
.about, .pillars, .services, .contact { margin-bottom: 44px; }
.about-body p { font-family: "Cormorant Garamond", serif; font-size: 19px; line-height: 1.6; color: var(--ink); margin: 0 0 14px; }
.about-body strong { color: var(--accent); font-weight: 600; }

/* Pillars */
.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pillar {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px; box-shadow: var(--shadow);
}
.pillar h3 { font-family: "Cormorant Garamond", serif; font-size: 22px; font-weight: 500; margin: 0 0 6px; color: var(--ink); }
.pillar p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }

/* Services */
.services-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.services-grid li {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; font-size: 14px; color: var(--ink); font-weight: 500;
}

/* Contact */
.contact-card {
  background: var(--ink); color: var(--bg); border-radius: 18px; padding: 28px;
  box-shadow: var(--shadow);
}
.contact-name { font-family: "Pinyon Script", cursive; font-size: 44px; line-height: 1; margin: 0 0 16px; color: var(--bg); }
.contact-card p { color: rgba(247, 244, 239, 0.85); margin: 0 0 14px; font-size: 15px; line-height: 1.55; }
.contact-rows { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 6px; }
.contact-rows a { color: var(--bg); border-bottom-color: rgba(247, 244, 239, 0.35); font-size: 14px; }
.contact-rows a:hover { color: #f0d9b2; border-color: #f0d9b2; }

footer { text-align: center; color: var(--muted); font-size: 12px; padding: 22px; border-top: 1px solid var(--line); }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; text-align: left; gap: 18px; padding: 26px 22px; }
  .hero-photo { width: 140px; height: 140px; }
  .hero-name { font-size: 52px; }
  .hero-tag { font-size: 19px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .contact-name { font-size: 36px; }
}
