/* ═══════════════════════════════════════════
   MEWARA GROUP — SHARED STYLES  v2
   Colour theme: Navy & White (mockup2 palette)
═══════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600;700&family=Rajdhani:wght@500;600;700&display=swap');

:root {
  --navy:      #0B2545;
  --navy-mid:  #1A3A6B;
  --navy-lite: #2D5499;
  --red:       #C0392B;
  --red-lite:  #E74C3C;
  --white:     #FFFFFF;
  --off-white: #F7F8FA;
  --grey-100:  #F0F2F5;
  --grey-200:  #E1E5EC;
  --grey-400:  #9AA3B0;
  --grey-600:  #5C6575;
  --grey-800:  #2C333E;
  --text:      #1A1F2B;
  --shadow-sm: 0 2px 8px rgba(11,37,69,0.08);
  --shadow-md: 0 8px 32px rgba(11,37,69,0.12);
  --shadow-lg: 0 20px 60px rgba(11,37,69,0.18);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; overflow-x:hidden; }

body { font-family:'DM Sans', sans-serif; background:var(--white); color:var(--text); }

/* ── SCROLLBAR — prominent, on-brand ── */
::-webkit-scrollbar { width:8px; }
::-webkit-scrollbar-track { background:#e8edf5; }
::-webkit-scrollbar-thumb { background:var(--navy); border-radius:4px; border:2px solid #e8edf5; }
::-webkit-scrollbar-thumb:hover { background:var(--red); }
* { scrollbar-width: thin; scrollbar-color: var(--navy) #e8edf5; }

/* Reserve space for the async-loaded header so the page doesn't jump/flicker
   when the header fragment loads after a fresh navigation.
   Total: topbar 38px + nav 108px = 146px. */
[data-include="header"] { display:block; min-height:146px; }


.topbar {
  background: var(--navy);
  padding: 0 5vw;
  display: flex; justify-content:space-between; align-items:center;
  height: 38px;
}
.topbar-left { display:flex; gap:24px; align-items:center; }
.topbar-left span { font-size:12px; color:rgba(255,255,255,0.6); font-family:'Rajdhani', sans-serif; letter-spacing:0.5px; }
.topbar-left span strong { color:rgba(255,255,255,0.9); }
.topbar-right { display:flex; gap:16px; align-items:center; }
.topbar-right a { font-size:12px; color:rgba(255,255,255,0.55); text-decoration:none; font-family:'Rajdhani', sans-serif; letter-spacing:0.5px; transition:color 0.2s; }
.topbar-right a:hover { color:var(--white); }
.topbar-pill { background:var(--red); color:var(--white) !important; padding:3px 12px; font-size:11px !important; font-weight:600 !important; letter-spacing:1px !important; }

/* ── MAIN NAV ── */
nav {
  /* The whole header wrapper is now the sticky element (see [data-include="header"]
     below). A position:sticky nav on its own only sticks WITHIN its parent's box,
     and that parent is only 146px tall — so it scrolled away almost immediately.
     nav stays position:relative so the mobile hamburger (position:absolute) still
     centres against it. */
  position:relative; z-index:1000;
  background:var(--white);
  border-bottom:1px solid var(--grey-200);
  padding:0 5vw;
  display:flex; align-items:center; justify-content:center;
  height:108px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s;
}
nav.elevated { box-shadow: var(--shadow-md); }
.nav-logo { position:absolute; left:5vw; top:calc(38px + 54px); transform:translateY(-50%); display:flex; align-items:center; gap:0; text-decoration:none; z-index:1002; }
.nav-logo img { height:100px; width:auto; }

.nav-menu { display:flex; align-items:center; gap:4px; list-style:none; }

/* The nav-menu is now a sibling AFTER <nav> in HTML (to escape sticky's containing block
   so that position:fixed works correctly on mobile).
   On desktop we reposition it back visually over the nav using absolute positioning
   relative to the [data-include="header"] container. */
[data-include="header"] {
  /* Sticky the ENTIRE header as one unit. Its containing block is <body>
     (full document height), so it can stay pinned the whole way down —
     unlike the old sticky <nav>, which was trapped in this 146px wrapper.
     top:-38px pulls the header up by exactly the topbar height, so the
     38px topbar scrolls off-screen and the 108px nav locks flush to the
     viewport top. The absolutely-positioned .nav-logo and .nav-menu are
     children of this wrapper, so they pin along with it.
     z-index:1000 keeps the header above all page content (max z-index on
     any page is 4) while staying below the sector popup overlay (z-index:2000).
     Note: position:sticky (not fixed) means the wrapper keeps its 146px slot
     in normal flow, so page content does NOT jump — no padding compensation
     needed. Do NOT add transform/filter/will-change here: those would turn
     this wrapper into the containing block for the mobile menu's position:fixed
     and break it. */
  position:sticky; top:-38px; z-index:1000;
}

.nav-menu {
  position:absolute;
  top:38px;            /* below the 38px topbar */
  left:0; right:0;
  height:108px;        /* same as nav height */
  display:flex; align-items:center; justify-content:center;
  gap:4px; list-style:none;
  pointer-events:auto;
  z-index:1001;        /* above the nav (z-index:1000) */
}
.nav-item { position:relative; }
.nav-item > a {
  display:flex; align-items:center; gap:5px;
  padding:8px 14px;
  font-size:13px; font-weight:600; letter-spacing:0.3px;
  color:var(--grey-600); text-decoration:none;
  font-family:'DM Sans', sans-serif;
  transition:color 0.2s;
  white-space:nowrap;
}
.nav-item > a .chevron { width:14px; height:14px; opacity:0.5; transition:transform 0.25s; }
@media(min-width:901px) {
  .nav-item:hover > a { color:var(--navy); }
  .nav-item:hover > a .chevron { transform:rotate(180deg); opacity:1; }
}
.nav-item > a::after {
  content:''; position:absolute; bottom:-1px; left:14px; right:14px; height:2px;
  background:var(--red); transform:scaleX(0); transform-origin:left;
  transition:transform 0.3s;
}
.nav-item:hover > a::after, .nav-item.active > a::after { transform:scaleX(1); }
.nav-item.active > a { color:var(--navy); }

/* Mega dropdown */
.mega-drop {
  display:none; position:absolute; top:calc(100% + 1px); left:50%;
  transform:translateX(-50%);
  background:var(--white); border:1px solid var(--grey-200);
  box-shadow:var(--shadow-lg); min-width:680px;
  padding:28px 32px;
  grid-template-columns:repeat(3,1fr); gap:8px;
  opacity:0; transform:translateX(-50%) translateY(8px);
  transition:opacity 0.2s, transform 0.2s;
}
@media(min-width:901px) {
  .nav-item:hover .mega-drop { display:grid; opacity:1; transform:translateX(-50%) translateY(0); }
}
.drop-item { display:flex; align-items:flex-start; gap:12px; padding:14px 16px; border-radius:4px; text-decoration:none; transition:background 0.2s; }
.drop-item:hover { background:var(--grey-100); }
.drop-icon { width:40px; height:40px; min-width:40px; background:var(--navy); color:var(--white); display:flex; align-items:center; justify-content:center; font-size:18px; border-radius:4px; transition:background 0.2s; }
.drop-item:hover .drop-icon { background:var(--red); }
.drop-text h4 { font-size:13px; font-weight:700; color:var(--navy); margin-bottom:3px; font-family:'Rajdhani', sans-serif; letter-spacing:0.5px; }
.drop-text p { font-size:11px; color:var(--grey-400); line-height:1.4; }
.mega-drop-footer { grid-column:1/-1; border-top:1px solid var(--grey-200); padding-top:16px; margin-top:8px; display:flex; justify-content:space-between; align-items:center; }
.mega-drop-footer a { font-size:12px; font-weight:600; color:var(--red); text-decoration:none; letter-spacing:0.5px; font-family:'Rajdhani', sans-serif; }
.mega-drop-footer a:hover { text-decoration:underline; }

/* Simple dropdown */
.simple-drop { display:none; position:absolute; top:calc(100% + 1px); left:0; background:var(--white); border:1px solid var(--grey-200); box-shadow:var(--shadow-md); min-width:220px; padding:8px 0; }
@media(min-width:901px) {
  .nav-item:hover .simple-drop { display:block; }
}
.simple-drop a { display:block; padding:10px 20px; font-size:13px; color:var(--grey-600); text-decoration:none; font-weight:500; transition:all 0.2s; border-left:3px solid transparent; }
.simple-drop a:hover { color:var(--navy); background:var(--grey-100); border-left-color:var(--red); }

.nav-actions { display:flex; align-items:center; gap:12px; }
/* Fleet and Enquire Now buttons — commented out per request #1c */
/* .btn-nav-fleet { background:var(--navy); color:var(--white); padding:9px 22px; border:none; cursor:pointer; font-family:'Rajdhani', sans-serif; font-size:13px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; text-decoration:none; display:inline-block; transition:background 0.2s; } */
/* .btn-nav-fleet:hover { background:var(--navy-mid); } */
/* .btn-nav-enquire { background:var(--red); color:var(--white); padding:9px 22px; border:none; cursor:pointer; font-family:'Rajdhani', sans-serif; font-size:13px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; text-decoration:none; display:inline-block; transition:background 0.2s; } */
/* .btn-nav-enquire:hover { background:var(--red-lite); } */

.hamburger { display:none; flex-direction:column; gap:5px; cursor:pointer; background:none; border:none; padding:6px; }
.hamburger span { display:block; width:24px; height:2px; background:var(--navy); transition:all 0.3s; }

/* ── BREADCRUMB BAND (below hero/banner, above content) ── */
.breadcrumb-band {
  background: #EEF2F8;
  border-bottom: 1px solid #D8E0ED;
  padding: 0 5vw;
  height: 42px;
  display: flex;
  align-items: center;
}
.breadcrumb-band nav {
  all: unset;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--navy);
}
.breadcrumb-band nav a {
  color: var(--navy-lite);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb-band nav a:hover { color: var(--red); }
.breadcrumb-band nav .sep {
  color: var(--grey-400);
  font-size: 11px;
  margin: 0 2px;
}
.breadcrumb-band nav .current { color: var(--navy); font-weight: 700; }

/* ── SECTION UTILITIES ── */
.section-wrap { max-width:1280px; margin:0 auto; padding:0 5vw; }
.sec-eyebrow { display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.sec-eyebrow-bar { width:28px; height:3px; background:var(--red); }
.sec-eyebrow span { font-family:'Rajdhani', sans-serif; font-size:12px; font-weight:700; letter-spacing:3px; color:var(--red); text-transform:uppercase; }
.sec-h2 { font-family:'DM Serif Display', serif; font-size:clamp(32px, 4vw, 52px); line-height:1.1; color:var(--navy); margin-bottom:16px; }
.sec-lead { font-size:15px; color:var(--grey-600); line-height:1.75; max-width:580px; font-weight:400; }
.sec-h2-white { color:var(--white); }
.sec-lead-white { color:rgba(255,255,255,0.65); }
.reveal2 { opacity:0; transform:translateY(32px); transition:opacity 0.65s ease, transform 0.65s ease; }
.reveal2.visible { opacity:1; transform:translateY(0); }

/* ── BUTTONS ── */
.btn-primary { background:var(--red); color:var(--white); padding:14px 32px; border:none; cursor:pointer; font-family:'Rajdhani', sans-serif; font-size:14px; font-weight:700; letter-spacing:2px; text-transform:uppercase; text-decoration:none; display:inline-flex; align-items:center; gap:8px; transition:all 0.25s; }
.btn-primary:hover { background:var(--red-lite); transform:translateY(-2px); box-shadow:0 8px 24px rgba(192,57,43,0.35); }
.btn-secondary { background:transparent; color:var(--navy); padding:13px 32px; border:2px solid var(--navy); cursor:pointer; font-family:'Rajdhani', sans-serif; font-size:14px; font-weight:700; letter-spacing:2px; text-transform:uppercase; text-decoration:none; display:inline-block; transition:all 0.25s; }
.btn-secondary:hover { border-color:var(--red); color:var(--red); }

/* ── PAGE BANNER ── */
.page-banner {
  background:var(--navy);
  padding:72px 5vw 64px;
  position:relative; overflow:hidden;
}
.page-banner::before { content:''; position:absolute; inset:0; background:url('/images/unsplash-construction-site.jpg') center/cover; opacity:0.07; }
.page-banner-inner { position:relative; z-index:1; max-width:1280px; margin:0 auto; }
.page-banner-eyebrow { font-family:'Rajdhani', sans-serif; font-size:12px; font-weight:700; letter-spacing:3px; color:rgba(255,255,255,0.5); text-transform:uppercase; margin-bottom:12px; display:flex; align-items:center; gap:12px; }
.page-banner-eyebrow::before { content:''; display:block; width:24px; height:2px; background:var(--red); }
.page-banner h1 { font-family:'DM Serif Display', serif; font-size:clamp(36px,5vw,64px); color:var(--white); line-height:1.1; margin-bottom:16px; }
.page-banner p { font-size:16px; color:rgba(255,255,255,0.6); max-width:600px; line-height:1.75; }
/* Inline breadcrumb inside blue banner — keep as-is */
.banner-breadcrumb { font-family:'Rajdhani', sans-serif; font-size:12px; letter-spacing:1px; color:rgba(255,255,255,0.4); margin-bottom:20px; }
.banner-breadcrumb a { color:rgba(255,255,255,0.5); text-decoration:none; }
.banner-breadcrumb a:hover { color:var(--white); }
.breadcrumb { font-family:'Rajdhani', sans-serif; font-size:12px; letter-spacing:1px; color:rgba(255,255,255,0.4); margin-bottom:20px; }
.breadcrumb a { color:rgba(255,255,255,0.5); text-decoration:none; }
.breadcrumb a:hover { color:var(--white); }

/* ── FOOTER (shared across all pages) ── */
footer.site-footer { background:var(--navy); padding:64px 5vw 28px; }
.footer-top { display:grid; grid-template-columns:0.85fr 1fr 1fr 1fr; gap:48px; padding-bottom:48px; border-bottom:1px solid rgba(255,255,255,0.1); margin-bottom:28px; }

/* Logo in white box — narrower, more vertical proportions */
.footer-brand {
  background: #fff;
  padding: 24px 16px;
  align-self: start;
  max-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.footer-brand img { height:64px; width:auto; display:block; margin-bottom:14px; }
.footer-brand p { font-size:11px; color:var(--grey-600); line-height:1.7; }

.footer-col h5 { font-family:'Rajdhani', sans-serif; font-size:11px; font-weight:700; letter-spacing:2.5px; color:rgba(255,255,255,0.35); text-transform:uppercase; margin-bottom:16px; padding-top: 8px; }
.footer-col ul { list-style:none; }
.footer-col ul li { margin-bottom:10px; }
.footer-col ul li a { font-size:13px; color:rgba(255,255,255,0.45); text-decoration:none; transition:color 0.2s; }
.footer-col ul li a:hover { color:var(--white); }

.footer-bottom { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; }
.footer-bottom p { font-size:12px; color:rgba(255,255,255,0.3); font-family:'Rajdhani', sans-serif; letter-spacing:0.5px; }
.footer-accreditations { display:flex; gap:8px; }
.accred-badge { border:1px solid rgba(255,255,255,0.15); padding:4px 12px; font-family:'Rajdhani', sans-serif; font-size:11px; letter-spacing:1.5px; color:rgba(255,255,255,0.3); text-transform:uppercase; }

/* ── FLOAT CTA ── */
.float-cta { position:fixed; bottom:28px; right:28px; z-index:800; display:flex; align-items:center; gap:10px; background:var(--red); color:var(--white); padding:12px 24px; text-decoration:none; font-family:'Rajdhani', sans-serif; font-size:12px; font-weight:700; letter-spacing:2.5px; text-transform:uppercase; box-shadow:0 8px 32px rgba(192,57,43,0.35); transition:all 0.25s; }
.float-cta:hover { background:var(--red-lite); transform:translateY(-2px); }
.float-cta-dot { width:7px; height:7px; border-radius:50%; background:var(--white); animation:fDot 2s infinite; }
@keyframes fDot { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* ── MOBILE ── */
@media(max-width:900px) {
  .hamburger { display:flex; position:absolute; right:5vw; top:50%; transform:translateY(-50%); }
  /* On mobile, override desktop absolute positioning back to fixed.
     Now that nav-menu is outside the sticky <nav>, position:fixed works correctly. */
  .nav-menu {
    position:fixed;
    top:108px; left:0; right:0;
    height:auto;
    max-height:calc(100vh - 108px);
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    background:var(--white); border-top:1px solid var(--grey-200);
    flex-direction:column; align-items:stretch; justify-content:flex-start;
    gap:0; box-shadow:var(--shadow-lg); padding:8px 0 16px;
    display:none; z-index:1200;
  }
  .nav-menu.open { display:flex; }

  /* Mobile dropdown: chevron tap expands the submenu in place (accordion style)
     instead of relying on :hover, which doesn't exist on touch devices.
     Overrides the desktop absolute/hover dropdown positioning.
     IMPORTANT: .mega-drop uses CSS Grid on desktop (display:grid, 3 columns).
     Rather than fight that cascade on mobile, we force it to behave exactly
     like the already-working .simple-drop: a plain flex column. This removes
     every grid-related sizing edge case as a possible cause of invisible content. */
  .nav-item .simple-drop,
  .nav-item .mega-drop {
    display:none !important;
    position:static;
    left:auto;
    transform:none;
    box-shadow:none;
    border:none;
    border-top:1px solid var(--grey-200);
    width:100%;
    min-width:0;
    opacity:1;
    grid-template-columns:none;
    flex-direction:column;
    padding:4px 0 4px 16px;
    background:var(--grey-100);
  }
  .nav-item.submenu-open .simple-drop,
  .nav-item.submenu-open .mega-drop {
    display:flex !important;
  }
  .nav-item.submenu-open > a .chevron { transform:rotate(180deg); }
  .mega-drop-footer { display:none; } /* "View All Services" link is redundant in mobile accordion */

  /* Compact drop-item rows for the narrow mobile accordion */
  .nav-item .drop-item { padding:10px 8px; gap:10px; }
  .nav-item .drop-icon { width:32px; height:32px; min-width:32px; font-size:14px; }
  .nav-item .drop-text h4 { font-size:12px; }
  .nav-item .drop-text p { display:none; } /* keep accordion rows short on mobile */

  .nav-actions { display:none; }
  .footer-top { grid-template-columns:1fr 1fr; }
}
@media(max-width:600px) {
  /* Footer: 2-col grid so Services+Sectors and Company sit side-by-side.
     Brand block spans both columns so the logo/tagline stays full-width.
     Desktop layout (4-col) is completely untouched. */
  .footer-top { grid-template-columns:1fr 1fr; gap:28px 24px; }
  .footer-brand { grid-column:1 / -1; }
  .topbar-left { display:none; }
}
