:root {
  --es3-blue: #0878bd;
  --es3-blue-dark: #05659f;
  --es3-navy: #102c45;
  --es3-navy-deep: #091d2d;
  --es3-ink: #172534;
  --es3-muted: #607181;
  --es3-line: #dbe5eb;
  --es3-light: #f3f7fa;
  --es3-white: #ffffff;
  --shadow-sm: 0 12px 34px rgba(16, 44, 69, .08);
  --shadow-lg: 0 24px 60px rgba(9, 29, 45, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--es3-ink);
  background: var(--es3-white);
  font-family: "Roboto", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--es3-blue); }
a:hover { color: var(--es3-blue-dark); }
h1, h2, h3, h4 { color: var(--es3-navy); font-family: "Ubuntu", Arial, sans-serif; }
p { line-height: 1.72; }
.skip-link { position: fixed; top: -80px; left: 1rem; z-index: 9999; padding: .7rem 1rem; color: #fff; background: var(--es3-navy); }
.skip-link:focus { top: 1rem; }
.section-pad { padding: 92px 0; }
.bg-light { background: var(--es3-light) !important; }
.eyebrow { color: var(--es3-blue); font-size: .78rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.section-heading { max-width: 720px; margin-bottom: 2.8rem; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading h1, .section-heading h2 { margin: .55rem 0 .8rem; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.12; }
.section-heading p { margin: 0; color: var(--es3-muted); font-size: 1.03rem; }

.es3-topbar { color: rgba(255, 255, 255, .9); background: var(--es3-blue); font-size: .85rem; }
.es3-topbar .container { min-height: 36px; }
.topbar-links { display: flex; align-items: center; gap: 1.3rem; }
.es3-topbar a { color: #fff; text-decoration: none; }
.es3-topbar i { margin-right: .4rem; }
.site-header { position: sticky; top: 0; z-index: 1000; background: #fff; box-shadow: 0 2px 18px rgba(16, 44, 69, .08); }
.es3-header .container { min-height: 86px; }
.es3-brand { display: inline-flex; align-items: center; width: 105px; padding: .35rem 0; }
.es3-brand img { display: block; width: 100%; max-height: 72px; object-fit: contain; }
.es3-nav { display: flex; align-items: center; gap: .2rem; }
.es3-nav a { position: relative; padding: .7rem .75rem; color: var(--es3-ink); font-size: .92rem; font-weight: 700; text-decoration: none; }
.es3-nav > a:not(.quote-link)::after { position: absolute; right: .75rem; bottom: .36rem; left: .75rem; height: 2px; content: ""; background: var(--es3-blue); transform: scaleX(0); transition: transform .2s ease; }
.es3-nav > a:hover::after, .es3-nav > a.active::after { transform: scaleX(1); }
.es3-nav .quote-link { margin-left: .65rem; padding: .72rem 1rem; color: #fff; background: var(--es3-blue); border-radius: 3px; }
.es3-nav .quote-link:hover { color: #fff; background: var(--es3-blue-dark); }
.nav-toggle { display: none; width: 44px; height: 44px; color: var(--es3-navy); background: #fff; border: 1px solid var(--es3-line); border-radius: 3px; font-size: 1.5rem; }

.es3-hero { position: relative; overflow: hidden; color: #fff; background: var(--es3-light); }
.es3-hero::before { position: absolute; inset: 0 50% 0 0; content: ""; opacity: .4; background-image: linear-gradient(rgba(8, 120, 189, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(8, 120, 189, .08) 1px, transparent 1px); background-size: 34px 34px; }
.hero-copy { position: relative; display: flex; align-items: center; min-height: 610px; padding: 5rem max(2rem, calc((100vw - 1140px) / 2)); padding-right: clamp(2rem, 6vw, 6rem); color: var(--es3-ink); }
.hero-copy > div { width: 100%; min-width: 0; max-width: 620px; }
.hero-copy h1 { margin: .7rem 0 1.25rem; font-size: clamp(2.65rem, 5.5vw, 4.75rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; }
.hero-copy p { max-width: 570px; margin-bottom: 1.7rem; color: var(--es3-muted); font-size: 1.1rem; }
.hero-media { min-height: 610px; padding: 0; }
.hero-media img { width: 100%; height: 100%; min-height: 610px; object-fit: cover; }
.hero-badge { position: absolute; right: calc(50% - 1px); bottom: 2.25rem; z-index: 2; width: 210px; padding: 1.25rem; color: #fff; background: var(--es3-navy); transform: translateX(100%); }
.hero-badge strong { display: block; color: #fff; font-family: "Ubuntu", Arial, sans-serif; font-size: 1.65rem; }
.hero-badge span { color: rgba(255, 255, 255, .75); font-size: .82rem; }
.btn-es3, .btn-outline-es3 { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .75rem 1.25rem; border: 1px solid var(--es3-blue); border-radius: 3px; font-weight: 700; text-decoration: none; transition: .2s ease; }
.btn-es3 { color: #fff; background: var(--es3-blue); }
.btn-es3:hover { color: #fff; background: var(--es3-blue-dark); border-color: var(--es3-blue-dark); transform: translateY(-1px); }
.btn-outline-es3 { color: var(--es3-navy); background: transparent; border-color: #9eb3c1; }
.btn-outline-es3:hover { color: #fff; background: var(--es3-navy); border-color: var(--es3-navy); }

.partner-band { padding: 1.2rem 0; border-bottom: 1px solid var(--es3-line); }
.partner-intro { color: var(--es3-muted); font-size: .77rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.partner-grid { display: grid; grid-template-columns: repeat(8, minmax(70px, 1fr)); align-items: center; gap: 1.5rem; }
.partner-grid img { width: 100%; max-width: 120px; max-height: 54px; margin: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: .2s ease; }
.partner-grid img:hover { filter: grayscale(0); opacity: 1; }

.intro-copy p { color: var(--es3-muted); }
.intro-copy .lead { color: var(--es3-ink); font-size: 1.12rem; }
.feature-frame { position: relative; padding: 0 0 2rem 2rem; }
.feature-frame::before { position: absolute; bottom: 0; left: 0; width: 46%; height: 48%; content: ""; background: var(--es3-blue); }
.feature-image { position: relative; width: 100%; height: 500px; object-fit: cover; box-shadow: var(--shadow-lg); }
.experience-panel { position: absolute; right: -1rem; bottom: 0; z-index: 2; width: 190px; padding: 1.2rem; color: #fff; background: var(--es3-navy); }
.experience-panel strong { display: block; color: #fff; font-family: "Ubuntu", Arial, sans-serif; font-size: 2.1rem; line-height: 1; }
.experience-panel span { font-size: .86rem; }

.service-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; background: #fff; border: 1px solid var(--es3-line); box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.service-card:hover { box-shadow: 0 18px 42px rgba(16, 44, 69, .13); transform: translateY(-5px); }
.service-card img { width: 100%; height: 210px; object-fit: cover; }
.service-body { display: flex; flex: 1; flex-direction: column; padding: 1.6rem; }
.service-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-top: -3rem; margin-bottom: 1.1rem; color: #fff; background: var(--es3-blue); border: 5px solid #fff; border-radius: 50%; font-size: 1.1rem; }
.service-card h3 { font-size: 1.35rem; font-weight: 700; }
.service-card p { color: var(--es3-muted); font-size: .95rem; }
.text-link { margin-top: auto; font-weight: 800; text-decoration: none; }
.text-link i { transition: transform .2s ease; }
.text-link:hover i { transform: translateX(4px); }

.trust-section { color: #fff; background: var(--es3-navy-deep); }
.trust-section h2, .trust-section h3 { color: #fff; }
.trust-section .section-heading p { color: rgba(255, 255, 255, .68); }
.trust-point { height: 100%; padding: 1.5rem; border: 1px solid rgba(255, 255, 255, .12); }
.trust-point i { color: #78cff8; font-size: 1.55rem; }
.trust-point p { margin-bottom: 0; color: rgba(255, 255, 255, .68); font-size: .92rem; }
.stat-row { border-top: 1px solid rgba(255, 255, 255, .14); }
.stat { padding-top: 1.5rem; }
.stat strong { display: block; color: #fff; font-family: "Ubuntu", Arial, sans-serif; font-size: 2rem; }
.stat span { color: rgba(255, 255, 255, .65); font-size: .85rem; }

.project-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 260px; gap: 1rem; }
.project-card { position: relative; display: block; overflow: hidden; background: var(--es3-navy); }
.project-card.wide { grid-column: span 2; }
.project-card.tall { grid-row: span 2; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, opacity .4s ease; }
.project-card::after { position: absolute; inset: 35% 0 0; content: ""; background: linear-gradient(transparent, rgba(9, 29, 45, .88)); }
.project-card:hover img { opacity: .88; transform: scale(1.04); }
.project-label { position: absolute; right: 1.2rem; bottom: 1rem; left: 1.2rem; z-index: 1; color: #fff; font-family: "Ubuntu", Arial, sans-serif; font-size: 1.05rem; font-weight: 700; }
.project-label small { display: block; color: #8fd8fb; font-family: "Roboto", Arial, sans-serif; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.project-category + .project-category { margin-top: 3.5rem; }
.project-category h3 { position: relative; margin-bottom: 1.25rem; padding-bottom: .65rem; border-bottom: 2px solid var(--es3-line); }
.project-category h3::after { position: absolute; bottom: -2px; left: 0; width: 54px; height: 3px; content: ""; background: var(--es3-blue); }
.project-category .project-grid { grid-template-columns: repeat(5, 1fr); grid-auto-rows: 220px; }
.project-category .project-card::after { display: none; }
.project-category .project-card:focus-visible { outline: 3px solid var(--es3-blue); outline-offset: 3px; }

.callout { position: relative; overflow: hidden; color: #fff; background: var(--es3-blue); }
.callout::after { position: absolute; top: -160px; right: -110px; width: 360px; height: 360px; content: ""; border: 60px solid rgba(255, 255, 255, .08); border-radius: 50%; }
.callout .container { position: relative; z-index: 1; }
.callout h2 { margin-bottom: .25rem; color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.callout p { margin: 0; color: rgba(255, 255, 255, .8); }
.callout .btn-es3 { color: var(--es3-navy); background: #fff; border-color: #fff; }
.callout .btn-es3:hover { color: #fff; background: var(--es3-navy); border-color: var(--es3-navy); }

.page-hero { position: relative; padding: 95px 0; color: #fff; background: linear-gradient(90deg, rgba(9, 29, 45, .95), rgba(9, 29, 45, .68)), url("../img/es3/web/hero.jpg") center 44% / cover; }
.page-hero h1 { max-width: 780px; margin: .5rem 0 0; color: #fff; font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; line-height: 1.08; }
.page-hero .eyebrow { color: #8bd9ff; }
.breadcrumb { margin: 1rem 0 0; color: rgba(255, 255, 255, .75); font-size: .88rem; }
.breadcrumb a { color: #fff; text-decoration: none; }

.value-card { height: 100%; padding: 1.8rem; background: #fff; border-top: 4px solid var(--es3-blue); box-shadow: var(--shadow-sm); }
.value-card i { color: var(--es3-blue); font-size: 1.7rem; }
.value-card h3 { margin: 1rem 0 .5rem; font-size: 1.25rem; }
.value-card p { margin: 0; color: var(--es3-muted); }
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { position: absolute; top: .5rem; bottom: .5rem; left: 53px; width: 2px; content: ""; background: var(--es3-line); }
.timeline li { position: relative; display: grid; grid-template-columns: 78px 1fr; gap: 1.4rem; padding-bottom: 2rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline-year { position: relative; z-index: 1; display: grid; place-items: center; width: 78px; height: 38px; color: #fff; background: var(--es3-blue); font-family: "Ubuntu", Arial, sans-serif; font-weight: 700; }
.timeline h3 { margin: .25rem 0 .35rem; font-size: 1.2rem; }
.timeline p { margin: 0; color: var(--es3-muted); }

.service-detail { overflow: hidden; background: #fff; border: 1px solid var(--es3-line); box-shadow: var(--shadow-sm); }
.service-detail-image { min-height: 390px; padding: 0; }
.service-detail-image img { width: 100%; height: 100%; min-height: 390px; object-fit: cover; }
.service-detail-copy { padding: clamp(2rem, 5vw, 4rem); }
.service-detail-copy h2 { margin: .55rem 0 1rem; font-size: 2.15rem; }
.service-detail-copy p { color: var(--es3-muted); }
.service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem 1.2rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.service-list li { display: flex; gap: .55rem; color: var(--es3-ink); }
.service-list i { flex: 0 0 auto; color: var(--es3-blue); }

.contact-panel { height: 100%; padding: clamp(2rem, 5vw, 3.4rem); color: #fff; background: var(--es3-navy); }
.contact-panel h2 { color: #fff; }
.contact-panel > p { color: rgba(255, 255, 255, .7); }
.contact-detail { display: flex; gap: .9rem; padding: 1.05rem 0; border-top: 1px solid rgba(255, 255, 255, .15); }
.contact-detail i { color: #7ed2fa; font-size: 1.2rem; }
.contact-detail strong { display: block; color: #fff; font-size: .82rem; text-transform: uppercase; }
.contact-detail a, .contact-detail span { color: rgba(255, 255, 255, .78); text-decoration: none; }
.contact-form { height: 100%; padding: clamp(2rem, 5vw, 3.4rem); background: #fff; border: 1px solid var(--es3-line); }
.contact-form label { color: var(--es3-navy); font-weight: 700; }
.contact-form .form-control, .contact-form .form-select { min-height: 48px; padding: .7rem .85rem; border-color: #c7d5de; border-radius: 2px; }
.contact-form textarea.form-control { min-height: 150px; }
.contact-form .form-control:focus, .contact-form .form-select:focus { border-color: var(--es3-blue); box-shadow: 0 0 0 .2rem rgba(8, 120, 189, .13); }
.form-status { display: none; margin-top: 1rem; padding: .8rem 1rem; font-size: .92rem; }
.form-status.d-block { display: block; }
.loading { color: var(--es3-muted); background: var(--es3-light); }
.error-message { color: #842029; background: #f8d7da; }
.sent-message { color: #0f5132; background: #d1e7dd; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.map-frame { width: 100%; height: 350px; border: 0; filter: grayscale(.2); }

.es3-footer { color: rgba(255, 255, 255, .68); background: var(--es3-navy-deep); }
.footer-logo { display: inline-block; width: 110px; margin-bottom: 1rem; padding: .5rem; background: #fff; }
.es3-footer h3 { margin-bottom: 1.1rem; color: #fff; font-size: 1rem; }
.es3-footer p { margin-bottom: .55rem; }
.es3-footer a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.es3-footer a:hover { color: #fff; }
.footer-contact i { width: 1.4rem; color: #76cef8; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; }

@media (max-width: 1199px) {
  .hero-copy { min-height: 560px; padding-left: max(2rem, calc((100vw - 960px) / 2)); }
  .hero-media, .hero-media img { min-height: 560px; }
  .partner-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 991px) {
  .section-pad { padding: 72px 0; }
  .es3-header .container { min-height: 74px; }
  .es3-brand { width: 88px; }
  .nav-toggle { display: grid !important; flex: 0 0 44px; place-items: center; }
  .es3-nav { position: fixed; top: 110px; right: 0; bottom: 0; left: 0; z-index: 999; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 1rem 1.5rem 2rem; overflow-y: auto; background: #fff; }
  .nav-open .es3-nav { display: flex; }
  .es3-nav a { padding: 1rem 0; border-bottom: 1px solid var(--es3-line); font-size: 1.08rem; }
  .es3-nav > a::after { display: none; }
  .es3-nav .quote-link { margin: 1.2rem 0 0; padding: .9rem 1rem; text-align: center; border: 0; }
  .hero-copy { min-height: auto; padding: 5rem max(1.5rem, calc((100vw - 720px) / 2)); }
  .hero-media, .hero-media img { min-height: 430px; height: 430px; }
  .hero-badge { right: 1.5rem; bottom: 1.5rem; transform: none; }
  .feature-image { height: 440px; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card.wide { grid-column: span 1; }
  .project-category .project-grid { grid-template-columns: repeat(2, 1fr); }
  .project-category .project-card:last-child { grid-column: span 2; }
  .service-detail-image { min-height: 330px; }
  .service-detail-image img { min-height: 330px; }
}

@media (max-width: 767px) {
  .es3-topbar .container { justify-content: center !important; }
  .topbar-links { gap: .75rem; font-size: .76rem; }
  .topbar-tagline { display: none; }
  .es3-nav { top: 110px; }
  .hero-copy { padding: 4.25rem 1.25rem; }
  .hero-copy h1 { font-size: 2.7rem; }
  .hero-media, .hero-media img { min-height: 340px; height: 340px; }
  .hero-badge { right: 1rem; bottom: 1rem; width: 175px; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem 1.5rem; }
  .partner-grid img { max-height: 45px; }
  .feature-frame { padding: 0 0 1rem 1rem; }
  .feature-image { height: 380px; }
  .experience-panel { right: 0; }
  .project-grid { grid-auto-rows: 240px; }
  .project-card.tall { grid-row: span 1; }
  .service-list { grid-template-columns: 1fr; }
  .callout { text-align: center; }
  .footer-bottom { gap: .4rem; text-align: center; }
}

@media (max-width: 480px) {
  .topbar-links { width: 100%; justify-content: space-between; gap: .4rem; }
  .topbar-links i { display: none; }
  .es3-nav { top: 110px; }
  .section-pad { padding: 60px 0; }
  .hero-copy h1 { font-size: 2.2rem; overflow-wrap: break-word; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .project-grid { grid-template-columns: 1fr; }
  .project-category .project-grid { grid-template-columns: 1fr; }
  .project-category .project-card:last-child { grid-column: span 1; }
  .page-hero { padding: 72px 0; }
  .contact-panel, .contact-form { padding: 1.6rem; }
}

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