/* Manos de Oro — "Jardín minimal": white, one green, soft corners. Tokens mirror the design system's tokens.json
   (fonts kept as DM Serif Display + DM Sans). */
:root {
  --green: #1F4D3A;
  --on-green-muted: #CFDDD5;
  --ink: #151916;
  --muted: #5C625E;
  --white: #FFFFFF;
  --surface-alt: #F7F6F2;
  --panel: #F1F4F2;
  --neutral: #ECE8E1;
  --line: #E2DFD7;

  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-pill: 999px;

  --gutter: 32px;
  --section: 104px;
  --max: 1200px;
}

@media (max-width: 720px) {
  :root { --gutter: 20px; --section: 72px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p { margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--green); color: var(--white); padding: 10px 18px; border-radius: var(--radius-pill);
  text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: 12px; color: var(--white); }

.container { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: var(--section); padding-bottom: var(--section); }
.bg-alt { background: var(--surface-alt); }
.bg-panel { background: var(--panel); }
.bg-green { background: var(--green); color: var(--white); }

/* ---------- Type ---------- */
.display-xl {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(46px, 6.4vw, 88px); line-height: 1.0; letter-spacing: -0.01em;
}
.display {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 4vw, 52px); line-height: 1.08;
}
.heading { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.15; }
.heading-sm { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.2; }
.accent { font-style: italic; color: var(--green); }
.label { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--green); }
.lead { font-size: 19px; line-height: 1.7; color: var(--muted); }
.body-muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.6; color: var(--muted); }
.stack { display: flex; flex-direction: column; }
.gap-1 { gap: 8px; } .gap-2 { gap: 14px; } .gap-3 { gap: 20px; } .gap-4 { gap: 26px; } .gap-5 { gap: 40px; } .gap-6 { gap: 56px; }
.measure { max-width: 640px; }
.measure-sm { max-width: 520px; }
.center { text-align: center; align-items: center; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 28px; border-radius: var(--radius-pill);
  font: 500 16px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-primary:hover { background: #163a2b; color: var(--white); border-color: #163a2b; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-white { background: var(--white); color: var(--green); border-color: var(--white); }
.btn-white:hover { background: var(--panel); color: var(--green); }
.btn-sm { min-height: 44px; padding: 0 22px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link {
  font-size: 15px; font-weight: 500; text-decoration: none;
  border-bottom: 1px solid var(--green); padding: 4px 0; align-self: flex-start;
}

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 20; }
/* Thin green rules: one under the header, one above the footer. */
.rule { height: 1px; background: var(--green); opacity: 0.35; }
.header-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 16px 32px;
  padding-top: 22px; padding-bottom: 22px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 40px; height: 38px; color: var(--green); flex-shrink: 0; }
.brand-name { font-family: var(--serif); font-size: 25px; line-height: 1; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--ink); padding: 8px 0; border-bottom: 1.5px solid transparent; }
.nav-links a:hover { color: var(--green); }
.nav-links a[aria-current="page"] { color: var(--green); border-bottom-color: var(--green); }
.lang-switch { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 500; }
.lang-switch a, .lang-switch span {
  min-width: 36px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-pill); text-decoration: none; color: var(--muted);
}
.lang-switch span[aria-current] { background: var(--panel); color: var(--green); }
.lang-switch a:hover { color: var(--ink); }
.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 8px;
    padding: 8px var(--gutter) 28px;
  }
  .nav-open .site-nav { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { display: block; padding: 14px 0; font-size: 19px; border-bottom: 1px solid var(--line); }
  .nav-links a[aria-current="page"] { border-bottom-color: var(--line); }
  .site-nav .lang-switch { padding: 10px 0; }
  .site-nav .btn { width: 100%; }
}

/* ---------- Photo frames: soft corners, no shapes ---------- */
.photo {
  background: var(--neutral); border-radius: var(--radius-md); overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center; text-align: center;
  padding: 20px; font-size: 13px; line-height: 1.45; color: var(--muted);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.has-img { padding: 0; }
.photo.panel { background: var(--panel); }
.photo-pair { display: flex; gap: 20px; align-items: flex-end; justify-content: center; }
.photo-pair .tall { flex: 3 1 0; height: clamp(320px, 40vw, 540px); }
.photo-pair .short { flex: 2 1 0; height: clamp(210px, 26vw, 340px); }

/* ---------- Hero ---------- */
.hero { display: flex; flex-wrap: wrap; gap: 56px 72px; align-items: center; padding-top: 56px; padding-bottom: var(--section); }
.hero > * { flex: 1 1 440px; min-width: 0; }
@media (max-width: 720px) { .hero { padding-top: 24px; gap: 40px; } .hero > * { flex-basis: 100%; } }

.page-head { padding-top: 64px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: flex-end; justify-content: space-between; }
.page-head .stack { flex: 2 1 480px; min-width: 0; }
.page-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 5.4vw, 72px); line-height: 1.04; }
@media (max-width: 720px) { .page-head { padding-top: 32px; } }

/* ---------- Pillars / cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px 40px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.pillar { display: flex; flex-direction: column; gap: 16px; }
.pillar .photo { height: 300px; }
.card {
  background: var(--surface-alt); border-radius: var(--radius-md); padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.bg-alt .card { background: var(--white); }
.card-media { aspect-ratio: 16 / 9; border-radius: var(--radius-md); background: var(--neutral); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.video-card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 14px; }
.video-card:hover { color: var(--ink); }
.video-card:hover .heading-sm { color: var(--green); }
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.tag {
  display: inline-flex; align-items: center; font-size: 12px; font-weight: 500; line-height: 1.4;
  padding: 5px 12px; border-radius: var(--radius-pill); background: var(--panel); color: var(--green);
}

/* ---------- Quote band ---------- */
.quote-band { text-align: center; padding-top: 120px; padding-bottom: 120px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.quote-band .mark { width: 56px; height: 53px; color: var(--white); }
.quote-band blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(40px, 5.6vw, 76px); line-height: 1.05; color: var(--white); }
.quote-band p { font-size: 18px; color: var(--on-green-muted); max-width: 560px; }
@media (max-width: 720px) { .quote-band { padding-top: 80px; padding-bottom: 80px; } }

/* ---------- Split (about) ---------- */
.split { display: flex; flex-wrap: wrap; gap: 48px 80px; align-items: center; }
.split > .split-media { flex: 1 1 320px; max-width: 420px; }
.split > .split-media .photo { height: clamp(360px, 40vw, 460px); }
.split > .split-body { flex: 1 1 460px; min-width: 0; }
@media (max-width: 720px) { .split > .split-media { max-width: none; flex-basis: 100%; } }

.belief-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px 40px; }
.belief-list li { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.belief-list .num { font-family: var(--serif); font-size: 20px; color: var(--green); }

/* ---------- Coming soon panel ---------- */
.soon {
  border: 1px dashed #CFCBC2; border-radius: var(--radius-md); padding: 40px 32px;
  display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between;
}
.soon .stack { flex: 1 1 360px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field legend { font-size: 15px; font-weight: 500; color: var(--ink); }
.field .hint { font-size: 14px; color: var(--muted); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 0 22px; border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: var(--white); font: 16px/1.4 var(--sans); color: var(--ink);
}
.textarea { border-radius: var(--radius-md); padding: 16px 22px; min-height: 140px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23151916' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 22px center; padding-right: 48px; }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.input::placeholder, .textarea::placeholder { color: #7A807C; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--green); flex-shrink: 0; }
.check-row { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-panel { background: var(--surface-alt); border-radius: var(--radius-md); padding: clamp(24px, 4vw, 48px); }
.form-status { font-size: 15px; line-height: 1.6; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--green); font-weight: 500; }
.form-status.err { color: #9B2C1F; }
.form-success { display: none; }
.is-sent .form-fields { display: none; }
.is-sent .form-success { display: flex; }

/* Newsletter band */
.signup { text-align: center; }
.signup-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 96px; padding-bottom: 96px; }
.signup h2 { font-size: clamp(32px, 3.6vw, 46px); }
.signup-form { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
.signup-row { display: flex; flex-wrap: wrap; gap: 10px; }
.signup-row .input { flex: 1 1 200px; }
.signup-row .btn { flex: 0 0 auto; min-height: 52px; }
.signup .check-row { justify-content: center; font-size: 14px; color: var(--muted); }
.signup .check-row .lbl { width: 100%; }
@media (max-width: 520px) { .signup-row .btn { flex: 1 1 100%; } }

/* ---------- Directory ---------- */
.dir-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-bottom: 28px; }
.dir-tools .input { flex: 1 1 260px; max-width: 360px; min-height: 46px; font-size: 15px; }
.chip {
  min-height: 44px; padding: 0 18px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  font: 500 14px/1 var(--sans); cursor: pointer;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--white); }
@media (max-width: 720px) {
  .dir-tools .input { max-width: none; flex-basis: 100%; }
  .chip-scroll { display: flex; gap: 8px; overflow-x: auto; width: calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .chip-scroll::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }
}
.chip-scroll { display: contents; }
@media (max-width: 720px) { .chip-scroll { display: flex; } }
.dir-list { display: flex; flex-direction: column; gap: 14px; }
.dir-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px;
  padding: 20px 24px; background: var(--surface-alt); border-radius: var(--radius-md);
  text-decoration: none; color: var(--ink); transition: box-shadow .15s;
}
.dir-row:hover { color: var(--ink); box-shadow: 0 0 0 1.5px var(--green); }
.dir-row[hidden] { display: none; }
.initial {
  width: 68px; height: 68px; border-radius: 50%; background: var(--panel); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 28px; color: var(--green); overflow: hidden;
}
.initial img { width: 100%; height: 100%; object-fit: cover; }
.dir-main { flex: 3 1 280px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dir-name-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dir-name { font-family: var(--serif); font-size: 26px; line-height: 1.15; }
.dir-metas { flex: 2 1 420px; display: flex; flex-wrap: wrap; gap: 12px 28px; min-width: 0; }
.dir-meta { flex: 1 1 120px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.dir-meta b { color: var(--ink); font-weight: 500; display: block; }
@media (max-width: 720px) {
  .dir-row { padding: 18px; gap: 14px 18px; }
  .initial { width: 56px; height: 56px; font-size: 24px; }
  .dir-main { flex-basis: calc(100% - 80px); }
  .dir-metas { flex-basis: 100%; gap: 10px 20px; padding-top: 12px; border-top: 1px solid var(--line); }
  .dir-meta { flex: 1 1 40%; }
}
.dir-empty { padding: 32px 24px; border: 1px dashed #CFCBC2; border-radius: var(--radius-md); display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.dir-empty p { font-size: 17px; color: var(--muted); }
.no-results { padding: 28px 24px; text-align: center; color: var(--muted); }

/* Business page */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 8px; }
.crumbs a { text-decoration: none; }
.biz-hero { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: center; padding-top: 40px; padding-bottom: 88px; }
.biz-hero > * { flex: 1 1 440px; min-width: 0; }
.biz-hero .photo-pair .tall { height: clamp(320px, 34vw, 460px); }
.biz-hero .photo-pair .short { height: clamp(210px, 22vw, 300px); }
.biz-body { display: flex; flex-wrap: wrap; gap: 48px 80px; }
.biz-body > .stack { flex: 2 1 520px; min-width: 0; }
.facts { flex: 1 1 280px; align-self: flex-start; background: var(--surface-alt); border-radius: var(--radius-md); padding: 12px 24px 20px; margin: 0; }
.facts div { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.gallery .photo { height: 320px; }
.pull-quote { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3vw, 38px); line-height: 1.2; color: var(--green); max-width: 820px; }
.video-frame { aspect-ratio: 16 / 9; border-radius: var(--radius-md); overflow: hidden; background: var(--neutral); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.video-frame iframe { width: 100%; height: 100%; border: 0; }

/* Prose (legal) */
.prose { max-width: 720px; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.2; margin: 44px 0 12px; }
.prose p, .prose li { color: var(--muted); font-size: 17px; }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 22px; margin: 12px 0 0; }
.prose li + li { margin-top: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--white); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-top: 64px; padding-bottom: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 340px; }
.footer-brand .brand-mark { width: 36px; height: 34px; }
.footer-brand .brand-name { font-size: 23px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 32px 56px; font-size: 15px; }
.footer-cols h2 { font: 700 15px/1.4 var(--sans); margin-bottom: 10px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-cols a { color: var(--muted); text-decoration: none; }
.footer-cols a:hover { color: var(--green); }
.footer-base { border-top: 1px solid var(--line); padding-top: 20px; padding-bottom: 32px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.footer-base a { color: var(--muted); }

/* Share button feedback */
.share-note { font-size: 14px; color: var(--green); min-height: 1.4em; }

/* Inputs sit on the soft off-white so they read on white pages. */
.signup .input, .form-panel .input, .form-panel .select, .form-panel .textarea { background: var(--white); }
.bg-panel .input { background: var(--surface-alt); }
.bg-alt .dir-row, .bg-alt .form-panel, .bg-alt .facts { background: var(--white); }
