:root {
  --ink: #1f2a2c;
  --muted: #5d6a6b;
  --forest: #24433b;
  --forest-dark: #1a3029;
  --gold: #b88a4a;
  --gold-soft: #e9d8bd;
  --cream: #faf7f1;
  --sand: #f2ebdf;
  --line: #e2d9ca;
  --white: #fff;
  --error: #a63d32;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --shadow: 0 12px 34px -14px rgba(31, 42, 44, .28);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1em; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.section { padding: clamp(52px, 6vw, 80px) 0; }
.section-tint { background: var(--sand); }
.section-dark { background: var(--forest); color: var(--cream); }
.section-sub { color: var(--muted); max-width: 60ch; font-size: 1.05rem; }
.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .9em;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .95em 1.6em; border-radius: 999px; border: 1.5px solid var(--forest);
  background: var(--forest); color: var(--cream); font: 600 .95rem/1 var(--sans);
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--forest-dark); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-small { padding: .7em 1.2em; font-size: .88rem; }
.btn-ghost { background: transparent; color: var(--forest); }
.btn-ghost:hover { background: var(--forest); color: var(--cream); }
.btn-light { background: var(--cream); color: var(--forest); border-color: var(--cream); }
.btn-light:hover { background: var(--gold-soft); }
.btn-ghost-light { background: transparent; color: var(--cream); border-color: rgba(250, 247, 241, .5); }
.btn-ghost-light:hover { background: rgba(250, 247, 241, .1); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 241, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--forest); }
.logo img { width: 40px; height: 40px; border-radius: 9px; }
.logo span { font: 700 1.6rem/1 var(--serif); }
.logo em, .footer-brand em { color: var(--gold); font-style: italic; }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a:not(.btn) { text-decoration: none; font-size: .93rem; font-weight: 500; color: var(--ink); }
.nav a:not(.btn):hover { color: var(--gold); }

.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--white); }
.lang button {
  border: 0; background: none; padding: .38em .72em; border-radius: 999px;
  font: 700 .74rem/1 var(--sans); letter-spacing: .05em; color: var(--muted); cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--forest); color: var(--cream); }

.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  padding: clamp(40px, 6vw, 72px) 0 clamp(36px, 4vw, 56px);
  background: radial-gradient(900px 500px at 85% 10%, rgba(184, 138, 74, .14), transparent 60%);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.hero-langs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.hero-langs li {
  font-size: .82rem; font-weight: 600; color: var(--forest);
  padding: .4em .9em; border: 1px solid var(--line); border-radius: 999px; background: var(--white);
}
.hero-photo { position: relative; }
.portrait {
  aspect-ratio: 4 / 5; border-radius: 200px 200px var(--radius) var(--radius); overflow: hidden;
  background: linear-gradient(160deg, var(--forest), #3b6357); box-shadow: var(--shadow); position: relative;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.hero-card {
  position: absolute; left: -24px; bottom: 32px; background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px 18px; display: grid; gap: 2px; font-size: .88rem; font-weight: 600;
  text-decoration: none; transition: box-shadow .2s, translate .2s;
}
.hero-card:hover { translate: 0 -2px; box-shadow: 0 16px 38px -14px rgba(31, 42, 44, .4); }
.hero-card:hover .hero-card-text { text-decoration: underline; }
.stars { color: var(--gold); letter-spacing: .1em; }

/* About */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.about p { color: var(--muted); max-width: 62ch; }
.about-side { display: grid; gap: 16px; }
.about-photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-photo figcaption { background: var(--white); padding: 10px 16px; font-size: .85rem; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; }
.stats div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 14px; display: flex; flex-direction: column; gap: 6px; }
.stats dd { order: -1; margin: 0; font: 600 2.2rem/1 var(--serif); color: var(--forest); }
.stats dt { color: var(--muted); font-size: .8rem; font-weight: 500; line-height: 1.3; }

/* Services */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.service { background: var(--cream); border-radius: var(--radius); padding: 32px 28px; border: 1px solid var(--line); }
.service svg { width: 40px; height: 40px; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.service p { color: var(--muted); margin: 0; font-size: .98rem; }

/* Notary */
.notary { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.notary-intro .hero-actions { margin: 24px 0; }
.notary-legal { font-size: .82rem; color: var(--muted); border-left: 3px solid var(--gold); padding-left: 14px; margin: 0; }
.notary-legal span { display: block; }
.notary-legal .legal-en { margin-top: 6px; font-style: italic; }
html[lang="en"] .notary-legal .legal-en { display: none; }
.notary-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.notary-list li { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; gap: 14px; }
.notary-list svg { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.notary-list h3 { font-size: 1.25rem; margin-bottom: .25em; }
.notary-list p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.55; }

/* Portfolio */
.work-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 28px; }
.chip {
  border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer;
  padding: .55em 1.1em; border-radius: 999px; font: 600 .86rem/1 var(--sans);
}
.chip.is-active { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.work-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.work-card[hidden] { display: none; }
.work-img { aspect-ratio: 1; position: relative; background: linear-gradient(135deg, #d8cbb5, #b9c7bf); }
.work-img img { width: 100%; height: 100%; object-fit: cover; }
.work-img.no-img img { display: none; }
.work-img.no-img::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; opacity: .55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2324433b' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11 12 4l9 7M5 10v10h14V10M10 20v-5h4v5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.badge {
  position: absolute; top: 14px; left: 14px; padding: .4em .85em; border-radius: 999px;
  font: 700 .72rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase;
  background: var(--forest); color: var(--cream);
}
.badge.bought { background: var(--gold); }
.badge.active { background: var(--white); color: var(--forest); }
.work-body { padding: 18px 20px 20px; }
.work-price { font: 600 1.6rem/1.1 var(--serif); color: var(--forest); }
.work-city { font-weight: 600; margin: 2px 0 6px; }
.work-city:empty { display: none; }
.work-meta { color: var(--muted); font-size: .88rem; margin: 6px 0 0; }

/* Reviews */
.section-dark .eyebrow { color: var(--gold-soft); }
.reviews-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.reviews-head h2 { margin: 0; }
.rating-summary { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rating-num { font: 600 3rem/1 var(--serif); }
.rating-summary .stars { font-size: 1.2rem; color: var(--gold-soft); }
.rating-count { font-size: .9rem; opacity: .8; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review {
  background: rgba(250, 247, 241, .06); border: 1px solid rgba(250, 247, 241, .14);
  border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 14px;
}
.review .stars { color: var(--gold-soft); font-size: 1.05rem; }
.review-text { margin: 0; font-size: .98rem; line-height: 1.7; white-space: pre-line; }
.review-text.clamped { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.review-more { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--gold-soft); font: 600 .88rem var(--sans); cursor: pointer; text-decoration: underline; }
.review-author { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 6px; }
.review-author .avatar {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none;
  background: var(--gold); color: var(--forest-dark); display: grid; place-items: center; font-weight: 700;
}
.review-author strong { font-weight: 600; }
.review-note { display: block; font-size: .78rem; opacity: .65; }
.reviews-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.reviews-source { margin: 22px 0 0; font-size: .85rem; opacity: .8; }
.reviews-source a { color: var(--gold-soft); }

/* Form */
.intake { margin-top: 36px; background: var(--white); border-radius: calc(var(--radius) + 4px); padding: clamp(22px, 4vw, 44px); box-shadow: var(--shadow); }
.intake fieldset { border: 0; padding: 0; margin: 0 0 34px; display: grid; gap: 20px; }
.intake legend {
  font: 600 1.55rem/1.2 var(--serif); color: var(--forest); padding: 0; margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px; width: 100%;
}
.intake legend::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.full { grid-column: 1 / -1; }
.field { display: grid; gap: 7px; font-size: .92rem; font-weight: 600; }
.field b, .consent b, .req-note b { color: var(--gold); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink);
  padding: .8em .95em; border: 1.5px solid var(--line); border-radius: 10px; background: var(--cream);
  transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--forest); background: var(--white); }
.field .invalid, .consent.invalid { border-color: var(--error); }
.consent.invalid span { color: var(--error); }
.checks.invalid span { border-color: var(--error); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; font-weight: 500; }
.checks label { position: relative; cursor: pointer; }
.checks input { position: absolute; opacity: 0; pointer-events: none; }
.checks span {
  display: inline-block; padding: .55em 1em; border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--cream); font-size: .9rem; transition: all .15s;
}
.checks input:checked + span { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.checks input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--forest); flex: none; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.req-note { font-size: .85rem; color: var(--muted); }
.form-error { color: var(--error); font-weight: 600; background: #f8e9e6; padding: 12px 16px; border-radius: 10px; }
.hp { position: absolute; left: -9999px; }
.form-success { margin-top: 36px; background: var(--white); border-radius: calc(var(--radius) + 4px); padding: 48px 32px; text-align: center; box-shadow: var(--shadow); }
.form-success svg { width: 56px; height: 56px; fill: none; stroke: var(--forest); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin: 0 auto 12px; }
.form-success p { color: var(--muted); margin: 0; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-list a {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, transform .2s;
}
.contact-list a:hover { border-color: var(--gold); transform: translateX(3px); }
.contact-list svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.contact-list small { display: block; color: var(--muted); font-size: .8rem; }
.contact-list strong { font-weight: 600; }

/* Footer */
.site-footer { background: var(--forest-dark); color: rgba(250, 247, 241, .75); padding: 40px 0; font-size: .86rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-inner p { margin: 0 0 .4em; }
.footer-brand { font: 700 1.5rem/1 var(--serif); color: var(--cream); margin-bottom: 10px !important; display: flex; align-items: center; gap: 10px; }
.footer-brand img { border-radius: 8px; }
.footer-right { text-align: right; }
.eho { display: inline-flex; align-items: center; gap: 8px; }
.eho svg { width: 22px; height: 22px; }

/* Mobile action bar (shown on phones only) */
.mobile-bar { display: none; }
.mobile-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 52px; border-radius: 12px; color: var(--cream); text-decoration: none; font: 600 .78rem/1.1 var(--sans);
}
.mobile-bar a.primary { background: var(--gold); color: var(--forest-dark); }
.mobile-bar svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Responsive */
@media (max-width: 980px) {
  .work-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: 1fr; }
  .about, .contact, .notary { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .header-inner { gap: 12px; }
  .lang { margin-left: auto; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain;
    background: var(--cream); padding: 8px 16px calc(96px + env(safe-area-inset-bottom));
    display: none;
  }
  html.menu-open { overflow: hidden; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { max-width: 360px; width: 100%; margin-inline: auto; }
  .hero-card { left: 50%; transform: translateX(-50%); bottom: -20px; white-space: nowrap; }
}
@media (max-width: 600px) {
  body { font-size: 16px; padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .section { padding: 56px 0; }
  .logo span { font-size: 1.35rem; }
  .grid-2, .notary-list { grid-template-columns: 1fr; }
  .footer-right { text-align: left; }
  .form-foot .btn { width: 100%; }

  /* Bigger tap targets */
  .lang button { min-height: 34px; min-width: 40px; }
  .chip { min-height: 40px; }
  .checks span { padding: .7em 1.05em; }
  .review-more { padding: 10px 0; }
  .reviews-source a { display: inline-block; padding: 8px 0; }

  /* Hero: smaller photo, full-width buttons */
  .hero-photo { max-width: 270px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  /* Services: icon beside the title */
  .cards-3 { gap: 12px; margin-top: 24px; }
  .service { padding: 20px; display: grid; grid-template-columns: 30px 1fr; column-gap: 14px; }
  .service svg { width: 30px; height: 30px; margin: 0; grid-row: 1 / span 2; }
  .service h3, .service p { grid-column: 2; }
  .service h3 { font-size: 1.35rem; margin-bottom: .2em; }

  /* Portfolio and reviews: swipe sideways instead of a long column */
  .work-grid, .reviews-grid {
    display: flex; align-items: flex-start; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: -16px; padding: 4px 16px 12px; scroll-padding-inline: 16px; scrollbar-width: none;
  }
  .work-grid::-webkit-scrollbar, .reviews-grid::-webkit-scrollbar { display: none; }
  .work-card, .review { flex: 0 0 84%; scroll-snap-align: start; }
  .work-card:hover { transform: none; box-shadow: none; }

  /* Call / Text / Questionnaire bar */
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 6px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: var(--forest-dark); box-shadow: 0 -6px 20px -10px rgba(0, 0, 0, .4);
  }
}
@media (max-width: 360px) {
  .logo span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
