/* =========================================================
   Suro | Rodriguez, PLLC
   Bold-sans redesign (Jurida-inspired) — vanilla CSS, mobile-first
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Palette */
  --ink:        #0c0e14;   /* primary near-black */
  --ink-2:      #1e222d;   /* dark slate */
  --accent:     #00a3e0;   /* brand blue */
  --accent-dk:  #006c9c;   /* darker blue: text/links/hover (AA on white) */
  --white:      #ffffff;
  --paper:      #ffffff;   /* page background */
  --tint:       #eef3fb;   /* light blue surface / section tint (Jurida-style) */
  --line:       #e3e5ea;   /* hairline border */
  --text:       #1e222d;   /* body text */
  --text-soft:  #565d6b;   /* muted text */

  --sans: "Plus Jakarta Sans", "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Spacing */
  --s-1: 0.5rem;  --s-2: 1rem;   --s-3: 1.5rem;  --s-4: 2rem;
  --s-5: 3rem;    --s-6: 4.5rem; --s-7: 7rem;

  --maxw: 1240px;
  --radius: 0;  /* sharp corners to match the reference */
  --shadow: 0 10px 30px rgba(12, 14, 20, 0.08);
  --shadow-lg: 0 30px 70px rgba(12, 14, 20, 0.18);
  --header-h: 84px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 var(--s-3);
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: 1.4rem; }
p  { margin: 0 0 var(--s-2); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s-4); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Rule eyebrow ---------- */
.rule-eyebrow {
  display: flex; align-items: center; gap: var(--s-2);
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.78rem; font-weight: 700; color: var(--ink);
  margin: 0 0 var(--s-3);
}
.rule-eyebrow .rule { width: 44px; height: 2px; background: var(--accent); display: inline-block; }
.rule-eyebrow--light { color: var(--white); }
.rule-eyebrow--center { justify-content: center; }
.accent-text { color: var(--accent); }

/* ---------- Accessibility ---------- */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white); padding: var(--s-1) var(--s-2); z-index: 200; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

/* ---------- Image slot (placeholder) ---------- */
.img-slot {
  position: relative;
  background:
    repeating-linear-gradient(45deg, rgba(0,163,224,0.06) 0 12px, rgba(0,163,224,0.02) 12px 24px),
    linear-gradient(135deg, #dfe4ea, #eef1f5);
  border: 1px dashed #b9c2cf;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 120px;
}
.img-slot::after {
  content: attr(data-label);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 1rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: #75808f;
}
/* dark image slots (over dark sections / overlays) */
.hero-bg, .cta-bg, .process-img {
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 14px, rgba(255,255,255,0.01) 14px 28px),
    linear-gradient(135deg, #11151c, #20242f);
  border-color: rgba(255,255,255,0.14);
}
.hero-bg::after, .cta-bg::after { color: rgba(255,255,255,0.55); }

/* real image wired into a slot */
.img-real { border: none !important; background-size: cover; background-position: center; background-repeat: no-repeat; }
.img-real::after { content: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 700; font-size: 0.95rem;
  padding: 0.95rem 1.7rem; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-dk); color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--accent); color: var(--ink); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--accent); color: var(--ink); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-ghost-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-sm { padding: 0.6rem 1.15rem; font-size: 0.88rem; }
.btn-full { width: 100%; justify-content: center; }

.text-link { color: var(--accent-dk); font-weight: 700; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s ease; }
.text-link:hover { border-bottom-color: var(--accent-dk); }
.card-link { color: var(--accent-dk); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem; }
.card-link:hover { gap: 0.6rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled { background: rgba(255,255,255,0.97); border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(12,14,20,0.05); }
.nav-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s-3); height: var(--header-h); transition: height 0.25s ease; }
.site-header.scrolled .nav-inner { height: 70px; }

.brand { text-decoration: none; display: flex; align-items: center; }
.brand-logo { height: 45px; width: auto; display: block; transition: height 0.25s ease; }
.site-header.scrolled .brand-logo { height: 39px; }

/* Transparent header overlaying the hero (homepage) */
.site-header.transparent { position: fixed; left: 0; right: 0; top: 0; background: transparent; backdrop-filter: none; }
.site-header.transparent.scrolled { background: rgba(255,255,255,0.97); backdrop-filter: saturate(160%) blur(10px); }
.brand-logo--white { display: none; }
.site-header.transparent:not(.scrolled) .brand-logo--black { display: none; }
.site-header.transparent:not(.scrolled) .brand-logo--white { display: block; }
.site-header.transparent:not(.scrolled) .nav-menu a { color: #fff; }
.site-header.transparent:not(.scrolled) .nav-menu a::after { background: #fff; }
.site-header.transparent:not(.scrolled) .lang-toggle { color: #fff; border-color: rgba(255,255,255,0.65); }
.site-header.transparent:not(.scrolled) .lang-toggle:hover { background: #fff; color: var(--ink); }
.site-header.transparent:not(.scrolled) .nav-toggle span { background: #fff; }

.nav { display: flex; justify-content: center; }
.nav-menu { list-style: none; display: flex; align-items: center; gap: var(--s-4); margin: 0; padding: 0; }
.nav-menu a { text-decoration: none; color: var(--text); font-weight: 500; font-size: 0.97rem; position: relative; padding: 0.3rem 0; }
.nav-menu a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--accent); transition: width 0.22s ease; }
.nav-menu a:hover::after, .nav-menu a:focus-visible::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: var(--s-2); justify-self: end; }

.lang-toggle {
  font-weight: 700; font-size: 0.78rem; letter-spacing: 0.06em;
  width: 42px; height: 34px; border: 1.5px solid var(--ink);
  background: transparent; color: var(--ink); border-radius: 100px; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-toggle:hover { background: var(--ink); color: var(--white); }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: none; border: none; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; height: 2px; width: 26px; background: var(--ink); transition: transform 0.25s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding: var(--s-7) 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--ink); color: #d4dae3; }
.section-dark h2, .section-dark h3 { color: var(--white); }

/* split header: headline left, aside right */
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-5); align-items: end; margin-bottom: var(--s-6); }
.split-aside p { color: var(--text-soft); font-size: 1.05rem; margin-bottom: var(--s-3); }
.section-dark .split-aside p { color: #aeb6c2; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 94vh; display: flex; align-items: flex-end; overflow: hidden; color: var(--white); }
.hero-bg { position: absolute; inset: 0; border: none; border-radius: 0; min-height: 100%; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,14,20,0.30) 0%, rgba(12,14,20,0.45) 50%, rgba(12,14,20,0.80) 100%); }
.hero-inner { position: relative; z-index: 2; padding-bottom: var(--s-5); }
.hero h1 { color: var(--white); margin-bottom: var(--s-3); font-size: clamp(2.1rem, 4.8vw, 3.7rem); max-width: 14ch; }
.hero-lead { font-size: clamp(1rem, 1.8vw, 1.2rem); color: #e7ebf1; max-width: 560px; margin-bottom: var(--s-4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.hero-badge {
  position: absolute; right: calc(max(0px, (100% - var(--maxw)) / 2) + var(--s-4)); bottom: var(--s-5); z-index: 2;
  background: rgba(255,255,255,0.95); color: var(--ink); border-radius: var(--radius);
  padding: var(--s-2) var(--s-3); display: flex; align-items: center; gap: var(--s-2); box-shadow: var(--shadow-lg);
}
.hero-badge-dots { display: flex; }
.hero-badge-dots span { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--ink)); border: 2px solid var(--white); margin-left: -8px; }
.hero-badge-dots span:first-child { margin-left: 0; }
.hero-badge p { margin: 0; display: flex; flex-direction: column; line-height: 1.3; }
.hero-badge strong { font-size: 0.92rem; }
.hero-badge span { font-size: 0.78rem; color: var(--text-soft); }

/* ---------- About + stats ---------- */
.about-body { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--s-5); align-items: center; margin-bottom: var(--s-6); }
.about-img { aspect-ratio: 4 / 3; }
.about-text p { font-size: 1.15rem; color: var(--text); }

/* About — 2-column with metrics under the text */
.about2 { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: var(--s-6); align-items: stretch; }
.about2-media { display: flex; flex-direction: column; }
.about2-img { margin-top: auto; aspect-ratio: 3 / 4; width: 100%; }
.about2-content h2 { margin-bottom: var(--s-3); }
.about2-content > p { color: var(--text-soft); font-size: 1.08rem; max-width: 620px; }
.about2-stats { margin-top: var(--s-5); }

/* About — Our Story */
.story-top { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); align-items: center; margin-bottom: var(--s-6); }
.story-intro h2 { margin-bottom: var(--s-3); }
.story-intro p { color: var(--text-soft); font-size: 1.1rem; }
.story-img { aspect-ratio: 1 / 1; width: 100%; }
.story-bios { max-width: 860px; margin: 0 auto; }
.story-bios h3 { margin: var(--s-5) 0 var(--s-1); font-size: 1.45rem; }
.story-bios p { color: var(--text-soft); }
.story-close { font-size: 1.35rem; font-weight: 700; color: var(--ink); margin-top: var(--s-4); letter-spacing: -0.01em; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.stat { position: relative; padding-left: var(--s-3); }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-num { display: block; font-size: clamp(2.6rem, 4vw, 3.6rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--ink); }
.stat-num--text { color: var(--accent); }
.stat-label { display: block; font-size: 0.9rem; color: var(--text-soft); margin-top: 0.4rem; }
.stat-disclaimer { font-size: 0.8rem; color: var(--text-soft); margin-top: var(--s-3); }

/* ---------- Practice cards (image overlay, horizontal carousel) ---------- */
.pc-controls { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.pc-arrows { display: flex; gap: var(--s-1); }
.pc-arrow { width: 50px; height: 50px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; font-size: 1.25rem; line-height: 1; display: flex; align-items: center; justify-content: center; transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease; }
.pc-arrow:hover { background: var(--ink); color: #fff; }
.pc-arrow:disabled { opacity: 0.3; cursor: default; }
.pc-arrow:disabled:hover { background: transparent; color: var(--ink); }

.pcards { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--s-3)) / 3); gap: var(--s-3); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 2px; }
.pcards::-webkit-scrollbar { display: none; }
.pcard { position: relative; overflow: hidden; min-height: 480px; display: flex; isolation: isolate; box-shadow: var(--shadow); scroll-snap-align: start; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.pcard-img { position: absolute; inset: 0; border: none; border-radius: 0; }
.pcard::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(12,14,20,0.05) 30%, rgba(12,14,20,0.88) 100%); }
.pcard-body { position: relative; z-index: 2; margin-top: auto; padding: var(--s-4); color: var(--white); }
.pcard-body h3 { color: var(--white); margin-bottom: var(--s-1); }
.pcard-body p { color: #dfe4ec; font-size: 0.95rem; margin-bottom: var(--s-2); }
.pcard .card-link { color: var(--white); }
.pcard .card-link:hover { color: var(--accent); }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); }
.process-intro h2 { margin-bottom: var(--s-3); }
.process-intro > p { color: #aeb6c2; max-width: 460px; }
.process-img { aspect-ratio: 4 / 3; margin-top: var(--s-4); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.step { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: var(--s-4); }
.step-num { font-size: 2rem; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; display: block; margin-bottom: var(--s-2); }
.step h3 { margin-bottom: var(--s-1); color: var(--ink); }
.step p { color: var(--text-soft); margin: 0; }

/* Process — full-bleed background photo behind text + steps */
.process2 { position: relative; overflow: hidden; color: #fff; padding: var(--s-7) 0; }
.process2-bg { position: absolute; inset: 0; border: none; }
.process2-overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(12,14,20,0.92) 0%, rgba(12,14,20,0.62) 60%, rgba(12,14,20,0.5) 100%); }
.process2 .process-grid { position: relative; z-index: 2; align-items: center; }
.process2 .process-intro h2 { color: #fff; }
.process2 .process-intro > p { color: #cdd4de; max-width: 460px; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.member-card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 420px; display: flex; box-shadow: var(--shadow); }
.member-img { position: absolute; inset: 0; border: none; border-radius: 0; }
.member-card::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(12,14,20,0) 45%, rgba(12,14,20,0.9) 100%); }
.member-name { position: relative; z-index: 2; margin-top: auto; padding: var(--s-3); color: var(--white); }
.member-name h3 { color: var(--white); margin: 0 0 2px; font-size: 1.3rem; }
.member-name p { margin: 0; color: #cdd4de; font-size: 0.9rem; }
.member-toggle {
  position: absolute; top: var(--s-2); right: var(--s-2); z-index: 3;
  width: 40px; height: 40px; border-radius: 8px; border: none; cursor: pointer;
  background: rgba(255,255,255,0.92); color: var(--ink); font-size: 1.4rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background 0.2s ease, transform 0.2s ease;
}
.member-toggle:hover { background: var(--accent); transform: rotate(90deg); }
.member-toggle[aria-expanded="true"] { background: var(--accent); }
.member-bio { background: var(--tint); border-radius: var(--radius); padding: var(--s-3); margin-top: var(--s-2); }
.member-bio p { color: var(--text-soft); font-size: 0.92rem; }
.cred { margin: var(--s-2) 0; }
.cred dt { font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); margin-top: var(--s-2); }
.cred dd { margin: 2px 0 0; font-size: 0.86rem; color: var(--text-soft); }
.disclaimer-inline { font-size: 0.78rem !important; font-style: italic; color: var(--text-soft); border-left: 2px solid var(--accent); padding-left: var(--s-2); }

/* ---------- Testimonials ---------- */
.test-note { background: #fff7e6; border: 1px solid #f0d089; color: #6b5418; border-radius: var(--radius); padding: var(--s-2) var(--s-3); font-size: 0.85rem; max-width: 760px; margin: 0 auto var(--s-5); text-align: center; }
.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.test-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-4); }
.quote-mark { font-size: 2.6rem; line-height: 0.6; color: var(--accent); display: block; }
.test-text { color: var(--text-soft); margin: var(--s-2) 0 var(--s-3); }
.test-author { display: flex; align-items: center; gap: var(--s-2); }
.test-avatar { width: 42px; height: 42px; border-radius: 50%; min-height: 42px; flex: 0 0 auto; }
.test-author strong { display: block; font-size: 0.95rem; color: var(--ink); }
.test-author span span, .test-author > span > span { font-size: 0.82rem; color: var(--text-soft); }
.test-rating { background: var(--ink); color: var(--white); display: flex; flex-direction: column; justify-content: center; }
.rating-top { display: flex; align-items: center; justify-content: space-between; }
.rating-num { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; }
.rating-stars { color: var(--accent); letter-spacing: 2px; }
.test-rating p { color: #aeb6c2; margin: var(--s-1) 0 0; }

/* ---------- Insights ---------- */
.insights-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-4); }
.insight { text-decoration: none; color: inherit; }
.insight-feature { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--white); }
.insight-img { aspect-ratio: 16 / 10; border: none; border-radius: 0; }
.insight-body { padding: var(--s-3) var(--s-4) var(--s-4); }
.insight-meta { font-size: 0.8rem; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--s-1); }
.insight-meta .dot { color: var(--accent); }
.insight-feature h3 { margin-bottom: var(--s-2); }
.insight-list { display: flex; flex-direction: column; gap: var(--s-3); }
.insight-row { display: grid; grid-template-columns: 130px 1fr; gap: var(--s-3); align-items: center; }
.insight-thumb { aspect-ratio: 4 / 3; border: none; border-radius: var(--radius); min-height: 90px; }
.insight-row h4 { font-size: 1.1rem; margin: 0 0 var(--s-1); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; color: var(--white); padding: var(--s-7) 0; }
.cta-bg { position: absolute; inset: 0; border: none; border-radius: 0; }
.cta-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,14,20,0.7), rgba(12,14,20,0.82)); }
.cta-inner { position: relative; z-index: 2; max-width: 820px; }
.cta-inner h2 { color: var(--white); }
.cta-lead { color: #e7ebf1; max-width: 620px; margin-bottom: var(--s-4); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--s-6); align-items: start; }
.contact-info > p { color: var(--text-soft); font-size: 1.05rem; }
.contact-details { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); margin-top: var(--s-5); }
.contact-details > div { display: flex; flex-direction: column; gap: 4px; }
.contact-k { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-dk); font-weight: 700; }
.contact-v { color: var(--text); }
.contact-v a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-v a:hover { border-bottom-color: var(--accent); }

.contact-form-wrap { background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-4); }
.field { margin-bottom: var(--s-3); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.field label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.field .req { color: var(--accent-dk); margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 0.97rem;
  padding: 0.8rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,163,224,0.18); }
.field textarea { resize: vertical; }
.form-status { font-size: 0.9rem; margin: var(--s-2) 0 0; min-height: 1.2em; }
.form-status.ok { color: #1f7a35; }
.form-status.err { color: #c0392b; }
.form-fineprint { font-size: 0.78rem; color: var(--text-soft); margin-top: var(--s-2); }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--ink); color: #aeb6c2; padding-top: var(--s-7); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--s-5); padding-bottom: var(--s-5); position: relative; z-index: 2; }
.footer-logo { height: 30px; width: auto; margin-bottom: var(--s-3); }
.footer-lead h2 { color: var(--white); font-size: clamp(1.6rem, 2.6vw, 2.3rem); max-width: 380px; margin-bottom: var(--s-4); }
.footer-h { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin: 0 0 var(--s-3); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: #aeb6c2; text-decoration: none; font-size: 0.95rem; }
.footer-col a:hover { color: var(--accent); }
.footer-contact p { font-size: 0.92rem; line-height: 1.6; }
.footer-contact a { color: #aeb6c2; text-decoration: none; }
.footer-contact a:hover { color: var(--accent); }
.footer-disclaimer { position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,0.1); padding-top: var(--s-3); padding-bottom: var(--s-3); }
.footer-disclaimer p { font-size: 0.78rem; color: #828d9c; max-width: 1000px; }
.footer-disclaimer strong { color: #cdd4de; }
.footer-bottom { position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,0.1); padding: var(--s-3) 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-1); }
.footer-bottom p { font-size: 0.8rem; color: #828d9c; margin: 0; }
.footer-credit { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem !important; }
.footer-watermark {
  position: absolute; left: 50%; bottom: -2.2rem; transform: translateX(-50%);
  font-size: clamp(3rem, 13vw, 11rem); font-weight: 800; letter-spacing: -0.02em;
  color: rgba(255,255,255,0.04); white-space: nowrap; z-index: 1; pointer-events: none; line-height: 1;
}

/* ---------- Sticky mobile call bar ---------- */
.call-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--accent); color: var(--ink); text-align: center; font-weight: 700; text-decoration: none; padding: 0.9rem; box-shadow: 0 -4px 20px rgba(0,0,0,0.18); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:hover, .pcard:hover, .member-toggle:hover { transform: none; }
}

/* =========================================================
   Inner pages
   ========================================================= */
.nav-menu a[aria-current="page"] { color: var(--accent-dk); font-weight: 700; }
.nav-menu a[aria-current="page"]::after { width: 100%; }

/* Inner hero (About / Expertise / Team / Blog / Contact headers) */
.inner-hero { padding-top: calc(var(--s-6) + 1rem); padding-bottom: var(--s-5); }
.inner-hero-head { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--s-5); align-items: end; margin-bottom: var(--s-5); }
.inner-hero-head h1 { margin: 0; }
.inner-hero-sub { color: var(--text-soft); font-size: 1.1rem; margin: 0; }
.inner-hero-img { aspect-ratio: 21 / 9; width: 100%; }

.back-link { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--text-soft); text-decoration: none; font-weight: 600; font-size: 0.95rem; margin-bottom: var(--s-3); }
.back-link:hover { color: var(--accent-dk); }

/* Expertise list cards (image top, text below) */
.xp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4) var(--s-3); }
.xp-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.xp-img { aspect-ratio: 16 / 11; border: none; border-radius: var(--radius); overflow: hidden; }
.xp-card:hover .xp-img.img-real { transform: scale(1.03); }
.xp-img.img-real { transition: transform 0.4s ease; }
.xp-card h3 { margin: var(--s-3) 0 var(--s-1); }
.xp-card p { color: var(--text-soft); font-size: 0.97rem; margin-bottom: var(--s-2); }

/* Member detail page */
.member-detail { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--s-6); align-items: start; }
.member-portrait { position: sticky; top: calc(var(--header-h) + 1rem); }
.member-portrait .img-real { aspect-ratio: 3 / 4; border-radius: var(--radius); }
.member-social { display: flex; gap: var(--s-1); margin-top: var(--s-3); }
.member-social a { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 700; transition: background 0.2s ease, color 0.2s ease; }
.member-social a:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.member-detail .role { color: var(--accent-dk); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.9rem; margin: 0 0 var(--s-3); }
.member-detail .bio p { color: var(--text-soft); font-size: 1.05rem; }
.member-detail h1 { margin-bottom: var(--s-1); }

/* Sticky side card (consult / newsletter) */
.side-card { position: sticky; top: calc(var(--header-h) + 1rem); background: var(--ink); color: #d4dae3; border-radius: var(--radius); padding: var(--s-4); }
.side-card h3 { color: var(--white); }
.side-card p { color: #aeb6c2; font-size: 0.95rem; }
.side-card .field input { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.18); color: var(--white); }
.side-card label { color: var(--white); }

/* Blog */
.blog-controls { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: space-between; align-items: end; margin-bottom: var(--s-4); }
.blog-controls .field { margin: 0; }
.blog-search { position: relative; }
.blog-search input { min-width: 240px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4) var(--s-3); }
.bcard { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.bcard-img { aspect-ratio: 16 / 11; border: none; border-radius: var(--radius); overflow: hidden; }
.bcard h3 { font-size: 1.2rem; margin: var(--s-2) 0 var(--s-1); }
.bcard.is-hidden { display: none; }
.load-more-wrap { text-align: center; margin-top: var(--s-5); }
.no-results { text-align: center; color: var(--text-soft); padding: var(--s-4); display: none; }

/* Featured blog row */
.blog-feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-4); align-items: center; margin-bottom: var(--s-6); }
.blog-feature .img-slot { aspect-ratio: 16 / 11; border: none; border-radius: var(--radius); }

/* Blog post */
.post-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-5); align-items: start; margin-bottom: var(--s-4); }
.post-meta-row { display: flex; align-items: center; gap: var(--s-2); color: var(--text-soft); font-size: 0.92rem; margin-top: var(--s-3); }
.post-meta-row .avatar { width: 32px; height: 32px; border-radius: 50%; min-height: 32px; }
.post-hero-img { aspect-ratio: 16 / 8; border: none; border-radius: var(--radius); margin-bottom: var(--s-5); }
.post-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--s-6); align-items: start; }
.post-body h2 { font-size: 1.7rem; margin-top: var(--s-4); }
.post-body p, .post-body li { color: var(--text); font-size: 1.08rem; }
.post-body ul { padding-left: 1.2rem; margin: var(--s-2) 0 var(--s-4); }
.post-body li { margin-bottom: 0.5rem; }
.post-body .list-2col { columns: 16rem; column-gap: var(--s-5); }
.post-body .list-2col li { break-inside: avoid; }
.post-body blockquote { border-left: 3px solid var(--accent); margin: var(--s-3) 0; padding-left: var(--s-3); color: var(--text-soft); font-style: italic; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; gap: var(--s-3); align-items: start; }
  .about-body { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; gap: var(--s-4); }
  .pcards, .team-grid, .test-grid { grid-template-columns: repeat(2, 1fr); }
  .insights-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: var(--s-4); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-lead { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  :root { --s-7: 4.5rem; --s-6: 3rem; }
  .nav-inner { display: flex; justify-content: space-between; }
  .nav { display: contents; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    padding: var(--s-2) var(--s-4) var(--s-3);
    transform: translateY(-130%); transition: transform 0.3s ease;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu li { border-top: 1px solid var(--line); }
  .nav-menu li:first-child { border-top: none; }
  .nav-menu a { display: block; padding: 0.9rem 0; }

  .stat-row { grid-template-columns: 1fr 1fr; gap: var(--s-3); }
  .stat + .stat { border-left: none; }
  .pcards, .team-grid, .test-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .contact-details { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .insight-row { grid-template-columns: 100px 1fr; }
  .hero-badge { display: none; }

  .call-bar { display: block; }
  main { padding-bottom: 56px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* Inner-page responsive */
@media (max-width: 1024px) {
  .inner-hero-head { grid-template-columns: 1fr; gap: var(--s-2); }
  .xp-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .member-detail { grid-template-columns: 1fr; gap: var(--s-4); }
  .member-portrait { position: static; }
  .blog-feature, .post-head, .post-layout { grid-template-columns: 1fr; gap: var(--s-4); }
  .side-card { position: static; }
  .story-top { grid-template-columns: 1fr; gap: var(--s-4); }
}
@media (max-width: 720px) {
  .xp-grid, .blog-grid { grid-template-columns: 1fr; }
  .blog-controls { flex-direction: column; align-items: stretch; }
  .blog-search input { min-width: 0; width: 100%; }
  .inner-hero-img { aspect-ratio: 16 / 10; }
}

/* Revised-component responsive */
@media (max-width: 1024px) {
  .about2 { grid-template-columns: 1fr; gap: var(--s-4); }
  .about2-img { aspect-ratio: 16 / 10; margin-top: var(--s-3); }
  .pcards { grid-auto-columns: 46%; }
}
@media (max-width: 720px) {
  .pcards { grid-auto-columns: 82%; }
  .pc-controls { width: 100%; }
  .about2-stats { grid-template-columns: 1fr 1fr; }
}

/* Image hover zoom on cards */
.pcard-img.img-real, .member-img.img-real { transition: transform 0.5s ease; }
.pcard:hover .pcard-img.img-real, .member:hover .member-img.img-real { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) {
  .pcard:hover .pcard-img.img-real, .member:hover .member-img.img-real { transform: none; }
}
