/* =========================================================
   Reinier Cancio — Mortgage Lender
   Modern minimal, mobile-first, performance-tuned.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --navy-900: #0b1f3a;
  --navy-800: #122a4a;
  --navy-700: #1c3a63;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-alt: #f7f8fb;
  --bg-soft: #eef2f7;
  --accent: #c79a3a;        /* warm gold — premium, trustworthy */
  --accent-2: #e0b85a;
  --success: #15803d;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow: 0 8px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 30px 60px -20px rgba(11, 31, 58, .35);

  --container: 1180px;
  --gutter: clamp(1rem, 3vw, 2rem);

  --f-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-display: "Playfair Display", Georgia, "Times New Roman", serif;

  --step--1: clamp(.85rem, .8rem + .2vw, .95rem);
  --step-0:  clamp(1rem, .95rem + .25vw, 1.1rem);
  --step-1:  clamp(1.1rem, 1rem + .5vw, 1.25rem);
  --step-2:  clamp(1.3rem, 1.1rem + 1vw, 1.65rem);
  --step-3:  clamp(1.7rem, 1.35rem + 1.8vw, 2.4rem);
  --step-4:  clamp(2.2rem, 1.7rem + 2.8vw, 3.4rem);
  --step-5:  clamp(2.6rem, 1.9rem + 4vw, 4.2rem);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 .6em;
  color: var(--navy-900);
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); font-family: var(--f-sans); letter-spacing: 0; }
p { margin: 0 0 1em; color: var(--ink-2); }
em { font-style: italic; color: var(--accent); }

.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }

.visually-hidden {
  position: absolute !important; 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; top: -40px; left: 8px;
  background: var(--navy-900); color: #fff; padding: .6rem .9rem;
  border-radius: var(--radius-sm); z-index: 100;
}
.skip-link:focus { top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .7rem 1.15rem;
  font-weight: 600; font-size: .95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-lg { padding: .95rem 1.5rem; font-size: 1rem; }
.btn-primary {
  background: var(--navy-900); color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--navy-700); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-ghost {
  background: transparent; color: var(--navy-900);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--bg-alt); border-color: var(--navy-900); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 0;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 700; color: var(--navy-900);
}
.brand-mark {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #fff; font-family: var(--f-display); font-weight: 700;
  border-radius: 10px;
  letter-spacing: .5px;
}
.brand-logo {
  height: 42px;
  width: auto;
  max-width: 165px;
  object-fit: contain;
  display: block;
}
@media (max-width: 640px) {
  .brand-logo { height: 33px; max-width: 128px; }
}
.brand-name { font-size: 1.02rem; letter-spacing: -.01em; }

.primary-nav { display: flex; align-items: center; }
.nav-menu {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 1.25rem;
}
.nav-menu a { font-weight: 500; color: var(--ink-2); font-size: .95rem; }
.nav-menu a:hover { color: var(--navy-900); }
.nav-menu a.btn-primary { color: #fff; }
.nav-menu a.btn-primary:hover { color: #fff; }
.nav-menu a.btn-ghost:hover { color: var(--navy-900); }
.nav-menu .btn { padding: .55rem 1rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: var(--navy-900);
  transition: transform .2s ease, opacity .2s ease;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute; top: 100%; right: 0; left: 0;
    background: #fff;
    flex-direction: column; align-items: stretch;
    gap: 0;
    padding: .5rem var(--gutter) 1rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav-menu li { border-top: 1px solid var(--line); }
  .nav-menu li:first-child { border-top: 0; }
  .nav-menu a { display: block; padding: .95rem .25rem; font-size: 1rem; }
  .nav-menu .btn { margin-top: .5rem; width: 100%; }
  .primary-nav.open .nav-menu { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .primary-nav.open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .primary-nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .primary-nav.open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}
.section-alt { background: var(--bg-alt); }
.section-head {
  max-width: 760px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center;
}
.section-head .eyebrow { justify-content: center; }
.section-sub { color: var(--muted); font-size: var(--step-1); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  text-transform: uppercase;
  font-size: .78rem; letter-spacing: .14em;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 5rem);
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(199, 154, 58, .12), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(18, 42, 74, .10), transparent 60%),
    linear-gradient(180deg, #fff, #fbfbfd 80%);
  overflow: hidden;
}
.hero-grid {
  display: grid; gap: clamp(2rem, 4vw, 4rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
}
.hero h1 { margin-bottom: .4em; }
.hero .accent { color: var(--accent); }
.hero .lede { font-size: var(--step-1); color: var(--ink-2); max-width: 58ch; }
.hero-cta {
  display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.4rem 0 1.25rem;
}
.trust-row {
  list-style: none; padding: 0; margin: 1rem 0 0;
  display: flex; flex-wrap: wrap; gap: .5rem 1.25rem;
  font-size: .9rem; color: var(--muted);
}
.trust-row li { display: inline-flex; align-items: center; gap: .5rem; }
.trust-row li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

.hero-visual { position: relative; }
.hero-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-lg);
  max-width: 420px; margin-inline: auto;
  position: relative;
}
.hero-card::before {
  content: ""; position: absolute; inset: auto -20px -20px auto;
  width: 140px; height: 140px;
  background: radial-gradient(closest-side, rgba(199,154,58,.35), transparent 70%);
  z-index: -1; filter: blur(6px);
}
.hero-card-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: .7rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: .98rem;
}
.hero-card-row:last-of-type { border-bottom: 0; }
.hero-card-row span { color: var(--muted); }
.hero-card-row b { color: var(--navy-900); font-weight: 600; }
.hero-card-row .rate { color: var(--success); }
.hero-card .fine { font-size: .78rem; color: var(--muted); margin: .75rem 0 0; }

/* ---------- Grids / Cards ---------- */
.grid { display: grid; gap: clamp(1rem, 2vw, 1.4rem); }
.services-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(199, 154, 58, .45);
}
.card h3 {
  font-size: var(--step-1); font-family: var(--f-sans);
  letter-spacing: -.01em; margin-bottom: .35em;
}
.card p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.card-icon {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: linear-gradient(135deg, #fff8ea, #fff);
  color: var(--accent);
  border: 1px solid #f3e4be;
  border-radius: 12px;
  margin-bottom: 1rem;
}
.card-icon svg { width: 22px; height: 22px; }

/* ---------- About ---------- */
.about-grid {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: .85fr 1.15fr; }
}
.about-photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  box-shadow: var(--shadow-lg);
}
.about-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.about-photo-fallback {
  display: none; place-items: center;
  width: 100%; height: 100%;
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(4rem, 10vw, 7rem);
  color: rgba(255,255,255,.18);
  letter-spacing: .08em;
}
.bullets { list-style: none; padding: 0; margin: 1.25rem 0 1.6rem; }
.bullets li {
  padding-left: 1.75rem;
  position: relative;
  margin-bottom: .6rem;
  color: var(--ink-2);
}
.bullets li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 14px; height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.bullets strong { color: var(--navy-900); }

/* ---------- Testimonials ---------- */
.testimonial-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
/* Center an orphan 4th card when desktop grid is 3-col wide */
@media (min-width: 1024px) {
  .testimonial-grid .quote:last-child:nth-child(3n+1) { grid-column: 2; }
}
.quote {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem 1.4rem;
  position: relative;
}
.quote::before {
  content: "“";
  position: absolute;
  top: -.1em; left: .5rem;
  font-family: var(--f-display);
  font-size: 4.5rem; line-height: 1;
  color: var(--accent); opacity: .4;
}
.quote blockquote {
  margin: 0 0 1rem;
  font-family: var(--f-display); font-size: var(--step-1);
  color: var(--navy-900); line-height: 1.4;
}
.quote figcaption { display: flex; flex-direction: column; gap: .15rem; font-size: .9rem; }
.quote figcaption strong { color: var(--navy-900); }
.quote figcaption span { color: var(--muted); font-size: .85rem; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 860px; margin-inline: auto; }
.faq-list {
  display: flex; flex-direction: column;
  gap: .6rem;
}
.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-list details[open] { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600; color: var(--navy-900);
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
  padding: .25rem 0;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-size: 1.4rem; font-weight: 400; color: var(--accent);
  transition: transform .2s ease;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list p { margin: .6rem 0 .25rem; color: var(--ink-2); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: .9fr 1.1fr; } }

.contact-list { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.contact-list li {
  display: grid; grid-template-columns: 80px 1fr;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .98rem;
}
.contact-list li span {
  text-transform: uppercase; font-size: .75rem; letter-spacing: .12em;
  color: var(--muted); align-self: center;
}
.contact-list a { color: var(--navy-900); font-weight: 600; }
.contact-list a:hover { color: var(--accent); }

.apply-card {
  background: linear-gradient(160deg, var(--navy-900) 0%, #132a4d 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-lg, 0 12px 40px rgba(11,31,58,0.18));
  position: relative;
  overflow: hidden;
}
.apply-card::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(199,154,58,0.22) 0%, rgba(199,154,58,0) 70%);
  pointer-events: none;
}
.apply-card .eyebrow { color: var(--accent); }
.apply-card h3 {
  color: #fff;
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  margin: .35rem 0 .75rem;
  line-height: 1.2;
}
.apply-card p { color: rgba(255,255,255,0.85); }
.apply-bullets {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.75rem;
  display: grid;
  gap: .55rem;
}
.apply-bullets li {
  position: relative;
  padding-left: 1.6rem;
  color: rgba(255,255,255,0.9);
  font-size: .96rem;
}
.apply-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}
.apply-card .apply-cta {
  width: 100%;
  justify-content: center;
  text-align: center;
}
.apply-card .fine {
  margin-top: 1rem;
  color: rgba(255,255,255,0.65);
  font-size: .8rem;
}
.apply-card .fine a { color: rgba(255,255,255,0.85); text-decoration: underline; }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 1rem;
}
.field label {
  display: block; font-size: .85rem; font-weight: 600;
  color: var(--navy-900); margin-bottom: .35rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: .8rem .95rem;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  font-family: inherit; font-size: 1rem;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(199, 154, 58, .15);
  outline: none;
}
.field-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.contact-form .fine {
  font-size: .78rem; color: var(--muted); margin: -.25rem 0 0;
}
.contact-form .fine a { color: var(--navy-900); text-decoration: underline; }

/* TCPA consent */
.field-consent {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .9rem 1rem;
}
.consent-label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .75rem;
  align-items: flex-start;
  cursor: pointer;
  font-weight: 400 !important;
  margin-bottom: 0 !important;
}
.consent-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px; height: 20px;
  margin: 2px 0 0;
  border: 2px solid var(--line);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  flex: none;
  position: relative;
  transition: border-color .15s ease, background .15s ease;
}
.consent-label input[type="checkbox"]:hover { border-color: var(--accent); }
.consent-label input[type="checkbox"]:checked {
  background: var(--navy-900);
  border-color: var(--navy-900);
}
.consent-label input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.consent-label input[type="checkbox"]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.consent-text {
  font-size: .78rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.consent-text a { color: var(--navy-900); text-decoration: underline; }
.consent-text strong { color: var(--navy-900); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: #cbd5e1;
  padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem;
  margin-top: 2rem;
}
.site-footer .brand-name { color: #fff; }
.site-footer h4 {
  color: #fff;
  font-size: .9rem; text-transform: uppercase; letter-spacing: .12em;
  font-family: var(--f-sans); font-weight: 600;
  margin-bottom: 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-tag { color: #94a3b8; font-size: .92rem; margin-top: .75rem; max-width: 32ch; }
.social-row {
  display: flex; flex-wrap: wrap; gap: .75rem;
  margin-top: 1rem;
}
.social-row a {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .85rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  color: #cbd5e1 !important;
  font-size: .85rem;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.social-row a:hover {
  background: rgba(255,255,255,.06);
  border-color: var(--accent);
  color: #fff !important;
}
.social-row svg { flex: none; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .45rem; }
.site-footer ul a { color: #cbd5e1; font-size: .95rem; }
.site-footer ul a:hover { color: var(--accent-2); }
.site-footer .fine { color: #94a3b8; font-size: .82rem; line-height: 1.6; }

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: .85rem; color: #94a3b8;
}
.footer-bottom p { margin: 0; color: #94a3b8; }
.legal { display: flex; gap: 1.25rem; flex-wrap: wrap; flex-direction: row !important; }

/* ---------- Co-branding badge (Bold Mortgage) ---------- */
.powered-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .4rem .85rem .4rem .7rem;
  margin-bottom: 1.25rem;
  background: rgba(2, 114, 254, .07);
  border: 1px solid rgba(2, 114, 254, .22);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 500;
  color: #0b1f3a;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.powered-badge:hover {
  background: rgba(2, 114, 254, .12);
  border-color: rgba(2, 114, 254, .4);
  transform: translateY(-1px);
}
.powered-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #0272fe;
  box-shadow: 0 0 0 3px rgba(2, 114, 254, .18);
}
.powered-badge-label { color: var(--muted); }
.powered-badge-brand {
  color: #0272fe;
  font-weight: 700;
  letter-spacing: -.005em;
}

/* ---------- Language toggle ---------- */
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: #fff;
  margin-left: .5rem;
}
.lang-btn {
  appearance: none; border: 0; background: transparent;
  font: 600 .78rem/1 var(--f-sans);
  letter-spacing: .05em;
  color: var(--muted);
  padding: .45rem .7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.lang-btn:hover { color: var(--navy-900); }
.lang-btn.is-active {
  background: var(--navy-900);
  color: #fff;
}
@media (max-width: 860px) {
  .lang-toggle { margin: .5rem 0 0; justify-self: start; }
}

/* ---------- Google Reviews ---------- */
.google-reviews {
  margin-top: clamp(2rem, 4vw, 3rem);
}
.google-reviews-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
}
.google-reviews-logo {
  display: grid; place-items: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
}
.google-reviews-copy h3 {
  font-size: var(--step-1); font-family: var(--f-sans);
  letter-spacing: -.01em; margin: 0 0 .2em;
}
.google-reviews-copy p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.google-reviews-stars {
  display: inline-flex; align-items: center; gap: .5rem;
  margin: 0 0 .25rem !important;
  color: #fbbc04; font-size: 1rem; letter-spacing: 1px;
  font-weight: 600;
}
.google-reviews-count {
  color: var(--muted); font-size: .8rem; letter-spacing: normal;
  text-transform: uppercase;
}
.google-reviews-actions {
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end;
}
@media (max-width: 780px) {
  .google-reviews-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .google-reviews-logo { justify-self: center; }
  .google-reviews-stars { justify-content: center; }
  .google-reviews-actions { justify-content: center; }
}

/* ---------- Motion / Reveal ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .nav-toggle, .btn { display: none !important; }
  body { color: #000; }
}
