/* ==========================================================================
   MAMA INFRA – manager's changes (Nov 24 2026)
   Loaded after style.css. Un-layered rules win over the Tailwind layers.
   ========================================================================== */

/* ---------- 1. Navbar: larger, bold ---------- */
#site-header nav[aria-label="Main navigation"] > a[data-nav],
#site-header nav[aria-label="Main navigation"] [data-mega-trigger] a[data-nav] {
  font-size: clamp(14px, 1.05vw, 17.5px);
  font-weight: 700;
  padding-left: clamp(5px, .4vw, 8px);
  padding-right: clamp(5px, .4vw, 8px);
}
#site-header #utility-bar { font-size: 13px; }
#site-header #utility-bar a,
#site-header #utility-bar span { font-weight: 700; }
#mobile-menu a[data-mnav] { font-weight: 700; }

/* ---------- 1b. Navbar: links to the two sister websites (transparent buttons) ---------- */
.ext-link {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 8px clamp(9px, .7vw, 12px); margin-left: 4px;
  font-size: clamp(13px, 1vw, 16px); font-weight: 700; line-height: 1.1;
  background: transparent; border: 1.5px solid currentColor; border-radius: 0;
  color: #fff; transition: color .25s, border-color .25s, background-color .25s;
}
.ext-link.ext-first { margin-left: clamp(6px, .9vw, 14px); }
.ext-link .ext-ico { width: 14px; height: 14px; flex: none; }
.ext-link:hover { background: rgba(255, 255, 255, .16); }
/* header turns white after scrolling / when the mega menu is open */
#site-header.bg-white .ext-link { color: #1a1d23; }
#site-header.bg-white .ext-link:hover { color: #e8731a; background: rgba(232, 115, 26, .08); }
/* mobile menu sits on white */
.ext-link.ext-mobile {
  width: 100%; justify-content: center; margin-left: 0; padding: 14px 16px; font-size: 16px; color: #1a1d23;
}
.ext-link.ext-mobile:hover { color: #e8731a; background: rgba(232, 115, 26, .08); }

/* ---------- 2. Typography ----------
   Orange label (eyebrow) = biggest, extra bold.
   Heading sentence (h1 / h2) = smaller, semi-bold.
   Paragraph below = smallest. */
.eyebrow,
.hero-copy .eyebrow {
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1.15;
}
#main h1,
#main h2[class*="text-3xl"],
#main h2[class*="text-4xl"] {
  font-weight: 600;
  letter-spacing: 0;
  font-size: clamp(1.05rem, 1.45vw, 1.35rem);
  line-height: 1.35;
}
#main h1[class*="text-5xl"], #main h2[class*="text-5xl"] { font-size: clamp(1.05rem, 1.45vw, 1.35rem); }
.hero-copy p:not(.eyebrow),
#main section[data-hero] p:not(.eyebrow),
#main p.text-xl, #main p[class*="sm:text-xl"], #main p[class*="lg:text-xl"] {
  font-size: clamp(.95rem, 1.1vw, 1.05rem);
}

/* ---------- 3. At-a-glance strip: whole tile is a link ---------- */
section[aria-label="MAMA INFRA at a glance"] dl > div { position: relative; cursor: pointer; }
.stat-link { color: inherit; text-decoration: none; }
.stat-link::after { content: ""; position: absolute; inset: 0; }
.stat-link:focus-visible { outline: 2px solid #e8731a; outline-offset: -4px; }

/* anchored sections land below the fixed header */
#home-services, #home-approach, #home-why { scroll-margin-top: 80px; }

@media (max-width: 1499px) { .ext-link:not(.ext-mobile) .ext-ico { display: none; } }

/* room for the two extra buttons: slightly tighter side padding, wider bar on big screens */
@media (min-width: 1240px) { #site-header .nav-x { padding-inline: 24px; } }
@media (min-width: 1500px) { #site-header .nav-x { max-width: 1640px; } }

/* 1240–1359px: the full menu + two extra buttons no longer fit on one line, so use the hamburger menu */
@media (min-width: 1240px) and (max-width: 1359px) {
  #site-header nav[aria-label="Main navigation"] { display: none !important; }
  #menu-toggle { display: block !important; }
  #mobile-menu:not([hidden]) { display: block !important; }
}

/* smaller logo so every menu item fits on one line */
@media (min-width: 1240px) { #site-header .site-logo { height: 17px; } }

/* page heroes (About, Services, Contact …): keep the original height so the background photo is framed as before */
#main section[data-hero] { min-height: 540px; }
@media (min-width: 1024px) { #main section[data-hero] { min-height: 618px; } }
@media (max-width: 1023px) { #main section[data-hero] { min-height: 540px; } }
