@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,520;0,9..144,640;1,9..144,520&family=Outfit:wght@380;480;580&display=swap");

:root {
  --ink: #17241c;
  --green: #14382c;
  --leaf: #1e6b45;
  --leaf-2: #2f8a5b;
  --gold: #c8892d;
  --gold-2: #e4b15a;
  --clay: #9d4034;
  --cream: #f3eee4;
  --paper: #fffdf8;
  --line: rgba(20, 56, 44, 0.12);
  --muted: #5c675f;
  --shadow: 0 18px 40px rgba(20, 40, 30, 0.12);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 380;
  background: var(--cream);
  background-image:
    linear-gradient(180deg, rgba(243, 238, 228, 0.92), rgba(243, 238, 228, 0.96)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'><path d='M36 4l8 14h16l-8 14 8 14H44L36 60 28 46H12l8-14-8-14h16z' fill='none' stroke='%2314382c' stroke-opacity='.08' stroke-width='1'/></svg>");
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 520; letter-spacing: -0.03em; line-height: 1.05; margin: 0; }
p { margin: 0; }

.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.topbar {
  background: var(--green);
  color: #f6f1e4;
  font-size: 13px;
  letter-spacing: 0.01em;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; flex-wrap: wrap; }
.topbar a { color: var(--gold-2); text-decoration: none; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 238, 228, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 18px; padding: 12px 0; }
.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand img { height: 74px; width: auto; background: #fff; border-radius: 10px; }
.footer-logo { height: 92px; width: auto; background: #fff; border-radius: 12px; margin-bottom: 12px; }
.nav-links { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nav-links a {
  text-decoration: none; font-size: 14px; padding: 6px 8px; border-radius: 999px; color: var(--green);
}
.nav-links a.active, .nav-links a:hover { background: rgba(20, 56, 44, 0.08); }
.nav-toggle {
  display: none; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 12px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; border-radius: 999px; padding: 12px 18px; border: 1px solid transparent;
  cursor: pointer; font-weight: 580; letter-spacing: 0.01em;
}
.btn-primary { background: var(--leaf); color: #f7f3ea; }
.btn-primary:hover { background: #185838; }
.btn-gold { background: var(--gold); color: #1b1408; }
.btn-gold:hover { background: #b57822; }
.btn-ghost { background: transparent; border-color: rgba(20, 56, 44, 0.28); color: var(--green); }
.btn-ghost:hover { background: rgba(20, 56, 44, 0.06); }
.btn-clay { background: var(--clay); color: #fff8f4; }
.btn-small { padding: 8px 12px; font-size: 14px; }

.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding: 42px 0 18px; }
.kicker {
  display: inline-flex; gap: 8px; align-items: center; text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 12px; color: var(--leaf); font-weight: 580; margin-bottom: 14px;
}
.hero h1 { font-size: clamp(44px, 5.5vw, 78px); }
.hero h1 em { font-style: italic; color: var(--leaf); }
.lede { font-size: 18px; color: #314037; margin-top: 18px; max-width: 58ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-photo { position: relative; }
.hero-photo img {
  width: 100%; height: 520px; object-fit: cover; border-radius: 28px 28px 92px 28px;
  box-shadow: var(--shadow);
}
.hero-float {
  position: absolute; left: -28px; bottom: 28px; background: var(--paper);
  border-radius: 18px; padding: 14px 16px; width: min(260px, 70%);
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.hero-float strong { display: block; font-family: var(--serif); font-size: 28px; }
.hero-float span { color: var(--muted); font-size: 13px; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 22px 0 10px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.stat b { display: block; font-family: var(--serif); font-size: 30px; font-weight: 520; }
.stat span { color: var(--muted); font-size: 14px; }

.section { padding: 54px 0; }
.section-head { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(32px, 4vw, 48px); max-width: 16ch; }
.section-head p { color: var(--muted); max-width: 42ch; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 22px; }

.path {
  background: var(--paper); border-radius: 22px; overflow: hidden; border: 1px solid var(--line);
  display: flex; flex-direction: column; min-height: 100%;
}
.path img { height: 180px; width: 100%; object-fit: cover; }
.path div { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.path h3 { font-size: 28px; }
.path p { color: #3d4a42; flex: 1; }
.path .btn { align-self: flex-start; margin-top: 8px; }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  display: flex; flex-direction: column; min-height: 100%;
}
.card img { height: 200px; width: 100%; object-fit: cover; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 26px; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--leaf); }
.meta { color: var(--muted); font-size: 14px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; background: #e7f3ec;
  color: var(--green); border-radius: 999px; padding: 4px 8px; font-weight: 580;
}
.badge-gold { background: #f8ecd4; color: #7a5410; }
.badge-clay { background: #f8e6e1; color: #7c2e26; }
.ask { margin-top: auto; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding-top: 6px; }
.ask b { font-family: var(--serif); font-size: 22px; font-weight: 520; }
.bar { height: 8px; background: #ebe4d6; border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--leaf), var(--gold-2)); }

.filters {
  display: grid; grid-template-columns: 1.4fr repeat(3, 0.8fr) auto; gap: 10px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 12px; margin-bottom: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field.row { flex-direction: row; align-items: center; gap: 8px; }
.field span, .field label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
input, select, textarea {
  width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(30, 107, 69, 0.35); border-color: var(--leaf); }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.check input { width: auto; }

.page-hero { padding: 36px 0 8px; }
.page-hero h1 { font-size: clamp(40px, 5vw, 68px); max-width: 16ch; }
.page-hero p { margin-top: 12px; color: #314037; max-width: 62ch; font-size: 18px; }
figure { margin: 0; }
figcaption { font-size: 13px; color: var(--muted); padding: 8px 4px 0; }
.photo-wide img { width: 100%; height: 460px; object-fit: cover; border-radius: 28px; }
.photo-wide { margin: 18px 0 22px; }
.photo-tall img { width: 100%; height: 420px; object-fit: cover; border-radius: 28px; }
.portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 14px; margin-bottom: 12px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery img { width: 100%; height: 230px; object-fit: cover; border-radius: 18px; }
@media (max-width: 720px) {
  .gallery { grid-template-columns: 1fr; }
  #service-list { grid-template-columns: 1fr !important; }
  .photo-wide img, .photo-tall img { height: 260px; }
}
.about-logo { height: 120px; width: auto; background: #fff; border-radius: 16px; margin-top: 18px; }

.form-card, .panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 18px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.error { color: var(--clay); font-size: 14px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn:disabled { opacity: 0.6; cursor: wait; }

.detail { display: grid; grid-template-columns: 1.4fr 0.7fr; gap: 20px; padding-bottom: 50px; }
.detail-photo { border-radius: 24px; height: 420px; width: 100%; object-fit: cover; }
.story { display: grid; gap: 16px; margin-top: 16px; }
.story article { background: var(--paper); border-radius: 18px; padding: 16px 18px; border: 1px solid var(--line); }
.story h2 { font-size: 28px; margin-bottom: 8px; }
.side-sticky { position: sticky; top: 86px; display: grid; gap: 12px; }
.money { font-family: var(--serif); font-size: 36px; }

.quote {
  background: var(--green); color: #f6f1e4; border-radius: 28px; padding: 32px;
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 20px; align-items: center;
}
.quote h2 { font-size: clamp(30px, 4vw, 46px); color: white; }
.quote p { color: #e7efe8; }
.quote img { height: 240px; width: 100%; object-fit: cover; border-radius: 18px; }

.service {
  display: grid; grid-template-columns: 180px 1fr; gap: 14px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
}
.service img { height: 100%; min-height: 150px; object-fit: cover; }
.service div { padding: 14px 14px 14px 0; }
.service h3 { font-size: 26px; margin-bottom: 6px; }

.team { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.person { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 16px; }
.person.lead { background: var(--green); color: #f6f1e4; }
.mono {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-2); color: var(--green); font-family: var(--serif); font-size: 20px; margin-bottom: 10px;
}
.person.lead .mono { background: #f6f1e4; }
.person h3 { font-size: 26px; margin-bottom: 4px; }
.role { color: var(--gold); font-weight: 580; font-size: 14px; margin-bottom: 8px; }
.person.lead .role { color: var(--gold-2); }
.person p { color: inherit; }

.partners { display: flex; flex-wrap: wrap; gap: 8px; }
.partners span {
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; font-size: 14px;
}

.banner {
  background: #f8ecd4; border: 1px solid #ead7aa; color: #5c4312; border-radius: 14px; padding: 10px 12px; margin: 10px 0;
}
.empty { padding: 28px; text-align: center; color: var(--muted); }

.footer { background: var(--green); color: #e7efe8; margin-top: 20px; }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 22px; padding: 36px 0 20px; }
.footer a { color: var(--gold-2); text-decoration: none; }
.footer h3 { color: white; font-size: 22px; margin-bottom: 8px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.legal { border-top: 1px solid rgba(255,255,255,.12); padding: 12px 0 18px; color: #c9d5ce; font-size: 13px; }

.toast {
  position: fixed; bottom: 16px; right: 16px; background: var(--green); color: #f6f1e4;
  padding: 12px 14px; border-radius: 14px; box-shadow: var(--shadow); z-index: 50; max-width: 320px;
}
dialog {
  border: none; border-radius: 20px; padding: 0; width: min(480px, calc(100% - 24px));
  box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(18, 28, 22, 0.46); }
.dialog-body { padding: 18px; display: grid; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips a {
  text-decoration: none; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 7px 10px; font-size: 14px;
}
.dark { background: #10261c; color: #f6f1e4; }
.dark .section-head p, .dark .meta { color: #c9d7ce; }
.note { font-size: 13px; color: var(--muted); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; width: 100%; }
  .nav-links.open { display: flex; }
  .nav .wrap { flex-wrap: wrap; }
}
@media (max-width: 980px) {
  .hero, .grid-3, .grid-4, .grid-2, .detail, .quote, .team, .footer .wrap, .stat-row { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .filters { grid-template-columns: 1fr 1fr; }
  .hero-photo img, .detail-photo { height: 360px; }
  .hero-float { left: 12px; }
  .service { grid-template-columns: 140px 1fr; }
}
@media (max-width: 720px) {
  .hero, .grid-3, .grid-4, .grid-2, .detail, .quote, .team, .footer .wrap, .stat-row, .form-grid, .service {
    grid-template-columns: 1fr;
  }
  .hero-photo img { height: 280px; border-radius: 20px; }
  .section-head { flex-direction: column; align-items: start; }
  .service div { padding: 0 14px 14px; }
  .side-sticky { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
