/* ============================================================
   Shravya Digital — Design System (Dark)
   Palette: Ink #080c14 · Mint #65d6cb · Violet #8067f4
   Type:    Inter (display + body), tight display tracking

   Layout comes from the Bootstrap 5 grid (.container / .row / .col-*).
   Everything below is Shravya's own — no Bootstrap components are used,
   so nothing here fights the framework.
============================================================ */

:root {
  /* Core palette */
  --bg:          #080c14;
  --bg-2:        #0d1220;
  --card:        #111827;
  --card-2:      #151d2d;
  --text:        #f5f7fb;
  --muted:       #9ca8ba;
  --line:        #253044;
  --line-soft:   rgba(255, 255, 255, 0.07);

  --mint:        #65d6cb;
  --mint-ink:    #071015;
  --mint-soft:   rgba(101, 214, 203, 0.12);
  --violet:      #8067f4;
  --violet-soft: rgba(128, 103, 244, 0.14);
  --danger:      #f4736a;

  /* Legacy aliases — older templates and style.css still reference these.
     Pointing them at the dark palette keeps every existing page consistent. */
  --indigo:      #080c14;
  --indigo-deep: #05080e;
  --cream:       #080c14;
  --white:       #ffffff;
  --amber:       #65d6cb;
  --amber-light: rgba(101, 214, 203, 0.12);
  --amber-text:  #65d6cb;
  --slate:       #9ca8ba;
  --slate-light: #7b8798;
  --coral:       #f4736a;
  --border:      #253044;

  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 18px 48px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 30px 90px rgba(0, 0, 0, 0.55);

  --radius-sm: 12px;
  --radius:    16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --ff-display: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ff-body:    'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --header-h: 76px;
  --wrap:     1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .display {
  font-family: var(--ff-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--text);
  margin: 0 0 14px;
}

h1 { font-size: clamp(40px, 5.6vw, 68px); letter-spacing: -0.045em; line-height: 1.04; }
h2 { font-size: clamp(30px, 3.8vw, 46px); }
h3 { font-size: clamp(19px, 1.8vw, 22px); letter-spacing: -0.025em; }
h4 { font-size: 17px; letter-spacing: -0.02em; }
h5, h6 { font-size: 15px; letter-spacing: -0.01em; }

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--mint); }

img { max-width: 100%; height: auto; }

ul, ol { margin: 0 0 16px; padding-left: 20px; }

hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

::selection { background: var(--mint); color: var(--mint-ink); }

/* Match the 1180px wrap on the Bootstrap container. */
.container { max-width: var(--wrap); padding-left: 32px; padding-right: 32px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--mint); color: var(--mint-ink); padding: 12px 20px;
  border-radius: 0 0 10px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

.measure { max-width: 820px; }
.measure-narrow { max-width: 68ch; }
.text-center { text-align: center; }
.slate-text { color: var(--muted); }

/* Shared label above a heading */
.eyebrow, .section-label {
  display: inline-flex; align-items: center;
  padding: 7px 13px; border-radius: 999px;
  background: var(--card-2); color: var(--mint);
  border: 1px solid var(--line);
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.09em; text-transform: uppercase;
  margin-bottom: 18px;
}

/* ============================================================
   HEADER
============================================================ */
.sd-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 12, 20, 0.86);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.sd-header.is-scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }

.sd-header .nav {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 20px;
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--ff-display); font-weight: 800;
  font-size: 18px; letter-spacing: 0.02em; flex: none;
}
.logo:hover { color: var(--text); }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: linear-gradient(150deg, var(--mint), var(--violet));
  color: var(--mint-ink); display: grid; place-items: center;
  font-weight: 900; font-size: 17px;
}
.logo-word { white-space: nowrap; }
.logo img, .custom-logo { max-height: 40px; width: auto; }

.nav-links {
  display: flex; align-items: center; gap: 26px;
  font-size: 14.5px; font-weight: 500;
  list-style: none; margin: 0; padding: 0;
  color: #c3cbd8;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 10px 0; white-space: nowrap;
  transition: color .16s ease;
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--mint); }
.nav-links > li > a.active { box-shadow: inset 0 -2px 0 var(--mint); }

.has-drop > a::after {
  content: ''; width: 6px; height: 6px; flex: none;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  opacity: .6; transition: transform .18s ease;
}
.has-drop:hover > a::after { opacity: 1; }

/* The little chevron button is only used on mobile */
.drop-toggle { display: none; }

/* ---- Standard dropdown ---- */
.drop {
  position: absolute; top: 100%; left: -16px; min-width: 232px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 10px; list-style: none; margin: 10px 0 0;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-drop:hover > .drop,
.has-drop:focus-within > .drop,
.has-drop.is-open > .drop { opacity: 1; visibility: visible; transform: none; }

.drop a {
  display: block; padding: 10px 14px; border-radius: 10px;
  font-size: 14px; color: #c9d2de;
}
.drop a:hover, .drop a.active { background: var(--mint-soft); color: var(--mint); }

/* ---- Mega menu ---- */
.nav-links > li.has-mega { position: static; }

.mega {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 90;
  margin-top: 10px;
  background: linear-gradient(160deg, var(--card), #0c1220);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.has-mega:hover > .mega,
.has-mega:focus-within > .mega,
.has-mega.is-open > .mega { opacity: 1; visibility: visible; transform: none; }

.mega-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) 270px;
  gap: 30px; padding: 30px;
}
.mega-cols {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px;
}
.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-title {
  display: flex; align-items: flex-end; min-height: 40px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--muted);
  margin: 0 0 12px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.mega-col li + li { margin-top: 2px; }
.mega-col a {
  display: block; padding: 8px 10px; margin-left: -10px;
  border-radius: 9px; font-size: 13.5px; color: #c9d2de; line-height: 1.35;
  transition: background .14s ease, color .14s ease;
}
.mega-col a:hover, .mega-col a.active { background: var(--mint-soft); color: var(--mint); }

.mega-promo {
  background: linear-gradient(150deg, var(--violet-soft), rgba(101, 214, 203, 0.08));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; align-items: flex-start;
}
.mega-promo__title { font-weight: 800; font-size: 15px; margin: 0 0 8px; letter-spacing: -0.02em; }
.mega-promo__text { color: var(--muted); font-size: 13px; margin: 0 0 16px; }
.mega-promo .btn-primary { padding: 11px 18px; font-size: 13px; }
.mega-promo__link { margin-top: 12px; font-size: 12.5px; font-weight: 700; color: var(--mint); }

/* ---- Header CTAs + burger ---- */
/* The drawer sits inside the header's stacking context, so the brand and the
   burger need to out-rank it or they disappear underneath when it opens. */
.sd-header .logo, .sd-header .nav-cta { position: relative; z-index: 97; }

.nav-cta { display: flex; align-items: center; gap: 10px; flex: none; }
.nav-links__cta { display: none; }

.nav-toggle {
  display: none; width: 42px; height: 40px;
  border: 1px solid var(--line); border-radius: 11px;
  background: var(--card); cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 4px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-scrim {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(4, 7, 12, 0.6);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .2s ease;
}
.nav-scrim.show { opacity: 1; }

.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--mint), var(--violet)); z-index: 200;
}

/* ============================================================
   BUTTONS
============================================================ */
.btn-primary, .btn-secondary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font-family: var(--ff-body); font-weight: 700; font-size: 14px;
  border: 1px solid var(--line); cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  text-align: center;
}
.btn-primary { background: var(--mint); color: var(--mint-ink); border-color: var(--mint); }
.btn-primary:hover { color: var(--mint-ink); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(101, 214, 203, 0.22); }

.btn-secondary, .btn-ghost { background: transparent; color: var(--text); }
.btn-secondary:hover, .btn-ghost:hover { color: var(--text); border-color: #4a5870; background: rgba(255, 255, 255, 0.04); }

.btn-sm { padding: 11px 18px; font-size: 13px; }
.btn-block { display: flex; width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.section-head + .btn-row { margin-top: 0; }

.card-more, .footer-more {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--mint); font-weight: 700; font-size: 13px;
}
.card-more:hover, .footer-more:hover { color: var(--mint); gap: 10px; }
.card-more span, .footer-more span { transition: transform .18s ease; }

/* ============================================================
   SECTIONS
============================================================ */
.section { padding: clamp(64px, 8vw, 95px) 0; }
.section--white, .dark-band { background: var(--bg-2); }
.section--tight { padding-top: clamp(40px, 5vw, 60px); }

.section-head { max-width: 780px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 17px; margin-bottom: 0; }
.section-head.text-center { margin-left: auto; margin-right: auto; }

/* ============================================================
   HERO — homepage
============================================================ */
.hero { padding: clamp(60px, 8vw, 95px) 0 clamp(64px, 8vw, 105px); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 65px); align-items: center;
}
.hero h1 { margin: 20px 0 22px; }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 640px; margin-bottom: 0; }

.gradient {
  background: linear-gradient(90deg, #ffffff 20%, var(--mint) 60%, #a18df7);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.hero-card {
  background: linear-gradient(145deg, #101827, #0b111c);
  border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: 12px 30px; box-shadow: var(--shadow-lg);
}
.signal-list { list-style: none; margin: 0; padding: 0; }
.signal {
  display: flex; align-items: center; gap: 16px;
  padding: 22px 0; border-top: 1px solid var(--line);
}
.signal:first-child { border-top: 0; }
.signal__label { color: var(--mint); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; flex: none; }
.signal__text { font-size: 15.5px; font-weight: 600; letter-spacing: -0.015em; }

/* ============================================================
   INTERIOR PAGE BANNER — every page using sd_page_head()
============================================================ */
.page-hero {
  padding: clamp(48px, 6vw, 78px) 0 clamp(40px, 5vw, 60px);
  background: linear-gradient(160deg, var(--bg-2), var(--bg));
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { max-width: 20ch; margin: 0 0 16px; font-size: clamp(32px, 4.6vw, 52px); }
.page-hero p { font-size: clamp(16px, 1.4vw, 18px); color: var(--muted); max-width: 62ch; margin: 0; }

.home-hero { padding: clamp(52px, 7vw, 96px) 0 clamp(40px, 4.5vw, 60px); border-bottom: none; }
.home-hero h1 { max-width: 17ch; }
.accent { color: var(--mint); }

.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: 12.5px; color: var(--muted); margin-bottom: 18px;
  list-style: none; padding: 0;
}
.breadcrumb a:hover { color: var(--mint); }
.breadcrumb .sep { opacity: .5; }

/* ---- Full-bleed video hero (kept for any page still using it) ---- */
.video-hero {
  position: relative; overflow: hidden;
  background: var(--bg-2);
  padding: clamp(78px, 10vw, 132px) 0;
}
.video-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.video-hero__bg iframe {
  position: absolute; top: 50%; left: 50%;
  width: 100vw; height: 56.25vw; min-height: 100%; min-width: 177.77vh;
  transform: translate(-50%, -50%); border: 0;
}
.video-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(8, 12, 20, 0.94), rgba(8, 12, 20, 0.72));
}
.video-hero__inner { position: relative; z-index: 2; }
.video-hero__inner h1 { max-width: 18ch; }
.video-hero__inner p { color: var(--muted); font-size: 18px; max-width: 62ch; }

/* ============================================================
   SPLIT SECTIONS & MEDIA PANELS
============================================================ */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 70px); align-items: center;
}
.split--reverse .split__media, .split--reverse .split__aside { order: -1; }
.split--top { align-items: start; }
.split__content .section-head { margin-bottom: 0; }
.split .lead { color: var(--muted); font-size: 17px; }

.media-panel {
  margin: 0; border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--card), #0b111c);
  border: 1px solid var(--line);
  min-height: 320px; display: grid; place-items: center;
  overflow: hidden; box-shadow: var(--shadow-md);
}
.media-panel img { width: 100%; height: 100%; object-fit: cover; }
.media-panel__glyph { color: var(--mint); opacity: .8; }

/* Symptom list (homepage) */
.symptom-title { font-size: 15px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); font-weight: 800; margin-bottom: 18px; }
.symptom-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.symptom-list li {
  position: relative; padding: 18px 20px 18px 52px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); color: #c5cedb; font-size: 14.5px;
}
.symptom-list li::before {
  content: ''; position: absolute; left: 20px; top: 24px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint); box-shadow: 0 0 0 4px var(--mint-soft);
}

/* ============================================================
   CARDS
============================================================ */
.card, .info-card, .service-card, .why-card, .blog-card, .case-card, .price-card, .form-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card, .info-card { padding: 28px; height: 100%; }
.card--link:hover, .info-card:hover, .service-card:hover, .why-card:hover, .blog-card:hover, .case-card:hover {
  transform: translateY(-3px); border-color: #33415a; box-shadow: var(--shadow-md);
}

.card h3, .card h4 { margin-bottom: 10px; }
.card p, .info-card p { color: var(--muted); font-size: 14.5px; }

.card-icon, .info-card__icon {
  width: 44px; height: 44px; border-radius: 13px;
  background: var(--card-2); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--mint);
  margin-bottom: 18px;
}
.card-num, .service-card__num {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 13px;
  background: var(--card-2); border: 1px solid var(--line);
  color: var(--mint); font-weight: 900; font-size: 13px;
  letter-spacing: 0.04em; margin-bottom: 18px;
}

/* Homepage service grid */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.service-card { padding: 28px; display: flex; flex-direction: column; min-height: 250px; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 14px; }
.service-card .card-more { margin-top: auto; padding-top: 20px; }

/* Why grid */
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.why-card { padding: 26px; }
.why-card h3 { font-size: 17px; margin-bottom: 8px; }
.why-card p { color: var(--muted); font-size: 14px; margin: 0; }

/* Process ribbon */
.process {
  list-style: none; margin: 0 0 32px; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
}
.process__step {
  display: flex; align-items: center; gap: 14px;
  padding: 20px; border-radius: var(--radius);
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.035);
}
.process__num { color: var(--mint); font-weight: 900; font-size: 13px; letter-spacing: 0.06em; }
.process__label { font-weight: 700; font-size: 16px; letter-spacing: -0.02em; }

/* Callout + check list */
.callout {
  border-left: 3px solid var(--mint); background: var(--card);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 24px; margin: 26px 0;
}
.callout .label {
  display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--mint); margin-bottom: 8px;
}
.callout p { color: var(--muted); margin: 0; }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; color: #c5cedb; font-size: 15px; }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--mint-soft); border: 1px solid var(--mint);
}
.check-list li::after {
  content: ''; position: absolute; left: 6px; top: 9px;
  width: 6px; height: 3px; border-left: 1.6px solid var(--mint);
  border-bottom: 1.6px solid var(--mint); transform: rotate(-45deg);
}

/* Industry pills */
.industries { display: flex; flex-wrap: wrap; gap: 10px; }
.industry {
  padding: 12px 17px; border: 1px solid var(--line);
  background: var(--card); border-radius: 999px;
  color: #c5cedb; font-size: 13.5px;
}
a.industry:hover { border-color: var(--mint); color: var(--mint); }

.tag {
  display: inline-block; border: 1px solid var(--line); background: var(--card-2);
  padding: 7px 12px; border-radius: 999px; color: #b8c3d2; font-size: 12px;
}

/* ============================================================
   CTA
============================================================ */
.cta-section { padding: 0 0 clamp(64px, 8vw, 95px); }
.cta, .cta-box {
  padding: clamp(34px, 5vw, 62px);
  border: 1px solid var(--line); border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #111b27, #12182a);
  display: flex; justify-content: space-between; align-items: center;
  gap: 36px; flex-wrap: wrap;
}
.cta h2, .cta-box h2 { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.08; margin: 12px 0; max-width: 22ch; }
.cta p, .cta-box p { color: var(--muted); max-width: 62ch; margin: 0; }
.cta .btn-row, .cta-box .btn-row { margin-top: 0; }

/* ============================================================
   PRICING
============================================================ */
.price-card { padding: 30px; height: 100%; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--mint); box-shadow: 0 0 0 1px var(--mint-soft), var(--shadow-md); }
.price-card h3 { margin-bottom: 8px; }
.price-card .desc { color: var(--muted); font-size: 14px; }
.price-tag { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; margin: 16px 0; color: var(--mint); }
.price-cta { margin-top: auto; padding-top: 22px; }

/* ============================================================
   FAQ
============================================================ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 22px 44px 22px 0; position: relative;
  font-family: var(--ff-display); font-weight: 700; font-size: 17px;
  letter-spacing: -0.02em; color: var(--text);
}
.faq-q:hover { color: var(--mint); }
.faq-q .plus, .faq-q::after {
  content: ''; position: absolute; right: 6px; top: 50%;
  width: 10px; height: 10px; margin-top: -6px;
  border-right: 2px solid var(--mint); border-bottom: 2px solid var(--mint);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq-item.open .faq-q::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-q .plus { display: none; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq-a p { color: var(--muted); padding-bottom: 22px; margin: 0; }

/* ============================================================
   BLOG + ARTICLE
============================================================ */
.blog-card { overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.blog-card .thumb {
  aspect-ratio: 16 / 9; background: var(--card-2);
  display: block; overflow: hidden;
}
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.blog-card:hover .thumb img { transform: scale(1.04); }
.blog-card .body, .blog-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.blog-card h3 { font-size: 18px; margin-bottom: 10px; }
.blog-card p { color: var(--muted); font-size: 14px; }
.blog-card .meta, .entry-meta {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  color: var(--muted); font-size: 12.5px; margin-bottom: 12px;
}
.blog-card .meta .date::after { content: '·'; margin-left: 10px; opacity: .6; }
.blog-card .card-more { margin-top: auto; padding-top: 18px; }

.post-list { display: grid; gap: 18px; }
.post-row {
  display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.post-row:hover { transform: translateY(-3px); border-color: #33415a; }
.post-row__media { background: var(--card-2); min-height: 170px; }
.post-row__media img { width: 100%; height: 100%; object-fit: cover; }
.post-row__body { padding: 24px 24px 24px 0; }
.post-row__body h3 { font-size: 20px; }
.post-row__body p { color: var(--muted); font-size: 14.5px; }

.mini-post { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mini-post:last-child { border-bottom: 0; }
.mini-post .thumb { width: 62px; height: 52px; border-radius: 10px; overflow: hidden; flex: none; background: var(--card-2); }
.mini-post .thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-post .title { font-size: 14px; font-weight: 600; line-height: 1.35; }
.mini-post .date { font-size: 12px; color: var(--muted); }

.single-hero {
  padding: clamp(44px, 5vw, 70px) 0 clamp(28px, 3vw, 40px);
  background: linear-gradient(160deg, var(--bg-2), var(--bg));
  border-bottom: 1px solid var(--line);
}
.single-hero h1 { max-width: 22ch; font-size: clamp(30px, 4.2vw, 46px); }

.featured-media {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--card-2);
  margin: 0 0 36px;
}
.featured-media img { width: 100%; display: block; }

/* Article body */
.entry-content { font-size: 17px; color: #dbe2ec; }
.entry-content > * + * { margin-top: 22px; }
.entry-content h2 {
  font-size: clamp(24px, 3vw, 32px); margin-top: 46px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.entry-content h3 {
  font-size: clamp(19px, 2.2vw, 23px); margin-top: 34px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.entry-content p { color: #cbd4e0; }
.entry-content a { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { color: #cbd4e0; padding-left: 22px; }
.entry-content li + li { margin-top: 8px; }
.entry-content img, .entry-content figure img { border-radius: var(--radius); border: 1px solid var(--line); }
.entry-content figure { margin: 32px 0; }
.entry-content figcaption { color: var(--muted); font-size: 13px; margin-top: 10px; text-align: center; }
.entry-content blockquote {
  margin: 32px 0; padding: 22px 26px; border-left: 3px solid var(--mint);
  background: var(--card); border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text); font-size: 18px;
}
.entry-content code {
  background: var(--card-2); border: 1px solid var(--line);
  padding: 2px 6px; border-radius: 6px; font-size: 0.9em; color: var(--mint);
}
.entry-content pre {
  background: var(--card-2); border: 1px solid var(--line);
  padding: 20px; border-radius: var(--radius); overflow: auto;
}
.entry-content pre code { background: none; border: 0; padding: 0; color: #dbe2ec; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; }
.entry-content th { background: var(--card-2); font-weight: 700; }

/* ---- Article layout with a sticky, non-scrolling TOC on the left ---- */
.article-layout {
  display: grid; grid-template-columns: 264px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px); align-items: start;
}
.article-layout--right { grid-template-columns: minmax(0, 1fr) 264px; }

.toc {
  position: sticky; top: calc(var(--header-h) + 24px);
  align-self: start;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 20px;
  max-height: none; overflow: visible;
}
.toc__title {
  font-size: 11px; font-weight: 800; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--muted);
  margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.toc ol, .toc ul { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { margin: 0; }
.toc a {
  display: block; padding: 8px 10px 8px 12px; margin-left: -12px;
  border-left: 2px solid transparent; border-radius: 0 8px 8px 0;
  font-size: 13.5px; line-height: 1.4; color: var(--muted);
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.toc a:hover { color: var(--text); background: rgba(255, 255, 255, 0.035); }
.toc a.is-active { color: var(--mint); border-left-color: var(--mint); background: var(--mint-soft); }
.toc .toc-h3 a { padding-left: 26px; font-size: 13px; }

.author-box {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px; margin-top: 48px;
}
.author-box img { width: 62px; height: 62px; border-radius: 50%; flex: none; }
.author-box p { color: var(--muted); font-size: 14px; margin: 6px 0 0; }

.entry-cats, .entry-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.entry-cats a, .entry-tags a {
  font-size: 12px; padding: 7px 12px; border-radius: 999px;
  background: var(--card-2); border: 1px solid var(--line); color: var(--muted);
}
.entry-cats a:hover, .entry-tags a:hover { color: var(--mint); border-color: var(--mint); }

.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px;
}
.post-nav a {
  padding: 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); font-weight: 600;
}
.post-nav a:hover { border-color: #33415a; }
.post-nav .label { display: block; font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.post-nav .is-next { text-align: right; }

.share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 36px; }
.share a, .share__copy {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--card);
  color: var(--muted); cursor: pointer; font-size: 13px;
}
.share a:hover, .share__copy:hover { color: var(--mint); border-color: var(--mint); }
.share__copy { width: auto; padding: 0 14px; }

.sd-pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 48px; }
.sd-pagination .page-numbers {
  min-width: 42px; height: 42px; padding: 0 12px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: 11px;
  background: var(--card); color: var(--muted); font-size: 14px; font-weight: 600;
}
.sd-pagination .page-numbers:hover { color: var(--mint); border-color: var(--mint); }
.sd-pagination .page-numbers.current { background: var(--mint); color: var(--mint-ink); border-color: var(--mint); }

.empty-state {
  text-align: center; padding: 60px 24px;
  border: 1px dashed var(--line); border-radius: var(--radius-lg); background: var(--card);
}
.empty-state p { color: var(--muted); }

/* ============================================================
   CASE STUDIES
============================================================ */
.case-card { padding: 28px; height: 100%; display: flex; flex-direction: column; }
.case-card .client { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mint); font-weight: 800; }
.case-card h3 { margin: 16px 0 10px; }
.case-card p { color: var(--muted); font-size: 14px; }
.case-result { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 20px; }
.case-result strong { display: block; font-size: 24px; color: var(--mint); letter-spacing: -0.02em; }
.case-result-label { font-size: 11.5px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.case-block { margin-top: 42px; }
.case-block h2 { font-size: 26px; }

/* ============================================================
   SIDEBAR & WIDGETS
============================================================ */
.sd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 4vw, 52px); align-items: start; }

.sd-sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 18px; }
.widget {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px;
}
.widget-title, .widget h2 {
  font-size: 12px; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--muted); font-weight: 800; margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.widget li:last-child { border-bottom: 0; }
.widget a:hover { color: var(--mint); }
.widget--cta { background: linear-gradient(150deg, var(--violet-soft), rgba(101, 214, 203, 0.08)); }
.widget--cta p { color: var(--muted); font-size: 14px; }

.side-nav { display: grid; gap: 4px; }
.side-nav a { padding: 10px 12px; border-radius: 10px; font-size: 14px; color: var(--muted); }
.side-nav a:hover { background: var(--card-2); color: var(--text); }
.side-nav a.is-current { background: var(--mint-soft); color: var(--mint); font-weight: 600; }

.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] { flex: 1; min-width: 0; }

/* ============================================================
   FORMS
============================================================ */
.form-card { padding: clamp(24px, 3vw, 34px); }
.sd-form { display: grid; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field label, .field label { font-size: 12.5px; color: #9da9ba; font-weight: 600; }
.form-field .req { color: var(--mint); }

input[type="text"], input[type="email"], input[type="url"], input[type="tel"],
input[type="search"], input[type="number"], input[type="password"], select, textarea {
  width: 100%; background: #0d1420; color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 14px; font-family: var(--ff-body); font-size: 15px;
  outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
input::placeholder, textarea::placeholder { color: #64718a; }
input:focus, select:focus, textarea:focus { border-color: var(--mint); box-shadow: 0 0 0 3px var(--mint-soft); }
textarea { min-height: 130px; resize: vertical; }
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.has-error { border-color: var(--danger) !important; }

.form-note { color: var(--muted); font-size: 13px; }
.form-success, .form-error {
  display: none; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 14px;
}
.form-success { background: var(--mint-soft); border: 1px solid var(--mint); color: var(--mint); }
.form-error { background: rgba(244, 115, 106, 0.12); border: 1px solid var(--danger); color: var(--danger); }
.form-success.show, .form-error.show { display: block; }

button.is-loading { opacity: .65; pointer-events: none; }
button.is-loading::after {
  content: ''; width: 14px; height: 14px; margin-left: 8px;
  border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; display: inline-block; animation: sd-spin .7s linear infinite;
}
@keyframes sd-spin { to { transform: rotate(360deg); } }

/* Contact grid used by the reference layout */
.contact { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(30px, 4vw, 55px); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }

/* ============================================================
   COMMENTS
============================================================ */
.comments-area { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.comments-title { font-size: 22px; margin-bottom: 24px; }
.comment-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.comment-list li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.comment-list .children { list-style: none; margin: 18px 0 0; padding: 0 0 0 24px; display: grid; gap: 14px; }
.comment-notes, .comment-list .awaiting-mod { color: var(--muted); font-size: 13px; }

/* ============================================================
   FOOTER
============================================================ */
.sd-footer {
  background: var(--bg-2); border-top: 1px solid var(--line);
  padding: clamp(48px, 6vw, 70px) 0 30px; color: #8f9cb0;
}
.footer-top { padding-bottom: 40px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-about { color: var(--muted); font-size: 14.5px; max-width: 38ch; margin-bottom: 14px; }
.footer-mail { display: inline-block; color: var(--mint); font-weight: 600; font-size: 14.5px; margin-bottom: 18px; }

.footer-col { display: flex; flex-direction: column; }
.footer-heading, .footer-col h5 {
  font-size: 12px; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--text); font-weight: 800; margin: 0 0 16px;
}
.footer-col a {
  display: block; padding: 6px 0; font-size: 14px; color: #9aa6b8; line-height: 1.4;
}
.footer-col a:hover { color: var(--mint); }
.footer-more { margin-top: 10px; font-size: 13px; }

.socials { display: flex; gap: 10px; }
.socials a {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--card); color: var(--muted);
}
.socials a:hover { color: var(--mint); border-color: var(--mint); }

.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 18px; flex-wrap: wrap; font-size: 13px; color: #7d8a9e;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-legal a:hover { color: var(--mint); }

.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  display: grid; place-items: center; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--mint); color: var(--mint); }

/* ============================================================
   MOTION
============================================================ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
html:not(.sd-js) .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1180px) {
  .mega-inner { grid-template-columns: minmax(0, 1fr) 240px; padding: 26px; gap: 24px; }
  .mega-cols { gap: 16px; }
}

@media (max-width: 1080px) {
  .nav-links { gap: 18px; font-size: 14px; }
  .nav-cta .btn-secondary { display: none; }
}

/* ---- Mobile navigation ---- */
@media (max-width: 960px) {
  /* backdrop-filter creates a containing block for fixed children, which would
     trap the drawer inside the header — so the blur is dropped at this width. */
  .sd-header {
    -webkit-backdrop-filter: none; backdrop-filter: none;
    background: #080c14;
  }

  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 96;
    width: min(380px, 88vw);
    display: block; overflow-y: auto; overscroll-behavior: contain;
    background: var(--bg-2); border-left: 1px solid var(--line);
    padding: calc(var(--header-h) + 16px) 22px 40px;
    transform: translateX(102%); transition: transform .26s ease;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.show { transform: none; }

  .nav-links > li,
  .nav-links > li.has-mega { border-bottom: 1px solid var(--line-soft); position: relative; }
  .nav-links > li > a { display: block; padding: 15px 44px 15px 0; font-size: 16px; font-weight: 600; }
  .nav-links > li > a.active { box-shadow: none; }
  .has-drop > a::after { display: none; }

  .drop-toggle {
    display: grid; place-items: center;
    position: absolute; top: 6px; right: -6px;
    width: 44px; height: 44px;
    background: none; border: 0; cursor: pointer; color: var(--muted);
  }
  .drop-toggle span {
    pointer-events: none;
    width: 8px; height: 8px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform .2s ease;
  }
  .is-open > .drop-toggle { color: var(--mint); }
  .is-open > .drop-toggle span { transform: rotate(-135deg) translate(-2px, -2px); }

  /* Submenus collapse inline instead of floating */
  .drop, .mega {
    display: block; position: static;
    opacity: 1; visibility: visible; transform: none;
    background: none; border: 0; box-shadow: none; border-radius: 0;
    margin: 0; padding: 0; min-width: 0;
    max-height: 0; overflow: hidden;
    transition: max-height .28s ease;
  }
  .is-open > .drop { max-height: 480px; }
  .is-open > .mega { max-height: 1200px; }

  .drop li a { padding: 11px 0 11px 14px; color: var(--muted); }
  .drop li a:hover, .drop li a.active { background: none; color: var(--mint); }

  .mega-inner { display: block; padding: 0 0 10px; }
  .mega-cols { display: block; }
  .mega-col { margin-bottom: 10px; }
  .mega-title { min-height: 0; margin: 14px 0 4px; padding-bottom: 8px; }
  .mega-col a { margin-left: 0; padding: 10px 0 10px 14px; }
  .mega-col a:hover, .mega-col a.active { background: none; color: var(--mint); }
  .mega-promo { display: none; }

  .nav-links__cta { display: grid; gap: 10px; border-bottom: 0; padding: 22px 0 0; }
  .nav-cta .btn-primary, .nav-cta .btn-secondary { display: none; }
}

@media (max-width: 900px) {
  .container { padding-left: 24px; padding-right: 24px; }
  .hero-grid, .split, .contact, .sd-layout, .article-layout, .article-layout--right { grid-template-columns: 1fr; }
  .split--reverse .split__media, .split--reverse .split__aside { order: 0; }
  .service-grid, .why-grid, .process { grid-template-columns: 1fr 1fr; }
  .post-row { grid-template-columns: 1fr; }
  .post-row__body { padding: 24px; }
  .sd-sidebar { position: static; }

  /* TOC drops above the article and stops being sticky */
  .toc { position: static; top: auto; }
  .article-layout .toc { order: -1; }
}

@media (max-width: 620px) {
  .container { padding-left: 18px; padding-right: 18px; }
  .section { padding: 58px 0; }
  h1 { font-size: 38px; }
  .hero .lead { font-size: 17px; }
  .hero-card { padding: 6px 22px; }
  .service-grid, .why-grid, .process, .post-nav, .contact-form { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .cta, .cta-box { flex-direction: column; align-items: flex-start; }
  .btn-row { width: 100%; }
  .btn-row .btn-primary, .btn-row .btn-secondary { flex: 1 1 auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .author-box { flex-direction: column; }
  .case-result { gap: 18px; }
}

/* ============================================================
   PRINT
============================================================ */
@media print {
  .sd-header, .sd-footer, .to-top, .nav-scrim, .toc, .share, .reading-progress { display: none !important; }
  body { background: #fff; color: #111; }
  .entry-content, .entry-content p, h1, h2, h3 { color: #111; }
  a { color: #111; text-decoration: underline; }
}

/* ============================================================
   HELPER-FUNCTION COMPATIBILITY
   sd_section_head(), sd_callout(), sd_cta(), sd_share_buttons() and
   sd_form_hidden_fields() in inc/helpers.php and inc/forms.php emit their
   own markup. These rules bring that markup onto the dark system.
============================================================ */

/* Honeypot — MUST stay hidden or the spam trap catches real people. */
.sd-hp {
  position: absolute !important;
  left: -9999px; top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* sd_section_head( …, $center = true ) */
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* sd_callout() outputs <h4> as its label. */
.callout h4 {
  font-size: 11px; font-weight: 800; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--mint); margin: 0 0 10px;
}

/* sd_cta() — the section is the band, the container is the card. */
.cta {
  display: block; padding: 0 0 clamp(64px, 8vw, 95px);
  background: none; border: 0; border-radius: 0;
}
.cta > .container {
  padding-top: clamp(38px, 5vw, 58px);
  padding-bottom: clamp(38px, 5vw, 58px);
  padding-left: clamp(28px, 4vw, 56px) !important;
  padding-right: clamp(28px, 4vw, 56px) !important;
  background: linear-gradient(135deg, #111b27, #12182a);
  border: 1px solid var(--line); border-radius: var(--radius-xl);
}
.cta > .container > h2 { font-size: clamp(28px, 3.6vw, 44px); max-width: 22ch; margin: 0 0 14px; }
.cta > .container > p { color: var(--muted); max-width: 62ch; margin: 0; }

/* sd_share_buttons() uses text labels, not icons, so they need width. */
.share a { width: auto; padding: 0 14px; font-weight: 600; }
.share .label {
  font-size: 11px; font-weight: 800; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--muted); margin-right: 4px;
}

/* Optional-field hint in form labels. */
.form-field .optional, .field .optional { color: var(--muted); font-weight: 400; }

/* Comment form fields inherit the shared form styling. */
.comment-form .form-field { margin-bottom: 16px; }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; font-size: 12.5px; color: #9da9ba; font-weight: 600; margin-bottom: 7px; }
.comment-form .submit { margin-top: 4px; }

/* ============================================================
   REUSABLE: SPLIT WITH MEDIA
   Desktop: heading + copy left, media right (media spans both rows).
   Mobile:  heading -> media -> copy.
============================================================ */
.split-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(32px, 5vw, 70px);
  row-gap: 26px;
  align-items: start;
}
.split-media__head  { grid-column: 1; grid-row: 1; }
.split-media__body  { grid-column: 1; grid-row: 2; }
.split-media__media { grid-column: 2; grid-row: 1 / span 2; align-self: stretch; }

.split-media--reverse .split-media__head,
.split-media--reverse .split-media__body  { grid-column: 2; }
.split-media--reverse .split-media__media { grid-column: 1; }

.split-media__head h2 { margin-bottom: 0; }
.split-media__media .media-panel { height: 100%; min-height: 340px; margin: 0; }
.split-media__media .media-panel img { width: 100%; height: 100%; object-fit: cover; }

.prose p { color: var(--muted); font-size: 16.5px; margin: 0; }
.prose p + p { margin-top: 18px; }

@media (max-width: 900px) {
  .split-media { grid-template-columns: 1fr; row-gap: 22px; }
  .split-media__head,
  .split-media__body,
  .split-media__media { grid-column: 1; grid-row: auto; }
  .split-media__head  { order: 1; }
  .split-media__media { order: 2; }
  .split-media__body  { order: 3; }
  .split-media__media .media-panel { min-height: 220px; }
}


/* ============================================================
   SHRAVYA DIGITAL — SOCIAL + EMAIL ICONS
   Paste into assets/css/extra.css (loads after shravya.css)
============================================================ */

/* ---------- Icon row (footer + contact) ---------- */
.sd-social {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.sd-social li { margin: 0; }

.sd-social__link {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  transition: color .18s ease, border-color .18s ease,
              background-color .18s ease, transform .18s ease;
}
.sd-social__link svg { width: 19px; height: 19px; display: block; }

.sd-social__link:hover,
.sd-social__link:focus-visible {
  color: var(--mint);
  border-color: var(--mint);
  background: var(--mint-soft);
  transform: translateY(-2px);
}

/* Optional: brand colours on hover. Delete this block to keep everything mint. */
.sd-social__link.is-facebook:hover  { color: #4a8cff; border-color: #4a8cff; background: rgba(74, 140, 255, .12); }
.sd-social__link.is-instagram:hover { color: #f062a4; border-color: #f062a4; background: rgba(240, 98, 164, .12); }
.sd-social__link.is-x:hover         { color: #ffffff; border-color: #ffffff; background: rgba(255, 255, 255, .10); }
.sd-social__link.is-linkedin:hover  { color: #4fa8f0; border-color: #4fa8f0; background: rgba(79, 168, 240, .12); }
.sd-social__link.is-mail:hover      { color: var(--mint); border-color: var(--mint); background: var(--mint-soft); }

/* Small variant — used in the footer bottom bar */
.sd-social--sm { gap: 8px; }
.sd-social--sm .sd-social__link { width: 34px; height: 34px; border-radius: 10px; }
.sd-social--sm .sd-social__link svg { width: 16px; height: 16px; }

/* ---------- Footer ---------- */
.footer-social-label {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Override the old inline-block rule in shravya.css */
.sd-footer .footer-mail {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: var(--mint);
  font-weight: 600;
  font-size: 14.5px;
  word-break: break-word;
}
.footer-mail__icon {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 9px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--card);
  transition: border-color .18s ease, background-color .18s ease;
}
.footer-mail__icon svg { width: 16px; height: 16px; display: block; }
.sd-footer .footer-mail:hover .footer-mail__icon {
  border-color: var(--mint);
  background: var(--mint-soft);
}

/* Footer bottom bar: copyright | socials | legal */
.footer-bottom { justify-content: space-between; }
.footer-bottom .sd-social { margin: 0 auto; }

@media (max-width: 991px) {
  .footer-bottom .sd-social { margin: 0; }
}

/* Hide the duplicate row on the smallest screens — the brand column already
   shows it. Delete these two lines if you want it in both places. */
@media (max-width: 575px) {
  .footer-bottom .sd-social--sm { display: none; }
}

/* ---------- Contact page ---------- */
.sd-contact .detail--social p {
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 14px;
}
.sd-contact .sd-social--contact { gap: 9px; }
.sd-contact .sd-social--contact .sd-social__link {
  background: var(--card-2);
}

@media (max-width: 480px) {
  .sd-social__link { width: 38px; height: 38px; }
}



/* ============================================================
   SHRAVYA DIGITAL — SOCIAL + EMAIL ICONS
   Paste into assets/css/extra.css (loads after shravya.css)
============================================================ */

/* ---------- Icon row (footer + contact) ---------- */
.sd-social {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.sd-social li { margin: 0; }

.sd-social__link {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  transition: color .18s ease, border-color .18s ease,
              background-color .18s ease, transform .18s ease;
}
.sd-social__link svg { width: 19px; height: 19px; display: block; }

.sd-social__link:hover,
.sd-social__link:focus-visible {
  color: var(--mint);
  border-color: var(--mint);
  background: var(--mint-soft);
  transform: translateY(-2px);
}

/* Optional: brand colours on hover. Delete this block to keep everything mint. */
.sd-social__link.is-facebook:hover  { color: #4a8cff; border-color: #4a8cff; background: rgba(74, 140, 255, .12); }
.sd-social__link.is-instagram:hover { color: #f062a4; border-color: #f062a4; background: rgba(240, 98, 164, .12); }
.sd-social__link.is-x:hover         { color: #ffffff; border-color: #ffffff; background: rgba(255, 255, 255, .10); }
.sd-social__link.is-linkedin:hover  { color: #4fa8f0; border-color: #4fa8f0; background: rgba(79, 168, 240, .12); }
.sd-social__link.is-mail:hover      { color: var(--mint); border-color: var(--mint); background: var(--mint-soft); }

/* Small variant — used in the footer bottom bar */
.sd-social--sm { gap: 8px; }
.sd-social--sm .sd-social__link { width: 34px; height: 34px; border-radius: 10px; }
.sd-social--sm .sd-social__link svg { width: 16px; height: 16px; }

/* ---------- Footer logo ---------- */
.footer-logo-link {
  display: inline-block;
  margin-bottom: 16px;
  line-height: 0;
  transition: opacity .18s ease;
}
.footer-logo-link:hover { opacity: .82; }
.footer-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 220px;
  max-height: 56px;
}

@media (max-width: 991px) {
  .footer-logo { max-width: 190px; max-height: 48px; }
}

/* ---------- Footer ---------- */
.footer-social-label {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Override the old inline-block rule in shravya.css */
.sd-footer .footer-mail {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: var(--mint);
  font-weight: 600;
  font-size: 14.5px;
  word-break: break-word;
}
.footer-mail__icon {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 9px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--card);
  transition: border-color .18s ease, background-color .18s ease;
}
.footer-mail__icon svg { width: 16px; height: 16px; display: block; }
.sd-footer .footer-mail:hover .footer-mail__icon {
  border-color: var(--mint);
  background: var(--mint-soft);
}

/* Footer bottom bar: copyright | socials | legal */
.footer-bottom { justify-content: space-between; }
.footer-bottom .sd-social { margin: 0 auto; }

@media (max-width: 991px) {
  .footer-bottom .sd-social { margin: 0; }
}

/* Hide the duplicate row on the smallest screens — the brand column already
   shows it. Delete these two lines if you want it in both places. */
@media (max-width: 575px) {
  .footer-bottom .sd-social--sm { display: none; }
}

/* ---------- Contact page ---------- */
.sd-contact .detail--social p {
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 14px;
}
.sd-contact .sd-social--contact { gap: 9px; }
.sd-contact .sd-social--contact .sd-social__link {
  background: var(--card-2);
}

@media (max-width: 480px) {
  .sd-social__link { width: 38px; height: 38px; }
}


/* ============================================================
   FAQ — SPLIT LAYOUT (accordion + image)
   Reusable on any page through sd_faq_split().
   Append this to the end of shravya.css. Nothing above changes:
   the accordion itself still uses the existing .faq-item /
   .faq-q / .faq-a rules in the FAQ block.
============================================================ */
.faq-split__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}

/* DOM order is image first, accordion second — which is exactly the
   mobile order. On desktop the order swaps so the accordion sits left. */
.faq-split__list  { order: 1; }
.faq-split__media { order: 2; }
.faq-split__grid.is-flipped .faq-split__list  { order: 2; }
.faq-split__grid.is-flipped .faq-split__media { order: 1; }

/* ---- Accordion column ---- */
.faq-split__list {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 6px 28px;
}
.faq-split__list .faq-item:last-child { border-bottom: 0; }
.faq-split__list .faq-q { font-size: 17px; padding: 20px 44px 20px 0; }
.faq-split__list .faq-a p { font-size: 15.5px; line-height: 1.7; }
.faq-split__list .faq-item.open > .faq-q { color: var(--mint); }

/* ---- Image column ---- */
.faq-split__media { position: sticky; top: calc(var(--header-h) + 24px); }
.faq-split__figure {
  margin: 0;
  overflow: hidden;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.faq-split__figure img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 4 / 3; object-fit: cover;
}
.faq-split__figure figcaption {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13px;
}
.faq-split__cta { margin-top: 18px; display: inline-flex; }

/* No image passed — the accordion just centres itself. */
.faq-split--solo .faq-split__grid { grid-template-columns: minmax(0, 860px); justify-content: center; }

/* ---- Mobile: heading, image, then accordion ---- */
@media (max-width: 960px) {
  .faq-split__grid,
  .faq-split__grid.is-flipped { grid-template-columns: 1fr; gap: 26px; }
  .faq-split__grid .faq-split__media,
  .faq-split__grid.is-flipped .faq-split__media { order: 1; position: static; }
  .faq-split__grid .faq-split__list,
  .faq-split__grid.is-flipped .faq-split__list { order: 2; }
  .faq-split__figure img { aspect-ratio: 16 / 9; }
}
@media (max-width: 620px) {
  .faq-split__list { padding: 4px 20px; }
  .faq-split__list .faq-q { font-size: 15.5px; padding: 18px 38px 18px 0; }
  .faq-split__list .faq-a p { font-size: 15px; }
}