/* ==========================================================================
   AESPL — Allumera Engineering Solutions Pvt. Ltd.
   Public website stylesheet (Bootstrap 5 + custom design system)
   ========================================================================== */

:root {
  --navy: #0B2545;
  --navy-deep: #07182D;
  --blue: #164E80;
  --accent: #FF9D00;
  --accent-dark: #E08A00;
  --accent-soft: #FFF3DE;
  --white: #FFFFFF;
  --bg-light: #F4F7FB;
  --text: #344256;
  --muted: #5A6B80;
  --border: #DCE4ED;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(11, 37, 69, .06);
  --shadow: 0 14px 40px rgba(11, 37, 69, .10);
  --shadow-lg: 0 30px 60px rgba(7, 24, 45, .22);
  --font-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --header-h: 84px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--text);
  --bs-body-bg: var(--white);
  --bs-link-color-rgb: 22, 78, 128;
  --bs-link-hover-color-rgb: 11, 37, 69;
  --bs-border-color: var(--border);
  --bs-primary-rgb: 11, 37, 69;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { font-family: var(--font-body); color: var(--text); background: var(--white); font-size: 1.0625rem; line-height: 1.65; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: var(--font-head); color: var(--navy); font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
img { max-width: 100%; height: auto; }
::selection { background: var(--accent); color: var(--navy-deep); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 2000; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); transition: top .2s; }
.skip-link:focus { top: 12px; color: #fff; }
main:focus { outline: none; }

/* ---------------------------------------------------------------- Buttons */
.btn { font-weight: 600; border-radius: var(--radius-sm); padding: .7rem 1.35rem; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s; }
.btn-lg { padding: .9rem 1.7rem; font-size: 1.02rem; min-height: 52px; }
.btn-sm { min-height: 38px; padding: .45rem .9rem; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-accent { background: var(--accent); color: var(--navy-deep); border: 1.5px solid var(--accent); }
.btn-accent:hover, .btn-accent:focus-visible { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--navy-deep); box-shadow: 0 8px 20px rgba(255, 157, 0, .35); }
.btn-navy { background: var(--navy); color: #fff; border: 1.5px solid var(--navy); }
.btn-navy:hover, .btn-navy:focus-visible { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(11, 37, 69, .25); }
.btn-outline-navy { border: 1.5px solid var(--navy); color: var(--navy); background: transparent; }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.btn-outline-light { border-width: 1.5px; }

/* ---------------------------------------------------------------- Typography helpers */
.eyebrow { font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: .85rem; display: inline-flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
.eyebrow-light { color: var(--accent); }
.text-center .eyebrow, .section-head.text-center .eyebrow { justify-content: center; }
.section-title { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.65rem); margin-bottom: 1.1rem; }
.section-intro, .lead-text { font-size: 1.1rem; color: var(--muted); }
.lead-text p:last-child { margin-bottom: 0; }
.section-head { max-width: 720px; margin: 0 auto 3rem; }
.section-head-split { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.prose { font-size: 1.06rem; }
.prose h2 { font-size: 1.5rem; margin: 2rem 0 .8rem; }
.prose h3 { font-size: 1.2rem; margin: 1.6rem 0 .6rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .35rem; }
.prose li::marker { color: var(--accent); }
.req { color: #B03A2E; }

/* ---------------------------------------------------------------- Sections */
.section { padding: clamp(4rem, 3rem + 4vw, 6.75rem) 0; }
.section-alt { background: var(--bg-light); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.topbar { background: var(--navy-deep); color: #C9D5E3; font-size: .875rem; padding: .5rem 0; position: relative; z-index: 1031; }
.topbar p { color: #DDE6F0; }
.topbar a { color: #DDE6F0; text-decoration: none; }
.topbar a:hover { color: var(--accent); }
.topbar-link { color: var(--accent) !important; font-weight: 600; margin-left: .5rem; white-space: nowrap; }
.topbar-contact { gap: 1.5rem; }
.topbar-contact i { color: var(--accent); margin-right: .3rem; }

.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .97); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid transparent; transition: box-shadow .3s var(--ease), border-color .3s; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: linear-gradient(90deg, var(--accent) 0, var(--accent) 120px, transparent 120px); opacity: 0; transition: opacity .3s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(11, 37, 69, .09); border-color: var(--border); }
.site-header.is-scrolled::after { opacity: 1; }
.site-header .navbar { min-height: var(--header-h); padding: .6rem 0; transition: min-height .3s var(--ease); }
.site-header.is-scrolled .navbar { min-height: 70px; }

.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; margin-right: 1.5rem; }
.brand-logo { height: 52px; width: auto; transition: height .3s var(--ease); }
.site-header.is-scrolled .brand-logo { height: 44px; }
.brand-mark { width: 48px; height: 48px; border-radius: 12px; background: var(--navy); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; box-shadow: inset 0 -3px 0 var(--accent); flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-head); color: var(--navy); font-size: 1.35rem; letter-spacing: .02em; }
.brand-text small { color: var(--muted); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; margin-top: .25rem; font-weight: 600; }

.site-header .nav-link { color: var(--text); font-weight: 600; font-size: .98rem; padding: .55rem .9rem !important; position: relative; border-radius: var(--radius-sm); }
.site-header .nav-link:hover, .site-header .nav-link:focus-visible { color: var(--navy); }
.site-header .nav-link.active { color: var(--navy); }
.site-header .dropdown-toggle::after { border: 0; content: "\F282"; font-family: "bootstrap-icons"; font-size: .7rem; vertical-align: middle; margin-left: .3rem; transition: transform .2s; }
.site-header .dropdown-toggle.show::after { transform: rotate(180deg); }
.header-ctas { display: flex; gap: .6rem; align-items: center; flex-shrink: 0; }
.header-ctas .btn { padding: .6rem 1.1rem; white-space: nowrap; }
.site-header .nav-link, .site-header .navbar-nav { white-space: nowrap; flex-wrap: nowrap; }
.site-header .navbar > .container { flex-wrap: nowrap; }
.cta-short { display: none; }

/* Compact desktop header (1200–1439px): keep everything on a single line */
@media (min-width: 1200px) and (max-width: 1439.98px) {
  .site-header .navbar > .container { max-width: 100%; padding-left: 24px; padding-right: 24px; }
  .brand { margin-right: 1rem; }
  .brand-text small { display: none; }
  .brand-mark { width: 44px; height: 44px; font-size: .95rem; }
  .site-header .nav-link { padding: .5rem .6rem !important; font-size: .94rem; }
  .site-header .nav-link::after { left: .6rem !important; right: .6rem !important; }
  .header-ctas { gap: .45rem; }
  .header-ctas .btn { padding: .55rem .85rem; font-size: .92rem; }
  .cta-full { display: none; }
  .cta-short { display: inline; }
}

.dropdown-menu { border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: .6rem; margin-top: .6rem !important; }
.dropdown-menu-wide { min-width: 340px; }
.dropdown-item { border-radius: var(--radius-sm); padding: .6rem .8rem; font-weight: 500; color: var(--text); display: flex; align-items: center; gap: .6rem; white-space: normal; }
.dropdown-item i { color: var(--accent-dark); font-size: 1.05rem; width: 22px; text-align: center; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--bg-light); color: var(--navy); }
.dropdown-header { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }

.navbar-toggler { border: 1px solid var(--border); border-radius: var(--radius-sm); width: 46px; height: 46px; padding: 0; font-size: 1.6rem; color: var(--navy); display: inline-flex; align-items: center; justify-content: center; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(255, 157, 0, .4); }

@media (min-width: 1200px) {
  .site-header .offcanvas { position: static; visibility: visible !important; transform: none !important; background: transparent; border: 0; flex-grow: 1; display: flex; }
  .site-header .offcanvas-header { display: none; }
  .site-header .offcanvas-body { display: flex; align-items: center; padding: 0; flex-grow: 1; }
  .site-header .nav-link::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .2rem; height: 2px; background: var(--accent); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
  .site-header .nav-link.dropdown-toggle::after { position: static; height: auto; background: none; transform: none; display: inline-block; }
  .site-header .nav-link:hover::after, .site-header .nav-link.active::after { transform: scaleX(1); }
  .site-header .nav-link.dropdown-toggle.active { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
  .site-header .dropdown:hover > .dropdown-menu { display: block; }
  .site-header .dropdown > .dropdown-menu { top: 100%; margin-top: 0 !important; }
  .site-header .dropdown > .dropdown-menu::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
}
@media (max-width: 1199.98px) {
  /* backdrop-filter would make the header the containing block of the fixed offcanvas,
     trapping the menu inside the header bar — so it is desktop-only. */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  /* Lift the header above the offcanvas backdrop (1040) while the menu is open. */
  .site-header.menu-open { z-index: 1050; }
  .site-header .offcanvas { width: min(340px, 86vw); max-width: none; }
  .site-header .offcanvas-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2rem; }
  .site-header .navbar-nav .dropdown-menu { position: static; float: none; min-width: 0; width: 100%; }
  .site-header .navbar > .container { padding-left: 16px; padding-right: 16px; }
  .brand { margin-right: .75rem; min-width: 0; }
  .brand-logo { max-width: 100%; }
  .site-header .navbar-nav { gap: .15rem; }
  .site-header .nav-link { padding: .8rem .9rem !important; font-size: 1.05rem; }
  .site-header .nav-link.active { background: var(--bg-light); box-shadow: inset 3px 0 0 var(--accent); }
  .site-header .dropdown-menu { border: 0; box-shadow: none; padding-left: .8rem; margin-top: 0 !important; }
  .header-ctas { flex-direction: column; align-items: stretch; margin-top: 1.5rem; }
  .header-ctas .btn { width: 100%; }
  .brand-text small { display: none; }
}

/* ==========================================================================
   HERO SLIDER
   ========================================================================== */
.hero { position: relative; background: var(--navy-deep); }
/* Hero fills exactly one screen below the announcement bar + header */
.hero .carousel-item, .hero-static { height: calc(100vh - var(--chrome-h, 126px)); height: calc(100svh - var(--chrome-h, 126px)); min-height: 520px; max-height: 1000px; position: relative; overflow: hidden; }
.hero-static { background: var(--navy); }
.hero-bg { position: absolute; inset: -12% 0; will-change: transform; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 7s ease-out; }
.carousel-item.active .hero-bg img { transform: scale(1.12); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(7, 24, 45, .92) 0%, rgba(11, 37, 69, .78) 45%, rgba(11, 37, 69, .35) 100%); }
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.hero-copy { max-width: 760px; color: #fff; padding: 1.5rem 0 3.5rem; }
@media (max-height: 760px) and (min-width: 768px) {
  .hero .eyebrow { margin-bottom: .5rem; }
  .hero-title { margin-bottom: .8rem; }
  .hero-text { margin-bottom: 1.4rem; font-size: 1.05rem; }
}
.hero-title { color: #fff; font-size: clamp(2rem, min(1.4rem + 3.6vw, 7.2vh), 4rem); line-height: 1.08; margin-bottom: 1.25rem; }
.hero-text { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: #D6E0EC; max-width: 600px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero .carousel-item .hero-copy > * { opacity: 0; transform: translateY(24px); }
.hero .carousel-item.active .hero-copy > * { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.hero .carousel-item.active .hero-copy > *:nth-child(2) { transition-delay: .12s; }
.hero .carousel-item.active .hero-copy > *:nth-child(3) { transition-delay: .24s; }
.hero .carousel-item.active .hero-copy > *:nth-child(4) { transition-delay: .36s; }
.hero-indicators { position: absolute; left: 0; right: 0; bottom: 2.2rem; z-index: 3; }
.hero .carousel-indicators { position: static; justify-content: flex-start; margin: 0; padding: 0; }
.hero .carousel-indicators [data-bs-target] { width: 22px; height: 4px; border-radius: 3px; border: 0; margin: 0 6px 0 0; opacity: .45; background: #fff; transition: width .3s, opacity .3s, background-color .3s; }
.hero .carousel-indicators .active { width: 44px; opacity: 1; background: var(--accent); }
.hero .carousel-control-prev, .hero .carousel-control-next { width: auto; top: auto; bottom: 1.5rem; opacity: 1; }
.hero .carousel-control-prev { left: auto; right: calc(1.5rem + 60px); }
.hero .carousel-control-next { right: 1.5rem; }
.carousel-arrow { width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .5); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: background-color .2s, border-color .2s, color .2s; }
.carousel-control-prev:hover .carousel-arrow, .carousel-control-next:hover .carousel-arrow, .carousel-control-prev:focus-visible .carousel-arrow, .carousel-control-next:focus-visible .carousel-arrow { background: var(--accent); border-color: var(--accent); color: var(--navy-deep); }

/* ---------------------------------------------------------------- Marquee */
.marquee { background: var(--accent); color: var(--navy-deep); overflow: hidden; padding: 1rem 0; position: relative; z-index: 2; }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-list { display: flex; margin: 0; padding: 0; list-style: none; }
.marquee-list li { font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; white-space: nowrap; padding: 0 1.6rem; display: flex; align-items: center; gap: 3.2rem; }
.marquee-list li::after { content: "\F586"; font-family: "bootstrap-icons"; font-size: .8rem; opacity: .7; margin-left: 1.6rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- Media frames / parallax */
.media-frame { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-light); box-shadow: var(--shadow); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-tall { aspect-ratio: 4 / 5; }
.media-sticky { aspect-ratio: 4 / 5; }
[data-parallax-mode="inner"] img { transform: scale(1.18); will-change: transform; }
.sticky-media { position: sticky; top: calc(var(--header-h) + 24px); }
.parallax-section { position: relative; overflow: hidden; isolation: isolate; }
.parallax-bg { position: absolute; inset: -18% 0; z-index: -2; will-change: transform; }
.parallax-bg img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------- Intro */
.highlight-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin: 1.75rem 0 2rem; }
.highlight-grid li { display: flex; gap: .6rem; align-items: center; padding: .9rem 1rem; border: 1px solid var(--border); border-radius: 10px; color: var(--navy); font-weight: 600; background: #fff; transition: border-color .2s, box-shadow .2s; }
.highlight-grid li:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.highlight-grid i { color: var(--accent-dark); font-size: 1.2rem; }

/* ---------------------------------------------------------------- Service cards */
.service-card { position: relative; height: 100%; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.9rem 1.7rem; display: flex; flex-direction: column; gap: .9rem; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; overflow: hidden; }
.service-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--accent-soft); color: #A35F00; display: inline-flex; align-items: center; justify-content: center; font-size: 1.55rem; transition: background-color .3s, color .3s; flex-shrink: 0; }
.service-card:hover .service-icon { background: var(--navy); color: var(--accent); }
.service-card h3 { font-size: 1.15rem; margin: 0; line-height: 1.35; }
.service-card h3 a { color: var(--navy); text-decoration: none; }
.service-card p { margin: 0; font-size: .97rem; color: var(--muted); }
.card-link { margin-top: auto; padding-top: .3rem; font-weight: 600; color: var(--blue); font-size: .95rem; }
.card-link i { transition: transform .2s; display: inline-block; }
.service-card:hover .card-link i, .project-card:hover .card-link i { transform: translateX(4px); }

/* ---------------------------------------------------------------- Why list */
.why-list { margin: 1.5rem 0 0; }
.why-list li { display: flex; gap: 1.25rem; padding: 1.4rem 0; border-bottom: 1px solid var(--border); }
.why-list li:first-child { padding-top: .5rem; }
.why-num { font-family: var(--font-head); font-weight: 700; color: var(--accent-dark); font-size: 1.4rem; min-width: 44px; }
.why-list h3 { font-size: 1.18rem; margin-bottom: .3rem; }
.why-list p { margin: 0; color: var(--muted); }

/* ---------------------------------------------------------------- Projects */
.search-box { position: relative; display: flex; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); min-height: 50px; padding: 0 1rem; min-width: min(320px, 100%); transition: border-color .2s, box-shadow .2s; }
.search-box:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22, 78, 128, .12); }
.search-box i { color: var(--muted); margin-right: .6rem; }
.search-box input { border: 0; outline: none; flex: 1; font: inherit; background: transparent; min-width: 0; }
.project-card { position: relative; height: 100%; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-light); }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project-card:hover .project-media img { transform: scale(1.24); }
.img-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--border); }
.project-status { position: absolute; top: 14px; left: 14px; background: var(--accent); color: var(--navy-deep); font-size: .75rem; font-weight: 700; padding: .3rem .75rem; border-radius: 30px; z-index: 2; }
.project-status.status-ongoing { background: #fff; color: var(--navy); }
.project-status.status-upcoming { background: var(--navy); color: #fff; }
.project-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.project-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .85rem; font-weight: 600; color: var(--blue); margin: 0; }
.project-body h3 { font-size: 1.15rem; margin: 0; }
.project-body h3 a { color: var(--navy); text-decoration: none; }
.project-body p { margin: 0; color: var(--muted); font-size: .96rem; }
.project-manager { font-size: .88rem !important; }

/* ---------------------------------------------------------------- Quality */
.quality { padding: clamp(5rem, 4rem + 5vw, 8.5rem) 0; color: #fff; }
.quality-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 24, 45, .95), rgba(11, 37, 69, .82)); }
.quality-box { max-width: 760px; }
.quality-text { font-size: 1.15rem; color: #D6E0EC; margin-bottom: 2rem; }

/* ---------------------------------------------------------------- Industries */
.pill-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin: 2rem 0 0; }
.pill-list li { display: inline-flex; align-items: center; gap: .55rem; padding: .8rem 1.3rem; border: 1px solid var(--border); border-radius: 40px; color: var(--navy); font-weight: 600; background: #fff; transition: border-color .2s, background-color .2s, transform .2s; }
.pill-list li:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }
.pill-list i { color: var(--accent-dark); }

/* ---------------------------------------------------------------- Testimonials */
.testimonial { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; height: 100%; margin: 0; display: flex; flex-direction: column; }
.testimonial > i { font-size: 2.4rem; color: var(--accent); line-height: 1; }
.testimonial blockquote { flex: 1; margin: .6rem 0 1.2rem; }
.testimonial figcaption strong { display: block; color: var(--navy); }
.testimonial figcaption span { font-size: .9rem; color: var(--muted); }

/* ---------------------------------------------------------------- CTA */
.cta-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: clamp(2rem, 1.5rem + 3vw, 3.5rem); display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.cta-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--accent); }
.cta-card > div:first-child { max-width: 640px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.split-cta { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }

/* ---------------------------------------------------------------- Page hero */
.page-hero { padding: clamp(4.5rem, 3.5rem + 4vw, 7rem) 0 clamp(3.5rem, 3rem + 3vw, 5.5rem); color: #fff; }
.page-hero-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(7, 24, 45, .94), rgba(11, 37, 69, .78)); }
.page-title { color: #fff; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); margin-bottom: .6rem; max-width: 900px; }
.page-subtitle { font-size: 1.15rem; color: #D6E0EC; max-width: 720px; margin: 0; }
.page-hero .breadcrumb { margin-bottom: 1rem; font-size: .9rem; }
.page-hero .breadcrumb a { color: #C9D5E3; text-decoration: none; }
.page-hero .breadcrumb a:hover { color: var(--accent); }
.page-hero .breadcrumb-item.active { color: var(--accent); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: #8EA3BC; }
.legal-hero { background: var(--bg-light); padding: 3.5rem 0 2.5rem; border-bottom: 1px solid var(--border); }
.legal-hero .page-title { color: var(--navy); }

/* ---------------------------------------------------------------- Cards & sidebars */
.mv-card, .value-card, .side-card, .form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; height: 100%; }
.mv-card h2 { font-size: 1.4rem; margin: 1rem 0 .6rem; }
.value-card { border-top: 3px solid var(--accent); }
.value-card h3 { font-size: 1.1rem; }
.value-card p { margin: 0; color: var(--muted); }
.form-card { box-shadow: var(--shadow-sm); }
.sidebar-sticky { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 1.25rem; }
.side-card { height: auto; }
.side-card-navy { background: var(--navy); border-color: var(--navy); color: #D6E0EC; }
.side-card-navy h2 { color: #fff; }
.side-links li a { display: flex; gap: .6rem; padding: .55rem 0; text-decoration: none; color: var(--text); border-bottom: 1px dashed var(--border); }
.side-links li a:hover { color: var(--navy); }
.side-links i { color: var(--accent-dark); }
.feature-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .75rem; }
.feature-list li { display: flex; gap: .6rem; padding: .9rem 1rem; background: var(--bg-light); border-radius: 10px; font-weight: 500; color: var(--navy); }
.feature-list i { color: var(--accent-dark); font-size: 1.15rem; }
.detail-list dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.detail-list dd { color: var(--navy); font-weight: 600; margin-bottom: 1rem; }
.faq .accordion-item { border: 1px solid var(--border); border-radius: 10px !important; margin-bottom: .75rem; overflow: hidden; }
.faq .accordion-button { font-weight: 600; color: var(--navy); font-family: var(--font-body); font-size: 1.02rem; }
.faq .accordion-button:not(.collapsed) { background: var(--bg-light); color: var(--navy); box-shadow: none; }
.faq .accordion-button:focus { box-shadow: 0 0 0 3px rgba(255, 157, 0, .35); }

/* ---------------------------------------------------------------- Filters / empty states */
.filter-bar { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.filter-bar .form-select { width: auto; min-height: 50px; }
.result-count { color: var(--muted); font-size: .95rem; margin-bottom: 1.5rem; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-state i { font-size: 3rem; color: var(--border); display: block; margin-bottom: .5rem; }
.filter-pills { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 2.5rem; }
.filter-pill { border: 1px solid var(--border); background: #fff; color: var(--text); border-radius: 40px; padding: .55rem 1.1rem; font-weight: 600; min-height: 44px; transition: all .2s; }
.filter-pill span { font-size: .8rem; color: var(--muted); margin-left: .25rem; }
.filter-pill:hover { border-color: var(--navy); }
.filter-pill.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter-pill.active span { color: var(--accent); }

/* ---------------------------------------------------------------- Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; }
.gallery-item { margin: 0; transition: opacity .3s, transform .3s; }
.gallery-item.is-hidden { display: none; }
.gallery-thumb { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-light); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-thumb:hover img, .gallery-thumb:focus-visible img { transform: scale(1.06); }
.gallery-zoom { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(7, 24, 45, .45); color: #fff; font-size: 1.6rem; opacity: 0; transition: opacity .3s; }
.gallery-thumb:hover .gallery-zoom, .gallery-thumb:focus-visible .gallery-zoom { opacity: 1; }
.gallery-item figcaption { padding: .7rem .2rem 0; display: flex; justify-content: space-between; gap: .5rem; font-size: .92rem; }
.gallery-item figcaption strong { color: var(--navy); }
.gallery-item figcaption span { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.lightbox .modal-content { background: transparent; border: 0; position: relative; }
.lightbox figure { text-align: center; }
.lightbox img { max-height: 82vh; width: auto; max-width: 100%; border-radius: 10px; }
.lightbox figcaption { color: #fff; margin-top: .8rem; }
.lightbox-close { position: absolute; top: -44px; right: 0; z-index: 3; opacity: 1; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--navy); font-size: 1.3rem; }
.lightbox-nav:hover { background: var(--accent); }
.lightbox-nav.prev { left: 8px; }
.lightbox-nav.next { right: 8px; }
.modal-backdrop.show { opacity: .75; }

/* ---------------------------------------------------------------- Team */
.team-card { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; height: 100%; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.team-photo { aspect-ratio: 6 / 7; background: linear-gradient(160deg, var(--bg-light), #E3EAF2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-initials { font-family: var(--font-head); font-size: 3rem; font-weight: 700; color: var(--navy); width: 120px; height: 120px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 -4px 0 var(--accent), var(--shadow-sm); }
.team-body { padding: 1.25rem 1.4rem 1.5rem; }
.team-body h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.team-body h3 a { color: var(--navy); text-decoration: none; }
.team-role { color: var(--accent-dark); font-weight: 700; font-size: .9rem; margin-bottom: .3rem; }
.team-qual { font-size: .85rem; color: var(--muted); margin-bottom: .4rem; }
.team-bio { font-size: .93rem; color: var(--muted); margin: .5rem 0 0; }
.team-social { position: relative; z-index: 2; color: var(--blue); font-size: 1.2rem; }

/* ---------------------------------------------------------------- Contact */
.contact-list li { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--border); }
.contact-list strong { color: var(--navy); }
.contact-list p { margin: .15rem 0 0; }
.contact-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: #A35F00; display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.map-section iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---------------------------------------------------------------- Forms & modals */
.form-label { font-weight: 600; color: var(--navy); font-size: .93rem; margin-bottom: .35rem; }
.form-control, .form-select { min-height: 48px; border-color: var(--border); border-radius: var(--radius-sm); font-size: 1rem; }
textarea.form-control { min-height: auto; }
.form-control:focus, .form-select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22, 78, 128, .14); }
.form-check-input { width: 1.15em; height: 1.15em; }
.form-check-input:checked { background-color: var(--navy); border-color: var(--navy); }
.form-check-input:focus { box-shadow: 0 0 0 3px rgba(255, 157, 0, .35); }
.choice-group { display: flex; gap: .75rem; flex-wrap: wrap; }
.choice { flex: 1 1 200px; display: flex; gap: .6rem; align-items: center; min-height: 48px; padding: 0 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-weight: 500; cursor: pointer; transition: border-color .2s, background-color .2s; }
.choice:has(input:checked) { border: 1.5px solid var(--accent); background: #FFF8EC; }
.choice input { margin: 0; }
legend.form-label { float: none; font-size: .93rem; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { padding: .9rem 1rem; border-radius: 10px; background: #FDECEA; color: #8E2A20; margin-bottom: 1rem; font-weight: 500; }
.form-success { display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem 1.2rem; background: #EAF6EE; color: #1E5B34; border-radius: 12px; margin-top: 1.25rem; }
.form-success i { font-size: 1.5rem; color: #23824A; }
.form-actions { display: flex; justify-content: flex-end; margin-top: 1.5rem; }
.was-validated .form-control:valid, .was-validated .form-select:valid { border-color: var(--border); background-image: none; padding-right: .75rem; }
.inquiry-modal .modal-content { border: 0; border-radius: 18px; box-shadow: var(--shadow-lg); }
.inquiry-modal .modal-header { padding: 1.4rem 1.75rem; border-bottom: 1px solid var(--border); align-items: flex-start; }
.inquiry-modal .modal-title { font-size: 1.5rem; margin: 0; }
.inquiry-modal .modal-body { padding: 1.5rem 1.75rem 1.75rem; }
.modal-icon { width: 50px; height: 50px; border-radius: 12px; background: var(--accent-soft); color: #A35F00; display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
@media (max-width: 575.98px) { .inquiry-modal .modal-content { border-radius: 0; } .form-actions .btn { width: 100%; } }

/* ---------------------------------------------------------------- Floating actions */
.floating-actions { position: fixed; right: 20px; bottom: 20px; z-index: 1040; display: flex; flex-direction: column; gap: .7rem; align-items: flex-end; }
.fab { height: 58px; min-width: 58px; border-radius: 30px; border: 0; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-size: 1.45rem; box-shadow: 0 12px 28px rgba(7, 24, 45, .28); transition: transform .2s var(--ease), box-shadow .2s; text-decoration: none; }
.fab:hover { transform: translateY(-3px) scale(1.03); }
.fab-contact { background: var(--accent); color: var(--navy-deep); padding: 0 1.25rem 0 1.1rem; }
.fab-label { font-size: .95rem; font-weight: 700; }
.fab-whatsapp { background: #25D366; color: #fff; width: 60px; height: 60px; min-width: 60px; padding: 0; border-radius: 50%; font-size: 2rem; box-shadow: 0 10px 26px rgba(37, 211, 102, .45); }
.fab-whatsapp:hover { color: #fff; background: #1EBE5A; }
.fab-whatsapp .bi-whatsapp { line-height: 1; display: inline-flex; }
.fab-whatsapp::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); animation: waPulse 2.4s infinite; pointer-events: none; }
.fab-whatsapp[aria-expanded="true"]::before { animation: none; }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); } 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
.wa-badge { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; border-radius: 10px; background: #E53935; color: #fff; font-size: .72rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.fab-whatsapp[aria-expanded="true"] .wa-badge { display: none; }

/* WhatsApp chat widget */
/* Fixed above the two floating buttons (≈ 20 + 58 + 11 + 60 + 11px) and always fully on screen. */
.wa-chat { position: fixed; right: 20px; bottom: 162px; width: min(360px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 178px)); max-height: min(560px, calc(100svh - 178px)); background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(7, 24, 45, .3); overflow: hidden; display: flex; flex-direction: column; transform-origin: bottom right; animation: waIn .25s var(--ease); }
.wa-chat[hidden] { display: none; }
@keyframes waIn { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
.wa-chat-head { background: #075E54; color: #fff; padding: .85rem 1rem; display: flex; align-items: center; gap: .75rem; }
.wa-avatar { width: 42px; height: 42px; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; color: #1F9D55; font-size: 1.4rem; }
.wa-avatar img { width: 36px; height: 36px; object-fit: contain; }
.wa-chat-title { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.wa-chat-title strong { font-size: 1rem; }
.wa-chat-title small { font-size: .76rem; opacity: .85; display: inline-flex; align-items: center; gap: .35rem; }
.wa-dot { width: 8px; height: 8px; border-radius: 50%; background: #25D366; display: inline-block; }
.wa-close { margin-left: auto; background: transparent; border: 0; color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 1rem; }
.wa-close:hover, .wa-close:focus-visible { background: rgba(255, 255, 255, .15); }
.wa-chat-body { flex: 1; overflow-y: auto; padding: 1rem; background: #ECE5DD; display: flex; flex-direction: column; gap: .5rem; min-height: 0; }
.wa-msg { max-width: 85%; padding: .55rem .8rem; border-radius: 10px; font-size: .92rem; line-height: 1.45; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); white-space: pre-line; animation: waIn .2s var(--ease); }
.wa-msg.bot { background: #fff; color: var(--text); align-self: flex-start; border-top-left-radius: 2px; }
.wa-msg.user { background: #DCF8C6; color: #1b2a1b; align-self: flex-end; border-top-right-radius: 2px; }
.wa-msg.wa-note { font-size: .78rem; color: var(--muted); background: #FFF8E1; }
.wa-typing { display: inline-flex; gap: 4px; padding: .7rem .9rem; }
.wa-typing span { width: 7px; height: 7px; border-radius: 50%; background: #9aa5ad; animation: waDot 1s infinite; }
.wa-typing span:nth-child(2) { animation-delay: .15s; }
.wa-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes waDot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.wa-options { display: flex; flex-wrap: wrap; gap: .4rem; align-self: flex-start; max-width: 100%; }
.wa-option { background: #fff; border: 1px solid #1F9D55; color: #0f6b3a; border-radius: 18px; padding: .4rem .8rem; font-size: .84rem; font-weight: 600; text-align: left; }
.wa-option:hover, .wa-option:focus-visible { background: #1F9D55; color: #fff; }
.wa-go { align-self: flex-start; display: inline-flex; align-items: center; gap: .45rem; background: #1F9D55; color: #fff; border-radius: 20px; padding: .5rem 1rem; font-weight: 700; font-size: .9rem; text-decoration: none; }
.wa-go:hover { background: #178046; color: #fff; }
.wa-chat-input { display: flex; gap: .5rem; padding: .6rem; border-top: 1px solid var(--border); background: #F7F7F7; }
.wa-chat-input input { flex: 1; min-width: 0; border: 1px solid var(--border); border-radius: 22px; padding: .55rem .95rem; font-size: .95rem; }
.wa-chat-input input:focus { outline: 0; border-color: #1F9D55; box-shadow: 0 0 0 3px rgba(31, 157, 85, .2); }
.wa-chat-input button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #1F9D55; color: #fff; flex-shrink: 0; }
.wa-chat-head, .wa-chat-input { flex-shrink: 0; }
@media (max-width: 575.98px) {
  .floating-actions { right: 16px; bottom: 16px; }
  .wa-chat { right: 16px; bottom: 158px; max-height: calc(100vh - 174px); max-height: calc(100svh - 174px); }
}
.fab-contact::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(255, 157, 0, .55); animation: pulse 2.4s infinite; pointer-events: none; }
.fab { position: relative; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 157, 0, .5); } 70% { box-shadow: 0 0 0 16px rgba(255, 157, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 157, 0, 0); } }
@media (max-width: 575.98px) { .fab-label { display: none; } .fab-contact { padding: 0; width: 58px; } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { position: relative; background: var(--navy-deep); color: #AEBDD0; padding: 5rem 0 0; font-size: .97rem; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--accent) 0 30%, var(--blue) 30% 100%); }
.site-footer::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .025); pointer-events: none; }
.site-footer a { color: #C9D5E3; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--accent); }
.site-footer p { color: #AEBDD0; }
.brand-footer .brand-text strong { color: #fff; }
.brand-footer .brand-text small { color: #8EA3BC; }
.footer-logo-bg { background: #fff; padding: .55rem .8rem; border-radius: 10px; display: inline-flex; }
.footer-tagline { color: var(--accent) !important; font-weight: 600; font-size: .92rem; }
.footer-title { color: #fff; font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 1.3rem; position: relative; padding-bottom: .7rem; }
.footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; background: var(--accent); }
.footer-links li { margin-bottom: .65rem; }
.footer-links a { display: inline-flex; align-items: center; gap: .4rem; }
.footer-links a::before { content: "\F285"; font-family: "bootstrap-icons"; font-size: .65rem; color: var(--accent); transition: transform .2s; }
.footer-links a:hover::before { transform: translateX(3px); }
.footer-contact li { display: flex; gap: .75rem; margin-bottom: .9rem; align-items: flex-start; }
.footer-contact i { color: var(--accent); margin-top: .15rem; }
.social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; }
.social a:hover { background: var(--accent); border-color: var(--accent); color: var(--navy-deep); }
.footer-bottom { margin-top: 3.5rem; padding: 1.5rem 0; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .88rem; }
.footer-bottom p { margin: 0; }

/* ---------------------------------------------------------------- Error page */
.error-page { padding: 7rem 0; }
.error-code { font-family: var(--font-head); font-weight: 700; font-size: clamp(5rem, 3rem + 10vw, 9rem); line-height: 1; color: var(--accent); margin-bottom: .5rem; }

/* ---------------------------------------------------------------- Pagination */
.pagination .page-link { border-radius: var(--radius-sm) !important; margin: 0 .2rem; min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; color: var(--navy); border-color: var(--border); }
.pagination .active .page-link { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ==========================================================================
   SCROLL REVEAL (enabled by JS only, so content is visible without JS)
   ========================================================================== */
.js-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
.js-reveal .reveal-delay-1 { transition-delay: .1s; }
.js-reveal .reveal-delay-2 { transition-delay: .2s; }
.js-reveal .reveal-delay-3 { transition-delay: .3s; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 991.98px) {
  .sticky-media, .sidebar-sticky { position: static; }
  .media-sticky { aspect-ratio: 16 / 10; }
  .media-tall { aspect-ratio: 4 / 3; }
  .hero .carousel-control-prev, .hero .carousel-control-next { display: none; }
}
@media (max-width: 575.98px) {
  body { font-size: 1rem; }
  .topbar { font-size: .8rem; padding: .4rem 0; text-align: center; }
  .topbar .container { justify-content: center !important; }
  .topbar-link { margin-left: .35rem; }
  .highlight-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .cta-actions .btn, .split-cta .btn { width: 100%; }
  .filter-bar .form-select, .filter-bar .btn { width: 100%; }
  .gallery-item figcaption { flex-direction: column; }
}

/* ---------------------------------------------------------------- Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee-list[aria-hidden] { display: none; }
  .marquee-list { flex-wrap: wrap; justify-content: center; }
  [data-parallax-mode="inner"] img, .carousel-item.active .hero-bg img, .hero-bg img { transform: none !important; }
}

@media print {
  .topbar, .site-header, .floating-actions, .site-footer, .modal, .hero .carousel-control-prev, .hero .carousel-control-next { display: none !important; }
}

/* ==========================================================================
   COMPANY CONTENT COMPONENTS
   ========================================================================== */
/* Brand emblem */
.brand-emblem { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; transition: width .3s var(--ease), height .3s var(--ease); }
.site-header.is-scrolled .brand-emblem { width: 48px; height: 48px; }
.footer-emblem { width: 60px; height: 60px; border-radius: 14px; background: #fff; display: inline-flex; align-items: center; justify-content: center; padding: 4px; flex-shrink: 0; }
.footer-emblem img { width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 1200px) and (max-width: 1439.98px) { .brand-emblem { width: 48px; height: 48px; } }

/* Client logo marquee */
.clients-section .section-head { margin-bottom: 2.5rem; }
.logo-marquee { display: flex; flex-direction: column; gap: 1.25rem; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.logo-track-reverse { animation-direction: reverse; animation-duration: 56s; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-list { display: flex; gap: 1.25rem; padding: 0 .625rem; margin: 0; list-style: none; }
.logo-item { width: 190px; height: 104px; flex-shrink: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; padding: 14px 18px; transition: border-color .25s, box-shadow .25s, transform .25s; }
.logo-item a { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
.logo-item img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: transform .3s var(--ease); }
.logo-item:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.logo-item:hover img { transform: scale(1.06); }
.section-alt .logo-item { background: #fff; }

/* Major work cards */
.work-card { position: relative; height: 100%; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; gap: .75rem; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; overflow: hidden; }
.work-card::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--accent-soft); opacity: .6; transition: transform .4s var(--ease); }
.work-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.work-card:hover::after { transform: scale(1.4); }
.work-top { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.work-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--navy); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.work-chip { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .04em; padding: .3rem .7rem; border-radius: 30px; background: var(--accent-soft); color: #8A5300; white-space: nowrap; }
.work-card h3 { font-size: 1.08rem; line-height: 1.4; margin: .25rem 0 0; position: relative; z-index: 1; }
.work-customer { margin: auto 0 0; color: var(--muted); font-size: .93rem; position: relative; z-index: 1; }
.work-customer i { color: var(--blue); }

/* Works table */
.works-table-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.works-table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.works-table thead th { background: var(--navy); color: #fff; font-weight: 600; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; padding: 1rem 1.1rem; text-align: left; position: sticky; top: 0; }
.works-table td { padding: .95rem 1.1rem; border-top: 1px solid #EEF2F7; vertical-align: top; }
.works-table tbody tr { transition: background-color .15s; }
.works-table tbody tr:nth-child(even) { background: #FAFBFD; }
.works-table tbody tr:hover { background: #FFF8EC; }
.works-table td strong { color: var(--navy); font-weight: 600; }
.works-table .col-num { width: 56px; color: var(--muted); font-weight: 600; }
.works-table tr.is-hidden { display: none; }
@media (max-width: 767.98px) {
  .works-table thead { display: none; }
  .works-table, .works-table tbody, .works-table tr, .works-table td { display: block; width: 100%; }
  .works-table tr { padding: 1rem 1.1rem; border-top: 1px solid var(--border); }
  .works-table tr:first-child { border-top: 0; }
  .works-table td { border: 0; padding: .2rem 0; display: flex; gap: .75rem; justify-content: space-between; text-align: right; }
  .works-table td::before { content: attr(data-label); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; text-align: left; flex-shrink: 0; }
  .works-table td.col-num { display: none; }
  .works-table td.text-end { text-align: right !important; }
}

/* Stats band */
.stats-band { background: var(--navy); color: #fff; padding: 2.5rem 0; position: relative; }
.stats-band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.stats-grid li { display: flex; flex-direction: column; gap: .3rem; padding-left: 1.2rem; border-left: 2px solid rgba(255, 255, 255, .15); }
.stats-grid strong { font-family: var(--font-head); font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); color: var(--accent); line-height: 1; }
.stats-grid span { color: #C9D5E3; font-size: .95rem; }
@media (max-width: 767.98px) { .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* About */
.about-media { position: relative; }
.about-badge { position: absolute; left: -18px; bottom: 28px; background: var(--accent); color: var(--navy-deep); border-radius: var(--radius); padding: 1rem 1.3rem; display: flex; align-items: center; gap: .8rem; box-shadow: var(--shadow); font-weight: 600; line-height: 1.25; font-size: .92rem; }
.about-badge-num { font-family: var(--font-head); font-size: 2rem; font-weight: 700; }
@media (max-width: 575.98px) { .about-badge { left: 12px; bottom: 12px; } }
.cert-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin: 1.75rem 0 2rem; }
.cert-list li { display: flex; gap: .7rem; align-items: flex-start; padding: 1rem; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.cert-list i { font-size: 1.5rem; color: var(--accent-dark); line-height: 1; }
.cert-list strong { display: block; color: var(--navy); font-size: .95rem; }
.cert-list span span, .cert-list li > span { font-size: .85rem; color: var(--muted); }
@media (max-width: 767.98px) { .cert-list { grid-template-columns: 1fr; } }
.check-list li { display: flex; gap: .65rem; padding: .45rem 0; }
.check-list i { color: var(--accent-dark); font-size: 1.1rem; margin-top: .1rem; }
.step-card { position: relative; height: 100%; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.step-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.step-num { position: absolute; right: 1.2rem; top: .6rem; font-family: var(--font-head); font-size: 3.6rem; font-weight: 700; color: var(--bg-light); line-height: 1; }
.step-card h3 { font-size: 1.25rem; margin: 1rem 0 .5rem; text-transform: capitalize; }
.step-card p { color: var(--muted); margin: 0; }
.policy-section { padding: clamp(4.5rem, 3.5rem + 4vw, 7rem) 0; }
.policy-card { background: rgba(255, 255, 255, .97); color: var(--text); border-radius: 18px; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); box-shadow: var(--shadow-lg); border-top: 4px solid var(--accent); }
.policy-card p { margin-bottom: 1rem; }
.policy-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.policy-card li { position: relative; padding-left: 2rem; }
.policy-card li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: #A35F00; font-size: .8rem; display: flex; align-items: center; justify-content: center; }
.journey { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; position: relative; margin: 0; }
.journey::before { content: ""; position: absolute; left: 0; right: 0; top: 3.15rem; height: 2px; background: linear-gradient(90deg, var(--accent), var(--blue)); }
.journey-item { position: relative; padding-top: .2rem; }
.journey-year { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; color: var(--navy); display: block; }
.journey-dot { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 4px solid #fff; box-shadow: 0 0 0 2px var(--accent); margin: .55rem 0 1.1rem; position: relative; z-index: 1; }
.journey-item p { color: var(--muted); margin: 0; background: var(--bg-light); border-radius: 12px; padding: 1rem 1.1rem; font-size: .95rem; }
@media (max-width: 991.98px) {
  .journey { grid-template-columns: 1fr; gap: 0; padding-left: 1.5rem; }
  .journey::before { top: 0; bottom: 0; left: 7px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--accent), var(--blue)); }
  .journey-item { padding: 0 0 1.5rem 1.2rem; }
  .journey-dot { position: absolute; left: -1.5rem; top: .6rem; margin: 0; }
}
.why-paras { display: grid; gap: 1rem; margin-top: 1rem; }
.why-para { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 1.1rem 1.2rem; }
.why-para > span { width: 44px; height: 44px; border-radius: 10px; background: var(--navy); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; flex-shrink: 0; }
.why-para p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .logo-list[aria-hidden], .logo-track-reverse { display: none; }
  .logo-list { flex-wrap: wrap; justify-content: center; }
  .logo-marquee { -webkit-mask-image: none; mask-image: none; }
}

.works-table td.text-end { white-space: nowrap; }

/* Full-logo header mode (Admin → Logo & Favicon → "Full logo image only") */
.brand-logo { height: 74px; width: auto; max-width: 280px; object-fit: contain; }
.site-header.is-scrolled .brand-logo { height: 60px; }
@media (min-width: 1200px) and (max-width: 1439.98px) { .brand-logo { height: 64px; max-width: 220px; } .site-header.is-scrolled .brand-logo { height: 56px; } }
@media (max-width: 575.98px) { .brand-logo { height: 52px; max-width: 180px; } }
/* An emblem upload that is not square still fits nicely */
.brand-emblem { width: auto; max-width: 200px; }
.footer-logo-full { background: #fff; border-radius: 12px; padding: .6rem .9rem; display: inline-flex; }
.footer-logo-full img { height: 56px; width: auto; max-width: 230px; object-fit: contain; }

/* ==========================================================================
   SERVICES — animated cards (v2)
   ========================================================================== */
.services-showcase { position: relative; overflow: hidden; isolation: isolate; }
.services-showcase::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(rgba(22, 78, 128, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(22, 78, 128, .05) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.services-showcase::after { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; border-radius: 50%; right: -140px; top: 60px;
  background: radial-gradient(circle, rgba(255, 157, 0, .18), transparent 70%); animation: blobFloat 14s ease-in-out infinite; }
.services-showcase .container { position: relative; }
.services-showcase .container::before { content: ""; position: absolute; z-index: -1; width: 360px; height: 360px; border-radius: 50%; left: -220px; bottom: -80px;
  background: radial-gradient(circle, rgba(22, 78, 128, .14), transparent 70%); animation: blobFloat 18s ease-in-out infinite reverse; }
@keyframes blobFloat { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-30px, 40px) scale(1.08); } }

.service-card { padding: 0; gap: 0; border: 1px solid var(--border); background: #fff; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; height: 100%;
  box-shadow: 0 4px 18px rgba(11, 37, 69, .05); transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.service-card::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; top: auto; height: 4px; z-index: 3;
  background: linear-gradient(90deg, var(--accent), #FFC14D, var(--accent)); background-size: 200% 100%; transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.service-card:hover, .service-card:focus-within { transform: translateY(-10px); box-shadow: 0 24px 50px rgba(11, 37, 69, .16); border-color: transparent; }
.service-card:hover::before, .service-card:focus-within::before { transform: scaleX(1); animation: barShine 2.2s linear infinite; }
@keyframes barShine { to { background-position: -200% 0; } }

.service-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, var(--navy), var(--blue)); }
.service-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform .9s var(--ease), filter .5s; filter: saturate(.9); }
.service-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 24, 45, .05) 30%, rgba(7, 24, 45, .78) 100%); transition: background .5s; }
.service-card:hover .service-media img { transform: scale(1.12); filter: saturate(1.1); }
.service-card:hover .service-media::after { background: linear-gradient(180deg, rgba(11, 37, 69, .25) 0%, rgba(11, 37, 69, .85) 100%); }
.service-num { position: absolute; top: 14px; left: 16px; z-index: 2; font-family: var(--font-head); font-weight: 700; font-size: .85rem; letter-spacing: .08em;
  color: #fff; background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .28); padding: .3rem .65rem; border-radius: 30px; }

.service-card .service-icon { position: relative; z-index: 2; width: 66px; height: 66px; margin: -33px 0 0 1.5rem; border-radius: 18px; font-size: 1.75rem;
  background: var(--accent); color: var(--navy-deep); box-shadow: 0 10px 24px rgba(255, 157, 0, .4), 0 0 0 5px #fff;
  animation: iconFloat 4s ease-in-out infinite; transition: background-color .4s, color .4s, border-radius .4s; }
.service-card:nth-child(even) .service-icon, .col-sm-6:nth-child(even) .service-card .service-icon { animation-delay: -2s; }
.service-card .service-icon::after { content: ""; position: absolute; inset: -5px; border-radius: inherit; border: 2px solid var(--accent); opacity: 0; transform: scale(.9); }
.service-card .service-icon i { display: inline-block; transition: transform .7s var(--ease); }
.service-card:hover .service-icon { background: var(--navy); color: var(--accent); border-radius: 50%; }
.service-card:hover .service-icon i { transform: rotateY(360deg) scale(1.1); }
.service-card:hover .service-icon::after { animation: iconPulse 1.4s ease-out infinite; }
@keyframes iconFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes iconPulse { 0% { opacity: .9; transform: scale(.95); } 100% { opacity: 0; transform: scale(1.45); } }

.service-body { padding: 1.1rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .65rem; flex: 1; }
.service-card h3 { font-size: 1.12rem; line-height: 1.35; margin: 0; }
.service-card h3 a { color: var(--navy); text-decoration: none; background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .4s var(--ease), color .3s; }
.service-card:hover h3 a { background-size: 100% 2px; }
.service-card p { margin: 0; font-size: .95rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.service-card .card-link { margin-top: auto; padding-top: .4rem; display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--blue); }
.service-card .card-link i { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: #A35F00; display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; transition: transform .35s var(--ease), background-color .3s, color .3s; }
.service-card:hover .card-link i { transform: translateX(6px); background: var(--accent); color: var(--navy-deep); }

@media (prefers-reduced-motion: reduce) {
  .service-card .service-icon, .services-showcase::after, .services-showcase .container::before { animation: none !important; }
}

/* ==========================================================================
   MAJOR WORKS — animated showcase (v2)
   ========================================================================== */
.works-showcase { position: relative; overflow: hidden; isolation: isolate; background: var(--navy-deep); color: #C9D5E3; }
.works-showcase::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px; }
.works-showcase::after { content: ""; position: absolute; z-index: -1; width: 560px; height: 560px; border-radius: 50%; left: -180px; top: -200px;
  background: radial-gradient(circle, rgba(255, 157, 0, .16), transparent 65%); animation: blobFloat 16s ease-in-out infinite; }
.works-showcase .section-title { color: #fff; }
.works-showcase .eyebrow { color: var(--accent); }
.works-showcase .btn-outline-navy { border-color: rgba(255, 255, 255, .5); color: #fff; }
.works-showcase .btn-outline-navy:hover { background: var(--accent); border-color: var(--accent); color: var(--navy-deep); }

.work-card { padding: 0; gap: 0; background: #fff; border: 0; border-radius: 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.work-card::after { display: none; }
.work-card:hover, .work-card:focus-within { transform: translateY(-10px) rotate(-.4deg); box-shadow: 0 26px 60px rgba(0, 0, 0, .4); }
.work-head { position: relative; height: 104px; overflow: hidden; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 1.4rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); }
.work-head::before { content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 14px); }
.work-head::after { content: ""; position: absolute; top: 0; bottom: 0; width: 60%; left: -80%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .22), transparent); transform: skewX(-18deg); }
.work-card:hover .work-head::after { animation: shineSweep .9s var(--ease); }
@keyframes shineSweep { to { left: 130%; } }
.work-card .work-icon { position: relative; z-index: 1; width: 72px; height: 72px; margin-bottom: -26px; border-radius: 20px; font-size: 2rem;
  background: var(--accent); color: var(--navy-deep); box-shadow: 0 12px 26px rgba(255, 157, 0, .45), 0 0 0 5px #fff;
  animation: iconFloat 4.5s ease-in-out infinite; transition: border-radius .4s, background-color .4s, color .4s; }
.col-md-6:nth-child(even) .work-card .work-icon { animation-delay: -2.2s; }
.work-card .work-icon i { display: inline-block; transition: transform .7s var(--ease); }
.work-card:hover .work-icon { border-radius: 50%; background: #fff; color: var(--blue); }
.work-card:hover .work-icon i { transform: rotate(360deg) scale(1.1); }
.work-num { position: relative; z-index: 1; align-self: center; font-family: var(--font-head); font-size: 3rem; font-weight: 700; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .45); transition: -webkit-text-stroke-color .3s, transform .4s var(--ease); }
.work-card:hover .work-num { -webkit-text-stroke-color: var(--accent); transform: scale(1.08); }
.work-body { padding: 2.6rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.work-card .work-chip { align-self: flex-start; display: inline-flex; align-items: center; gap: .35rem; }
.work-card .work-chip i { color: var(--accent-dark); }
.work-card h3 { font-size: 1.1rem; line-height: 1.4; margin: 0; color: var(--navy); }
.work-customer { margin: auto 0 0; padding-top: .9rem; border-top: 1px dashed var(--border); display: flex; gap: .7rem; align-items: center; font-size: .92rem; color: var(--text); font-weight: 500; }
.work-customer small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.work-customer-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--bg-light); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background-color .3s, color .3s; }
.work-card:hover .work-customer-icon { background: var(--navy); color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .work-card .work-icon, .works-showcase::after { animation: none !important; }
}

.work-head { overflow: visible; }
.work-card .work-icon { z-index: 2; }
.work-body { padding-top: 3.2rem; }

/* Background video (quality section) */
.parallax-bg .bg-video { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--navy-deep); }
.quality .quality-overlay { background: linear-gradient(90deg, rgba(7, 24, 45, .92) 0%, rgba(11, 37, 69, .72) 55%, rgba(11, 37, 69, .45) 100%); }

/* Quality section: full-screen video */
.quality:not(.policy-section) { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 6rem 0; }
.quality:not(.policy-section) > .container { width: 100%; }
.quality:not(.policy-section) .parallax-bg { inset: -10% 0; }
@media (max-width: 767.98px) { .quality:not(.policy-section) { min-height: 85svh; } }

/* Video section: show the complete 16:9 frame (no crop, no parallax shift) */
.quality.has-video { min-height: 0; aspect-ratio: 16 / 9; max-height: none; padding: 4rem 0; }
.quality.has-video .parallax-bg { inset: 0; transform: none !important; }
.quality.has-video .bg-video { object-fit: cover; object-position: center center !important; }
@media (max-width: 991.98px) {
  /* Narrow screens: the text needs more height than 16:9 allows, so the video fills the section */
  .quality.has-video { aspect-ratio: auto; min-height: 75svh; }
}

/* Homepage: Our Expert Team */
.expert-team { background: #FAFBFD; }
.expert-card { position: relative; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 26px rgba(11, 37, 69, .08); height: 100%;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.expert-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--accent); transform-origin: left; transform: scaleX(.35); transition: transform .45s var(--ease); }
.expert-card:hover { transform: translateY(-8px); box-shadow: 0 22px 48px rgba(11, 37, 69, .16); }
.expert-card:hover::after { transform: scaleX(1); }
.expert-photo { position: relative; aspect-ratio: 5 / 6; overflow: hidden; background: linear-gradient(160deg, var(--bg-light), #E3EAF2); display: flex; align-items: center; justify-content: center; }
.expert-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .8s var(--ease); }
.expert-card:hover .expert-photo img { transform: scale(1.07); }
.expert-photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(180deg, transparent, rgba(7, 24, 45, .45)); opacity: 0; transition: opacity .4s; }
.expert-card:hover .expert-photo::after { opacity: 1; }
.expert-social { position: absolute; z-index: 2; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--navy-deep);
  display: inline-flex; align-items: center; justify-content: center; transform: translateY(16px); opacity: 0; transition: transform .35s var(--ease), opacity .35s; }
.expert-card:hover .expert-social, .expert-social:focus-visible { transform: none; opacity: 1; }
.expert-body { padding: 1.2rem 1rem 1.5rem; text-align: center; }
.expert-body h3 { font-size: 1.05rem; margin: 0 0 .3rem; color: var(--accent-dark); text-transform: uppercase; letter-spacing: .03em; }
.expert-body h3 a { color: inherit; text-decoration: none; }
.expert-body p { margin: 0; font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 500; }

/* Why choose list: hover effect */
.why-list li { position: relative; padding: 1.3rem 1.2rem; margin: 0 -1.2rem; border-radius: 14px; cursor: default; isolation: isolate;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease), border-color .35s; }
.why-list li::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 4px; background: var(--accent);
  transform: scaleY(0); transform-origin: center; transition: transform .35s var(--ease); }
.why-list li:hover, .why-list li:focus-within { background: #fff; border-bottom-color: transparent; transform: translateX(10px);
  box-shadow: 0 14px 34px rgba(11, 37, 69, .1); }
.why-list li:hover::before { transform: scaleY(1); }
.why-num { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; min-width: 52px; border-radius: 50%;
  border: 2px solid rgba(224, 138, 0, .35); font-size: 1.15rem; transition: background-color .35s, color .35s, border-color .35s, transform .5s var(--ease); }
.why-list li:hover .why-num { background: var(--navy); border-color: var(--navy); color: var(--accent); transform: rotate(360deg); }
.why-list li h3 { transition: color .3s; }
.why-list li:hover h3 { color: var(--blue); }
.why-list li p { transition: color .3s; }
.why-list li:hover p { color: var(--text); }
@media (max-width: 575.98px) { .why-list li { margin: 0; } .why-list li:hover { transform: none; } }

/* Why choose list: colourful text hover (v2) */
.why-list li:hover, .why-list li:focus-within { background: linear-gradient(120deg, var(--navy) 0%, var(--blue) 100%); box-shadow: 0 18px 40px rgba(11, 37, 69, .28); }
.why-list li:hover h3 { color: #fff; }
.why-list li:hover p { color: #D6E0EC; }
.why-list li:hover .why-num { background: var(--accent); border-color: var(--accent); color: var(--navy-deep); transform: none; }
.why-list li h3 { position: relative; display: inline-block; }
.why-list li h3::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.why-list li:hover h3::after { transform: scaleX(1); }

/* Compact popups: whole form fits on one screen */
.inquiry-modal .modal-xl { max-width: 980px; }
.inquiry-modal .modal-header { padding: .85rem 1.4rem; }
.inquiry-modal .modal-title { font-size: 1.3rem; }
.inquiry-modal .modal-icon { width: 42px; height: 42px; font-size: 1.15rem; border-radius: 10px; }
.inquiry-modal .modal-body { padding: .9rem 1.4rem 1.1rem; }
.inquiry-modal .eyebrow { margin-bottom: .2rem; font-size: .72rem; }
.inquiry-form.is-compact .row { --bs-gutter-y: .55rem; --bs-gutter-x: .9rem; }
.inquiry-form.is-compact .form-label { font-size: .8rem; margin-bottom: .2rem; }
.inquiry-form.is-compact .form-control, .inquiry-form.is-compact .form-select { min-height: 40px; padding-top: .35rem; padding-bottom: .35rem; font-size: .93rem; }
.inquiry-form.is-compact textarea.form-control { min-height: 0; }
.inquiry-form.is-compact .choice { min-height: 40px; font-size: .92rem; }
.inquiry-form.is-compact .choice-group { gap: .6rem; }
.inquiry-form.is-compact .form-check-label { font-size: .86rem; }
.inquiry-form.is-compact .invalid-feedback { font-size: .78rem; margin-top: .15rem; }
.inquiry-form.is-compact .form-actions { margin-top: .75rem; }
.inquiry-form.is-compact .form-actions .btn-lg { min-height: 44px; padding: .55rem 1.4rem; font-size: .98rem; }
.inquiry-form.is-compact .form-alert { padding: .6rem .9rem; margin-bottom: .6rem; font-size: .9rem; }

/* Hero slide background video */
.hero-bg .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--navy-deep); }
.carousel-item.active .hero-bg .hero-video { transform: none; }
.video-preview video { width: 100%; height: 100%; object-fit: cover; }

/* Brochure buttons */
.btn-brochure { background: rgba(255, 255, 255, .12); color: #fff; border: 1.5px solid rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.btn-brochure:hover, .btn-brochure:focus-visible { background: #fff; border-color: #fff; color: var(--navy); box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }
.btn-brochure i { transition: transform .3s var(--ease); }
.btn-brochure:hover i { transform: translateY(2px); }
.site-header .nav-brochure { color: var(--accent-dark); }
.site-header .nav-brochure:hover { color: var(--navy); }
@media (min-width: 1200px) and (max-width: 1439.98px) { .site-header .nav-link { padding: .5rem .5rem !important; font-size: .92rem; } }

/* Intro image "show full image" mode: frame follows the image's own shape */
.media-frame.media-natural { aspect-ratio: auto; background: #fff; }
.media-frame.media-natural img { width: 100%; height: auto; object-fit: contain; transform: none !important; }
