:root {
  --navy: #13212b;
  --navy-deep: #0e1a23;
  --gold: #b08a3e;
  --gold-dark: #8f6e2d;
  --gold-light: #dcb46a;
  --cream: #f7f4ee;
  --mist: #f2f5f6;
  --text: #22303a;
  --muted: #5a6670;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--text); background: #fff; font-size: 15px; line-height: 1.7; }
h1, h2, h3 { font-weight: 700; color: var(--navy); line-height: 1.25; }
h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: .75rem; }
p { color: var(--muted); }
a { color: var(--gold-dark); text-decoration: none; }
.skip-link { position: absolute; z-index: 2000; background: #fff; padding: .5rem 1rem; }

/* Buttons and small elements */
.btn { font-weight: 600; font-size: .9rem; border-radius: 3px; padding: .65rem 1.4rem; }
.btn-gold { --bs-btn-color: #fff; --bs-btn-bg: var(--gold); --bs-btn-border-color: var(--gold); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--gold-dark); --bs-btn-hover-border-color: var(--gold-dark); --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--gold-dark); --bs-btn-active-border-color: var(--gold-dark); }
.btn i { margin-left: .35rem; }
.link-gold { font-weight: 600; }
.link-gold:hover { color: var(--navy); }
.eyebrow { display: flex; align-items: center; gap: .6rem; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 600; color: var(--navy); margin-bottom: .5rem; }
.eyebrow::before { content: ''; width: 28px; height: 3px; background: var(--gold); }
.eyebrow-center { justify-content: center; }

/* Header */
.site-header { background: #fff; box-shadow: 0 1px 10px rgba(0, 0, 0, .07); }
.site-header .navbar { padding: .55rem 0; }
.brand { display: flex; align-items: center; gap: .65rem; line-height: 1.2; }
.brand strong { display: block; color: var(--navy); font-size: 1rem; letter-spacing: .01em; }
.brand small { display: block; color: var(--muted); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.site-header .nav-link { color: var(--navy); font-weight: 600; font-size: .86rem; padding-inline: .7rem; }
.site-header .nav-link:not(.dropdown-toggle) { position: relative; }
.site-header .nav-link:hover, .site-header .nav-link.active, .site-header .nav-link.show { color: var(--gold-dark); }
@media (min-width: 1200px) {
  .site-header .nav-link:not(.dropdown-toggle).active::after { content: ''; position: absolute; left: .7rem; right: .7rem; bottom: 0; height: 2px; background: var(--gold); }
}
.dropdown-menu { border: 0; border-top: 3px solid var(--gold); border-radius: 0; box-shadow: 0 12px 30px rgba(0, 0, 0, .12); font-size: .86rem; }
.dropdown-item:active { background: var(--gold); }
.navbar-toggler { border: 0; font-size: 1.9rem; color: var(--navy); padding: 0 .25rem; }
@media (max-width: 1199.98px) { .navbar-collapse { padding: .75rem 0; } .navbar-collapse .btn { margin-top: .5rem; } }
@media (max-width: 420px) { .brand img { width: 44px; height: 44px; } .brand strong { font-size: .82rem; } .brand small { font-size: .56rem; } }

/* Hero */
.hero { position: relative; background: var(--navy-deep); }
.hero .carousel-item img { width: 100%; height: clamp(520px, 40vw, 660px); object-fit: cover; }
.hero .carousel-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 22, 32, .93) 0%, rgba(10, 22, 32, .78) 36%, rgba(10, 22, 32, .1) 68%); }
.hero-text { position: absolute; inset: 0; display: flex; align-items: center; pointer-events: none; z-index: 2; }
.hero-text .container > * { max-width: 540px; }
.hero-text a { pointer-events: auto; }
.hero-text p { color: #fff; }
.hero-kicker { text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; }
.hero-text h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 800; }
.hero-text h1 em { font-style: normal; color: var(--gold-light); }
.hero-lead { font-size: 1.05rem; margin-bottom: 1.5rem; }
.hero .carousel-control-prev, .hero .carousel-control-next { width: 44px; height: 44px; top: auto; bottom: 18px; z-index: 3; background: rgba(0, 0, 0, .45); border-radius: 50%; }
.hero .carousel-control-prev { left: auto; right: 74px; }
.hero .carousel-control-next { right: 20px; }
.hero .carousel-control-prev-icon, .hero .carousel-control-next-icon { width: 1.1rem; height: 1.1rem; }
@media (max-width: 767.98px) { .hero .carousel-item::after { background: rgba(10, 22, 32, .74); } }

/* Page banner */
.page-banner { background: linear-gradient(90deg, rgba(10, 22, 32, .94), rgba(10, 22, 32, .55)), url('../img/hero/hero-warehouse.jpg') center / cover; padding: 3.5rem 0; }
.page-banner h1 { color: #fff; font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
.page-banner ol { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; font-size: .85rem; color: #fff; }
.page-banner li + li::before { content: '/'; margin: 0 .55rem; color: var(--gold-light); }
.page-banner a { color: var(--gold-light); }

/* Bootstrap's widest gutter is larger than the page padding, which causes sideways scrolling on small screens */
@media (max-width: 991.98px) { .row.g-5 { --bs-gutter-x: 1.5rem; } }

/* Sections */
.section { padding: 4rem 0; }
.section-cream { background: var(--cream); }
.section-mist { background: var(--mist); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.section-head p:last-child { margin-bottom: 0; }
.lead-text { font-size: 1rem; }
.intro-text { max-width: 640px; margin: 0 auto 2rem; text-align: center; }
.img-cover { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.service-row { scroll-margin-top: 80px; }
/* the AJAX machine photo is small, so don't stretch it */
#ajax .img-cover { max-width: 420px; aspect-ratio: auto; display: block; margin-inline: auto; }

.photo-stack { position: relative; padding: 0 0 3.5rem 0; }
.photo-stack::before { content: ''; position: absolute; top: 24px; right: 0; width: 32%; height: 68%; background: #f3ead6; }
.photo-main { position: relative; width: 86%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-inset { position: absolute; right: 12px; bottom: 0; width: 48%; aspect-ratio: 1 / 1; object-fit: cover; border: 5px solid #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, .18); }

.highlights { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1.5rem 0; }
.highlights li { display: flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .8rem; line-height: 1.35; color: var(--navy); }
.highlights i { font-size: 1.7rem; color: var(--gold); }

.check-list { list-style: none; padding: 0; }
.check-list li { display: flex; gap: .7rem; margin-bottom: .7rem; }
.check-list i { color: var(--gold); font-size: 1.1rem; line-height: 1.5; }

/* Service cards */
.service-card { display: flex; flex-direction: column; height: 100%; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .06); transition: transform .25s, box-shadow .25s; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(0, 0, 0, .12); }
.service-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.service-body { display: flex; flex-direction: column; gap: .45rem; padding: .9rem; font-size: .8rem; color: var(--muted); line-height: 1.55; }
.service-body h3 { font-size: .86rem; line-height: 1.35; margin: 0; }
.side-nav { background: var(--cream); padding: 1.5rem; position: sticky; top: 100px; }
.side-nav h2 { font-size: 1.1rem; }
.side-nav ul { list-style: none; padding: 0; margin: 0; }
.side-nav a { display: block; padding: .55rem .75rem; color: var(--navy); font-weight: 600; font-size: .86rem; border-left: 3px solid transparent; }
.side-nav a:hover, .side-nav a.active { background: #fff; border-left-color: var(--gold); color: var(--gold-dark); }
.footer-services { padding-top: 1rem; font-size: .78rem; }

/* Projects */
.project-card { display: block; height: 100%; }
.project-thumb { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.project-card:hover img { transform: scale(1.05); }
.project-card h3 { font-size: .98rem; margin: .7rem 0 .1rem; }
.project-card p { font-size: .8rem; margin: 0; }
.badge-ongoing { position: absolute; top: 10px; left: 10px; background: var(--gold); color: #fff; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: .2rem .6rem; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2rem; }
.filters button { background: #fff; border: 1px solid #d9dee1; border-radius: 3px; padding: .4rem 1rem; font-size: .82rem; font-weight: 600; color: var(--navy); }
.filters button.active { background: var(--gold); border-color: var(--gold); color: #fff; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: #e6e1d6; border: 1px solid #e6e1d6; margin-bottom: 2rem; }
.facts div { background: var(--cream); padding: .9rem 1.1rem; }
.facts dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-dark); }
.facts dd { margin: .2rem 0 0; font-weight: 600; }
/* fill the unused cells of the last row */
.facts { background: var(--cream); }
.facts div { box-shadow: 0 0 0 1px #e6e1d6; }
.gallery-item { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery-item i { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2rem; color: #fff; background: rgba(10, 22, 32, .45); opacity: 0; transition: opacity .25s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:hover i, .gallery-item:focus-visible i { opacity: 1; }

/* Process */
.process-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.process-steps li { position: relative; }
.process-steps li:not(:last-child)::after { content: '\2192'; position: absolute; right: -1.2rem; top: .6rem; font-size: 1.4rem; color: #9aa6ad; }
.step-number { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--gold); color: #fff; font-weight: 700; margin-bottom: .75rem; }
.process-steps h3 { font-size: .95rem; }
.process-steps p { font-size: .8rem; margin: 0 auto; max-width: 190px; }
@media (max-width: 767.98px) {
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps li::after { display: none; }
}

/* Cards */
.why-card { display: flex; flex-direction: column; align-items: center; gap: .6rem; height: 100%; background: #fff; padding: 1.4rem .8rem; font-weight: 600; font-size: .85rem; line-height: 1.4; }
.why-card i { font-size: 2rem; color: var(--gold); }
.team-card { height: 100%; background: #fff; padding: 1.75rem 1rem; box-shadow: 0 6px 18px rgba(0, 0, 0, .05); }
.team-initial { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--navy); color: var(--gold-light); font-size: 1.5rem; font-weight: 700; margin-bottom: .8rem; }
.team-card h3 { font-size: 1rem; margin-bottom: .2rem; }
.team-card p { margin: 0; font-size: .82rem; }
.testimonial { height: 100%; background: var(--mist); padding: 1.5rem; margin: 0; }
.testimonial i { font-size: 2rem; color: var(--gold-light); }
.testimonial blockquote { font-size: .88rem; }
.testimonial figcaption span { display: block; font-size: .75rem; color: var(--muted); }
.video-frame { box-shadow: 0 16px 36px rgba(0, 0, 0, .15); }

/* Enquiry form and contact */
.enquiry-form { background: #fff; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: 0 12px 34px rgba(0, 0, 0, .08); border-top: 3px solid var(--gold); scroll-margin-top: 90px; }
.enquiry-form h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.enquiry-form .form-label { font-size: .78rem; font-weight: 600; margin-bottom: .25rem; }
.enquiry-form .form-control { border-radius: 3px; font-size: .9rem; }
.enquiry-form .form-control:focus { border-color: var(--gold); box-shadow: 0 0 0 .2rem rgba(176, 138, 62, .2); }
.hp-field { position: absolute; left: -9999px; }
.contact-list { list-style: none; padding: 0; margin-top: 1.5rem; }
.contact-list li { display: flex; gap: 1rem; margin-bottom: 1.4rem; }
.contact-list > li > i { flex: 0 0 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--cream); color: var(--gold); font-size: 1.2rem; }
.contact-list h3 { font-size: .95rem; margin-bottom: .2rem; }
.contact-list p { margin: 0; }
.contact-list a { display: block; color: var(--muted); overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--gold-dark); }
.map { display: block; width: 100%; height: 400px; border: 0; }

/* Call to action and footer */
.cta-band { background: linear-gradient(90deg, #1a2f33, #14252c); padding: 2.5rem 0; color: #fff; }
.cta-band h2, .cta-band p, .cta-band .eyebrow { color: #fff; }
.cta-band h2 { font-size: 1.5rem; }
.cta-contacts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .8rem; }
.cta-contacts li { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.cta-contacts i { font-size: 1.4rem; color: var(--gold-light); }
.cta-contacts a { display: block; color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.cta-contacts small { display: block; color: #c4ced3; }

.site-footer { background: var(--navy-deep); color: #c4ced3; padding: 1.75rem 0 1.25rem; font-size: .82rem; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.brand-light img { border-radius: 4px; }
.brand-light strong { color: #fff; }
.brand-light small { color: #c4ced3; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; list-style: none; padding: 0; margin: 0; }
.footer-nav a, .footer-social a, .footer-bottom a { color: #fff; }
.footer-nav a:hover, .footer-social a:hover, .footer-bottom a:hover { color: var(--gold-light); }
.footer-social { display: flex; gap: 1rem; font-size: 1.25rem; }
.footer-offices { padding: 1rem 0 .25rem; }
.footer-offices p { color: #c4ced3; margin-bottom: .3rem; }
.footer-offices strong { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding-top: .75rem; }

.to-top { position: fixed; right: 18px; bottom: 18px; width: 42px; height: 42px; display: grid; place-items: center; background: var(--gold); color: #fff; border-radius: 4px; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; z-index: 1030; }
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { color: #fff; background: var(--gold-dark); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
