/* ==========================================================
   Shree Ganesh Info Services — design system
   Layout follows the Engitech reference; colours come from the brand logo.
   Fonts: Montserrat (headings), Nunito Sans (body)
   Brand kit: docs/brand-kit.html
   ========================================================== */

/* ---------- Brand colours (fixed, from the logo) ---------- */
:root {
  --brand-amber: #fd9d02;   /* icon gradient start */
  --brand-orange: #df6502;  /* "GANESH" */
  --brand-red: #b20226;     /* icon gradient middle */
  --brand-maroon: #700111;  /* "SHREE" */
  --brand-deep: #450125;    /* icon gradient end */
  --brand-gold: #eca105;    /* swoosh, divider */
  --brand-navy: #04306a;    /* "INFO SERVICES" */
  --wa: #25d366;
  --container: 1200px;
  --radius: 4px;
  --brand-gradient: linear-gradient(135deg, var(--brand-amber) 0%, var(--brand-red) 55%, var(--brand-deep) 100%);
}

/* ---------- Light theme (default) ---------- */
:root,
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fdfbf8;            /* soft warm white — easier on the eyes than pure white */
  --surface: #ffffff;
  --surface-2: #f7f2ec;     /* warm sand for alternate sections */
  --line: #ebe3d8;
  --text: #545a66;
  --muted: #7d828d;
  --heading: #14213d;       /* navy ink */
  --primary: #c94a17;       /* burnt orange — white text passes contrast */
  --primary-hover: #a83b10;
  --primary-soft: rgba(201, 74, 23, .09);
  --accent: #b8440f;        /* sub-headings, links on light bg */
  --accent-2: #1d4f91;      /* brand navy-blue (Zoho, secondary) */
  --accent-2-soft: rgba(29, 79, 145, .08);
  --ink: #0b1730;           /* top bar, footer, dark sections */
  --ink-2: #13223f;         /* cards on ink */
  --on-ink: #b8c1d3;
  --header-bg: rgba(255, 255, 255, .96);
  --input-bg: #faf7f3;
  --shadow: 0 14px 40px rgba(20, 33, 61, .07);
  --shadow-lg: 0 24px 60px rgba(20, 33, 61, .12);
}

/* ---------- Dark theme ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1322;            /* deep navy, not pure black */
  --surface: #141c2f;
  --surface-2: #10182a;
  --line: rgba(255, 255, 255, .08);
  --text: #aeb6c6;
  --muted: #8a93a6;
  --heading: #eef1f6;
  --primary: #c94a17;
  --primary-hover: #dd5a22;
  --primary-soft: rgba(243, 140, 80, .12);
  --accent: #f39a5b;        /* soft orange — readable on dark */
  --accent-2: #86b4f2;
  --accent-2-soft: rgba(134, 180, 242, .12);
  --ink: #090f1c;
  --ink-2: #121b2f;
  --on-ink: #a7b0c2;
  --header-bg: rgba(20, 28, 47, .96);
  --input-bg: #0f1627;
  --shadow: 0 14px 40px rgba(0, 0, 0, .28);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .4);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 88px; } /* keep section titles visible below the sticky header */
body {
  margin: 0;
  font-family: "Nunito Sans", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s, color .3s;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s; }
b, strong { color: var(--heading); font-weight: 700; }
h1, h2, h3, h4, h5 {
  font-family: "Montserrat", sans-serif;
  color: var(--heading);
  margin: 0 0 16px;
  line-height: 1.25;
  font-weight: 800;
}
p { margin: 0 0 16px; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--brand-amber); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 110px 0; }
.bg-light { background: var(--surface-2); }
.bg-dark { background: var(--ink); color: var(--on-ink); }
.bg-dark h2, .bg-dark h3, .bg-dark h4 { color: #fff; }
.text-center { text-align: center; }

/* Sub-heading  "// ABOUT US" */
.sub-heading {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.bg-dark .sub-heading { color: #f7a964; }
.section-title { font-size: 42px; max-width: 640px; }
.text-center .section-title { margin-left: auto; margin-right: auto; max-width: 780px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 34px; border-radius: var(--radius);
  font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px;
  background: var(--primary); color: #fff;
  border: 2px solid var(--primary);
  cursor: pointer; transition: all .3s;
  box-shadow: 0 10px 24px -10px rgba(201, 74, 23, .55);
}
.btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.55); box-shadow: none; }
.btn-outline:hover { background: #fff; color: var(--ink); border-color: #fff; }
.link-more {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px;
  color: var(--accent);
}
.link-more svg { transition: transform .3s; }
.link-more:hover svg { transform: translateX(4px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: var(--on-ink); font-size: 14px; border-bottom: 2px solid transparent; border-image: var(--brand-gradient) 1; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 44px; }
.topbar .social { display: flex; gap: 6px; }
.topbar .social a {
  width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 50%; transition: background .25s, color .25s;
}
.topbar .social a:hover { background: rgba(255,255,255,.1); color: #fff; }
.topbar .contact-info { display: flex; gap: 28px; align-items: center; }
.topbar .contact-info a { display: inline-flex; align-items: center; gap: 8px; }
.topbar .contact-info a:hover { color: #fff; }
.topbar svg { width: 14px; height: 14px; fill: currentColor; }
.topbar-loc { display: inline-flex; align-items: center; gap: 8px; }
.topbar svg { color: var(--brand-gold); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s, background-color .3s;
}
.header.scrolled { box-shadow: 0 8px 30px rgba(11, 23, 48, .08); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 88px; gap: 20px; }
.logo { display: flex; align-items: center; flex: none; }
.logo-img { height: 66px; width: auto; }
.logo-for-dark { display: none; }
:root[data-theme="dark"] .header .logo-for-light { display: none; }
:root[data-theme="dark"] .header .logo-for-dark { display: block; }
.nav { display: flex; gap: 34px; }
.nav a {
  position: relative; font-weight: 700; color: var(--heading); padding: 32px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0;
  background: var(--brand-gradient); transition: width .3s;
}
.nav a:hover, .nav a.active { color: var(--accent); }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn { padding: 13px 22px; }
.theme-toggle {
  width: 42px; height: 42px; flex: none; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line);
  color: var(--heading); transition: background .25s, transform .25s;
}
.theme-toggle:hover { transform: rotate(-12deg); }
.theme-toggle svg { width: 19px; height: 19px; fill: currentColor; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; color: var(--brand-gold); }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.menu-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; height: 2px; background: var(--heading); margin: 6px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 680px; display: flex; align-items: center;
  color: #fff; overflow: hidden;
  background: var(--ink) url("https://images.unsplash.com/photo-1573164713988-8665fc963095?auto=format&fit=crop&w=1920&q=80") center/cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,23,48,.95) 0%, rgba(11,23,48,.82) 45%, rgba(69,1,37,.35) 100%);
}
.hero-shape { position: absolute; pointer-events: none; }
.hero-shape.s1 { right: -120px; top: -140px; width: 520px; height: 520px; background: linear-gradient(135deg, rgba(178,2,38,.5), rgba(178,2,38,0)); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.hero-shape.s2 { right: 18%; bottom: -80px; width: 260px; height: 260px; background: linear-gradient(135deg, rgba(253,157,2,.6), rgba(253,157,2,.08)); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 680px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 14px; margin-bottom: 20px;
  font-family: "Montserrat", sans-serif; font-size: 28px; font-weight: 700; color: #fff; letter-spacing: .3px;
}
.hero .eyebrow::before { content: ""; width: 46px; height: 3px; border-radius: 2px; background: var(--brand-gradient); }
.hero h1 { color: #fff; font-size: 64px; line-height: 1.08; text-transform: uppercase; margin-bottom: 24px; }
.hero h1 span {
  background: linear-gradient(90deg, #ffc04a, #f5862e);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { font-size: 18px; color: #d3d9e6; max-width: 560px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 46px; font-size: 14px; color: #c4cbda; }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges svg { width: 18px; height: 18px; fill: var(--brand-gold); }

/* ---------- Highlights bar (below hero) ---------- */
.highlights { background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); position: relative; z-index: 2; }
.highlights .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.hl-item { display: flex; align-items: center; gap: 16px; padding: 30px 22px; border-right: 1px solid var(--line); }
.hl-item:first-child { padding-left: 0; }
.hl-item:last-child { border-right: 0; }
.hl-icon {
  flex: none; width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--primary-soft);
}
.hl-icon.purple { background: var(--accent-2-soft); }
.hl-icon svg { width: 26px; height: 26px; fill: var(--accent); }
.hl-icon.purple svg { fill: var(--accent-2); }
.hl-item h4 { font-size: 16px; margin: 0 0 2px; }
.hl-item p { font-size: 14px; margin: 0; line-height: 1.45; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-list { margin: 4px 0 0; }
.about-list li {
  position: relative; padding: 11px 0 11px 38px; border-bottom: 1px dashed var(--line);
  font-size: 16px; line-height: 1.6;
}
.about-list li:last-child { border-bottom: 0; }
.about-list li::before {
  content: ""; position: absolute; left: 0; top: 13px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
}
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 36px; }
.about-point .icon { width: 50px; height: 50px; margin-bottom: 14px; }
.about-point .icon svg { width: 44px; height: 44px; fill: var(--accent); }
.about-point:nth-child(2) .icon svg { fill: var(--accent-2); }
.about-point h4 { font-size: 20px; margin-bottom: 8px; }
.about-point p { font-size: 15px; margin: 0; }
.about-media { position: relative; padding: 0 0 70px 60px; }
.about-media .img-main { box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/3.2; object-fit: cover; border-radius: var(--radius); }
.about-media .img-small {
  position: absolute; left: 0; bottom: 0; width: 46%; aspect-ratio: 1/1; object-fit: cover;
  border: 8px solid var(--surface); box-shadow: var(--shadow-lg);
}
.about-media .exp-badge {
  position: absolute; right: -20px; bottom: 30px;
  background: var(--brand-gradient); color: #fff; padding: 22px 26px; text-align: center;
  box-shadow: var(--shadow-lg); border-radius: var(--radius);
}
.about-media .exp-badge b { display: block; font-family: "Montserrat", sans-serif; font-size: 40px; line-height: 1; color: #fff; }
.about-media .exp-badge span { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }
.promise { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.promise-label { display: block; font-family: "Montserrat", sans-serif; font-weight: 800; color: var(--heading); font-size: 15px; margin-bottom: 10px; }
.values { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.values span {
  font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px;
  padding: 6px 14px; background: var(--primary-soft); color: var(--accent); border-radius: var(--radius);
}

/* ---------- Dark "why" cards ---------- */
.why-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 56px; }
.why-card {
  position: relative; background: var(--ink-2); padding: 46px 32px 36px; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.06); overflow: hidden; transition: transform .35s, border-color .35s;
}
.why-card::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--brand-gradient);
  transform: scaleX(0); transform-origin: left; transition: transform .4s;
}
.why-card:hover { transform: translateY(-8px); border-color: rgba(253,157,2,.25); }
.why-card:hover::before { transform: scaleX(1); }
.why-card .num {
  position: absolute; top: -8px; left: 16px;
  font-family: "Montserrat", sans-serif; font-size: 92px; font-weight: 900; line-height: 1;
  color: rgba(255,255,255,.04);
}
.why-card h3 { font-size: 21px; position: relative; }
.why-card p { font-size: 15px; color: var(--on-ink); position: relative; }
.why-card .icon { position: absolute; right: 24px; bottom: 24px; opacity: .6; }
.why-card .icon svg { width: 38px; height: 38px; fill: var(--brand-gold); }

/* ---------- Counters ---------- */
.counters-wrap { margin-top: -110px; position: relative; z-index: 3; padding-bottom: 110px; }
.counters { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.counter-box {
  position: relative; min-height: 270px; color: #fff; padding: 50px 46px; border-radius: var(--radius);
  background-size: cover; background-position: center; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.counter-box::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,23,48,.35), rgba(11,23,48,.88)); }
.counter-box::after { content: ""; position: absolute; right: 0; top: 0; width: 45%; height: 100%; clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%); opacity: .55; }
.counter-box.c1::after { background: linear-gradient(160deg, var(--brand-amber), transparent); }
.counter-box.c2::after { background: linear-gradient(160deg, #2a6fc9, transparent); }
.counter-box > * { position: relative; z-index: 2; }
.counter-box .count { font-family: "Montserrat", sans-serif; font-size: 58px; font-weight: 800; line-height: 1; }
.counter-box h4 { color: #fff; font-size: 22px; margin: 10px 0 6px; }
.counter-box p { color: #d3d9e6; margin: 0; max-width: 380px; }

/* ---------- Services ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 60px; }
.section-head p { max-width: 460px; margin: 0; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card {
  position: relative; background: var(--surface); padding: 42px 36px 36px; border-radius: var(--radius);
  border: 1px solid var(--line); transition: all .35s; overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: var(--brand-gradient); transition: width .4s;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); border-color: transparent; }
.service-card:hover::before { width: 100%; }
.service-card .icon {
  width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 24px;
  background: var(--primary-soft); border-radius: 12px; transition: background .35s;
}
.service-card .icon svg { width: 32px; height: 32px; fill: var(--accent); transition: fill .35s; }
.service-card:hover .icon { background: var(--primary); }
.service-card:hover .icon svg { fill: #fff; }
.service-card h3 { font-size: 21px; margin-bottom: 12px; }
.service-card p { font-size: 15px; }
.svc-tabs { display: inline-flex; background: var(--surface-2); padding: 6px; gap: 6px; flex: none; border-radius: var(--radius); border: 1px solid var(--line); }
.svc-tab {
  border: 0; cursor: pointer; padding: 13px 26px; background: transparent; border-radius: 3px;
  font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 14px; color: var(--heading);
  text-transform: uppercase; letter-spacing: .5px; transition: all .25s;
}
.svc-tab:hover { color: var(--accent); }
.svc-tab.active { background: var(--primary); color: #fff; }
.svc-tab[data-panel="zoho-panel"].active { background: #1d4f91; }
.svc-panel[hidden] { display: none; }
.services-grid.four { grid-template-columns: repeat(4, 1fr); gap: 24px; }
.services-grid.four .service-card { padding: 34px 26px 28px; }
.services-grid.four .service-card h3 { font-size: 18px; }
.services-grid.four .service-card p { font-size: 14.5px; margin: 0; }
.services-grid.zoho .service-card .icon { background: var(--accent-2-soft); }
.services-grid.zoho .service-card .icon svg { fill: var(--accent-2); }
.services-grid.zoho .service-card:hover .icon { background: #1d4f91; }
.services-grid.zoho .service-card:hover .icon svg { fill: #fff; }
.services-grid.zoho .service-card::before { background: linear-gradient(90deg, #1d4f91, #2a6fc9); }
.svc-panel { animation: svc-in .4s ease; }
@keyframes svc-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--brand-gradient); padding: 56px 0; color: #fff; }
.cta-band .container { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-band .sub-heading { color: #ffe1b8; }
.cta-band h2 { font-size: 32px; margin: 0; color: #fff; }
.cta-band .btn { background: #fff; color: var(--brand-maroon); border-color: #fff; box-shadow: 0 12px 28px -12px rgba(0,0,0,.45); }
.cta-band .btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; text-align: left; }
.feature {
  display: flex; align-items: center; gap: 16px; padding: 22px 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); transition: all .3s;
}
.feature:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.feature svg { flex: none; width: 26px; height: 26px; fill: var(--accent); }
.feature:nth-child(even) svg { fill: var(--accent-2); }
.feature span { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 15px; color: var(--heading); line-height: 1.35; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 60px; }
.step { text-align: center; position: relative; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 44px; left: calc(50% + 56px); right: calc(-50% + 56px);
  border-top: 2px dashed var(--line);
}
.step .circle {
  width: 90px; height: 90px; margin: 0 auto 24px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow);
  border: 1px solid var(--line);
  font-family: "Montserrat", sans-serif; font-size: 26px; font-weight: 800; color: var(--accent);
  transition: all .35s;
}
.step:hover .circle { background: var(--brand-gradient); color: #fff; border-color: transparent; }
.step h4 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 15px; margin: 0; }

/* ---------- Industries ---------- */
.tabs-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 40px 0 50px; }
.tab-btn {
  padding: 10px 24px; border: 0; background: transparent; cursor: pointer;
  font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 14px; color: var(--heading);
  text-transform: uppercase; letter-spacing: .5px; border-bottom: 3px solid transparent;
}
.tab-btn.active, .tab-btn:hover { color: var(--accent); border-color: var(--accent); }
.industry-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.industry {
  background: var(--surface); padding: 30px 14px; text-align: center; box-shadow: var(--shadow);
  border: 1px solid var(--line); border-radius: var(--radius); transition: transform .3s;
}
.industry:hover { transform: translateY(-6px); }
.industry svg { width: 40px; height: 40px; fill: var(--accent); margin: 0 auto 14px; }
.industry h5 { font-size: 15px; margin: 0; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.blog-card { background: var(--surface); box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .35s, box-shadow .35s; }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.blog-img { display: block; position: relative; overflow: hidden; aspect-ratio: 16/10; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.blog-card:hover .blog-img img { transform: scale(1.06); }
.blog-cat {
  position: absolute; left: 20px; bottom: 0; background: var(--primary); color: #fff;
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; padding: 6px 14px;
}
.blog-body { padding: 28px 30px 30px; }
.blog-meta { font-size: 13px; font-weight: 700; color: var(--muted); }
.blog-body h3, .blog-body h2 { font-size: 19px; margin: 8px 0 12px; line-height: 1.4; }
.blog-body h3 a:hover, .blog-body h2 a:hover { color: var(--accent); }
.blog-body p { font-size: 15px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 70px; align-items: start; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: 0; text-align: left; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 17px; color: var(--heading);
}
.faq-q .plus { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); position: relative; transition: background .3s; }
.faq-q .plus::before, .faq-q .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--heading); transform: translate(-50%,-50%); transition: transform .3s; }
.faq-q .plus::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq-item.open .plus { background: var(--primary); border-color: var(--primary); }
.faq-item.open .plus::before, .faq-item.open .plus::after { background: #fff; }
.faq-item.open .plus::after { transform: translate(-50%,-50%) rotate(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding-bottom: 22px; margin: 0; font-size: 15.5px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; }
.contact-info-list li { display: flex; gap: 18px; margin-bottom: 28px; }
.contact-info-list .ic {
  flex: none; width: 56px; height: 56px; display: grid; place-items: center;
  background: var(--primary-soft); border-radius: 50%;
}
.contact-info-list .ic svg { width: 22px; height: 22px; fill: var(--accent); }
.contact-info-list h5 { font-size: 17px; margin: 4px 0 2px; }
.contact-info-list a, .contact-info-list span { font-size: 15.5px; }
.contact-info-list a:hover { color: var(--accent); }
.contact-form { position: relative; overflow: hidden; background: var(--surface); padding: 46px; box-shadow: var(--shadow-lg); border-radius: var(--radius); border: 1px solid var(--line); }
.contact-form::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--brand-gradient); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 15px 18px; border: 1px solid var(--line); background: var(--input-bg); border-radius: var(--radius);
  font-family: inherit; font-size: 15px; color: var(--heading); outline: none; transition: border .25s, background .25s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); background: var(--surface); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 13px; margin: 14px 0 0; color: var(--muted); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.form-error { display: none; background: rgba(220,38,38,.1); color: #dc2626; padding: 14px 18px; margin-top: 16px; font-weight: 700; font-size: 15px; border-radius: var(--radius); }
.form-error a { text-decoration: underline; }
:root[data-theme="dark"] .form-error { color: #f87171; }
.form-success { display: none; background: rgba(37,211,102,.12); color: #16a34a; padding: 14px 18px; margin-top: 16px; font-weight: 700; font-size: 15px; border-radius: var(--radius); }

/* ---------- Blog pages ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #fff; padding: 70px 0 64px;
  background: linear-gradient(110deg, rgba(11,23,48,.97) 0%, rgba(11,23,48,.9) 55%, rgba(69,1,37,.85) 100%), var(--ink);
}
.page-hero::after {
  content: ""; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; pointer-events: none;
  background: linear-gradient(135deg, rgba(253,157,2,.35), rgba(253,157,2,0)); clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: 44px; max-width: 900px; margin: 14px 0 18px; }
.page-hero-sub { color: #d3d9e6; font-size: 18px; margin: 0; max-width: 640px; }
.breadcrumb { font-size: 14px; color: #aeb8cc; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb a { color: #ffd29a; font-weight: 700; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current] { color: #cfd6e4; }
.post-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14.5px; color: #c4cbda; align-items: center; }
.post-cat { background: var(--primary); color: #fff; font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; padding: 5px 12px; border-radius: var(--radius); }

.article-section { padding-top: 70px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 56px; align-items: start; }
.article, .article-side { min-width: 0; }
.article-cover { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); margin-bottom: 40px; }
.prose { font-size: 17px; line-height: 1.85; color: var(--text); }
.prose .lead { font-size: 19.5px; line-height: 1.75; color: var(--heading); }
.prose h2 { font-size: 28px; margin: 52px 0 16px; }
.prose h3 { font-size: 21px; margin: 32px 0 12px; }
.prose p { margin: 0 0 18px; }
.prose a { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 4px; }
.prose ul li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 9px; height: 9px; border-radius: 50%; background: var(--brand-gradient); }
.prose ol { counter-reset: step; }
.prose ol li { position: relative; padding-left: 44px; margin-bottom: 14px; counter-increment: step; }
.prose ol li::before {
  content: counter(step); position: absolute; left: 0; top: 1px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--primary-soft); color: var(--accent);
  font: 800 14px "Montserrat", sans-serif;
}
.prose .callout { background: var(--surface-2); border: 1px solid var(--line); border-left: 4px solid var(--brand-amber); border-radius: var(--radius); padding: 22px 26px; margin: 28px 0; }
.prose .callout strong { display: block; font-family: "Montserrat", sans-serif; font-size: 17px; margin-bottom: 8px; }
.prose .callout ul { margin: 0; }
.prose .note { background: var(--accent-2-soft); border-radius: var(--radius); padding: 14px 18px; font-size: 15.5px; }
.prose .source { font-size: 14.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 36px; }
.table-wrap { overflow-x: auto; margin: 22px 0 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.table-wrap th { background: var(--surface-2); color: var(--heading); text-align: left; font: 800 13px "Montserrat", sans-serif; text-transform: uppercase; letter-spacing: .4px; padding: 14px 16px; }
.table-wrap td { padding: 13px 16px; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.6; }
.table-wrap td:first-child { font-weight: 700; color: var(--heading); }
.table-wrap tbody tr:hover { background: var(--primary-soft); }

.article-faq { margin-top: 56px; }
.article-faq h2 { font-size: 28px; margin-bottom: 6px; }
.article-cta {
  margin-top: 50px; padding: 34px 36px; border-radius: var(--radius); color: #fff;
  background: var(--brand-gradient); display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.article-cta h3 { color: #fff; font-size: 22px; margin-bottom: 6px; }
.article-cta p { margin: 0; color: #ffe9d4; max-width: 440px; }
.article-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.article-cta .btn { background: #fff; color: var(--brand-maroon); border-color: #fff; box-shadow: none; }
.article-cta .btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-ghost-dark { background: transparent; color: var(--heading); border-color: var(--line); box-shadow: none; }
.btn-ghost-dark:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-ghost { background: transparent !important; color: #fff !important; border-color: rgba(255,255,255,.7) !important; }
.btn-ghost:hover { background: rgba(255,255,255,.12) !important; }

.article-side { position: sticky; top: 108px; display: grid; gap: 24px; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.side-card h4 { font-size: 17px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.toc ol { margin: 0; padding-left: 18px; color: var(--muted); }
.toc li { margin-bottom: 8px; font-size: 14.5px; line-height: 1.5; }
.toc a:hover { color: var(--accent); }
.side-contact { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.side-contact h4 { color: #fff; border-color: rgba(255,255,255,.1); }
.side-contact p { font-size: 15px; }
.side-phone { display: flex; align-items: center; gap: 10px; font: 800 19px "Montserrat", sans-serif; color: #fff; margin-bottom: 18px; }
.side-phone svg { width: 20px; height: 20px; fill: var(--brand-gold); }
.side-contact .btn { width: 100%; justify-content: center; padding: 14px 18px; }
.related li + li { margin-top: 14px; }
.related a { display: flex; gap: 12px; align-items: center; font-weight: 700; font-size: 14.5px; line-height: 1.45; color: var(--heading); }
.related a:hover { color: var(--accent); }
.related img { width: 72px; height: 54px; object-fit: cover; border-radius: var(--radius); flex: none; }

/* ---------- Footer (always dark) ---------- */
.footer { background: var(--ink); color: var(--on-ink); padding: 90px 0 0; border-top: 3px solid transparent; border-image: var(--brand-gradient) 1; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 50px; padding-bottom: 60px; }
.footer .logo-img { height: 70px; }
.footer p { font-size: 15px; margin-top: 22px; }
.footer h4 { color: #fff; font-size: 18px; margin-bottom: 22px; }
.footer-links li { margin-bottom: 10px; font-size: 15px; }
.footer-links a:hover { color: #f7a964; }
.footer .social { display: flex; gap: 10px; margin-top: 20px; }
.footer .social a {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,.07); transition: background .3s;
}
.footer .social a:hover { background: var(--primary); }
.footer .social svg { width: 15px; height: 15px; fill: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 26px 0; font-size: 14px; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 100;
  display: flex; align-items: center; gap: 12px;
}
.wa-float .wa-label {
  background: var(--surface); color: var(--heading); font-weight: 700; font-size: 14px;
  padding: 10px 16px; border-radius: 30px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  opacity: 0; transform: translateX(10px); transition: all .3s; pointer-events: none; white-space: nowrap;
}
.wa-float:hover .wa-label { opacity: 1; transform: none; }
.wa-btn {
  position: relative; width: 60px; height: 60px; border-radius: 50%; background: var(--wa);
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37,211,102,.4);
  transition: transform .3s;
}
.wa-btn:hover { transform: scale(1.08); }
.wa-btn svg { width: 32px; height: 32px; fill: #fff; position: relative; z-index: 1; }
.wa-btn::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--wa);
  animation: wa-pulse 2s infinite;
}
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }

.to-top {
  position: fixed; right: 32px; bottom: 100px; z-index: 99; width: 44px; height: 44px; border-radius: var(--radius);
  background: var(--primary); color: #fff; display: grid; place-items: center; border: 0; cursor: pointer;
  opacity: 0; visibility: hidden; transition: all .3s;
}
.to-top.show { opacity: 1; visibility: visible; }
.to-top svg { width: 16px; height: 16px; fill: #fff; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .wa-btn::before { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .why-cards { grid-template-columns: repeat(2, 1fr); }
  .services-grid.four { grid-template-columns: repeat(3, 1fr); }
  .highlights .container { grid-template-columns: 1fr 1fr; }
  .hl-item:nth-child(2) { border-right: 0; }
  .hl-item:nth-child(3) { padding-left: 0; }
  .hl-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .topbar-loc { display: none !important; }
  .industry-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav { gap: 22px; }
  .logo-img { height: 52px; }
}
@media (max-width: 960px) {
  .section { padding: 80px 0; }
  .topbar .contact-info a.hide-sm { display: none; }
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); flex-direction: column; gap: 0;
    box-shadow: 0 20px 40px rgba(11,23,48,.12); max-height: 0; overflow: hidden; transition: max-height .35s;
  }
  .nav.open { max-height: 480px; }
  .nav a { padding: 15px 20px; border-top: 1px solid var(--line); }
  .nav a::after { display: none; }
  .header-cta .btn { display: none; }
  .header .container { height: 76px; }
  .logo-img { height: 48px; }
  .hero { min-height: 600px; }
  .hero h1 { font-size: 46px; }
  .about-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .article-side { position: static; }
  .page-hero h1 { font-size: 34px; }
  .services-grid, .blog-grid, .services-grid.four { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .process { grid-template-columns: 1fr 1fr; row-gap: 50px; }
  .step::after { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-title { font-size: 34px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .topbar .social { display: none; }
  .topbar .container { justify-content: center; }
  .header .container { height: 68px; gap: 10px; }
  .logo-img { height: 42px; }
  .theme-toggle { width: 38px; height: 38px; }
  .hero { min-height: 560px; padding: 70px 0; }
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 16px; }
  .hero .eyebrow { font-size: 21px; gap: 10px; }
  .hero .eyebrow::before { width: 30px; }
  .section-title { font-size: 28px; }
  .why-cards, .services-grid, .blog-grid, .counters, .about-points, .form-row { grid-template-columns: 1fr; }
  .industry-grid, .feature-grid { grid-template-columns: 1fr 1fr; }
  .services-grid.four, .highlights .container { grid-template-columns: 1fr; }
  .hl-item { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .hl-item:last-child { border-bottom: 0; }
  .svc-tabs { width: 100%; }
  .svc-tab { flex: 1; padding: 12px 8px; font-size: 12.5px; }
  .feature { padding: 16px 14px; gap: 10px; }
  .feature span { font-size: 13.5px; }
  .process { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .about-media { padding: 0 0 50px 30px; }
  .about-media .exp-badge { right: 0; }
  .contact-form { padding: 28px 20px; }
  .cta-band h2 { font-size: 24px; }
  .page-hero { padding: 46px 0 42px; }
  .page-hero h1 { font-size: 27px; }
  .prose { font-size: 16px; }
  .prose .lead { font-size: 17.5px; }
  .prose h2, .article-faq h2 { font-size: 23px; margin-top: 40px; }
  .article-cta { padding: 26px 22px; }
  .article-cta-actions, .article-cta-actions .btn { width: 100%; justify-content: center; }
  .counter-box { padding: 36px 28px; min-height: 230px; }
  .wa-float { right: 16px; bottom: 16px; }
  .to-top { right: 24px; bottom: 90px; }
}
