/* =====================================================================
   REYMARK NUEVA · GHL SPECIALIST SITE
   Clean "systems" look built from the logo colors: navy + leaf green.
   ===================================================================== */
:root {
  --bg: #F4F6F9;
  --surface: #FFFFFF;
  --ink: #0F1D33;
  --navy: #1F3A5F;
  --muted: #56637A;
  --line: #E1E6EE;
  --line-2: #CFD7E3;
  --green: #2E7A62;        /* white text on this passes AA */
  --green-2: #3E9B7D;
  --green-soft: #E3F2EC;
  --amber: #E9A23B;
  --amber-soft: #FDF1DE;
  --r: 18px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --shadow: 0 1px 2px rgba(15, 29, 51, .05), 0 12px 32px -14px rgba(15, 29, 51, .18);
  --font-display: "Sora", system-ui, sans-serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--green-2); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: #fff; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .16s var(--ease-out);
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--green); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: #256752; }
  .btn-dark:hover { background: var(--navy); }
  .btn-ghost:hover { border-color: var(--ink); }
}

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; padding: 12px 0; transition: background-color .25s ease, box-shadow .25s ease; }
.hdr.scrolled { background: rgba(244, 246, 249, .95); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.brand b { display: block; font: 700 15.5px/1.15 var(--font-display); }
.brand small { display: block; font-size: 12px; color: var(--muted); }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--muted); text-decoration: none; transition: color .2s ease, background-color .2s ease; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--ink); background: rgba(15, 29, 51, .05); } }
.hdr .btn { min-height: 42px; padding: 10px 18px; font-size: 14.5px; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--navy);
}
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--green-2); box-shadow: 0 0 0 4px var(--green-soft); }
.hero h1 { margin-top: 20px; font-size: clamp(38px, 5.4vw, 64px); font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero .lead { margin-top: 18px; max-width: 540px; font-size: clamp(16px, 1.5vw, 18px); color: var(--muted); }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; padding: 0; list-style: none; }
.chips li { padding: 6px 12px; border-radius: 999px; background: rgba(31, 58, 95, .06); font-size: 13px; font-weight: 600; color: var(--navy); }

/* Workflow card */
.flow {
  position: relative; padding: 22px; border-radius: 24px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(15, 29, 51, .35);
}
.flow-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 16px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.flow-head b { font: 600 14px/1.2 var(--font-display); }
.flow-head span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--green); }
.flow-head span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green-2); }
.steps { position: relative; margin: 0; padding: 0; list-style: none; }
.steps::before { content: ""; position: absolute; left: 21px; top: 30px; bottom: 30px; width: 2px; background: repeating-linear-gradient(var(--line-2) 0 6px, transparent 6px 11px); }
.step { position: relative; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; padding: 12px 0; }
.step .ic {
  position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  background: var(--bg); border: 1px solid var(--line); color: var(--navy);
}
.step .ic svg { width: 20px; height: 20px; }
.step h4 { font: 600 15px/1.25 var(--font-display); letter-spacing: -0.01em; }
.step p { font-size: 13px; color: var(--muted); }
.step .t { font-size: 12px; font-weight: 600; color: var(--muted); }
/* Resting state (no animation / reduced motion): every step shows as completed */
.step .ic { background: var(--green-soft); border-color: transparent; color: var(--green); }
.toast {
  position: absolute; right: -18px; top: -18px; display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-radius: 14px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; box-shadow: var(--shadow);
}
.toast svg { width: 16px; height: 16px; color: var(--amber); }
.toast.b { right: auto; left: -18px; top: auto; bottom: -18px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.toast.b svg { color: var(--green); }

/* Steps light up one after another, then the cycle repeats */
@media (prefers-reduced-motion: no-preference) {
  .js .step .ic { animation: rn-lit 9s var(--ease-out) infinite; animation-delay: calc(var(--i) * 1.4s); }
  .js .toast { animation: rn-pop 9s var(--ease-out) infinite; }
  .js .toast.b { animation-delay: 4.2s; }
}
@keyframes rn-lit {
  0%, 4% { background: var(--bg); border-color: var(--line); color: var(--navy); transform: scale(1); }
  9% { transform: scale(1.08); }
  14%, 80% { background: var(--green-soft); border-color: transparent; color: var(--green); transform: scale(1); }
  92%, 100% { background: var(--bg); border-color: var(--line); color: var(--navy); }
}
@keyframes rn-pop {
  0%, 2% { opacity: 0; transform: translateY(6px) scale(.96); }
  8%, 78% { opacity: 1; transform: none; }
  88%, 100% { opacity: 0; transform: translateY(-4px); }
}

/* ---------- Sections ---------- */
section { scroll-margin-top: 72px; }
.sec { padding: 88px 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 40px; margin-bottom: 40px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.sec-head h2, .h2 { margin-top: 10px; font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; max-width: 640px; }
.sec-head p { max-width: 440px; color: var(--muted); }
.note { display: flex; gap: 10px; align-items: flex-start; max-width: 420px; padding: 12px 14px; border-radius: 14px; background: var(--amber-soft); color: #6B4A12; font-size: 14px; }
.note svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }

/* Work */
.work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; background: var(--surface);
  border: 1px solid var(--line); transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -28px rgba(15, 29, 51, .4); } }
.shot { position: relative; margin: 10px 10px 0; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 14px; background: #E9EDF3; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .card:hover .shot img { transform: scale(1.03); } }
.badge { position: absolute; left: 12px; top: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(15, 29, 51, .78); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 20px 22px 22px; }
.cat { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.card h3 { margin-top: 8px; font-size: 21px; font-weight: 600; letter-spacing: -0.015em; }
.card p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.tags li { padding: 4px 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--navy); }
.card .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 20px; }
.card .btn { min-height: 42px; padding: 10px 18px; font-size: 14px; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.svc { padding: 26px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.svc .ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--green-soft); color: var(--green); }
.svc .ic svg { width: 22px; height: 22px; }
.svc h3 { margin-top: 18px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.svc p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* Process */
.process-sec { background: var(--ink); color: #fff; border-radius: 32px; margin: 0 12px; }
.process-sec .eyebrow { color: #7FD3B4; }
.process-sec .sec-head p { color: #A9B4C6; }
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.process li { padding: 24px; border-radius: var(--r); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.process b { display: block; font: 700 14px/1 var(--font-display); color: #7FD3B4; }
.process h3 { margin-top: 18px; font-size: 19px; font-weight: 600; }
.process p { margin-top: 8px; color: #A9B4C6; font-size: 15px; }

/* About */
.about { display: grid; grid-template-columns: 360px 1fr; gap: 56px; align-items: center; }
.portrait { position: relative; }
.portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 28px; background: #fff; border: 1px solid var(--line); }
.portrait span { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .92); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.about .text p { margin-top: 14px; color: var(--muted); font-size: 17px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.facts div { padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.facts dt { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-size: 14.5px; font-weight: 600; }

/* Contact */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.contact .points { margin: 24px 0 0; padding: 0; list-style: none; }
.contact .points li { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; color: var(--muted); }
.contact .points svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--green); }
.form { padding: 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.grid2 .field { margin-top: 0; }
.grid2 + .field, .field + .grid2 { margin-top: 14px; }
label { font-size: 13.5px; font-weight: 600; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #FBFCFD;
  font: 16px/1.4 var(--font); color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green-2); box-shadow: 0 0 0 4px var(--green-soft); }
.field.err input, .field.err textarea { border-color: #C2413B; }
.field small { color: #B3352F; font-size: 12.5px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form .btn { width: 100%; margin-top: 20px; }
.form-msg { margin-top: 12px; font-size: 14px; color: var(--muted); }
.form-msg.bad { color: #B3352F; }

/* Video link + footer */
.crosslink { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 26px 30px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.crosslink b { font: 600 18px/1.3 var(--font-display); }
.crosslink p { color: var(--muted); font-size: 15px; }
footer { padding: 34px 0 44px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* ---------- Project popup ---------- */
.dlg { width: min(720px, 100% - 32px); max-height: min(88vh, 900px); padding: 0; border: 0; border-radius: 24px; background: var(--surface); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5); }
.dlg::backdrop { background: rgba(15, 29, 51, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dlg[open] { animation: rn-in .26s var(--ease-out); }
@keyframes rn-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.dlg .shot { margin: 12px 12px 0; }
.dlg .body { padding: 22px 26px 26px; }
.dlg h3 { margin-top: 8px; font-size: 24px; }
.dlg .lead2 { margin-top: 10px; color: var(--muted); }
.dlg ul.hl { margin: 18px 0 0; padding: 0; list-style: none; }
.dlg ul.hl li { display: flex; gap: 10px; margin-top: 10px; }
.dlg ul.hl svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--green); }
.dlg .disclaimer { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: var(--bg); color: var(--muted); font-size: 14px; }
.dlg .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.dlg .x { position: absolute; right: 22px; top: 22px; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: var(--shadow); cursor: pointer; }
.dlg .x svg { width: 18px; height: 18px; }

/* ---------- Scroll reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); transition-delay: var(--d, 0s); }
  .js .rv.in { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .flow { max-width: 560px; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about, .contact { grid-template-columns: 1fr; gap: 36px; }
  .portrait { max-width: 340px; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .hero { padding: 28px 0 56px; }
  .sec { padding: 64px 0; }
  .work, .services { grid-template-columns: 1fr; }
  .toast { right: 8px; top: -16px; }
  .toast.b { left: 8px; bottom: -16px; }
  .process-sec { margin: 0 8px; border-radius: 26px; }
  .form { padding: 20px; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 32px); }
  .brand small { display: none; }
  .process { grid-template-columns: 1fr; }
  .grid2, .facts { grid-template-columns: 1fr; }
  .grid2 .field + .field { margin-top: 14px; }
  .hero .cta .btn { flex: 1 1 auto; }
  .step { grid-template-columns: 40px 1fr; }
  .step .t { display: none; }
  .steps::before { left: 19px; }
  .step .ic { width: 40px; height: 40px; }
  .crosslink { padding: 22px; }
}
