/* ==========================================================================
   A2Z Envirotech — Exact UI Match Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --bg: #ffffff;
  --bg-soft: #f0f7f9;
  --bg-deep: #0a1c24;
  --ink: #0f1f26;
  --ink-soft: #5a6e75;
  --line: #dce6ea;
  --teal: #0d8a8a;
  --teal-dark: #096b6b;
  --blue: #0f5b7a;
  --blue-light: #e6f2f5;
  --amber: #d98c1f;
  --max: 1240px;
  --radius: 8px;
  --font-head: 'Archivo', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 1.2;
}
p { margin: 0 0 1em; color: var(--ink-soft); }
a { text-decoration: none; transition: all 0.2s ease; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 40px 0; }
.section-soft { background: var(--bg-soft); }
.section-deep { background: var(--bg-deep); color: #fff; }
.section-deep h2, .section-deep h3 { color: #fff; }
.section-deep p { color: #a4b8c0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem;
  padding: 14px 28px; border-radius: 50px; border: 1px solid transparent;
  cursor: pointer; transition: all 0.2s ease;
}
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); transform: translateY(-2px); }
.btn-outline { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-white { background: #fff; color: var(--teal); }
.btn-white:hover { background: #f0f7f9; transform: translateY(-2px); }

/* Header */
header.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); padding: 15px 0; }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-text .name { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--ink); }
.brand-text .tag { font-size: 0.65rem; letter-spacing: 0.5px; color: var(--ink-soft); text-transform: uppercase; visibility: hidden; }

nav.main-nav > ul { display: flex; gap: 26px; }
nav.main-nav a { color: var(--ink); font-weight: 600; font-size: 0.9rem; padding: 8px 0; border-bottom: 2px solid transparent; }
nav.main-nav a:hover, nav.main-nav a.active { color: var(--teal); border-color: var(--teal); }
.dropdown { position: relative; }
.dropdown-panel { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--line); min-width: 260px; padding: 10px; box-shadow: 0 10px 20px rgba(0,0,0,0.05); border-radius: var(--radius); }
.dropdown:hover .dropdown-panel { display: block; }
.dropdown-panel li a { display: block; padding: 10px 14px; font-weight: 500; border: none; border-radius: var(--radius); }
.dropdown-panel li a:hover { background: var(--bg-soft); color: var(--teal); }
/* Chevron showing that a nav item has a sub menu */
nav.main-nav .dropdown > a::after {
  content: ''; display: inline-block; vertical-align: middle; width: 6px; height: 6px; margin-left: 7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform 0.2s;
}
.dropdown:hover > a::after { transform: translateY(2px) rotate(-135deg); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); width: 42px; height: 42px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ''; display: block; width: 20px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before { top: -6px; position: absolute; }
.nav-toggle span::after { top: 6px; position: absolute; }

/* Hero Section */
/* Hero: a left content / right image slider, one slide visible at a time (script.js) */
.hero { position: relative; background: var(--bg-soft); padding: 0 0 50px; overflow: hidden; }
.hero .container { position: relative; max-width: none; padding: 0; }
.hero-slider { position: relative; min-height: 480px; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); gap: 80px; align-items: center; padding: 64px max(24px, calc((100vw - 1240px) / 2 + 24px)); background: center / cover no-repeat; opacity: 0; transform: translateX(100%); visibility: hidden; pointer-events: none; transition: opacity .65s ease, transform .65s cubic-bezier(.22,.61,.36,1), visibility .65s; }
.hero-slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(240,247,249,.97) 0%, rgba(240,247,249,.9) 44%, rgba(240,247,249,.62) 100%); }
.hero-slide.is-active { opacity: 1; transform: translateX(0); visibility: visible; pointer-events: auto; }
.hero-slide--water { background-image: url('img/hero-bg.jpg'); }
.hero-slide--etp { background-image: url('img/etp-main.jpg'); }
.hero-slide--equipment { background-image: url('img/proj-main.jpg'); }
.hero-content, .hero-tabs { position: relative; z-index: 1; }
.hero-content { max-width: 560px; }
.hero h1, .cta-band h2 { font-size: 1.9rem; }
.hero h1 { font-weight: 800; color: var(--ink); margin-bottom: 18px; line-height: 1.15; }
.hero h1 span { color: var(--teal); }
.hero p { font-size: 1.1rem; max-width: 50ch; color: var(--ink-soft); }
.hero-btns { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }

.hero-dots { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.hero-dot { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: none; background: var(--line); cursor: pointer; }
.hero-dot.is-active { background: var(--teal); width: 26px; border-radius: 5px; }

.hero-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero-tab { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; min-height: 104px; background: rgba(255,255,255,.9); padding: 18px; border-radius: var(--radius); font-weight: 600; font-size: 0.9rem; color: var(--ink); border: 1px solid rgba(255,255,255,.85); box-shadow: 0 10px 25px rgba(15,31,38,.12); backdrop-filter: blur(4px); }
.hero-tab strong { color: var(--teal); font-family: var(--font-head); font-size: 1rem; }
.hero-tab span { color: var(--ink); }

/* About Section */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img-wrap { position: relative; }
.about-img-wrap img { border-radius: var(--radius); box-shadow: 0 20px 40px rgba(0,0,0,0.1); width: 100%; height: 400px; object-fit: cover; }
.about-badge { position: absolute; bottom: -20px; left: 10px; background: var(--teal); color: #fff; padding: 16px 24px; border-radius: var(--radius); font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; gap: 10px; box-shadow: 0 10px 20px rgba(13,138,138,0.3); }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; border-top: 1px solid var(--line); padding-top: 30px; }
.about-stats .stat b { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--teal); }
.about-stats .stat span { font-size: 0.85rem; color: var(--ink-soft); }

/* Solutions Section */
.solutions-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: stretch; }
.sol-main-card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 400px; }
.sol-main-card img { width: 100%; height: 100%; object-fit: cover; }
.sol-main-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.8)); padding: 40px; color: #fff; }
.sol-main-overlay h3 { color: #fff; font-size: 1.8rem; margin-bottom: 10px; }
.sol-main-overlay p { color: #dce6ea; margin-bottom: 20px; }
.sol-list { display: flex; flex-direction: column; gap: 16px; }
.sol-item { display: flex; align-items: center; gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; transition: all 0.2s ease; cursor: pointer; }
.sol-item:hover { border-color: var(--teal); box-shadow: 0 5px 15px rgba(0,0,0,0.05); transform: translateX(5px); }
.sol-item img { width: 80px; height: 80px; border-radius: var(--radius); object-fit: cover; flex: none; }
.sol-item-info h4 { font-size: 1.1rem; margin-bottom: 4px; color: var(--ink); }
.sol-item-info p { font-size: 0.85rem; margin: 0; color: var(--ink-soft); }
.sol-item .arrow { margin-left: auto; color: var(--teal); font-size: 1.2rem; }

.sol-bottom-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 40px; }
.sol-bottom-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; transition: all 0.2s ease; }
.sol-bottom-item:hover { border-color: var(--teal); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.sol-bottom-item img { width: 60px; height: 60px; object-fit: contain; margin: 0 auto 12px; }
.sol-bottom-item h5 { font-size: 0.9rem; margin: 0; color: var(--ink); }

/* Process Section */
.process-header { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; margin-bottom: 40px; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.process-step { background: #fff; padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); position: relative; transition: all 0.3s ease; }
.process-step:hover { border-color: var(--teal); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.process-step .num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--teal); color: #fff; border-radius: 50%; font-family: var(--font-head); font-weight: 700; margin-bottom: 16px; }
.process-step h4 { font-size: 1.1rem; margin-bottom: 8px; }
.process-step p { font-size: 0.9rem; margin: 0; }

/* Industries Section */
.industries-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.industry-card { position: relative; border-radius: var(--radius); overflow: hidden; height: 250px; }
.industry-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.industry-card:hover img { transform: scale(1.05); }
.industry-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.8)); padding: 20px; color: #fff; }
.industry-overlay h4 { color: #fff; font-size: 1.1rem; margin-bottom: 4px; }
.industry-overlay a { color: #dce6ea; font-size: 0.85rem; font-weight: 600; }

/* Featured Project */
.project-feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; background: #fff; border-radius: var(--radius); overflow: hidden; border: none; }
.project-feature-img img { width: 100%; height: 100%; object-fit: cover; min-height: 400px; }
.project-feature-info { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.project-feature-info h3 { font-size: 1.8rem; margin-bottom: 16px; }
.project-feature-info .meta { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; border-top: 1px solid var(--line); padding-top: 20px; }
.project-feature-info .meta-item span { display: block; font-size: 0.8rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.5px; }
.project-feature-info .meta-item b { font-size: 1rem; color: var(--ink); }

/* Technology Section */
.tech-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.tech-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; transition: all 0.2s ease; }
.tech-card:hover { border-color: var(--teal); transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.tech-card img { height: 80px; object-fit: contain; margin: 0 auto 16px; }
.tech-card h4 { font-size: 0.95rem; margin-bottom: 8px; }
.tech-card a { font-size: 0.85rem; font-weight: 700; color: var(--teal); }

/* Sustainability Section */
.sustainability { background: url('img/sustainability-bg.jpg') no-repeat center center/cover; position: relative; padding: 100px 0; }
.sustainability::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(10, 28, 36, 0.85); }
.sustainability .container { position: relative; z-index: 2; }
.sus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.sus-icons { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sus-icon-item { display: flex; align-items: center; gap: 16px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 20px; border-radius: var(--radius); backdrop-filter: blur(5px); }
.sus-icon-item svg { width: 32px; height: 32px; color: #4fd1c5; flex: none; }
.sus-icon-item span { color: #fff; font-weight: 600; font-size: 0.95rem; }

/* Clients Section */
.clients-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 30px; opacity: 0.6; }
.clients-row img { height: 40px; object-fit: contain; filter: grayscale(100%); transition: all 0.2s ease; }
.clients-row img:hover { filter: grayscale(0%); opacity: 1; }

/* CTA Band */
.cta-band { background: url('img/cta-bg.jpg') no-repeat center center/cover; position: relative; padding: 80px 0; }
.cta-band::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(13, 138, 138, 0.9); }
.cta-band .container { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: 1.9rem; margin: 0; max-width: 35ch; }
.cta-band p { color: #d1fae5; margin: 8px 0 0; }
.cta-band .btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* Footer */
footer.site-footer { background: var(--bg-deep); color: #a4b8c0; padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 60px; border-bottom: 1px solid #1a303a; }
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 24px; }
.footer-grid li { margin-bottom: 12px; }
.footer-grid a { color: #a4b8c0; font-size: 0.9rem; }
.footer-grid a:hover { color: #4fd1c5; }
.footer-brand .brand-text .name { color: #fff; }
.footer-brand p { color: #7a949e; font-size: 0.9rem; max-width: 35ch; margin-top: 16px; }
.social-row { display: flex; gap: 12px; margin-top: 20px; }
.social-row a { width: 36px; height: 36px; border: 1px solid #1a303a; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: all 0.2s; }
.social-row a:hover { border-color: #4fd1c5; background: #1a303a; }
.social-row svg { width: 16px; height: 16px; fill: #fff; }
.footer-bottom { display: flex; justify-content: space-between; padding: 24px 0; font-size: 0.85rem; color: #5a727c; flex-wrap: wrap; gap: 12px; }

/* ==========================================================================
   Page components (previously inline styles)
   ========================================================================== */

/* Inner-page header */
.page-header .crumbs { color: #a4b8c0; font-size: 0.9rem; margin-top: 10px; margin-bottom: 10px; }
.page-header .crumbs a { color: #4fd1c5; }
.page-header h1 { color: #4fd1c5; }
.page-header p { color: #a4b8c0; max-width: 60ch; }

/* Eyebrows, titles, section heads */
.eyebrow { color: var(--teal); font-weight: 700; font-size: 0.85rem; letter-spacing: 1px; }
.eyebrow--light { color: #4fd1c5; }
.title-lg, .project-feature-info h3, .title-xl, .title-md { font-size: 1.6rem; }
.title-lg { margin-top: 10px; }
.title-xl { margin-top: 10px; color: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; }
.center-head { text-align: center; margin-bottom: 40px; }
.center-head--wide { margin-bottom: 50px; }

/* Links */
.link-cta { color: var(--teal); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.link-project { color: var(--teal); font-weight: 700; margin-top: 20px; display: inline-block; }

/* Home page details */
.sol-main-overlay h4 { color: #fff; font-size: 1.4rem; margin-bottom: 10px; }
.sol-main-overlay a { color: #fff; font-weight: 700; }
.sol-bottom-item p { font-size: 0.8rem; margin: 5px 0 0; }
.sustainability p { color: #a4b8c0; font-size: 1.1rem; max-width: 50ch; }
.cta-band .btn-outline { border-color: #fff; color: #fff; }

/* Projects & products */
.industry-overlay span { color: #4fd1c5; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.industry-overlay p { color: #dce6ea; font-size: 0.85rem; margin: 5px 0 0; }
.tech-card p { font-size: 0.85rem; }
a.tech-card { display: block; color: inherit; }   /* product cards that link to their product page */

/* Product detail page: label/value spec rows, reusing the site's card look */
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-row { background: #fff; padding: 18px 24px; display: flex; justify-content: space-between; gap: 20px; }
.spec-row span { color: var(--ink-soft); }
.spec-row b { color: var(--ink); text-align: right; }
.product-group { padding: 50px 0; border-bottom: 1px solid var(--line); }
.product-group:first-child { padding-top: 0; }

/* Filter chips */
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; justify-content: center; }
.btn-chip { padding: 8px 20px; font-size: 0.85rem; border-radius: 50px; }
.btn-chip.is-static { cursor: default; }

/* About page */
.about-grid--top { align-items: start; }
.about-point { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.about-point h3 { margin-bottom: 5px; }
.about-point p, .contact-item p { margin: 0; font-size: 0.95rem; }
.point-icon { width: 28px; height: 28px; color: var(--teal); flex: none; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: stretch; }
.feature-card, .form-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.feature-card { padding: 30px; }
.feature-icon { width: 40px; height: 40px; color: var(--teal); margin-bottom: 15px; }

/* Services page */
.service-block { padding: 60px 0; border-bottom: 1px solid var(--line); }
.solution-icon { width: 50px; height: 50px; color: var(--teal); margin-bottom: 20px; }
.check-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.check-item p { margin: 0; }
.check-icon { width: 22px; height: 22px; color: var(--teal); flex: none; }
.order-1 { order: 1; }
.order-2 { order: 2; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { height: auto; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.blog-card-thumb { height: 180px; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; }
.blog-card-thumb img { width: 80px; height: 80px; object-fit: contain; }
.blog-card-body { padding: 20px; background: #fff; }
.blog-card-meta { font-size: 0.8rem; color: var(--ink-soft); }
.blog-card-body h4 { margin: 8px 0; color: var(--ink); }
.blog-card-body p { font-size: 0.9rem; color: var(--ink-soft); }
.blog-card-body a { color: var(--teal); font-weight: 700; font-size: 0.9rem; }

/* Contact page */
.contact-item { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-item h3 { margin-bottom: 5px; font-size: 1.1rem; }
.contact-item a { color: var(--teal); }
.map-embed { width: 100%; height: 300px; border: 0; border-radius: var(--radius); }
.form-card { padding: 40px; }
.form-card h2 { font-size: 1.8rem; margin-bottom: 10px; }
.form-card > p { margin-bottom: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-full { grid-column: 1 / -1; }
.form-card label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.9rem; }
.form-card input, .form-card select, .form-card textarea { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.form-card textarea { min-height: 120px; }
.form-submit { margin-top: 25px; width: 100%; }

/* Footer */
.footer-bottom a { color: #5a727c; }

/* Spacing utilities */
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-0 { margin-bottom: 0; }
.mb-30 { margin-bottom: 30px; }

/* Responsive */
/* Navigation collapses to the menu button below 1166px: the full desktop nav needs that much room */
/* Narrow desktops: keep the full nav on one line (it fits from 1240px without these tweaks) */
@media (min-width: 1166px) and (max-width: 1239px) {
  .nav-row { gap: 14px; }
  nav.main-nav > ul { gap: 16px; }
  .brand-text .name, .nav-cta .btn { white-space: nowrap; }
}

@media (max-width: 1165px) {
  .nav-row { flex-wrap: nowrap; }
  .brand { flex: none; }
  .brand-text .name { white-space: nowrap; }
  .brand-text .tag { display: none; } /* already invisible; stop it reserving width */
  .nav-cta { display: flex; align-items: center; gap: 12px; }
  .nav-cta .btn { white-space: nowrap; }
  .nav-toggle { display: flex; flex: none; }

  nav.main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); overflow-y: auto;
    background: #fff; padding: 24px; flex-direction: column; align-items: stretch;
    transform: translateY(-10px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: 0.3s; box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }
  nav.main-nav.open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  nav.main-nav > ul { flex-direction: column; gap: 0; }
  nav.main-nav > ul > li { border-bottom: 1px solid var(--line); }
  nav.main-nav a { display: block; padding: 16px 0; }
  /* Sub menus: closed until the parent item is tapped (script.js toggles .is-open) */
  nav.main-nav .dropdown > a { display: flex; align-items: center; justify-content: space-between; }
  nav.main-nav .dropdown > a::after { margin: 0 6px 0 12px; }
  .dropdown-panel { display: none; position: static; min-width: 0; border: none; box-shadow: none; padding: 0 0 8px 16px; }
  .dropdown:hover .dropdown-panel { display: none; }            /* :hover is unreliable on touch */
  .dropdown.is-open .dropdown-panel { display: block; }
  .dropdown:hover > a::after { transform: translateY(-2px) rotate(45deg); }
  .dropdown.is-open > a::after { transform: translateY(2px) rotate(-135deg); }
  nav.main-nav .dropdown-panel a { padding: 10px 0; }

  /* The 4-up step grid is too tight inside a half-width column here */
  .process-header { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 1024px) {
  .hero-slide { grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr); gap: 40px; padding: 48px 40px; }
  .hero-content { max-width: 560px; }
  .about-grid, .solutions-grid, .project-feature, .sus-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .sol-bottom-grid { grid-template-columns: repeat(3, 1fr); }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  /* Grids are single-column here, so keep the text block ahead of its list */
  .order-1, .order-2 { order: 0; }
  .service-block { border-bottom: none; }
  .project-feature { border: 1px solid var(--line); }
}

@media (max-width: 768px) {
  /* ---- Header ---- */
  .brand-text .name { font-size: 1.1rem; }
  .nav-row { gap: 12px; }
  .nav-cta .btn { padding: 10px 18px; font-size: 0.85rem; }

  /* ---- Layout & spacing ---- */
  .section { padding: 20px 0; }
  .hero { padding: 0 0 32px; min-height: 0; }
  .hero-slider { min-height: 620px; }
  .hero-slide { grid-template-columns: 1fr; gap: 28px; align-content: start; padding: 36px 24px; }
  .hero-content { max-width: 100%; }
  .hero-tabs { position: static; width: auto; transform: none; }
  .hero-tab { min-height: 76px; padding: 14px; }
  .page-header h1 { font-size: 1.8rem; }
  .hero h1, .cta-band h2 { font-size: 1.5rem; }
  .title-lg, .project-feature-info h3, .title-xl, .title-md { font-size: 1.3rem; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 30px; }
  .center-head, .center-head--wide { margin-bottom: 32px; }
  .filter-row { margin-bottom: 30px; }

  /* ---- Grids that previously stayed multi-column ---- */
  .about-grid { gap: 40px; }
  .process-step { padding: 24px; }
  .feature-grid, .blog-grid { grid-template-columns: 1fr; gap: 24px; }
  .spec-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .sus-icons { grid-template-columns: 1fr; gap: 16px; }
  .process-grid, .industries-grid, .tech-grid, .sol-bottom-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-bottom: 40px; }
  .about-stats { grid-template-columns: 1fr 1fr; }

  /* ---- Components ---- */
  .about-img-wrap img { height: 260px; }
  .about-badge { left: 12px; right: 12px; bottom: -20px; }
  .sol-main-card { min-height: 320px; }
  .sol-main-overlay { padding: 24px; }
  .sol-main-overlay h3 { font-size: 1.5rem; }
  .project-feature-img img { min-height: 240px; }
  .project-feature-info { padding: 24px; }
  .sustainability { padding: 64px 0; }
  .sus-grid { gap: 40px; }
  .clients-row { justify-content: center; }
  .cta-band { padding: 56px 0; }
  .cta-band .container { gap: 24px; }
  .service-block { padding: 40px 0; }
  .product-group { padding: 40px 0; }
  .product-group:first-child { padding-top: 0; }
  .feature-card { padding: 24px; }
  .form-card { padding: 24px; }
  .form-card input, .form-card select, .form-card textarea { font-size: 16px; } /* stops iOS zoom-on-focus */
  .map-embed { height: 240px; }
  footer.site-footer { padding-top: 56px; }
  .contact-item p, .footer-grid a { overflow-wrap: anywhere; }
  .footer-bottom { justify-content: center; }
}

@media (max-width: 540px) {
  /* Not enough room for logo + CTA + menu button; Contact stays in the menu */
  .nav-cta .btn { display: none; }
}

@media (max-width: 480px) {
  .hero-slider { min-height: 620px; }
  .hero-tabs { grid-template-columns: 1fr 1fr; }
  .hero-slide::before { background: linear-gradient(180deg, rgba(240,247,249,0.97) 0%, rgba(218,223,266,0.9) 44%, rgba(228,217,230,-0.38) 100%); }
}
