/* =========================================================================
   Newtech Chemicals — global stylesheet
   Bluish water theme + golden accent. Mobile-first.
   ========================================================================= */

:root {
    --navy:       #0A2540;
    --blue:       #1565C0;
    --accent:     #2E9BD6;
    --tint:       #E8F4FB;
    --gold:       #F2A900;
    --gold-dark:  #d6940a;

    --ink:        #0A2540;
    --muted:      #4a5d72;
    --line:       #d9e6f0;
    --white:      #ffffff;
    --bg-soft:    #f5fafd;

    --radius:     14px;
    --radius-sm:  10px;
    --shadow:     0 8px 30px rgba(10, 37, 64, .08);
    --shadow-lg:  0 20px 50px rgba(10, 37, 64, .15);
    --container:  1200px;

    --ff-body:    'Inter', 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --ff-head:    'Poppins', 'Inter', system-ui, sans-serif;
}

/* ---- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--ff-body);
    color: var(--ink);
    background: var(--white);
    line-height: 1.65;
    font-size: 16px;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 { font-family: var(--ff-head); color: var(--navy); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p  { color: var(--muted); }

/* ---- Layout helpers ------------------------------------------------------ */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.section { padding: 72px 0; }
.section.alt { background: var(--bg-soft); }
.section.navy { background: var(--navy); color: #cfe2f2; }
.section.navy h2, .section.navy h3 { color: #fff; }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head .eyebrow {
    display: inline-block; font-family: var(--ff-head); font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase; font-size: .78rem;
    color: var(--blue); background: var(--tint); padding: 6px 16px; border-radius: 30px; margin-bottom: 16px;
}
.section-head p { font-size: 1.05rem; }

.grid { display: grid; gap: 24px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
    font-family: var(--ff-head); font-weight: 600; font-size: .97rem;
    padding: 13px 26px; border-radius: 40px; border: 2px solid transparent;
    transition: transform .15s, box-shadow .2s, background .2s, color .2s;
    white-space: nowrap; text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-gold   { background: var(--gold); color: var(--navy); box-shadow: 0 8px 20px rgba(242,169,0,.35); }
.btn-gold:hover { background: var(--gold-dark); color: var(--navy); }
.btn-blue   { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--navy); color: #fff; }
.btn-outline{ background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: #fff; color: var(--navy); border-color:#fff; }
.btn-outline-blue { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline-blue:hover { background: var(--blue); color:#fff; }

/* =========================================================================
   HEADER
   ========================================================================= */
.topbar { background: var(--navy); color: #cfe2f2; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: #cfe2f2; }
.topbar a:hover { color: var(--gold); }
.topbar-phones { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar-phones .tp { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.topbar-phones svg { width: 15px; height: 15px; color: var(--gold); }
.topbar-meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.topbar-meta .tm { display: inline-flex; align-items: center; gap: 6px; }
.topbar-meta svg { width: 14px; height: 14px; color: var(--accent); }

.site-header {
    position: sticky; top: 0; z-index: 100; background: #fff;
    border-bottom: 1px solid var(--line); transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(10,37,64,.10); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 78px; }

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 52px; width: auto; max-width: 200px; object-fit: contain; display: block; }
.brand .brand-fallback { display: flex; align-items: center; gap: 11px; }
.mobile-cta { display: none; }
.brand .logo-mark {
    width: 46px; height: 46px; border-radius: 12px; flex: none;
    background: linear-gradient(135deg, var(--blue), var(--accent));
    display: grid; place-items: center; color: #fff; box-shadow: 0 6px 16px rgba(21,101,192,.35);
}
.brand .logo-mark svg { width: 26px; height: 26px; }
.brand .brand-text strong { font-family: var(--ff-head); font-size: 1.18rem; color: var(--navy); display:block; line-height:1.1; font-weight:800; }
.brand .brand-text span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); font-weight:600; }
.brand .brand-text strong b { color: var(--gold); }

.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav a {
    font-family: var(--ff-head); font-weight: 600; font-size: .96rem; color: var(--navy);
    padding: 9px 15px; border-radius: 8px; position: relative;
}
.main-nav a::after {
    content:""; position:absolute; left:15px; right:15px; bottom:4px; height:2px;
    background: var(--gold); transform: scaleX(0); transform-origin:left; transition: transform .25s;
}
.main-nav a:hover, .main-nav a.active { color: var(--blue); }
.main-nav a.active::after, .main-nav a:hover::after { transform: scaleX(1); }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-call { display: inline-flex; align-items: center; gap: 8px; font-family: var(--ff-head); font-weight: 700; color: var(--navy); font-size: .98rem; }
.nav-call svg { width: 34px; height: 34px; padding: 8px; background: var(--tint); border-radius: 50%; color: var(--blue); }
.nav-call small { display:block; font-size:.66rem; font-weight:500; color:var(--muted); letter-spacing:.05em; text-transform:uppercase; }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 26px; height: 3px; background: var(--navy); border-radius: 3px; transition: .3s; }
.hamburger span + span { margin-top: 6px; }
.hamburger.open span:nth-child(1){ transform: translateY(9px) rotate(45deg); }
.hamburger.open span:nth-child(2){ opacity: 0; }
.hamburger.open span:nth-child(3){ transform: translateY(-9px) rotate(-45deg); }

.nav-overlay { display: none; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
    position: relative; color: #fff; overflow: hidden;
    background:
        linear-gradient(100deg, rgba(10,37,64,.86) 0%, rgba(10,37,64,.55) 48%, rgba(21,101,192,.30) 100%),
        url('../images/hero.png') center/cover no-repeat,
        linear-gradient(120deg, #0A2540, #1565C0);
    padding: clamp(70px, 11vw, 130px) 0;
}
.hero::after {
    content:""; position:absolute; left:0; right:0; bottom:-1px; height:90px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,40 C240,90 480,0 720,30 C960,60 1200,95 1440,45 L1440,90 L0,90 Z'/%3E%3C/svg%3E") bottom/cover no-repeat;
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 .hl { color: var(--gold); }
.hero p.lead { font-size: 1.18rem; color: #e4f1fb; max-width: 620px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 34px; }
.hero-badges span {
    display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 600;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
    padding: 8px 15px; border-radius: 30px; backdrop-filter: blur(4px);
}
.hero-badges span::before { content:""; width:7px; height:7px; border-radius:50%; background: var(--gold); }

.ripple { position:absolute; border:2px solid rgba(255,255,255,.15); border-radius:50%; z-index:1; animation: ripple 7s ease-out infinite; }
.ripple.r1 { width:260px; height:260px; right:8%; top:18%; }
.ripple.r2 { width:160px; height:160px; right:24%; bottom:22%; animation-delay:2.5s; }
.ripple.r3 { width:380px; height:380px; right:-4%; bottom:-10%; animation-delay:4s; }
@keyframes ripple { 0%{ transform:scale(.6); opacity:.5;} 100%{ transform:scale(1.25); opacity:0;} }

/* =========================================================================
   INTRO STRIP
   ========================================================================= */
.intro-strip { background: var(--tint); }
.intro-strip .container { display:flex; align-items:center; gap:28px; flex-wrap:wrap; }
.intro-strip .intro-mark { flex:none; width:64px; height:64px; border-radius:16px; background:var(--blue); display:grid; place-items:center; color:#fff; }
.intro-strip .intro-mark svg { width:34px; height:34px; }
.intro-strip p { font-size: 1.12rem; color: var(--navy); flex:1; min-width:280px; }

/* =========================================================================
   CARDS
   ========================================================================= */
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden; transition: transform .25s, box-shadow .25s;
    display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.division-card { padding: 0; }
.division-card .dc-img { height: 190px; position: relative; background: linear-gradient(135deg,var(--accent),var(--blue)); }
.division-card .dc-img img { width:100%; height:100%; object-fit: cover; }
.division-card .dc-body { padding: 26px 26px 28px; display:flex; flex-direction:column; flex:1; }
.division-card h3 { margin-bottom: 10px; }
.division-card ul.tags { display:flex; flex-wrap:wrap; gap:7px; margin:14px 0 20px; }
.division-card ul.tags li { font-size:.78rem; background:var(--tint); color:var(--blue); padding:5px 11px; border-radius:20px; font-weight:600; }
.division-card .btn { margin-top:auto; align-self:flex-start; }

.trust-tile { padding: 30px 26px; text-align: left; }
.trust-tile .ico { width: 56px; height: 56px; border-radius: 14px; display:grid; place-items:center; background: var(--tint); color: var(--blue); margin-bottom: 18px; }
.trust-tile .ico svg { width: 30px; height: 30px; }
.trust-tile h3 { font-size: 1.12rem; margin-bottom: 8px; }
.trust-tile p { font-size: .94rem; }

/* =========================================================================
   STATS BAND
   ========================================================================= */
.stats { background: linear-gradient(120deg, var(--navy), var(--blue)); color:#fff; }
.stats .grid { gap: 20px; }
.stat { text-align: center; padding: 18px 10px; }
.stat .num { font-family: var(--ff-head); font-size: clamp(2.2rem,5vw,3.2rem); font-weight: 800; color: var(--gold); line-height:1; }
.stat .lbl { margin-top: 8px; font-size: .98rem; color: #d6e7f5; font-weight:500; }

/* =========================================================================
   CLIENT MARQUEE
   ========================================================================= */
.marquee { overflow: hidden; padding: 8px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: scroll-x 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .chip {
    flex: none; display:flex; align-items:center; gap:10px; background:#fff; border:1px solid var(--line);
    border-radius: 12px; padding: 16px 24px; font-family: var(--ff-head); font-weight:700; color: var(--navy);
    box-shadow: var(--shadow); white-space: nowrap;
}
.marquee .chip::before { content:""; width:10px; height:10px; border-radius:50%; background: var(--accent); flex:none; }
.marquee .logo-chip {
    flex: none; display: grid; place-items: center; background: #fff; border: 1px solid var(--line);
    border-radius: 12px; height: 96px; width: 180px; padding: 16px 22px; box-shadow: var(--shadow);
}
.marquee .logo-chip img { max-height: 56px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
@keyframes scroll-x { from { transform: translateX(0);} to { transform: translateX(-50%);} }

/* =========================================================================
   GALLERY (fabrication)
   ========================================================================= */
.gallery { display:grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.gallery .g-item { position:relative; border-radius: var(--radius-sm); overflow:hidden; aspect-ratio: 4/3; box-shadow: var(--shadow); background: linear-gradient(135deg,var(--accent),var(--blue)); }
.gallery .g-item img { width:100%; height:100%; object-fit: cover; transition: transform .4s; }
.gallery .g-item:hover img { transform: scale(1.08); }
.gallery .g-item .cap {
    position:absolute; left:0; right:0; bottom:0; padding:14px 14px 12px; color:#fff; font-weight:600; font-size:.9rem;
    background: linear-gradient(transparent, rgba(10,37,64,.85));
}

/* =========================================================================
   CTA BAND
   ========================================================================= */
.cta-band {
    background:
        linear-gradient(120deg, rgba(10,37,64,.93), rgba(21,101,192,.85)),
        url('../images/cta-water.jpg') center/cover no-repeat, var(--navy);
    color:#fff; text-align:center;
}
.cta-band h2 { color:#fff; margin-bottom: 14px; }
.cta-band p { color:#dcebf8; max-width: 640px; margin: 0 auto 26px; font-size:1.08rem; }
.cta-band .hero-cta { justify-content:center; }

/* =========================================================================
   PRODUCTS PAGE
   ========================================================================= */
.dl-bar {
    display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
    background: var(--tint); border:1px solid var(--line); border-radius: var(--radius);
    padding: 22px 28px; margin-bottom: 40px;
}
.dl-bar-text { display:flex; align-items:center; gap:16px; }
.dl-bar-text > svg { width:40px; height:40px; flex:none; color:var(--blue); }
.dl-bar-text b { font-family:var(--ff-head); color:var(--navy); display:block; font-size:1.08rem; }
.dl-bar-text span { color:var(--muted); font-size:.92rem; }
.dl-bar-btns { display:flex; gap:12px; flex-wrap:wrap; }

.tabs { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-bottom: 40px; }
.tab-btn {
    display:inline-flex; align-items:center; gap:8px;
    font-family: var(--ff-head); font-weight:600; font-size:.95rem; cursor:pointer; line-height:1;
    padding: 11px 22px; border-radius: 40px; border:2px solid var(--line); background:#fff; color: var(--navy);
    transition:.2s;
}
.tab-btn svg { width:18px; height:18px; flex:none; }
.tab-btn:hover { border-color: var(--accent); }
.tab-btn.active { background: var(--blue); color:#fff; border-color: var(--blue); }

.tab-panel { display:none; }
.tab-panel.active { display:block; animation: fade .4s ease; }
@keyframes fade { from{ opacity:0; transform: translateY(8px);} to{opacity:1; transform:none;} }

.product-card { padding:0; }
.product-card .pc-img { height: 180px; background: linear-gradient(135deg,var(--accent),var(--blue)); position:relative; }
.product-card .pc-img img { width:100%; height:100%; object-fit: cover; }
.product-card .pc-body { padding: 22px 22px 24px; display:flex; flex-direction:column; flex:1; }
.product-card h3 { font-size:1.1rem; margin-bottom:10px; }
.product-card p { font-size:.93rem; }
.product-card .specs { margin-top: 14px; display:flex; flex-direction:column; gap:7px; }
.product-card .specs li { font-size:.85rem; color:var(--navy); display:flex; gap:9px; align-items:flex-start; }
.product-card .specs li::before { content:""; flex:none; width:7px; height:7px; margin-top:7px; border-radius:50%; background:var(--gold); }
.product-card .pc-foot { margin-top:auto; padding-top:18px; }

/* SVG illustration fallback wrapper */
.illus-wrap { width:100%; height:100%; }
.illus-wrap svg { width:100%; height:100%; display:block; }

.chem-group { margin-bottom: 48px; }
.chem-group-head { display:flex; align-items:center; gap:18px; margin-bottom:22px; }
.chem-group-img { width:70px; height:70px; object-fit:cover; border-radius:12px; flex:none; box-shadow:var(--shadow); border:1px solid var(--line); background:#fff; }
.chem-group-head .group-title { margin:0; padding-left:16px; border-left:5px solid var(--gold); font-size:1.4rem; color:var(--navy); }

.chem-card { padding: 24px; }
.chem-card .chem-head { display:flex; align-items:center; gap:14px; margin-bottom: 12px; }
.chem-card .chem-ico { flex:none; width:48px; height:48px; border-radius:12px; background: var(--tint); color: var(--blue); display:grid; place-items:center; }
.chem-card .chem-ico svg { width:26px; height:26px; }
.chem-card h3 { font-size: 1.05rem; }
.chem-card p { font-size:.92rem; }
.chem-card .specs { margin-top:12px; display:flex; flex-direction:column; gap:6px; }
.chem-card .specs li { font-size:.84rem; color:var(--navy); display:flex; gap:8px; align-items:flex-start; }
.chem-card .specs li::before { content:""; flex:none; width:6px; height:6px; margin-top:7px; border-radius:50%; background:var(--accent); }

/* Component cards (with real photos) */
.comp-card { padding:0; overflow:hidden; }
.comp-card .comp-img { height:150px; background:#fff; display:grid; place-items:center; border-bottom:1px solid var(--line); }
.comp-card .comp-img img { width:100%; height:100%; object-fit:cover; }
.comp-card .comp-name { display:block; padding:14px 16px; font-family:var(--ff-head); font-weight:600; color:var(--navy); font-size:.96rem; text-align:center; }

.amc-note {
    margin-top: 30px; text-align:center; background: var(--navy); color:#fff; border-radius: var(--radius);
    padding: 26px; font-family: var(--ff-head); font-weight:600; font-size:1.1rem;
}
.amc-note span { color: var(--gold); }

/* =========================================================================
   PAGE HERO (interior pages)
   ========================================================================= */
.page-hero {
    color:#fff; text-align:center; padding: clamp(56px,9vw,92px) 0 clamp(70px,10vw,100px);
    position:relative; overflow:hidden;
    background: linear-gradient(120deg, rgba(10,37,64,.92), rgba(21,101,192,.82)),
        url('../images/hero.png') center/cover no-repeat, var(--navy);
}
.page-hero::after {
    content:""; position:absolute; left:0; right:0; bottom:-1px; height:60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,30 C360,70 720,0 1080,25 C1260,38 1380,50 1440,35 L1440,60 L0,60 Z'/%3E%3C/svg%3E") bottom/cover no-repeat;
}
.page-hero h1 { color:#fff; margin-bottom:12px; }
.page-hero p { color:#dcebf8; max-width:640px; margin:0 auto; font-size:1.08rem; }
.breadcrumb { margin-top: 16px; font-size:.9rem; color:#bcd6ec; position:relative; z-index:2; }
.breadcrumb a { color:#bcd6ec; } .breadcrumb a:hover { color:var(--gold); }

/* =========================================================================
   ABOUT
   ========================================================================= */
.about-split { display:grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items:center; }
.about-split .media { border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; background: linear-gradient(135deg,var(--accent),var(--blue)); }
.about-split .media img { width:100%; height:100%; object-fit:cover; }
.about-split h2 { margin-bottom:18px; }
.about-split p + p { margin-top: 14px; }
.founders { display:flex; gap:16px; flex-wrap:wrap; margin-top:22px; }
.founder { display:flex; align-items:center; gap:12px; background:var(--tint); border-radius:12px; padding:12px 18px; }
.founder .av { width:44px; height:44px; border-radius:50%; background:var(--blue); color:#fff; display:grid; place-items:center; font-weight:700; }
.founder b { color:var(--navy); font-family:var(--ff-head); display:block; font-size:.96rem; }
.founder small { color:var(--muted); }

.value-card { padding: 28px; text-align:center; }
.value-card .ico { width:60px; height:60px; border-radius:50%; margin:0 auto 16px; background:var(--tint); color:var(--blue); display:grid; place-items:center; }
.value-card .ico svg { width:30px; height:30px; }

.industry-grid { display:grid; grid-template-columns: repeat(7,1fr); gap:16px; }
.industry { text-align:center; background:#fff; border:1px solid var(--line); border-radius:var(--radius-sm); padding:22px 10px; box-shadow:var(--shadow); transition:transform .2s; }
.industry:hover { transform:translateY(-4px); }
.industry .ico { width:50px; height:50px; margin:0 auto 12px; border-radius:14px; background:var(--tint); color:var(--blue); display:grid; place-items:center; }
.industry .ico svg { width:26px; height:26px; }
.industry span { font-weight:600; font-size:.86rem; color:var(--navy); }

/* =========================================================================
   CLIENTS PAGE
   ========================================================================= */
.client-grid { display:grid; grid-template-columns: repeat(4,1fr); gap:18px; }
.client-cell {
    background:#fff; border:1px solid var(--line); border-radius:var(--radius-sm); padding:26px 18px;
    text-align:center; box-shadow:var(--shadow); transition:transform .2s, border-color .2s;
    display:flex; flex-direction:column; align-items:center; gap:12px; justify-content:center; min-height:130px;
}
.client-cell:hover { transform:translateY(-4px); border-color:var(--accent); }
.client-cell .cl-logo { width:54px; height:54px; border-radius:12px; background:linear-gradient(135deg,var(--accent),var(--blue)); color:#fff; display:grid; place-items:center; font-family:var(--ff-head); font-weight:800; font-size:1.15rem; }
.client-cell span { font-weight:600; color:var(--navy); font-size:.92rem; line-height:1.3; }

/* Client logo wall — uniform, aligned grid */
.logo-wall { display:grid; grid-template-columns:repeat(5,1fr); gap:22px; }
.logo-card {
    background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow);
    height:140px; display:flex; align-items:center; justify-content:center; padding:22px 24px;
    transition:transform .2s, box-shadow .2s;
}
.logo-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-lg); }
.logo-card img { max-width:100%; max-height:78px; width:auto; height:auto; object-fit:contain; }

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact-grid { display:grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items:start; }
.form-card { background:#fff; border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow-lg); padding: 34px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.field { margin-bottom: 16px; }
.field label { display:block; font-weight:600; font-size:.88rem; color:var(--navy); margin-bottom:6px; }
.field input, .field select, .field textarea {
    width:100%; font-family:var(--ff-body); font-size:.96rem; color:var(--ink);
    padding: 12px 14px; border:1.5px solid var(--line); border-radius:10px; background:#fbfdff; transition:border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline:none; border-color:var(--accent); box-shadow:0 0 0 3px rgba(46,155,214,.15); background:#fff;
}
.field textarea { resize:vertical; min-height:120px; }
.field .req { color:#d9534f; }

.contact-info .info-item { display:flex; gap:16px; align-items:flex-start; padding:18px 0; border-bottom:1px solid var(--line); }
.contact-info .info-item:last-child { border-bottom:none; }
.contact-info .ico { flex:none; width:48px; height:48px; border-radius:12px; background:var(--tint); color:var(--blue); display:grid; place-items:center; }
.contact-info .ico svg { width:24px; height:24px; }
.contact-info .info-item b { font-family:var(--ff-head); color:var(--navy); display:block; margin-bottom:3px; }
.contact-info .info-item a, .contact-info .info-item p { color:var(--muted); font-size:.95rem; }
.contact-info .info-item a:hover { color:var(--blue); }

.map-wrap { border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); border:1px solid var(--line); }
.map-wrap iframe { width:100%; height:380px; border:0; display:block; }

.alert { padding:16px 20px; border-radius:12px; margin-bottom:24px; font-weight:600; display:flex; gap:12px; align-items:center; }
.alert svg { width:22px; height:22px; flex:none; }
.alert.success { background:#e7f7ee; color:#1c7a45; border:1px solid #b8e6c9; }
.alert.error   { background:#fdeaea; color:#b3261e; border:1px solid #f2c4c2; }

.dl-row { display:flex; gap:14px; flex-wrap:wrap; margin-top:20px; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { background: var(--navy); color:#aec6dd; padding: 64px 0 0; }
.site-footer a { color:#aec6dd; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display:grid; grid-template-columns: 1.6fr 1fr 1.4fr; gap:40px; }
.footer-brand .brand-text strong { color:#fff; }
.footer-brand p { color:#90add0; margin-top:16px; font-size:.94rem; }
.footer-brand .logo-mark { box-shadow:none; }
.site-footer h4 { color:#fff; font-size:1.05rem; margin-bottom:18px; }
.footer-links li { margin-bottom:10px; }
.footer-contact .fc { display:flex; gap:11px; align-items:flex-start; margin-bottom:14px; font-size:.93rem; }
.footer-contact .fc svg { width:18px; height:18px; flex:none; margin-top:3px; color:var(--accent); }
.footer-gst { font-size:.86rem; color:#7f9bbb; margin-top:6px; }
.footer-bottom { margin-top:48px; border-top:1px solid rgba(255,255,255,.12); padding:20px 0; text-align:center; font-size:.86rem; color:#88a4c4; }
.footer-bottom a { color:var(--gold); }

/* =========================================================================
   FLOATING ACTIONS
   ========================================================================= */
.floaters { position: fixed; right: 18px; bottom: 18px; z-index: 90; display:flex; flex-direction:column; gap:12px; }
.floaters a { width:54px; height:54px; border-radius:50%; display:grid; place-items:center; color:#fff; box-shadow:0 8px 22px rgba(0,0,0,.25); transition: transform .2s; }
.floaters a:hover { transform: scale(1.08); }
.floaters a svg { width:28px; height:28px; }
.floaters .wa { background:#25D366; }
.floaters .ph { background: var(--blue); }
.floaters .ph svg { width:26px; height:26px; }

.to-top { position:fixed; left:18px; bottom:18px; z-index:90; width:46px; height:46px; border-radius:12px; background:var(--navy); color:#fff; display:grid; place-items:center; border:none; cursor:pointer; opacity:0; pointer-events:none; transition:opacity .3s, transform .2s; }
.to-top.show { opacity:1; pointer-events:auto; }
.to-top:hover { transform:translateY(-3px); }
.to-top svg { width:22px; height:22px; }

/* =========================================================================
   QUOTE POPUP MODAL
   ========================================================================= */
.modal-overlay {
    position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center;
    padding: 20px; background: rgba(10,37,64,.6); backdrop-filter: blur(4px);
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
    position: relative; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
    padding: 30px; transform: translateY(24px) scale(.97); transition: transform .3s ease;
}
.modal-overlay.open .modal { transform: none; }
.modal-close {
    position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; border: none; cursor: pointer;
    background: var(--tint); color: var(--navy); border-radius: 50%; font-size: 1.5rem; line-height: 1;
    display: grid; place-items: center; transition: background .2s, transform .2s;
}
.modal-close:hover { background: var(--gold); transform: rotate(90deg); }
.modal-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding-right: 30px; }
.modal-mark { flex: none; width: 50px; height: 50px; border-radius: 12px; background: var(--blue); color: #fff; display: grid; place-items: center; }
.modal-mark svg { width: 26px; height: 26px; }
.modal-head h3 { font-size: 1.4rem; color: var(--navy); }
.modal-head p { font-size: .92rem; margin-top: 2px; }
.modal-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal-form .field { margin-bottom: 14px; }
.modal-form label { display: block; font-weight: 600; font-size: .85rem; color: var(--navy); margin-bottom: 5px; }
.modal-form input, .modal-form select, .modal-form textarea {
    width: 100%; font-family: var(--ff-body); font-size: .95rem; color: var(--ink);
    padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 9px; background: #fbfdff; transition: border-color .2s, box-shadow .2s;
}
.modal-form input:focus, .modal-form select:focus, .modal-form textarea:focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46,155,214,.15); background: #fff;
}
.modal-form textarea { resize: vertical; }
.modal-form .field.invalid input, .modal-form .field.invalid textarea, .modal-form .field.invalid select { border-color: #d9534f; }
.modal-form .req { color: #d9534f; }
.modal-alert { display: none; padding: 13px 16px; border-radius: 10px; margin-bottom: 16px; font-weight: 600; font-size: .92rem; }
.modal-alert.show { display: block; }
.modal-alert.success { background: #e7f7ee; color: #1c7a45; border: 1px solid #b8e6c9; }
.modal-alert.error   { background: #fdeaea; color: #b3261e; border: 1px solid #f2c4c2; }

/* =========================================================================
   IMAGE PLACEHOLDER
   ========================================================================= */
.img-missing {
    position: relative; min-height: 100%;
    background: repeating-linear-gradient(45deg, #e8f4fb, #e8f4fb 14px, #dcecf8 14px, #dcecf8 28px) !important;
    color: transparent;
}
.img-missing::after {
    content: "Image"; position:absolute; inset:0; display:grid; place-items:center;
    color: var(--blue); font-family: var(--ff-head); font-weight:700; font-size:.8rem; letter-spacing:.1em; text-transform:uppercase;
}

/* =========================================================================
   SCROLL REVEAL
   ========================================================================= */
.reveal { opacity:0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity:1; transform:none; }
.reveal.d1 { transition-delay:.08s; } .reveal.d2 { transition-delay:.16s; }
.reveal.d3 { transition-delay:.24s; } .reveal.d4 { transition-delay:.32s; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1024px) {
    .cols-4 { grid-template-columns: repeat(2,1fr); }
    .gallery, .comp-grid, .client-grid { grid-template-columns: repeat(3,1fr); }
    .industry-grid { grid-template-columns: repeat(4,1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .logo-wall { grid-template-columns: repeat(4,1fr); }
}

@media (max-width: 860px) {
    /* Hide top bar on mobile — phones move into the menu, header sits at viewport top */
    .topbar { display: none; }

    /* --- Sticky header: single tidy row, logo left / hamburger right --- */
    .site-header { z-index: 1000; }
    .nav { min-height: 64px; gap: 12px; flex-wrap: nowrap; }
    .brand img { height: 42px; max-width: 160px; }

    /* Full-width dropdown menu panel below the sticky header */
    .main-nav {
        position: fixed; top: 64px; left: 0; right: 0; width: 100%; background: #fff;
        flex-direction: column; align-items: stretch; padding: 8px 0 14px;
        box-shadow: 0 18px 40px rgba(10,37,64,.18); border-top: 1px solid var(--line);
        max-height: calc(100vh - 64px); overflow-y: auto; z-index: 1001;
        transform: translateY(-12px); opacity: 0; visibility: hidden;
        transition: transform .28s ease, opacity .28s ease, visibility .28s ease;
    }
    .main-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
    .main-nav li { border-bottom: 1px solid var(--line); }
    .main-nav a {
        display: flex; align-items: center; min-height: 48px; padding: 12px 20px;
        border-radius: 0; font-size: 1.02rem; color: var(--navy);
    }
    .main-nav a::after { display: none; }
    .main-nav a.active, .main-nav a:hover { background: var(--tint); color: var(--blue); }

    /* CTA + phones inside the open menu */
    .mobile-cta { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px 4px; }
    .mobile-cta .btn { width: 100%; justify-content: center; min-height: 48px; }

    /* Overlay dims the page below the dropdown */
    .nav-overlay {
        display: block; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
        background: rgba(10,37,64,.5); z-index: 1000; opacity: 0; pointer-events: none; transition: opacity .3s;
    }
    .nav-overlay.show { opacity: 1; pointer-events: auto; }

    /* Show hamburger, hide desktop-only CTA bits */
    .hamburger { display: flex; flex-direction: column; justify-content: center; align-items: center;
        width: 44px; height: 44px; padding: 0; position: relative; z-index: 1002; }
    .nav-cta { gap: 8px; flex: none; }
    .nav-call, .nav-quote-btn { display: none; }

    .about-split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .cols-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
    .topbar-meta { display: none; }
    .topbar .container { justify-content: center; }
    .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
    .gallery, .comp-grid, .client-grid { grid-template-columns: repeat(2,1fr); }
    .industry-grid { grid-template-columns: repeat(3,1fr); }
    .form-row { grid-template-columns: 1fr; }
    .stats .cols-4 { grid-template-columns: repeat(2,1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 54px 0; }
    .logo-wall { grid-template-columns: repeat(3,1fr); gap: 14px; }
    .logo-card { height: 110px; padding: 16px; }
    .logo-card img { max-height: 60px; }
}

@media (max-width: 600px) {
    .tabs { gap: 8px; }
    .tab-btn { font-size: .82rem; padding: 9px 14px; gap: 6px; flex: 1 1 auto; justify-content: center; }
    .tab-btn svg { width: 16px; height: 16px; }
}

@media (max-width: 520px) {
    .modal { padding: 24px 20px; }
    .modal-form .form-row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 420px) {
    .industry-grid, .comp-grid { grid-template-columns: repeat(2,1fr); }
    .logo-wall { grid-template-columns: repeat(2,1fr); }
    .hero-cta .btn, .cta-band .btn { width: 100%; justify-content: center; }
}
