/* reformanueva.es — design system. Editorial, Mediterranean, no framework. */
@import url("/static/fonts/fonts.css");

:root {
  --paper: #f5f1ea;
  --paper-2: #ebe4d8;
  --paper-3: #e1d8c8;
  --white: #fffdf9;
  --ink: #171613;
  --ink-2: #4a4741;
  --ink-3: #7a756c;
  --line: #d8cfbf;
  --accent: #b7563a;
  --accent-ink: #8f3f29;
  --sea: #1f4b63;
  --sea-2: #2f6a89;
  --ok: #2e6b4f;
  --display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --body: "Manrope", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 4px;
  --shadow: 0 20px 60px rgba(23, 22, 19, .14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, picture, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-ink); }
button { font: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.7rem, 6.2vw, 5.4rem); }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); }
h3 { font-size: clamp(1.45rem, 2.2vw, 1.9rem); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--ink-2); max-width: 60ch; }
em.acc, .acc { font-style: italic; color: var(--accent); font-weight: 400; }
.dark .acc { color: #e6a084; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 9vw, 136px) 0; }
.section-tight { padding: clamp(48px, 6vw, 88px) 0; }
.dark { background: var(--ink); color: var(--paper); }
.dark .lead, .dark p { color: #cfc8bb; }
.dark .line, .dark hr { border-color: rgba(245, 241, 234, .18); }
.paper-2 { background: var(--paper-2); }
.white { background: var(--white); }

/* kicker + two-line headline */
.kicker {
  font-family: var(--body);
  font-size: .74rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 0 0 22px;
}
.kicker::before { content: ""; width: 34px; height: 1px; background: var(--accent); }
.dark .kicker { color: #b9b1a3; }
.head { display: grid; gap: 28px; margin-bottom: clamp(36px, 5vw, 64px); }
@media (min-width: 900px) { .head { grid-template-columns: 1.2fr 1fr; align-items: end; } }
.head h2 { max-width: 16ch; }
.head .lead { margin: 0; }
hr.line { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: var(--radius); border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper); font-weight: 600; font-size: .95rem;
  letter-spacing: .01em; cursor: pointer; transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-wa { background: #1f7a4d; border-color: #1f7a4d; color: #fff; }
.btn-wa:hover { background: #17633e; border-color: #17633e; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* header */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 14px 0; transition: background .25s, box-shadow .25s, padding .25s;
  color: var(--paper);
}
.header.solid { background: rgba(245, 241, 234, .96); color: var(--ink); box-shadow: 0 1px 0 var(--line); padding: 10px 0; backdrop-filter: blur(8px); }
.header .wrap { display: flex; align-items: center; gap: 28px; }
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--display); font-size: 1.55rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.brand-sub { font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; opacity: .75; margin-top: 5px; }
.nav { display: none; gap: 26px; margin-left: auto; font-size: .92rem; font-weight: 500; }
.nav a { opacity: .9; }
.nav a:hover { opacity: 1; color: inherit; text-decoration: underline; text-underline-offset: 6px; }
.header-cta { display: none; }
.lang { position: relative; margin-left: auto; }
.lang-btn { background: transparent; border: 1px solid currentColor; color: inherit; border-radius: 999px; padding: 7px 12px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; min-width: 180px; padding: 6px; display: none; box-shadow: var(--shadow); }
.lang.open .lang-menu { display: block; }
.lang-menu a { display: block; padding: 9px 12px; border-radius: 4px; font-size: .92rem; }
.lang-menu a:hover, .lang-menu a[aria-current] { background: var(--paper-2); color: var(--ink); }
.burger { background: transparent; border: 1px solid currentColor; color: inherit; border-radius: 999px; width: 44px; height: 44px; cursor: pointer; position: relative; padding: 0; flex: none; }
.burger span { position: absolute; left: 11px; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 28px; }
.burger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { display: none; }
.burger.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
body.menu-open .header { color: var(--paper); background: transparent; box-shadow: none; backdrop-filter: none; }
@media (min-width: 1024px) {
  .nav { display: flex; }
  .header-cta { display: inline-flex; margin-left: 8px; }
  .lang { margin-left: 8px; }
  .burger { display: none; }
}
.mobile-nav { position: fixed; inset: 0; z-index: 49; background: var(--ink); color: var(--paper); padding: 96px var(--gutter) 40px; display: none; flex-direction: column; gap: 6px; }
.mobile-nav.open { display: flex; }
.mobile-nav a { font-family: var(--display); font-size: 2rem; padding: 10px 0; border-bottom: 1px solid rgba(245,241,234,.15); }
.mobile-nav .btn { margin-top: 24px; justify-content: center; }

/* hero */
.hero { position: relative; min-height: min(92vh, 940px); display: flex; align-items: flex-end; color: var(--paper); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(23,22,19,.82) 0%, rgba(23,22,19,.62) 38%, rgba(23,22,19,.22) 66%, rgba(23,22,19,.06) 100%),
    linear-gradient(180deg, rgba(23,22,19,.30) 0%, rgba(23,22,19,0) 30%, rgba(23,22,19,.80) 100%); }
.hero h1, .hero .lead, .hero .kicker, .hero-note { text-shadow: 0 2px 18px rgba(0,0,0,.35); }
@media (max-width: 700px) { .hero-media::after { background: linear-gradient(180deg, rgba(23,22,19,.55) 0%, rgba(23,22,19,.35) 35%, rgba(23,22,19,.88) 100%); } }
.hero .wrap { position: relative; padding-top: 140px; padding-bottom: clamp(40px, 6vw, 80px); width: 100%; }
.hero .kicker { color: #e8e1d3; }
.hero .kicker::before { background: #e8e1d3; }
.hero h1 { max-width: 18ch; text-wrap: balance; }
.hero .lead { color: #e8e1d3; margin: 22px 0 30px; }
.hero .acc { color: #f3c4ae; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { font-size: .82rem; color: #cfc8bb; margin-top: 18px; }

/* trust strip */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; }
.trust li { padding: 20px 18px; border-right: 1px solid var(--line); font-size: .92rem; display: flex; gap: 12px; align-items: flex-start; }
.trust li:nth-child(2n) { border-right: 0; }
.trust li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.trust b { display: block; font-family: var(--display); font-size: 1.35rem; font-weight: 600; line-height: 1.1; }
.trust svg { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: 2px; }
@media (min-width: 900px) {
  .trust ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .trust li { padding: 26px 28px; }
  .trust li:nth-child(2n) { border-right: 1px solid var(--line); }
  .trust li:nth-child(4n) { border-right: 0; }
  .trust li:nth-child(-n+2) { border-bottom: 0; }
}

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.steps li { padding: 28px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; grid-template-columns: 64px 1fr; }
.steps .num { font-family: var(--display); font-size: 2.2rem; color: var(--accent); line-height: 1; font-style: italic; }
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; color: var(--ink-2); font-size: .98rem; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 0; }
  .steps li { grid-template-columns: 1fr; padding: 0 28px 0 0; border-bottom: 0; border-left: 1px solid var(--line); padding-left: 22px; }
  .steps .num { margin-bottom: 18px; }
}

/* cards */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card-body { padding: 22px 24px 26px; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { color: var(--ink-2); font-size: .96rem; margin: 0; }
.card-meta { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; display: block; }
.card-link { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; color: var(--accent-ink); }
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service-list li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; }
.service-list .num { font-family: var(--display); font-style: italic; color: var(--accent); font-size: 1.5rem; }
.service-list h3 { font-size: 1.4rem; margin-bottom: 6px; }
.service-list p { margin: 0; color: var(--ink-2); font-size: .96rem; }
.service-list .tag { font-size: .78rem; color: var(--ink-3); margin-top: 8px; display: block; }
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; } .split.rev > :first-child { order: 2; } }
.split img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.figcap { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-top: 10px; display: flex; gap: 10px; }
.figcap b { color: var(--accent); font-weight: 600; }

/* remote owners block */
.remote-list { list-style: none; margin: 28px 0; padding: 0; display: grid; gap: 16px; }
.remote-list li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; }
.remote-list svg { width: 22px; height: 22px; color: #e6a084; margin-top: 4px; }
.remote-list b { display: block; font-family: var(--display); font-size: 1.4rem; font-weight: 600; }
.remote-list span { color: #cfc8bb; font-size: .95rem; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; border-top: 1px solid rgba(245,241,234,.18); padding-top: 26px; margin-top: 30px; }
.stats b { display: block; font-family: var(--display); font-size: clamp(2rem, 3vw, 2.8rem); font-weight: 500; line-height: 1; }
.stats span { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: #b9b1a3; }

/* before / after */
.ba { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); user-select: none; background: var(--paper-3); }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .after { clip-path: inset(0 0 0 50%); }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba .handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; pointer-events: none; }
.ba .handle::after { content: "⇔"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 18px; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.ba .lbl { position: absolute; top: 14px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; background: rgba(23,22,19,.65); color: #fff; padding: 6px 10px; border-radius: 3px; pointer-events: none; }
.ba .lbl.l { left: 14px; } .ba .lbl.r { right: 14px; }

/* projects */
.projects { display: grid; gap: 22px; }
@media (min-width: 700px) { .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .projects { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.project { display: block; }
.project img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: var(--radius); }
.project h3 { font-size: 1.35rem; margin-top: 14px; }
.project .meta { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }

/* pricing */
.price-table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.price-table th, .price-table td { text-align: left; padding: 16px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table th { font-family: var(--display); font-size: 1.35rem; font-weight: 600; }
.price-table td:last-child, .price-table th:last-child { text-align: right; white-space: nowrap; font-weight: 600; }
.price-note { font-size: .86rem; color: var(--ink-3); margin-top: 14px; }
.price-cards { display: grid; gap: 18px; }
@media (min-width: 800px) { .price-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.price-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.price-card .tier { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.price-card .amount { font-family: var(--display); font-size: 2.3rem; font-weight: 600; margin: 8px 0 4px; line-height: 1; }
.price-card .unit { color: var(--ink-3); font-size: .85rem; margin-bottom: 14px; }
.price-card ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: .93rem; }
.price-card li { margin-bottom: 6px; }
.price-card.featured { border-color: var(--ink); box-shadow: var(--shadow); }

/* reviews */
.reviews { display: grid; gap: 20px; }
@media (min-width: 800px) { .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.review { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.review q { font-family: var(--display); font-size: 1.35rem; line-height: 1.35; quotes: "“" "”"; }
.review .who { font-size: .85rem; color: var(--ink-3); margin-top: auto; }
.review .who b { color: var(--ink); font-weight: 600; }
.stars { color: var(--accent); letter-spacing: 2px; font-size: .9rem; }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; font-family: var(--display); font-size: 1.45rem; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 1.8rem; color: var(--accent); font-family: var(--body); font-weight: 300; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 0 24px; color: var(--ink-2); max-width: 70ch; }

/* areas */
.areas { display: grid; gap: 18px; }
@media (min-width: 700px) { .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .areas { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.area { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; color: #fff; display: flex; align-items: flex-end; }
.area img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.area:hover img { transform: scale(1.04); }
.area::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(23,22,19,0) 35%, rgba(23,22,19,.55) 62%, rgba(23,22,19,.92) 100%); }
.area div { position: relative; z-index: 2; padding: 22px; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.area h3 { font-size: 1.6rem; }
.area p { font-size: .85rem; color: #efe9dd; margin: 6px 0 0; }
.area:hover { color: #fff; }

/* quote form */
.quote { display: grid; gap: 40px; }
@media (min-width: 1000px) { .quote { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 72px; } }
.form { display: grid; gap: 16px; }
.form .row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form .row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.form label { display: grid; gap: 6px; font-size: .86rem; font-weight: 600; }
.form input, .form select, .form textarea {
  font: inherit; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink); width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--sea-2); outline-offset: 1px; border-color: var(--sea-2); }
.form textarea { min-height: 120px; resize: vertical; }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; font-weight: 400; color: var(--ink-2); }
.form .consent input { width: auto; margin-top: 3px; }
.form .hp { position: absolute; left: -9999px; }
.form .note { font-size: .82rem; color: var(--ink-3); }
.form .err { background: #fbe9e4; border: 1px solid #e3b7a9; color: var(--accent-ink); padding: 12px 14px; border-radius: var(--radius); font-size: .9rem; display: none; }
.form .err.show { display: block; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: grid; gap: 18px; align-content: start; }
.contact-card h3 { font-size: 1.6rem; }
.contact-card dl { margin: 0; display: grid; gap: 12px; }
.contact-card dt { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.contact-card dd { margin: 2px 0 0; font-size: 1.05rem; font-weight: 500; }
.contact-card .btn { justify-content: center; }

/* footer */
.footer { background: var(--ink); color: #cfc8bb; padding: 64px 0 28px; font-size: .92rem; }
.footer .cols { display: grid; gap: 34px; }
@media (min-width: 800px) { .footer .cols { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); } }
.footer h4 { color: var(--paper); font-family: var(--body); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a:hover { color: #fff; }
.footer .brand-name { color: var(--paper); }
.footer .bottom { border-top: 1px solid rgba(245,241,234,.15); margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; font-size: .8rem; color: #9b948a; }

/* sticky mobile bar */
.mbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.mbar a { background: var(--ink); color: var(--paper); text-align: center; padding: 14px; font-weight: 600; font-size: .9rem; }
.mbar a.wa { background: #1f7a4d; color: #fff; }
@media (min-width: 1024px) { .mbar { display: none; } }
body.has-mbar { padding-bottom: 56px; }
@media (min-width: 1024px) { body.has-mbar { padding-bottom: 0; } }

/* misc */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.9rem; margin: 2em 0 .6em; }
.prose h3 { font-size: 1.4rem; margin: 1.6em 0 .5em; }
.prose ul { padding-left: 20px; }
.page-head { padding: 150px 0 40px; }
.page-head h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.center { text-align: center; }
.mt-2 { margin-top: 20px; } .mt-3 { margin-top: 32px; } .mt-4 { margin-top: 48px; }
.muted { color: var(--ink-3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card, .area img, .btn { transition: none; } }

/* seventh service card spans the row as a featured horizontal card */
@media (min-width: 1024px) {
  .grid-3 > .card:nth-child(7):last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.6fr; }
  .grid-3 > .card:nth-child(7):last-child img { height: 100%; aspect-ratio: auto; }
  .grid-3 > .card:nth-child(7):last-child .card-body { padding: 34px 40px; align-self: center; }
}
.steps h3 { min-height: 2.2em; }

/* compact header on small screens */
@media (max-width: 1023px) {
  .brand-sub { display: none; }
  .brand-name { font-size: 1.3rem; letter-spacing: .1em; }
  .header .wrap { gap: 12px; }
  .lang-btn { white-space: nowrap; padding: 6px 10px; }
  .hero .wrap { padding-top: 110px; }
  .hero h1 { font-size: clamp(2.3rem, 10vw, 3.4rem); }
}

/* hover fixes: the logo never changes colour; links on dark backgrounds stay light */
.brand:hover, .brand:hover * , .footer .brand:hover .brand-name { color: inherit; }
.mobile-nav a:hover { color: #f3c4ae; }
.mbar a:hover { color: #fff; background: var(--accent); }
.mbar a.wa:hover { background: #17633e; }
.dark a:hover { color: #f3c4ae; }
.contact-card a:hover, .review a:hover { color: var(--accent-ink); }

/* grids never overflow the viewport: long words wrap, grid items may shrink */
.trust li, .steps li, .card-body, .stats > div, .review, .price-card, .remote-list li > div, .contact-card, .footer .cols > div { min-width: 0; overflow-wrap: break-word; hyphens: auto; }
.form input, .form select, .form textarea { min-width: 0; }
h1, h2, h3 { overflow-wrap: break-word; }

/* narrow phones: one trust item per row instead of two cramped columns */
@media (max-width: 520px) {
  .trust ul { grid-template-columns: minmax(0, 1fr); }
  .trust li { border-right: 0 !important; border-bottom: 1px solid var(--line); padding: 16px 4px; }
  .trust li:last-child { border-bottom: 0; }
  .trust b { font-size: 1.25rem; }
}

/* mobile menu: moderate type, normal buttons, scrollable */
.mobile-nav { overflow-y: auto; padding: 84px var(--gutter) 40px; gap: 2px; }
.mobile-nav a { font-size: 1.45rem; padding: 12px 0; }
.mobile-nav .btn { font-family: var(--body); font-size: .95rem; padding: 14px 22px; border-bottom: 0; margin-top: 10px; }
.mobile-nav .btn + .btn { margin-top: 10px; }

/* no tap flash on touch devices; focus ring only for keyboard users */
a, button, .burger, .lang-btn, .btn, .mbar a, summary, .ba input { -webkit-tap-highlight-color: transparent; }
.burger, .lang-btn { user-select: none; -webkit-user-select: none; }
.burger:focus, .lang-btn:focus { outline: none; }
.burger:focus-visible, .lang-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
