:root {
  --primary: #0B2D5C;
  --secondary: #123D66;
  --accent: #F36B21;
  --text: #152B3C;
  --light: #F5F7FA;
  --white: #FFFFFF;
  --border: #E3E8EE;
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Open Sans", sans-serif;
  --shadow: 0 14px 34px rgba(11, 45, 92, 0.12);
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  background: var(--white);
}
a { color: var(--primary); text-decoration: none; transition: color .2s ease, transform .2s ease, background .2s ease; }
a:hover { color: var(--accent); }
h1, h2, h3, h4, h5, h6, .navbar-brand { font-family: var(--font-heading); color: var(--primary); font-weight: 700; }
img { max-width: 100%; height: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 2000; padding: .75rem 1rem; background: var(--accent); color: var(--white); }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid rgba(243, 107, 33, .55); outline-offset: 3px; }

.preloader { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; background: var(--white); transition: opacity .25s ease, visibility .25s ease; }
.preloader.is-hidden { opacity: 0; visibility: hidden; }
.loader-ring { width: 52px; height: 52px; border: 4px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255,255,255,.97); backdrop-filter: blur(10px); transition: box-shadow .2s ease; }
.site-header.scrolled { box-shadow: 0 10px 28px rgba(11,45,92,.12); }
.brand-logo { width: 50px; height: 50px; object-fit: contain; border-radius: 8px; background: var(--white); box-shadow: 0 4px 14px rgba(11,45,92,.1); }
.navbar-brand span:last-child { display: block; font-size: .72rem; color: var(--secondary); letter-spacing: .04em; font-weight: 600; }
.nav-link { color: var(--text); font-weight: 700; font-size: .95rem; }
.nav-link.active, .nav-link:hover { color: var(--accent) !important; }
.btn-accent { background: var(--accent); color: var(--white); border: 1px solid var(--accent); font-weight: 700; border-radius: 8px; padding: .78rem 1.15rem; }
.btn-accent:hover, .btn-accent:focus { background: #d95c1a; border-color: #d95c1a; color: var(--white); transform: translateY(-1px); }
.btn-outline-light, .btn-outline-primary { border-radius: 8px; font-weight: 700; padding: .78rem 1.15rem; }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }

.section-padding { padding: 92px 0; }
.section-light { background: var(--light); }
.section-label { color: var(--accent); font-family: var(--font-heading); font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.lead-text { font-size: 1.08rem; color: #425569; }
.orange-line { width: 68px; height: 4px; background: var(--accent); border-radius: 999px; margin: 1rem 0 1.5rem; }

.hero {
  min-height: 760px;
  display: flex;
  align-items: center;
  color: var(--white);
  background: linear-gradient(rgba(11,45,92,.84), rgba(11,45,92,.82)), url("../images/hero-cylinder-testing.jpg") center/cover no-repeat;
}
.hero h1 { color: var(--white); font-size: clamp(2.45rem, 6vw, 4.8rem); line-height: 1.08; max-width: 920px; }
.hero p { max-width: 850px; font-size: 1.12rem; color: rgba(255,255,255,.88); }
.hero .section-label { color: #ffb17f; }
.trust-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .85rem; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; color: var(--white); background: rgba(255,255,255,.08); font-weight: 700; font-size: .9rem; margin: .35rem .35rem .35rem 0; }

.inner-hero { padding: 150px 0 86px; background: linear-gradient(rgba(11,45,92,.88), rgba(11,45,92,.84)), url("../images/testing-facility.jpg") center/cover no-repeat; color: var(--white); }
.inner-hero h1 { color: var(--white); font-size: clamp(2.1rem, 5vw, 3.7rem); }
.breadcrumb a, .breadcrumb-item, .breadcrumb-item.active { color: rgba(255,255,255,.85); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.65); }

.image-card, .service-card, .value-card, .capability-card, .info-card, .facility-item, .process-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); box-shadow: 0 8px 24px rgba(11,45,92,.06); }
.image-card { overflow: hidden; }
.image-card img { width: 100%; min-height: 360px; object-fit: cover; }
.service-card, .value-card, .capability-card, .info-card, .facility-item { height: 100%; padding: 1.6rem; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.service-card:hover, .value-card:hover, .info-card:hover, .facility-item:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(243,107,33,.35); }
.icon-box { width: 54px; height: 54px; display: inline-grid; place-items: center; border-radius: 10px; color: var(--accent); background: rgba(243,107,33,.11); font-size: 1.6rem; margin-bottom: 1rem; }
.link-arrow { font-weight: 800; color: var(--primary); }

.navy-section { background: var(--primary); color: var(--white); }
.navy-section h2, .navy-section h3, .navy-section h4 { color: var(--white); }
.feature-block { padding: 1.35rem; border-left: 3px solid var(--accent); background: rgba(255,255,255,.06); border-radius: 10px; height: 100%; }

.capability-card h3 { border-bottom: 1px solid var(--border); padding-bottom: .9rem; margin-bottom: 1rem; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: .65rem; margin-bottom: .75rem; }
.check-list i { color: var(--accent); margin-top: .25rem; }

.timeline { display: grid; grid-template-columns: repeat(10, 1fr); gap: .75rem; position: relative; }
.timeline-item { padding: 1rem .75rem; min-height: 112px; border: 1px solid var(--border); border-radius: 10px; background: var(--white); text-align: center; font-weight: 700; font-size: .86rem; position: relative; }
.timeline-item span { display: grid; place-items: center; width: 30px; height: 30px; margin: 0 auto .55rem; color: var(--white); background: var(--accent); border-radius: 50%; font-size: .8rem; }
.standards-grid { display: flex; flex-wrap: wrap; gap: .75rem; }
.standard-badge { padding: .85rem 1rem; border-radius: 8px; background: var(--white); border: 1px solid var(--border); color: var(--primary); font-weight: 800; box-shadow: 0 8px 20px rgba(11,45,92,.05); }

.workflow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: step; }
.workflow-step { position: relative; padding: 1rem; min-height: 112px; border: 1px solid var(--border); border-radius: 10px; background: var(--white); font-weight: 700; }
.workflow-step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: .65rem; border-radius: 50%; background: var(--accent); color: var(--white); font-size: .8rem; }
.workflow-step::after { content: "\F285"; font-family: "bootstrap-icons"; position: absolute; right: -1rem; top: 43%; color: var(--accent); }
.workflow-step:nth-child(4n)::after, .workflow-step:last-child::after { display: none; }
.process-flow-figure { margin: 0 0 2rem; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); box-shadow: 0 10px 28px rgba(11,45,92,.08); overflow-x: auto; }
.process-flow-figure img { display: block; width: 100%; min-width: 760px; border-radius: 8px; }
.process-flow-figure figcaption { margin-top: .8rem; color: #5d6b7a; font-size: .92rem; }

.map-embed { min-height: 360px; border: 0; width: 100%; border-radius: var(--radius); filter: grayscale(.15); }
.contact-link { color: var(--text); }
.form-control, .form-select { border-color: var(--border); padding: .8rem .9rem; border-radius: 8px; }
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 .2rem rgba(243,107,33,.16); }

.site-footer { background: #071f40; color: rgba(255,255,255,.78); padding: 72px 0 28px; }
.site-footer h3, .site-footer h4 { color: var(--white); }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: #ffb17f; }
.footer-logo { width: 58px; height: 58px; object-fit: contain; border-radius: 10px; background: var(--white); padding: 4px; margin-bottom: 1rem; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: .55rem; }
.social-link { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-right: .35rem; border-radius: 8px; background: rgba(255,255,255,.08); color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.25rem; }

.floating-actions { position: fixed; right: 18px; bottom: 92px; z-index: 1020; display: grid; gap: .75rem; }
.float-btn, .back-to-top { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--white); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.float-whatsapp { background: #25D366; }
.float-phone { background: var(--accent); }
.back-to-top { position: fixed; right: 18px; bottom: 24px; z-index: 1020; border: 0; background: var(--primary); opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease; }
.back-to-top.show { opacity: 1; visibility: visible; }

.fade-in { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.fade-in.in-view { opacity: 1; transform: translateY(0); }

@media (max-width: 1199px) {
  .timeline { grid-template-columns: repeat(5, 1fr); }
  .workflow { grid-template-columns: repeat(3, 1fr); }
  .workflow-step:nth-child(4n)::after { display: block; }
  .workflow-step:nth-child(3n)::after, .workflow-step:last-child::after { display: none; }
}
@media (max-width: 767px) {
  .section-padding { padding: 64px 0; }
  .hero { min-height: 680px; }
  .navbar-brand strong { font-size: 1rem; }
  .timeline, .workflow { grid-template-columns: 1fr; }
  .timeline-item { text-align: left; display: flex; align-items: center; gap: .8rem; min-height: auto; }
  .timeline-item span { margin: 0; flex: 0 0 30px; }
  .workflow-step::after { display: none !important; }
  .process-flow-figure { padding: .75rem; }
  .floating-actions { right: 14px; bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
  .fade-in { opacity: 1; transform: none; }
}
