/* ===========================================================
   VeralyX Services — stylesheet
   Brand: Navy #082044  ·  Teal #0D9488
   Supports light + dark mode via [data-theme]
   =========================================================== */

:root {
  --navy: #082044;
  --navy-600: #0d2c5c;
  --teal: #0d9488;
  --teal-400: #2dd4bf;
  --teal-600: #0b7d73;

  /* Light theme tokens */
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e2e8f0;
  --text: #0f1e33;
  --text-muted: #4a5b73;
  --heading: #082044;
  --accent: var(--teal);
  --accent-strong: var(--teal-600);
  --shadow: 0 10px 30px -12px rgba(8, 32, 68, 0.18);
  --shadow-sm: 0 4px 14px -8px rgba(8, 32, 68, 0.25);
  --hero-bg: linear-gradient(160deg, #f4f7fb 0%, #eaf1f9 55%, #e4f3f1 100%);
  --header-bg: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] {
  --bg: #0a1729;
  --bg-alt: #0d1e36;
  --surface: #10233f;
  --surface-2: #143054;
  --border: #1e3a5f;
  --text: #dbe7f5;
  --text-muted: #93a7c2;
  --heading: #f1f6fc;
  --accent: var(--teal-400);
  --accent-strong: var(--teal-400);
  --shadow: 0 14px 40px -16px rgba(0, 0, 0, 0.6);
  --shadow-sm: 0 6px 18px -10px rgba(0, 0, 0, 0.55);
  --hero-bg: radial-gradient(1200px 600px at 80% -10%, rgba(13, 148, 136, 0.18), transparent 60%), linear-gradient(160deg, #0a1729 0%, #0b1c33 100%);
  --header-bg: rgba(10, 23, 41, 0.8);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}
h1, h2, h3, h4 { font-family: "Sora", "Inter", sans-serif; color: var(--heading); line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1rem; }
a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1160px, 92%); margin-inline: auto; }
.section { padding: 5.5rem 0; }
.section--alt { background: var(--bg-alt); }

.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-strong);
  margin-bottom: .75rem;
}
.section-head { max-width: 760px; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.section-sub { color: var(--text-muted); font-size: 1.08rem; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff;
  padding: .6rem 1rem; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: .98rem; padding: .8rem 1.5rem; border-radius: 10px;
  border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--teal); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--teal-600); }
[data-theme="dark"] .btn--primary { background: var(--teal); }
[data-theme="dark"] .btn--primary:hover { background: var(--teal-400); color: #06231f; }
.btn--ghost { background: transparent; color: var(--heading); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-strong); }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; }
.brand { display: flex; align-items: center; }
.brand-logo { height: 52px; width: auto; }
.brand-logo--dark { display: none; }
[data-theme="dark"] .brand-logo--light { display: none; }
[data-theme="dark"] .brand-logo--dark { display: block; }

.main-nav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--text); font-weight: 500; font-size: .97rem; }
.main-nav a:hover { color: var(--accent-strong); text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: .75rem; }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--heading);
  transition: background-color .2s ease, color .2s ease;
}
.theme-toggle:hover { color: var(--accent-strong); }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span { width: 20px; height: 2px; background: var(--heading); border-radius: 2px; transition: .25s; }
.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); }

.mobile-nav { display: none; border-bottom: 1px solid var(--border); background: var(--surface); }
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: .5rem 4%; }
.mobile-nav li { border-top: 1px solid var(--border); }
.mobile-nav li:first-child { border-top: none; }
.mobile-nav a { display: block; padding: .9rem .25rem; color: var(--text); font-weight: 500; }

/* ---------- Hero ---------- */
.hero { background: var(--hero-bg); padding: 4.5rem 0 5rem; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero-copy h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
.hero-copy .accent { color: var(--accent-strong); }
.lead { font-size: 1.18rem; color: var(--text-muted); max-width: 44ch; }
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; margin: 1.75rem 0 1.5rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.hero-badges li {
  font-size: .84rem; font-weight: 600; color: var(--text-muted);
  background: var(--surface); border: 1px solid var(--border);
  padding: .4rem .8rem; border-radius: 999px;
}
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-mark { width: min(360px, 80%); filter: drop-shadow(0 20px 40px rgba(8,32,68,.18)); }
.hero-mark--dark { display: none; }
[data-theme="dark"] .hero-mark--light { display: none; }
[data-theme="dark"] .hero-mark--dark { display: block; }
.hero-glow {
  position: absolute; inset: 0; margin: auto; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(13,148,136,.25), transparent 65%); filter: blur(20px); z-index: 0;
}

/* ---------- Value cards ---------- */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.value-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 1.75rem 1.5rem; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.4rem; color: #fff; background: linear-gradient(135deg, var(--navy), var(--teal)); margin-bottom: 1rem;
}
.value-card h3 { font-size: 1.15rem; }
.value-card p { color: var(--text-muted); margin: 0; font-size: .96rem; }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 1.9rem 1.7rem; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card h3 { font-size: 1.25rem; color: var(--heading); }
.service-card > p { color: var(--text-muted); }
.service-list { list-style: none; padding: 0; margin: .5rem 0 0; }
.service-list li {
  position: relative; padding-left: 1.5rem; margin-bottom: .55rem; font-size: .93rem; color: var(--text);
}
.service-list li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
}
.service-list strong { color: var(--heading); }
.service-card--cta {
  background: linear-gradient(150deg, var(--navy), var(--navy-600));
  color: #eaf1f9; justify-content: center; align-items: flex-start;
}
.service-card--cta h3 { color: #fff; }
.service-card--cta p { color: #c7d6ea; }
.service-card--cta .btn { margin-top: .5rem; }

/* ---------- Why Us ---------- */
.why-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.why-copy h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.check-list { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: .85rem; color: var(--text); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; font-weight: 800; color: #fff;
  background: var(--teal); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem;
}
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 1.75rem 1.5rem; text-align: center; box-shadow: var(--shadow-sm);
}
.stat-num { display: block; font-family: "Sora", sans-serif; font-size: 2.4rem; font-weight: 800; color: var(--accent-strong); line-height: 1; }
.stat-label { color: var(--text-muted); font-size: .9rem; margin-top: .4rem; display: block; }

/* ---------- Clients ---------- */
.client-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.client-grid li {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.1rem 1.25rem; font-weight: 600; color: var(--heading); text-align: center;
  display: flex; align-items: center; justify-content: center; min-height: 74px; font-size: .98rem;
  transition: border-color .2s ease, color .2s ease;
}
.client-grid li:hover { border-color: var(--accent); color: var(--accent-strong); }

/* ---------- Contact ---------- */
.contact-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: start; }
.contact-details { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-details li { display: flex; flex-direction: column; margin-bottom: 1.1rem; }
.contact-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); font-weight: 700; }
.contact-details a, .contact-details span:not(.contact-label) { font-size: 1.05rem; color: var(--heading); font-weight: 500; }

.contact-form {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 2rem; box-shadow: var(--shadow);
}
.field { margin-bottom: 1.1rem; display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-size: .88rem; font-weight: 600; color: var(--heading); margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  font: inherit; padding: .75rem .9rem; border-radius: 10px; border: 1.5px solid var(--border);
  background: var(--surface-2); color: var(--text); transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,148,136,.18);
}
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-status { margin: 1rem 0 0; font-size: .95rem; font-weight: 500; min-height: 1.2em; }
.form-status.success { color: var(--teal-600); }
[data-theme="dark"] .form-status.success { color: var(--teal-400); }
.form-status.error { color: #dc2626; }
[data-theme="dark"] .form-status.error { color: #f87171; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c7d6ea; padding: 3.5rem 0 1.5rem; }
[data-theme="dark"] .site-footer { background: #061529; border-top: 1px solid var(--border); }
.footer-inner { display: grid; grid-template-columns: 1.3fr 2fr; gap: 3rem; }
.footer-brand .brand-logo { height: 48px; margin-bottom: 1rem; }
.footer-brand .brand-logo--light { display: none; }        /* footer is dark: always use white logo */
.footer-brand .brand-logo--dark { display: block; }
.footer-brand p { color: #9fb4d1; max-width: 34ch; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-nav h4 { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: .55rem; }
.footer-nav a { color: #9fb4d1; font-size: .94rem; }
.footer-nav a:hover { color: var(--teal-400); text-decoration: none; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.25rem;
  font-size: .86rem; color: #8ea6c6;
}
.footer-bottom p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner, .why-inner, .contact-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-mark { width: 220px; }
  .value-grid { grid-template-columns: 1fr 1fr; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .client-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .section { padding: 3.75rem 0; }
  .value-grid, .service-grid, .client-grid, .stats, .field-row, .footer-nav { grid-template-columns: 1fr; }
}

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

/* ===========================================================
   Multi-page additions
   =========================================================== */

.center { text-align: center; margin-top: 2.5rem; }

/* Active nav link */
.main-nav a.active { color: var(--accent-strong); }
.main-nav a.active::after {
  content: ""; display: block; height: 2px; border-radius: 2px;
  background: var(--accent); margin-top: 3px;
}

/* ---- Animated hero mark ---- */
.hero-anim { width: min(340px, 82%); color: var(--navy); }
[data-theme="dark"] .hero-anim { color: #eaf1f9; }
.hero-anim .vmark { stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 2.2s ease forwards .2s; }
.hero-anim .ring1 { transform-origin: 150px 168px; animation: spin 26s linear infinite; }
.hero-anim .ring2 { transform-origin: 150px 168px; animation: spin 20s linear infinite reverse; }
.hero-anim .spark { transform-origin: 150px 168px; animation: pulse 3s ease-in-out infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }

/* ---- Page hero (interior pages) ---- */
.page-hero {
  background: var(--hero-bg);
  padding: 3.75rem 0 3.25rem;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; max-width: 20ch; }
.page-hero .lead { max-width: 60ch; }
.page-hero .hero-cta { margin-top: 1.5rem; }
.page-hero .hero-badges { margin-top: 1.25rem; }

/* ---- Media component with branded fallback ---- */
.media {
  position: relative; margin: 0; border-radius: 16px; overflow: hidden;
  aspect-ratio: var(--ratio, 16 / 10); background: var(--surface-2);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; color: transparent; font-size: 0; }
.media-fallback {
  position: absolute; inset: 0; z-index: 0; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal-600) 130%);
}
.media-icon { width: 34%; max-width: 120px; color: rgba(255,255,255,.85); }

/* ---- Feature cards (home 'what we do') ---- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 1.9rem 1.6rem; box-shadow: var(--shadow-sm); text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); text-decoration: none; }
.feature-icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--teal)); color: #fff; margin-bottom: 1rem;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 1.15rem; }
.feature-card p { color: var(--text-muted); font-size: .96rem; flex-grow: 1; }
.feature-more { color: var(--accent-strong); font-weight: 600; font-size: .92rem; margin-top: .5rem; }

/* ---- Service tiles (services hub) ---- */
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.service-tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
}
.service-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-tile .media { border: none; border-radius: 0; box-shadow: none; }
.service-tile-body { padding: 1.5rem 1.5rem 1.75rem; display: flex; flex-direction: column; gap: .3rem; }
.service-tile-body h3 { font-size: 1.2rem; }
.service-tile-body p { color: var(--text-muted); font-size: .95rem; flex-grow: 1; margin-bottom: 1rem; }

/* ---- Split section (image + copy) ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split-copy h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.split-copy p { color: var(--text-muted); }

/* ---- Detail blocks (service pages) ---- */
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.detail-block {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 1.6rem 1.5rem; box-shadow: var(--shadow-sm);
}
.detail-block h3 { font-size: 1.1rem; }
.ticked { list-style: none; padding: 0; margin: .5rem 0 0; }
.ticked li { position: relative; padding-left: 1.6rem; margin-bottom: .55rem; color: var(--text); font-size: .94rem; }
.ticked li::before {
  content: "✓"; position: absolute; left: 0; top: .05em; color: #fff; background: var(--teal);
  width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 800;
}

/* ---- Video section ---- */
.video-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: center; }
.video-copy h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.video-copy p { color: var(--text-muted); }
.video-frame {
  position: relative; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--border); aspect-ratio: 16 / 9; background: var(--navy);
}
.company-video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- Client strip (home) ---- */
.client-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; list-style: none; padding: 0; margin: 0;
}
.client-strip li {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 1rem; text-align: center; font-weight: 600; color: var(--heading); font-size: .92rem;
  display: flex; align-items: center; justify-content: center; min-height: 70px;
}

/* ---- CTA band ---- */
.cta-band { position: relative; overflow: hidden; }
.cta-band .cta-bg { position: absolute; inset: 0; margin: 0; border: none; border-radius: 0; box-shadow: none; aspect-ratio: auto; height: 100%; }
.cta-band .cta-bg img { filter: brightness(.32) saturate(1.1); }
.cta-band .cta-bg .media-fallback { background: linear-gradient(120deg, #061529, var(--navy)); }
.cta-inner {
  position: relative; z-index: 2; text-align: center; padding: 4.5rem 0;
}
.cta-inner h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.cta-inner p { color: #cdddec; max-width: 52ch; margin-inline: auto; }
.btn--light { background: #fff; color: var(--navy); margin-top: 1.25rem; }
.btn--light:hover { background: var(--teal); color: #fff; }

/* ---- Contact detail icons ---- */
.contact-details li { flex-direction: row; align-items: center; gap: .9rem; }
.contact-icon {
  flex: none; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--accent-strong);
}
.contact-icon svg { width: 20px; height: 20px; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .feature-grid, .tile-grid, .detail-grid { grid-template-columns: 1fr 1fr; }
  .split, .video-inner { grid-template-columns: 1fr; }
  .split-media, .video-frame { order: -1; }
  .client-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .feature-grid, .tile-grid, .detail-grid, .client-strip { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-anim .vmark, .hero-anim .ring1, .hero-anim .ring2, .hero-anim .spark { animation: none; stroke-dashoffset: 0; }
}

/* ===========================================================
   v2 — self-contained placeholders, real-logo hero, solid CTA
   (these rules come last, so they take precedence)
   =========================================================== */

/* ---- Branded placeholder media (no external images) ---- */
.media {
  position: relative; margin: 0; border-radius: 16px; overflow: hidden;
  aspect-ratio: var(--ratio, 16 / 10); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); background: var(--surface-2);
}
.ph {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; text-align: center; padding: 1.25rem;
  background:
    radial-gradient(130% 130% at 100% 0%, rgba(13,148,136,.38), transparent 55%),
    linear-gradient(135deg, #082044 0%, #0c2b52 58%, #0b7d73 145%);
}
.ph::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .10;
  background-image: repeating-linear-gradient(135deg, #fff 0 2px, transparent 2px 18px);
}
.ph-badge {
  position: relative; width: 76px; height: 76px; border-radius: 18px;
  display: grid; place-items: center; color: #fff;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.28);
}
.ph-badge svg { width: 38px; height: 38px; }
.ph-label {
  position: relative; color: #eaf3f7; font-family: "Sora", sans-serif;
  font-weight: 700; font-size: 1.02rem;
}
.media img.ph-img {
  position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%;
  object-fit: cover; display: block; border: 0; font-size: 0; color: transparent;
}
/* service tile keeps square-ish media flush with card */
.service-tile .media { border: none; border-radius: 0; box-shadow: none; }

/* ---- Home hero: use the real VeralyX logo ---- */
.hero-logo {
  position: relative; z-index: 1; width: min(420px, 80%); height: auto;
  filter: drop-shadow(0 22px 44px rgba(8,32,68,.20));
}
.hero-logo.brand-logo--dark { display: none; }
[data-theme="dark"] .hero-logo.brand-logo--light { display: none; }
[data-theme="dark"] .hero-logo.brand-logo--dark { display: block; }

/* ---- Solid CTA band (no image) ---- */
.cta-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 150% at 85% -25%, rgba(13,148,136,.38), transparent 55%),
    linear-gradient(120deg, #061529 0%, #082044 72%);
}
.cta-inner { position: relative; z-index: 2; text-align: center; padding: 4.75rem 0; }

/* ===========================================================
   v3 — professional refinements
   =========================================================== */

/* Tighter, more editorial type */
h1, h2, h3 { letter-spacing: -0.015em; }
.section { padding: 6rem 0; }
.section-head { margin-bottom: 3.25rem; }
.section-sub { max-width: 62ch; margin-inline: auto; }

/* Document-reference eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: .9rem;
}
.eyebrow-num {
  display: inline-grid; place-items: center; min-width: 2.1em; padding: .28em .5em;
  border-radius: 6px; letter-spacing: .06em;
  background: var(--teal); color: #fff; font-size: .82em;
}
[data-theme="dark"] .eyebrow-num { background: var(--teal); color: #04211d; }

/* Hero refinements */
.hero { padding: 5.25rem 0 5.5rem; }
.hero-copy h1 { font-size: clamp(2.2rem, 4.8vw, 3.5rem); line-height: 1.12; }
.standards-strip {
  display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; padding: 0; margin: 1.6rem 0 0;
}
.standards-strip li {
  font-size: .8rem; font-weight: 700; letter-spacing: .04em;
  color: var(--heading); background: var(--surface); border: 1px solid var(--border);
  padding: .45rem .85rem; border-radius: 8px;
}

/* Dark stats band */
.stats-band {
  background: linear-gradient(120deg, #061529 0%, var(--navy) 80%);
  border-block: 1px solid rgba(255,255,255,.06);
}
.stats-band-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 2.4rem 0;
}
.sb { text-align: center; }
.sb-num {
  display: block; font-family: "Sora", sans-serif; font-weight: 800;
  font-size: 2.5rem; line-height: 1; color: #fff;
}
.sb-num::after { content: ""; display: block; width: 28px; height: 3px; border-radius: 2px;
  background: var(--teal-400); margin: .55rem auto .5rem; }
.sb-label { color: #9fb4d1; font-size: .88rem; font-weight: 500; }

/* Feature cards with lifecycle step */
.feature-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.feature-icon { margin-bottom: 0; }
.feature-step {
  display: inline-flex; align-items: baseline; gap: .45rem;
  font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-muted);
}
.feature-step b { font-family: "Sora", sans-serif; font-size: 1.05rem; color: var(--accent-strong); letter-spacing: 0; }

/* Process steps */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  counter-reset: step;
}
.step {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.75rem 1.5rem; box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.05rem;
  background: linear-gradient(135deg, var(--navy), var(--teal)); color: #fff; margin-bottom: 1rem;
}
.step h3 { font-size: 1.08rem; }
.step p { color: var(--text-muted); font-size: .93rem; margin: 0; }

/* Industries */
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.ind-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 1.75rem 1.5rem; box-shadow: var(--shadow-sm);
}
.ind-icon {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--accent-strong); margin-bottom: 1rem;
}
.ind-icon svg { width: 24px; height: 24px; }
.ind-card h3 { font-size: 1.08rem; }
.ind-card p { color: var(--text-muted); font-size: .93rem; margin: 0; }

/* Mission / vision */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }
.mv-card {
  position: relative; border-radius: 18px; padding: 2.4rem 2.2rem;
  background: linear-gradient(140deg, var(--navy) 0%, #0c2b52 100%);
  border: 1px solid rgba(255,255,255,.08); box-shadow: var(--shadow);
}
.mv-card p { color: #d5e2f2; font-size: 1.08rem; line-height: 1.7; margin: 0; }
.mv-label {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--teal-400); margin-bottom: 1rem;
}

/* QHSE */
.qhse-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.qhse-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 1.9rem 1.6rem; box-shadow: var(--shadow-sm);
}
.qhse-icon {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 13px;
  background: linear-gradient(135deg, var(--navy), var(--teal)); color: #fff; margin-bottom: 1rem;
}
.qhse-icon svg { width: 26px; height: 26px; }
.qhse-card p { color: var(--text-muted); font-size: .95rem; margin: 0; }

/* Why-media + promise card */
.why-media .media { max-width: 520px; margin-left: auto; }
.promise-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 2rem 1.9rem; box-shadow: var(--shadow); max-width: 480px; margin-left: auto;
}
.promise-card h3 { font-size: 1.15rem; }
.promise-card p { color: var(--text-muted); font-size: .95rem; }

/* FAQ */
.faq-wrap { max-width: 820px; margin-inline: auto; }
.faq {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  margin-bottom: .9rem; box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.15rem 1.4rem; font-weight: 600; color: var(--heading);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: "Sora", sans-serif; font-weight: 700; font-size: 1.25rem;
  color: var(--accent-strong); transition: transform .2s ease; line-height: 1;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 1.4rem 1.25rem; margin: 0; color: var(--text-muted); }

/* Contact next steps */
.next-steps { margin-top: 2rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.6rem 1.5rem; box-shadow: var(--shadow-sm); }
.next-steps h3 { font-size: 1.05rem; margin-bottom: .8rem; }
.mini-steps { margin: 0; padding-left: 1.2rem; color: var(--text-muted); font-size: .94rem; }
.mini-steps li { margin-bottom: .55rem; }
.mini-steps b { color: var(--heading); }

/* Focus visibility (quality floor) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px;
}

/* Responsive for v3 */
@media (max-width: 960px) {
  .stats-band-inner { grid-template-columns: 1fr 1fr; row-gap: 1.75rem; }
  .steps, .ind-grid { grid-template-columns: 1fr 1fr; }
  .qhse-grid { grid-template-columns: 1fr; }
  .mv-grid { grid-template-columns: 1fr; }
  .why-media .media, .promise-card { margin-inline: auto; }
}
@media (max-width: 720px) {
  .section { padding: 4rem 0; }
  .steps, .ind-grid, .stats-band-inner { grid-template-columns: 1fr; }
  .stats-band-inner { padding: 2rem 0; }
}

/* Fix: stack contact label above its value */
.contact-details li > div { display: flex; flex-direction: column; }
.contact-details .contact-label { margin-bottom: .1rem; }
