/* Layout: a consultant's field file. Plain headline, a credentials block, client-voiced
   entry tiles, then services as rows of "when you need it / what you get". */
:root {
  --paper: #F8F9F7;
  --white: #FFFFFF;
  --ink: #1E2A2A;
  --ink-2: #566360;
  --rule: #E1E6E3;
  --field: #7F8D88;   /* form borders: 3.3:1 against the field background */
  --danger: #A33A2B;

  --mint: #D6EEE0;   --mint-ink: #2D6A4A;
  --sky: #D5E6F4;    --sky-ink: #2E5E85;
  --butter: #F4EBC3; --butter-ink: #76601A;
  --blush: #F3DBD6;  --blush-ink: #8C4B40;

  --font: "Geologica", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1160px;
  --r: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
a { color: inherit; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--sky-ink); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
h2 { font-size: clamp(28px, 3.6vw, 38px); }
.intro { color: var(--ink-2); max-width: 620px; margin-top: 14px; }
.label { font-size: 13px; font-weight: 500; color: var(--ink-2); letter-spacing: 0.04em; text-transform: uppercase; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 10px; border: 1px solid transparent;
  font: 500 15px/1 var(--font); text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: #33403F; }
.btn-line { border-color: #C9D1CD; color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); }

/* Header */
header { position: sticky; top: 0; z-index: 20; background: rgba(248, 249, 247, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.nav { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { text-decoration: none; display: flex; align-items: center; gap: 11px; line-height: 1.2; }
.brand-text { display: flex; flex-direction: column; }
.brand-mark { width: 30px; height: 30px; flex: none; color: var(--mint-ink); }
.brand b { white-space: nowrap; }
.brand b { font-weight: 500; font-size: 17px; }
.brand small { font-size: 12.5px; color: var(--ink-2); }
.links { display: flex; gap: 28px; }
.links a { text-decoration: none; font-size: 15px; color: var(--ink-2); }
.links a:hover { color: var(--ink); }
.nav-end { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; border: 1px solid var(--rule); border-radius: 8px; background: var(--white); }
.lang > :first-child { border-radius: 7px 0 0 7px; }
.lang > :last-child { border-radius: 0 7px 7px 0; }
.lang button { border: 0; background: none; padding: 7px 10px; font: 500 13px/1 var(--font); color: var(--ink-2); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.nav .btn { padding: 10px 16px; font-size: 14px; }

/* Hero */
.hero { padding: 72px 0 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.2vw, 58px); font-weight: 400; letter-spacing: -0.03em; }
.hero h1 b { font-weight: 500; }
.hero .lede { font-size: 19px; color: var(--ink-2); margin-top: 22px; max-width: 600px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-ctas .btn-wa { background: var(--mint); color: var(--mint-ink); }
.hero-ctas .btn-wa:hover { background: #C6E6D3; }

.facts { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r); padding: 6px 22px; }
.facts .photo { width: calc(100% + 44px); max-width: none; height: auto; margin: -6px -22px 6px; aspect-ratio: 6 / 5; object-fit: cover; object-position: 50% 15%; border-radius: var(--r) var(--r) 0 0; display: block; background: var(--rule); }
.facts div { display: grid; grid-template-columns: 104px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--rule); font-size: 15px; }
.facts div:first-of-type { border-top: 0; }
.facts dt { color: var(--ink-2); font-size: 13px; padding-top: 2px; }
.facts dd { margin: 0; font-weight: 500; line-height: 1.4; }
.facts dl { margin: 0; }

/* Entry tiles */
.help { padding-top: 0; }
.help h2 { font-size: 22px; margin-bottom: 18px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 176px;
  padding: 22px; border-radius: var(--r); text-decoration: none; border: 1px solid transparent; transition: border-color .2s;
}
.tile strong { font-weight: 500; font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }
.tile span { font-size: 14.5px; line-height: 1.45; }
.tile .arrow { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.tile svg { width: 20px; height: 20px; flex: none; transition: transform .2s; }
.tile:hover svg { transform: translateX(3px); }
.t-mint { background: var(--mint); color: var(--mint-ink); }
.t-sky { background: var(--sky); color: var(--sky-ink); }
.t-butter { background: var(--butter); color: var(--butter-ink); }
.t-blush { background: var(--blush); color: var(--blush-ink); }
.t-mint:hover { border-color: var(--mint-ink); } .t-sky:hover { border-color: var(--sky-ink); }
.t-butter:hover { border-color: var(--butter-ink); } .t-blush:hover { border-color: var(--blush-ink); }

/* Services */
#services { background: var(--white); border-block: 1px solid var(--rule); }
.svc-list { margin-top: 44px; }
.svc { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding: 36px 0; border-top: 1px solid var(--rule); scroll-margin-top: 76px; }
.svc h3 { font-size: 23px; display: flex; gap: 14px; align-items: baseline; }
.svc h3 i { width: 12px; height: 12px; border-radius: 3px; flex: none; transform: translateY(-1px); }
.svc .label { margin-bottom: 10px; }
.svc p { color: var(--ink-2); font-size: 16px; }
.svc li { font-size: 16px; padding: 6px 0 6px 18px; position: relative; }
.svc li::before { content: ""; position: absolute; left: 0; top: 15px; width: 8px; height: 1.5px; background: var(--ink-2); }

/* Permits */
.permits { margin-top: 44px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r); padding: 32px; }
.scale { height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--mint) 0%, var(--butter) 50%, var(--blush) 100%); }
.scale-ends { display: flex; justify-content: space-between; margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.permit-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 28px; }
.permit h3 { font-size: 20px; }
.permit .impact { display: inline-block; margin: 8px 0 12px; font-size: 13px; font-weight: 500; padding: 4px 10px; border-radius: 6px; }
.permit:nth-child(1) .impact { background: var(--mint); color: var(--mint-ink); }
.permit:nth-child(2) .impact { background: var(--butter); color: var(--butter-ink); }
.permit:nth-child(3) .impact { background: var(--blush); color: var(--blush-ink); }
.permit p { font-size: 15.5px; color: var(--ink-2); }
.permit-note { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.permit-note p { font-weight: 500; }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.project { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r); padding: 28px; }
.project .label { display: flex; align-items: center; gap: 10px; }
.project .label i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.project h3 { font-size: 21px; margin-top: 14px; }
.project p:last-child { color: var(--ink-2); font-size: 16px; margin-top: 10px; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; max-width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); display: block; background: var(--rule); }
.gallery figcaption { font-size: 13.5px; color: var(--ink-2); margin-top: 10px; line-height: 1.4; }

/* About */
#about { background: var(--white); border-block: 1px solid var(--rule); }
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
.about-copy p { color: var(--ink-2); margin-top: 18px; max-width: 540px; }
.about-copy p:first-of-type { margin-top: 20px; }
.cv h3 { font-size: 13px; font-weight: 500; color: var(--ink-2); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; }
.cv ul + h3 { margin-top: 32px; }
.cv li { padding: 12px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 2px; }
.cv li b { font-weight: 500; font-size: 16px; }
.cv li span { font-size: 14.5px; color: var(--ink-2); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 56px; align-items: start; }
.steps { margin-top: 28px; display: grid; gap: 14px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: baseline; color: var(--ink-2); font-size: 16px; }
.steps li::before {
  counter-increment: s; content: counter(s);
  width: 26px; height: 26px; border-radius: 50%; background: var(--sky); color: var(--sky-ink);
  display: grid; place-items: center; font-size: 13px; font-weight: 500;
}
.reach { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.icon-btn { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; border: 1px solid #C9D1CD; text-decoration: none; transition: border-color .2s; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 22px; height: 22px; }
.where { margin-top: 22px; font-size: 15px; color: var(--ink-2); }

form { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r); padding: 32px; display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 7px; font-size: 14px; font-weight: 500; }
input, select, textarea {
  width: 100%; font: 400 16px/1.4 var(--font); color: var(--ink);
  padding: 12px 14px; border-radius: 10px; border: 1px solid var(--field); background: var(--paper);
}
input[aria-invalid="true"] { border-color: var(--danger); }
.field-err { font-size: 13.5px; font-weight: 400; color: var(--danger); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sky-ink); background: var(--white); }
textarea { min-height: 120px; resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.form-note { font-size: 13px; color: var(--ink-2); }

footer { padding: 32px 0; border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-2); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile svg { transition: none; }
}
@media (max-width: 1000px) {
  .links { display: none; }
  .hero-grid, .about, .contact { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .facts { max-width: 520px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 32px; }
  .svc h3 { grid-column: 1 / -1; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }
  .hero { padding: 44px 0 48px; }
  .hero .lede { font-size: 17px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .nav .btn { display: none; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 0; gap: 18px; }
  .svc { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 28px 0; }
  .permits, form, .project { padding: 22px; }
  .projects { grid-template-columns: minmax(0, 1fr); }
  .gallery { gap: 10px; }
  .permit-cols { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .row { grid-template-columns: minmax(0, 1fr); }
  .facts div { grid-template-columns: 92px 1fr; }
}

/* Skip link (B5) */
.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px;
  font: 500 15px/1 var(--font); text-decoration: none;
}
.skip-link:focus { left: 16px; }

/* Mobile menu (B2) */
.menu-btn { display: none; width: 42px; height: 42px; border: 1px solid #C9D1CD; border-radius: 10px; background: var(--white); cursor: pointer; }
.menu-btn .bars, .menu-btn .bars::before, .menu-btn .bars::after {
  display: block; width: 18px; height: 1.8px; background: var(--ink); margin: 0 auto; position: relative; transition: transform .2s, opacity .2s;
}
.menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; }
.menu-btn .bars::before { top: -6px; }
.menu-btn .bars::after { top: 6px; }
.menu-btn[aria-expanded="true"] .bars { background: transparent; }
.menu-btn[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

.reach .btn svg { width: 18px; height: 18px; }

/* Privacy pages */
.legal { max-width: 720px; }
.legal h1 { font-size: clamp(30px, 4vw, 40px); font-weight: 400; letter-spacing: -0.02em; }
.legal h2 { font-size: 21px; margin-top: 1.8em; }

@media (max-width: 1000px) {
  .menu-btn { display: block; }
  .nav { position: relative; }
  .links {
    display: none; position: absolute; top: calc(100% + 10px); right: 0; left: 0;
    background: var(--white); border: 1px solid var(--rule); border-radius: var(--r);
    flex-direction: column; gap: 0; padding: 8px; box-shadow: 0 14px 34px rgba(30, 42, 42, .1);
  }
  body.menu-open .links { display: flex; }
  .links a { padding: 12px 14px; border-radius: 8px; font-size: 16px; color: var(--ink); }
  .links a:hover { background: var(--paper); }
}
@media (max-width: 680px) {
  .nav-cta { display: none; }
}
@media (max-width: 480px) {
  /* Keep the name on one line: the role is already in the page below. */
  .brand small { display: none; }
  .brand-mark { width: 26px; height: 26px; }
  .brand b { font-size: 16px; }
}

/* Header: keep labels on one line, and tighten the bar between the mobile menu breakpoint and wide screens (Spanish labels are longer) */
.links a, .nav .btn, .brand small { white-space: nowrap; }
@media (min-width: 1001px) and (max-width: 1180px) {
  .nav { gap: 14px; }
  .links { gap: 18px; }
  .links a { font-size: 14.5px; }
  .brand small { display: none; }
}

/* Hero card: on narrow desktop widths, trim the side padding so the registry number keeps a clear margin */
@media (min-width: 1001px) and (max-width: 1060px) {
  .facts { padding-left: 14px; padding-right: 14px; }
  .facts .photo { width: calc(100% + 28px); margin: -6px -14px 6px; }
}
