/* ==========================================================================
   Sri Vel Kumaran Pile Foundation - site styles
   Classic white theme: navy ink, warm ivory surfaces, gold accents
   ========================================================================== */

:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --ink: #1d2733;
  --muted: #5b6878;
  --gold: #c39a45;
  --gold-deep: #8a6a1f;
  --gold-soft: #f6efdf;
  --ivory: #faf8f3;
  --line: #e9e3d6;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(11, 37, 69, .06);
  --shadow: 0 18px 40px -18px rgba(11, 37, 69, .22);
  --shadow-lg: 0 30px 60px -25px rgba(11, 37, 69, .35);
  --radius: 14px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1200px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-deep); }
h1, h2, h3, h4 { font-variant-numeric: lining-nums; font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.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; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }

.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 15px 28px; border-radius: 999px; border: 2px solid transparent;
  font: 600 15px/1 var(--sans); letter-spacing: .02em; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 12px 24px -12px rgba(11, 37, 69, .6); }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #d4ad5c; color: var(--navy); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn .icon { width: 1.1em; height: 1.1em; }

/* ---------- Section scaffolding ---------- */
.section { padding: 110px 0; position: relative; }
.section-ivory { background: var(--ivory); }
.section-head { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head p { color: var(--muted); font-size: 1.075rem; }
/* Pages whose section heading is the page h1 (FAQs, Contact) keep the h2 size */
.section-head h1 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 13px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 36px; height: 2px; background: var(--gold); }
.hero-intro .eyebrow::after, .section-head:not(.left) .eyebrow::after { content: ""; width: 36px; height: 2px; background: var(--gold); }
.lead { font-size: 1.15rem; color: var(--muted); }
.divider { width: 64px; height: 3px; background: var(--gold); border: 0; margin: 0 0 24px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--ivory); border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; }
.topbar-list { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.topbar-list li { display: flex; align-items: center; gap: 8px; }
.topbar-list .icon { color: var(--gold); width: 15px; height: 15px; }
.topbar a { color: var(--muted); }
.topbar a:hover { color: var(--navy); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s; }
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand-mark { width: 48px; height: 48px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font: 700 21px/1.1 var(--serif); letter-spacing: .005em; }
.brand-tag { font: 600 10.5px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); margin-top: 4px; }
.nav-menu { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-menu a:not(.btn) { position: relative; display: block; padding: 10px 14px; font-weight: 500; font-size: 15.5px; color: var(--ink); }
.nav-menu a:not(.btn)::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.nav-menu a:not(.btn):hover, .nav-menu a[aria-current="page"] { color: var(--navy); }
.nav-menu a:not(.btn):hover::after, .nav-menu a[aria-current="page"]::after { transform: scaleX(1); }
.nav-menu .btn { margin-left: 12px; padding: 12px 22px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 46px; height: 46px; align-items: center; justify-content: center; color: var(--navy); cursor: pointer; }
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-menu { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

/* ---------- Home hero ---------- */
.hero {
  --stats-overlap: 64px;
  position: relative; padding: 0 0 24px; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 60%, #fff 100%),
    linear-gradient(rgba(11,37,69,.035) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(11,37,69,.035) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--ivory);
}
.hero-intro { text-align: center; max-width: 900px; margin: 72px auto 0; }
.hero + .section { padding-top: 80px; }
.hero-intro h1 em { font-style: italic; color: var(--gold-deep); font-weight: 600; }
.hero-intro .lead { max-width: 680px; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Full-width banner: the machines are the first thing a visitor sees */
.slider { position: relative; overflow: hidden; background: var(--navy); width: 100%; aspect-ratio: 16 / 5; max-height: 680px; }
.hero .slider-btn { top: calc(50% - var(--stats-overlap) / 2); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--navy); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); transition: background .2s, transform .2s; z-index: 2; }
.slider-btn:hover { background: var(--gold); transform: translateY(-50%) scale(1.06); }
.slider-btn.prev { left: 18px; }
.slider-btn.next { right: 18px; }
.slider-dots { position: absolute; left: 0; right: 0; bottom: calc(var(--stats-overlap, 0px) + 10px); display: flex; gap: 0; justify-content: center; z-index: 2; }
/* 24px tap target around a 10px dot */
.slider-dots button { width: 24px; height: 24px; border-radius: 999px; border: 0; padding: 7px; background: rgba(255,255,255,.6); background-clip: content-box; cursor: pointer; transition: width .3s, background-color .3s; }
.slider-dots button.is-active { width: 44px; background-color: var(--gold); }

/* ---------- Stats ---------- */
.stats { position: relative; z-index: 3; margin: calc(-1 * var(--stats-overlap, 0px)) auto 0; width: calc(100% - 80px); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 3px solid var(--gold); }
.stat { padding: 34px 20px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 28%; bottom: 28%; width: 1px; background: var(--line); }
.stat-num { font: 700 clamp(2rem, 3.4vw, 2.8rem)/1 var(--serif); color: var(--navy); }
.stat-num sup { font-size: .55em; color: var(--gold); top: -.7em; margin-left: 2px; }
.stat-label { margin-top: 10px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stats-standalone { margin-top: 0; width: 100%; }

/* ---------- About split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.framed { position: relative; padding: 0 0 28px 28px; }
.framed::before { content: ""; position: absolute; left: 0; bottom: 0; width: 70%; height: 75%; border: 2px solid var(--gold); border-radius: var(--radius); }
.framed img.crop-center { aspect-ratio: 8 / 7; object-position: center; }
.framed img { position: relative; border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.framed .badge { position: absolute; right: -18px; top: -22px; background: var(--navy); color: #fff; padding: 20px 24px; border-radius: 12px; box-shadow: var(--shadow); text-align: center; }
.framed .badge strong { display: block; font: 700 2.4rem/1 var(--serif); color: var(--gold); }
.framed .badge span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.check-list { list-style: none; padding: 0; margin: 26px 0 34px; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; }
.check-list .tick { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-deep); display: grid; place-items: center; margin-top: 2px; }
.check-list .tick .icon { width: 14px; height: 14px; stroke-width: 3; }
.check-list.two-col { grid-template-columns: 1fr 1fr; gap: 14px 30px; }

/* ---------- Service cards ---------- */
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px; }
.service-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .35s, box-shadow .35s; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card .media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.service-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.service-card:hover .media img { transform: scale(1.05); }
.service-card .num { position: relative; z-index: 2; margin: -76px 0 18px; width: 60px; height: 60px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; border: 4px solid #fff; }
.service-card .num .icon { width: 26px; height: 26px; }
.service-card .body { padding: 46px 32px 34px; display: flex; flex-direction: column; flex: 1; }
.service-card .body p { color: var(--muted); }
.service-card .check-list { margin: 8px 0 26px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); margin-top: auto; }
.link-arrow .icon { transition: transform .25s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 28px; transition: border-color .3s, transform .3s, box-shadow .3s; }
.feature:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { width: 60px; height: 60px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-deep); display: grid; place-items: center; margin-bottom: 22px; }
.feature-icon .icon { width: 28px; height: 28px; stroke-width: 1.7; }
.feature h3 { font-size: 1.2rem; }
.feature p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; counter-reset: step; position: relative; }
.process::before { content: ""; position: absolute; top: 34px; left: 12%; right: 12%; border-top: 2px dashed var(--line); }
.step { text-align: center; position: relative; padding: 0 8px; }
.step-num { width: 68px; height: 68px; margin: 0 auto 22px; border-radius: 50%; background: #fff; border: 2px solid var(--gold); color: var(--navy); display: grid; place-items: center; font: 700 1.5rem/1 var(--serif); position: relative; box-shadow: 0 0 0 8px var(--ivory); }
.step h3 { font-size: 1.15rem; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Videos ---------- */
.video-track { display: flex; gap: 22px; overflow-x: auto; scroll-behavior: smooth; padding: 6px 2px 24px; scrollbar-width: thin; scrollbar-color: var(--gold) var(--line); }
.video-track.is-snapping { scroll-snap-type: x mandatory; }
.video-track::-webkit-scrollbar { height: 6px; }
.video-track::-webkit-scrollbar-track { background: var(--line); border-radius: 99px; }
.video-track::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 99px; }
.container-wide { max-width: 1360px; }
/* Exactly four portrait videos in view on desktop (three on tablets) */
.video-card { flex: 0 0 calc((100% - 3 * 22px) / 4); scroll-snap-align: start; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy); box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: box-shadow .3s; }
.video-card:hover { box-shadow: var(--shadow); }
.video-card video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #0d1c30; }
.scroller-nav { display: flex; justify-content: center; gap: 14px; margin-top: 18px; }
.scroller-nav .slider-btn { position: static; transform: none; border: 1px solid var(--line); }
.scroller-nav .slider-btn:hover { transform: scale(1.06); }

/* ---------- Clients ---------- */
.clients { display: flex; justify-content: center; align-items: center; gap: 28px; flex-wrap: wrap; }
.client { width: 240px; height: 140px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; padding: 22px; transition: box-shadow .3s, border-color .3s; }
.client:hover { box-shadow: var(--shadow); border-color: var(--gold); }
.client img { max-height: 92px; width: auto; object-fit: contain; }
/* MP and Tata files are 150x150 squares with the logo in a thin band; crop the empty space so they match L&T visually */
.client img.logo-band { max-height: none; width: 190px; height: 92px; object-fit: cover; }
.client img.logo-band.slim { height: 58px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--gold-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 70px 0; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 2px solid rgba(195, 154, 69, .35); }
.cta-band::before { content: ""; position: absolute; right: 40px; top: 40px; width: 160px; height: 160px; border-radius: 50%; border: 2px solid rgba(195, 154, 69, .25); }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; position: relative; z-index: 1; flex-wrap: wrap; }
.cta-inner h2 { margin: 0 0 8px; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta-inner p { margin: 0; color: var(--muted); }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Page banner ---------- */
.page-banner { position: relative; background: var(--navy); }
.page-banner img { width: 100%; aspect-ratio: 1920 / 560; min-height: 200px; max-height: 420px; object-fit: cover; }
.breadcrumb { background: #fff; border-bottom: 1px solid var(--line); font-size: 14px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 16px 0; display: flex; gap: 10px; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: var(--gold); }
.breadcrumb [aria-current] { color: var(--navy); font-weight: 600; }

/* ---------- About page ---------- */
.prose p { color: var(--muted); font-size: 1.05rem; }
.prose p:first-of-type { color: var(--ink); font-size: 1.15rem; }
.h1-page { font-size: clamp(2rem, 4vw, 2.9rem); }
.stats-band { background: linear-gradient(#fff 50%, var(--ivory) 50%); }
.not-found { text-align: center; padding: 120px 0 140px; background: var(--ivory); }
.not-found .lead { max-width: 560px; margin: 0 auto 34px; }
.vision { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 64px 70px; text-align: center; box-shadow: var(--shadow); max-width: 960px; margin: 0 auto; }
.vision::before { content: ""; position: absolute; inset: 12px; border: 1px solid var(--gold); border-radius: 12px; opacity: .45; pointer-events: none; }
.vision .quote-mark { font: 700 110px/0.6 var(--serif); color: var(--gold); display: block; height: 50px; }
.vision blockquote { margin: 0; font: italic 500 clamp(1.3rem, 2.4vw, 1.75rem)/1.55 var(--serif); color: var(--navy); }
.mission-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.mission { background: #fff; border-radius: var(--radius); padding: 42px 34px; border: 1px solid var(--line); position: relative; overflow: hidden; transition: transform .3s, box-shadow .3s; }
.mission::after { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.mission:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.mission:hover::after { transform: scaleX(1); }
.mission .idx { font: 700 3rem/1 var(--serif); color: var(--gold-soft); position: absolute; right: 26px; top: 24px; -webkit-text-stroke: 1px var(--gold); }
.mission p { color: var(--muted); margin: 0; }

/* ---------- Services page ---------- */
.pile-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-top: 50px; }
.pile-type { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; font-weight: 600; color: var(--navy); transition: border-color .25s, box-shadow .25s, transform .25s; }
.pile-type:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.pile-type span { font: 700 1rem/1 var(--serif); color: var(--gold-deep); background: var(--gold-soft); border-radius: 8px; width: 38px; height: 38px; display: grid; place-items: center; flex: none; }
.well-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 50px; }
.well { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 30px; position: relative; transition: box-shadow .3s, transform .3s; }
.well:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.well .code { display: inline-block; font: 600 12px/1 var(--sans); letter-spacing: .16em; color: var(--gold-deep); background: var(--gold-soft); padding: 8px 12px; border-radius: 999px; margin-bottom: 18px; }
.well h3 { font-size: 1.3rem; }
.well p { color: var(--muted); margin: 0; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 1fr 340px; gap: 50px; align-items: start; }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group > h2 { font-size: 1.7rem; display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.faq-group > h2 .icon { color: var(--gold); width: 28px; height: 28px; }
.faq { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 14px; transition: border-color .25s, box-shadow .25s; }
.faq[open] { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 64px 22px 26px; font: 600 1.08rem/1.45 var(--serif); color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-deep); display: grid; place-items: center; font: 400 22px/1 var(--sans); transition: transform .3s, background .3s; }
.faq[open] summary::after { content: "−"; background: var(--gold); color: var(--navy); }
.faq-body { padding: 0 26px 24px; color: var(--muted); }
.faq-body ul, .faq-body ol { padding-left: 1.3em; margin: 0 0 1em; }
.faq-body li { margin-bottom: .4em; }
.faq-body li::marker { color: var(--gold-deep); }
.table-wrap { overflow-x: auto; margin: 0 0 1em; border: 1px solid var(--line); border-radius: 10px; }
.faq-body table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 14.5px; }
.faq-body th, .faq-body td { border-bottom: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
.faq-body th { background: var(--ivory); color: var(--navy); font-weight: 600; }
.faq-body tr:last-child td { border-bottom: 0; }
.aside-card { position: sticky; top: calc(var(--header-h) + 24px); background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; }
.aside-card h3 { font-size: 1.4rem; }
.aside-card p { color: var(--muted); font-size: 15px; }
.aside-card .btn { width: 100%; margin-top: 10px; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: 0; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line); }
.contact-form { padding: 56px 54px; }
.contact-form h1, .contact-form h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.contact-form > p { color: var(--muted); margin-bottom: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); margin-bottom: 8px; }
.field label .opt { color: var(--muted); font-weight: 500; text-transform: none; letter-spacing: 0; }
.field input, .field textarea, .field select {
  width: 100%; font: 400 15.5px/1.5 var(--sans); color: var(--ink);
  background: var(--ivory); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px;
  transition: border-color .2s, background .2s, box-shadow .2s; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%230b2545' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(195, 154, 69, .15); }
.form-actions { margin-top: 26px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-status { font-size: 15px; font-weight: 500; }
.form-status.ok { color: #1f7a4a; }
.form-status.err { color: #b42318; }
.btn[disabled] { opacity: .65; pointer-events: none; }
.hp { display: none !important; }

.contact-info { background: var(--ivory); padding: 56px 46px; border-left: 1px solid var(--line); position: relative; }
.contact-info::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: var(--gold); }
.contact-info h3 { font-size: 1.5rem; margin-bottom: 30px; }
.info-item { display: flex; gap: 18px; margin-bottom: 28px; }
.info-item .ic { width: 52px; height: 52px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--gold-deep); display: grid; place-items: center; flex: none; }
.info-item h4 { font: 600 12.5px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.info-item p, .info-item a { margin: 0; color: var(--navy); font-weight: 500; }
.info-item a:hover { color: var(--gold-deep); }

.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-bottom: 70px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 30px; text-align: center; transition: transform .3s, box-shadow .3s, border-color .3s; }
.info-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--gold); }
.info-card .ic { width: 66px; height: 66px; margin: 0 auto 20px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-deep); display: grid; place-items: center; }
.info-card .ic .icon { width: 28px; height: 28px; }
.info-card h2 { font-size: 1.25rem; }
.info-card p { color: var(--muted); margin: 0; }
.info-card a { color: var(--navy); font-weight: 600; }
.contact-wrap.single { grid-template-columns: 1fr; max-width: 880px; margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ivory); border-top: 1px solid var(--line); padding: 80px 0 0; color: var(--muted); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 50px; padding-bottom: 60px; }
.site-footer h2 { font: 600 13px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--navy); margin-bottom: 22px; position: relative; padding-bottom: 14px; }
.site-footer h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--gold); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--navy); }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.footer-contact li { display: flex; gap: 12px; }
.footer-contact .icon { color: var(--gold); margin-top: 4px; width: 17px; height: 17px; }
.footer-contact a { color: var(--muted); }
.footer-contact a:hover { color: var(--navy); }
.footer-about p { margin: 20px 0 0; max-width: 340px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 24px 0; font-size: 14px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Floating WhatsApp chat button (all widths) - turns WhatsApp green on hover */
.whatsapp-float { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px)); z-index: 91; width: 58px; height: 58px; border-radius: 50%; background: var(--ivory); color: var(--navy); border: 1px solid var(--line); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(11, 37, 69, .3); transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .3s ease; }
.whatsapp-float .icon { width: 27px; height: 27px; stroke-width: 1.6; }
.whatsapp-float:hover, .whatsapp-float:focus-visible { background: #25d366; border-color: #25d366; color: #fff; transform: translateY(-2px); }
@media (min-width: 961px) { .whatsapp-float { right: 32px; bottom: 32px; } }

/* Floating call button (mobile) - sits directly above the WhatsApp button */
.call-fab { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(max(18px, env(safe-area-inset-bottom, 0px)) + 70px); z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: var(--navy); color: var(--gold); display: none; place-items: center; box-shadow: var(--shadow-lg); }
.call-fab .icon { width: 24px; height: 24px; }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .1s; }
.js .reveal.d2 { transition-delay: .2s; }
.js .reveal.d3 { transition-delay: .3s; }

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

/* ---------- Responsive ---------- */
/* Small laptops and landscape tablets */
@media (max-width: 1100px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { gap: 56px; }
  .faq-layout { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .slider { min-height: 360px; }
}

/* Tablets and phones: collapsed menu, stacked text/photo splits */
@media (max-width: 960px) {
  :root { --header-h: 74px; }
  .topbar-list li.hide-md { display: none; }
  /* The (now empty) nav wrapper still takes a flex slot; put the button visually last so it sits in the right corner */
  .nav-toggle { display: inline-flex; order: 3; }
  .nav-menu {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 10px 24px 24px;
    display: none;
  }
  .nav-open .nav-menu { display: flex; }
  .nav-menu a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav-menu a:not(.btn)::after { display: none; }
  .nav-menu .btn { margin: 18px 0 0; }
  .section { padding: 80px 0; }
  .slider { aspect-ratio: 16 / 9; min-height: 0; }
  .split, .contact-wrap { grid-template-columns: 1fr; }
  .split { gap: 48px; }
  .split.reverse > :first-child { order: 0; }
  .split > .framed { width: 100%; max-width: 560px; justify-self: center; }
  .framed .badge { right: 12px; }
  .video-card { flex-basis: calc((100% - 2 * 22px) / 3); }
  .contact-info { border-left: 0; border-top: 1px solid var(--line); }
  .stats { width: calc(100% - 32px); }
  .stat { padding: 26px 10px; }
  .stat-label { font-size: 11.5px; letter-spacing: .07em; }
  .mission-grid { grid-template-columns: 1fr; gap: 18px; }
  .mission { display: grid; grid-template-columns: 60px minmax(0, 1fr); column-gap: 20px; align-items: start; padding: 30px 28px; }
  .mission .feature-icon { grid-row: span 2; margin-bottom: 0; }
  .mission h3 { grid-column: 2; margin-bottom: .3em; padding-right: 64px; }
  .mission p { grid-column: 2; padding-right: 64px; }
  .info-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .info-card { padding: 28px 16px; }
  .info-card a[href^="mailto:"] { font-size: 13.5px; }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
  .process::before { display: none; }
  .clients { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 760px; margin: 0 auto; }
  .client { width: auto; height: 120px; padding: 16px; }
  .client img { max-width: 100%; }
  .client img.logo-band { width: min(190px, 100%); height: auto; aspect-ratio: 190 / 92; }
  .client img.logo-band.slim { aspect-ratio: 190 / 58; }
  .call-fab { display: grid; }
}

/* Tablets only: keep two- and three-up layouts that would be cramped on phones */
@media (min-width: 641px) and (max-width: 960px) {
  .cards-2 { gap: 22px; }
  .service-card .body { padding: 46px 24px 28px; }
  .well-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .well { padding: 28px 20px; }
  .contact-info { display: grid; grid-template-columns: 1.25fr .85fr 1.3fr; gap: 20px; padding: 40px 32px; }
  .info-item a { overflow-wrap: anywhere; }
  .contact-info h3 { grid-column: 1 / -1; margin-bottom: 0; }
  .info-item { flex-direction: column; gap: 12px; margin-bottom: 0; }
}

/* Phones */
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .container { padding: 0 16px; }
  .topbar { display: none; }
  .eyebrow { letter-spacing: .14em; }
  .section-head:not(.left) .eyebrow::before, .section-head:not(.left) .eyebrow::after { display: none; }
  .hero-intro .eyebrow { font-size: 11px; letter-spacing: .1em; gap: 8px; }
  .hero-intro .eyebrow::before, .hero-intro .eyebrow::after { width: 18px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-name { font-size: 18px; }
  .brand-tag { font-size: 9px; letter-spacing: .14em; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }

  .hero { --stats-overlap: 30px; padding-bottom: 16px; }
  .hero + .section { padding-top: 56px; }
  .hero-intro { margin-top: 44px; }
  .slider { aspect-ratio: 4 / 3; }
  .slider-btn { width: 38px; height: 38px; }
  .slider-btn.prev { left: 10px; }
  .slider-btn.next { right: 10px; }
  .stats { grid-template-columns: repeat(2, 1fr); width: calc(100% - 16px); }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat { padding: 22px 8px; }
  .stat-label { font-size: 10.5px; letter-spacing: .06em; }

  .cards-2, .well-grid, .info-cards, .form-grid, .check-list.two-col { grid-template-columns: 1fr; }
  .framed { padding: 0 0 18px 18px; }
  .framed .badge { right: 10px; top: -16px; padding: 14px 16px; }
  .framed .badge strong { font-size: 1.8rem; }

  /* Feature, mission and process blocks become compact icon-left rows */
  .features { grid-template-columns: 1fr; gap: 14px; }
  .feature { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 16px; padding: 22px 20px; }
  .feature .feature-icon { width: 52px; height: 52px; margin-bottom: 0; grid-row: span 2; }
  .feature h3 { font-size: 1.1rem; margin: 2px 0 .25em; }
  .feature p { grid-column: 2; }
  .mission { grid-template-columns: 52px minmax(0, 1fr); column-gap: 16px; padding: 24px 20px; }
  .mission .feature-icon { width: 52px; height: 52px; }
  .mission .idx { font-size: 1.7rem; right: 16px; top: 16px; }
  .mission h3 { font-size: 1.15rem; padding-right: 36px; margin-top: 4px; }
  .mission p { padding-right: 0; }
  .process { grid-template-columns: 1fr; row-gap: 26px; }
  .process::before { display: block; left: 27px; right: auto; top: 12px; bottom: 12px; border-top: 0; border-left: 2px dashed var(--line); }
  .step { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 18px; text-align: left; padding: 0; }
  .step-num { width: 56px; height: 56px; margin: 0; font-size: 1.2rem; grid-row: span 2; box-shadow: 0 0 0 6px var(--ivory); }
  .step h3 { margin: 6px 0 .2em; }
  .step p { grid-column: 2; margin: 0; }

  .info-cards { gap: 12px; margin-bottom: 40px; }
  .info-card { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 16px; text-align: left; padding: 20px; }
  .info-card .ic { width: 52px; height: 52px; margin: 0; grid-row: span 2; }
  .info-card .ic .icon { width: 22px; height: 22px; }
  .info-card h2 { font-size: 1.1rem; margin: 2px 0 .25em; }
  .info-card p { grid-column: 2; }
  .video-card { flex-basis: 72%; }
  .pile-types { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 36px; }
  .pile-type { padding: 12px; gap: 10px; font-size: 13.5px; line-height: 1.35; }
  .pile-type span { width: 30px; height: 30px; font-size: .85rem; }
  .clients { gap: 10px; }
  .client { height: 86px; padding: 10px; }
  .cta-band { padding: 54px 0; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1 1 100%; }
  .contact-form, .contact-info { padding: 36px 22px; }
  .vision { padding: 46px 26px; }
  .faq summary { padding: 18px 56px 18px 18px; font-size: 1rem; }
  .faq-body { padding: 0 18px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-about, .footer-grid > :last-child { grid-column: 1 / -1; }
  .whatsapp-float, .call-fab { width: 52px; height: 52px; }
  .call-fab { bottom: calc(max(18px, env(safe-area-inset-bottom, 0px)) + 62px); }
}

/* Small phones */
@media (max-width: 420px) {
  .hero-intro .eyebrow { font-size: 10px; letter-spacing: .06em; gap: 6px; }
  .hero-intro .eyebrow::before, .hero-intro .eyebrow::after { width: 14px; }
  .hero-actions .btn { width: 100%; }
  .brand-name { font-size: 17px; }
}
/* Very small phones (320px) */
@media (max-width: 359px) {
  .info-card { grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; padding: 18px 14px; }
  .info-card .ic { width: 44px; height: 44px; }
  .brand { gap: 10px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 15.5px; }
  .brand-tag { font-size: 8px; letter-spacing: .12em; }
}

/* Playfair defaults to old-style figures; use lining numerals for numbers set with the font shorthand */
.stat-num, .step-num, .framed .badge strong, .mission .idx, .pile-type span, .faq summary { font-variant-numeric: lining-nums; }
