/* ============================================================
   RigMac — base styles: tokens, nav, hero, selector
   Navy (Ebony) dark theme · Picton cyan accent · Poppins/Manrope
   ============================================================ */
@import url("colors_and_type.css");

:root {
  /* Navy dark surfaces (Ebony family) — matches the realized site */
  --page:       var(--color-ebony-dark);     /* #0c121c page bg */
  --navy:       var(--color-ebony);           /* #0f1724 section */
  --navy-2:     #0b1320;                       /* deeper band */
  --panel:      var(--color-ebony-clay);       /* #1f2937 cards */
  --panel-2:    var(--color-ebony-clay-dark);  /* #18202c cards alt */
  --hair:       rgba(255,255,255,0.10);
  --hair-strong:rgba(255,255,255,0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: #fff; font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

.container { max-width: var(--container-max); margin-inline: auto; padding-inline: var(--space-section-x); }
.section { padding-block: var(--space-section-y); }

/* ---- Scheme surfaces ---- */
.s-page { background: var(--page); color: #fff; }
.s-navy { background: var(--navy); color: #fff; }
.s-navy2 { background: var(--navy-2); color: #fff; }
.s-charcoal { background: var(--color-neutral-dark); color: #fff; }
.s-cyan { background: var(--color-picton-blue); color: var(--color-neutral-darkest); }

/* ---- Type helpers ---- */
.h1 { font-family: var(--font-heading); font-weight: 800; font-size: var(--text-h1); line-height: 1.05; letter-spacing: -0.01em; margin: 0; }
.h2 { font-family: var(--font-heading); font-weight: 700; font-size: var(--text-h2); line-height: 1.12; letter-spacing: -0.01em; margin: 0; }
.h3 { font-family: var(--font-heading); font-weight: 700; font-size: var(--text-h3); line-height: 1.18; letter-spacing: -0.01em; margin: 0; }
.h4 { font-family: var(--font-heading); font-weight: 700; font-size: var(--text-h4); line-height: 1.25; margin: 0; }
.h5 { font-family: var(--font-heading); font-weight: 700; font-size: var(--text-h5); line-height: 1.3; margin: 0; }
.h6 { font-family: var(--font-heading); font-weight: 700; font-size: var(--text-h6); line-height: 1.4; margin: 0; }
.eyebrow { font-family: var(--font-body); font-weight: 700; font-size: var(--text-small); letter-spacing: .14em; text-transform: uppercase; color: var(--color-picton-blue); margin: 0 0 14px; }
.lead { font-family: var(--font-body); font-size: var(--text-medium); line-height: 1.6; margin: 0; }
.muted { color: var(--color-white-60); }
.accent { color: var(--color-picton-blue); }

.section-intro { max-width: 50rem; margin: 0 auto 3.4rem; text-align: center; }
.section-intro .h2 { margin-bottom: 14px; }

/* ---- Buttons (soft-squared, diagonal arrow) ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: var(--radius-button); font-weight: 700; font-size: var(--text-small); padding: 13px 24px; transition: all .2s ease-in-out; white-space: nowrap; letter-spacing: .01em; }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translate(2px, -2px); }
.btn-primary { background: var(--color-picton-blue); color: var(--color-neutral-darkest); }
.btn-primary:hover { background: var(--color-picton-blue-dark); }
.btn-alt { background: #fff; color: var(--color-neutral-darkest); }
.btn-alt:hover { background: var(--color-neutral-lighter); }
.btn-glass { background: var(--color-white-15); color: #fff; backdrop-filter: blur(10px); border-color: var(--color-white-20); }
.btn-glass:hover { background: var(--color-white-20); border-color: var(--color-white-40); }
.btn-outline { background: transparent; color: #fff; border-color: var(--color-white-30); }
.btn-outline:hover { border-color: var(--color-picton-blue); color: var(--color-picton-blue); }
.btn-lg { padding: 16px 32px; font-size: var(--text-regular); }
.btn-block { width: 100%; }
.btn-upper { text-transform: uppercase; letter-spacing: .06em; font-size: var(--text-tiny); }

/* ---- Badges / pills ---- */
.badge { display: inline-flex; align-items: center; gap: 7px; border-radius: var(--radius-badge); font-weight: 600; font-size: var(--text-small); padding: 8px 16px; }
.badge-glass { background: var(--color-white-10); color: #fff; backdrop-filter: blur(10px); border: 1px solid var(--color-white-20); }

/* ---- Cards ---- */
.card { background: var(--panel); border-radius: var(--radius-card); padding: 30px; border: 1px solid var(--hair); }
.divider { height: 1px; width: 100%; background: var(--hair); }
.ms { filter: brightness(0) invert(1); }

/* ============================================================
   HEADER — utility strip + floating pill nav
   ============================================================ */
.site-header { position: sticky; top: 0; z-index: 1000; }

/* Tier 1 — utility / trust strip */
.util-bar {
  background: var(--color-neutral-darkest); color: #fff;
  border-bottom: 1px solid var(--hair); font-size: var(--text-small);
  overflow: hidden; transition: height .3s ease, opacity .25s ease;
}
.util-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 44px; padding-block: 5px; }
.util-estimate { display: flex; align-items: center; gap: 12px; }
.open-dot { width: 9px; height: 9px; border-radius: 50%; background: #2bd07a; flex: none; box-shadow: 0 0 0 0 rgba(43,208,122,0.6); animation: pulse-dot 2.2s infinite; }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(43,208,122,0.5); } 70% { box-shadow: 0 0 0 7px rgba(43,208,122,0); } 100% { box-shadow: 0 0 0 0 rgba(43,208,122,0); } }
.util-estimate .lbl { color: var(--color-white-60); }
.util-estimate .ph { font-family: var(--font-heading); font-weight: 700; font-size: var(--text-regular); color: var(--color-picton-blue); }
.util-estimate .ph:hover { color: var(--color-picton-blue-light); }
.util-right { display: flex; align-items: center; gap: 20px; }
.util-sep { width: 1px; height: 20px; background: var(--hair-strong); }
.rating-chip { display: flex; align-items: center; gap: 8px; }
.rating-chip .stars { display: inline-flex; gap: 1px; }
.rating-chip .rtext { font-weight: 600; font-size: var(--text-small); }
.rating-chip .rtext b { font-weight: 700; }
.cad-chip { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: var(--text-small); }
.util-quote { background: var(--color-picton-blue); color: var(--color-neutral-darkest); font-weight: 700; font-size: var(--text-tiny); text-transform: uppercase; letter-spacing: .06em; padding: 8px 16px; border-radius: var(--radius-button); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.util-quote:hover { background: var(--color-picton-blue-dark); }

.site-header.scrolled .util-bar { height: 0; opacity: 0; pointer-events: none; }

/* Tier 2 — main nav (floating pill over hero) */
.main-nav { background: transparent; position: relative; transition: background .3s ease; padding-block: 14px; }
.site-header.scrolled .main-nav { background: var(--color-neutral-darkest); border-bottom: 1px solid var(--hair); padding-block: 6px; }
.nav-pill {
  display: flex; align-items: center; gap: 28px; min-height: 64px;
  background: rgba(13,10,4,0.55); border: 1px solid var(--color-white-15);
  backdrop-filter: blur(14px); border-radius: var(--radius-badge);
  padding: 8px 10px 8px 22px;
}
.site-header.scrolled .nav-pill { background: transparent; border-color: transparent; backdrop-filter: none; padding-inline: 0; }
.brand img { height: 40px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; }
.nav-item { position: static; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 15px; border-radius: var(--radius-badge);
  font-size: var(--text-small); font-weight: 600; color: #fff; transition: background .15s ease, color .15s ease;
}
.nav-link:hover, .nav-item.open .nav-link { background: var(--color-white-10); color: var(--color-picton-blue); }
.nav-link .caret { transition: transform .25s ease; }
.nav-item.open .nav-link .caret { transform: rotate(180deg); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-call { display: flex; align-items: center; gap: 8px; color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: var(--text-small); }
.nav-call:hover { color: var(--color-picton-blue); }

/* ============================================================
   MEGA MENU
   ============================================================ */
.mega-wrap { position: absolute; left: 0; right: 0; top: 100%; display: flex; justify-content: center; pointer-events: none; padding-inline: var(--space-section-x); }
.mega {
  flex: none; width: min(calc(100vw - 4%), var(--container-max)); margin-top: 12px;
  background: var(--panel-2); border: 1px solid var(--hair-strong); border-radius: var(--radius-card);
  box-shadow: 0 30px 70px rgba(0,0,0,0.6); overflow: hidden;
  opacity: 0; transform: translateY(-10px); transition: opacity .2s ease, transform .2s ease; pointer-events: none;
}
.nav-item.open .mega { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mega-top { display: grid; gap: 0; padding: 30px 32px; }
.mega-moving { grid-template-columns: 1fr 1.55fr 1.15fr; }
.mega-junk { grid-template-columns: 1fr 1fr 1fr 1.15fr; }
.mega-col { padding-inline: 26px; border-left: 1px solid var(--hair); }
.mega-col:first-child { padding-left: 0; border-left: 0; }
.mega-eyebrow { font-family: var(--font-body); font-weight: 700; font-size: var(--text-tiny); letter-spacing: .12em; text-transform: uppercase; color: var(--color-picton-blue); margin: 0 0 16px; }
.mega-link { display: flex; align-items: center; gap: 12px; padding: 9px 10px; margin-inline: -10px; border-radius: 9px; color: var(--color-neutral-lighter); font-size: var(--text-small); font-weight: 500; transition: background .14s ease, color .14s ease; }
.mega-link:hover { background: var(--color-white-10); color: #fff; }
.mega-link .mega-ico { width: 20px; height: 20px; flex: none; opacity: .82; }
.mega-link:hover .mega-ico { opacity: 1; }
.mega-link.has-sub { align-items: flex-start; }
.mega-link .l-title { display: block; }
.mega-link .l-sub { display: block; font-size: var(--text-tiny); color: var(--color-white-40); font-weight: 500; margin-top: 1px; }
.mega-routes { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.mega-feature { position: relative; border-radius: var(--radius-image); overflow: hidden; min-height: 230px; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; color: #fff; }
.mega-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,10,4,0.15) 0%, rgba(13,10,4,0.55) 55%, rgba(13,10,4,0.9) 100%); z-index: 0; }
.mega-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.mega-feature > * { position: relative; z-index: 1; }
.mega-feature .pill { align-self: flex-start; background: var(--color-picton-blue); color: var(--color-neutral-darkest); font-weight: 700; font-size: var(--text-tiny); letter-spacing: .04em; text-transform: uppercase; padding: 6px 12px; border-radius: var(--radius-badge); margin-bottom: 12px; }
.mega-feature h4 { font-family: var(--font-heading); font-weight: 700; font-size: var(--text-h6); line-height: 1.2; margin: 0 0 6px; }
.mega-feature p { font-size: var(--text-small); color: var(--color-white-60); margin: 0 0 16px; max-width: 30ch; }
.mega-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 32px; background: var(--navy-2); border-top: 1px solid var(--hair); }
.mega-foot .foot-label { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: var(--text-small); color: #fff; }
.mega-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mega-chip { padding: 7px 15px; border-radius: var(--radius-badge); background: var(--color-white-10); border: 1px solid var(--hair-strong); font-size: var(--text-small); font-weight: 500; color: var(--color-neutral-lighter); transition: all .14s ease; }
.mega-chip:hover { background: var(--color-picton-blue); border-color: var(--color-picton-blue); color: var(--color-neutral-darkest); }
.mega-foot .foot-cta { margin-left: auto; font-size: var(--text-small); font-weight: 700; color: var(--color-picton-blue); display: inline-flex; align-items: center; gap: 6px; }
.mega-foot .foot-cta .ico { transition: transform .2s ease; }
.mega-foot .foot-cta:hover .ico { transform: translateX(4px); }

/* ============================================================
   HERO + SERVICE SELECTOR
   ============================================================ */
.hero { position: relative; overflow: hidden; margin-top: -96px; padding-top: 96px; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(8,14,22,0.95) 0%, rgba(8,14,22,0.82) 44%, rgba(8,14,22,0.5) 100%); }
.hero-inner { position: relative; z-index: 1; padding-block: 4rem 5.5rem; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { max-width: 16ch; text-transform: uppercase; font-size: clamp(2.5rem, 5.4vw, 4.75rem); line-height: 1.04; }
.hero .lead { max-width: 46ch; margin-top: 22px; color: var(--color-white-60); }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 32px; flex-wrap: wrap; }
.hero-rating { display: flex; align-items: center; gap: 11px; }
.hero-rating .gbox { width: 40px; height: 40px; border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.hero-rating .rlabel { font-size: var(--text-tiny); color: var(--color-white-60); font-weight: 600; }
.hero-rating .rstars { display: flex; align-items: center; gap: 6px; }
.hero-rating .rstars b { font-family: var(--font-heading); font-weight: 700; font-size: var(--text-small); }
.hero-trust { display: flex; gap: 10px 26px; margin-top: 38px; flex-wrap: wrap; }
.hero-trust .ht { display: flex; align-items: center; gap: 9px; font-size: var(--text-small); font-weight: 600; }

/* selector card */
.selector { background: rgba(255,255,255,0.07); border: 1px solid var(--color-white-20); backdrop-filter: blur(16px); border-radius: var(--radius-card); box-shadow: 0 30px 70px rgba(0,0,0,0.45); overflow: hidden; }
.selector-head { padding: 22px 26px 0; }
.selector-head .se-eyebrow { font-weight: 700; font-size: var(--text-tiny); letter-spacing: .12em; text-transform: uppercase; color: var(--color-picton-blue); margin: 0; }
.selector-head h3 { font-family: var(--font-heading); font-weight: 700; font-size: var(--text-h5); margin: 6px 0 0; }
.selector-tabs { display: flex; gap: 8px; padding: 18px 26px 0; }
.se-tab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 12px; border-radius: 10px 10px 0 0; border: 1px solid transparent; border-bottom: 0; background: var(--color-white-5); color: var(--color-white-60); font-weight: 600; font-size: var(--text-small); transition: all .16s ease; }
.se-tab:hover { color: #fff; background: var(--color-white-10); }
.se-tab.active { background: var(--color-picton-blue); color: var(--color-neutral-darkest); }
.se-tab .mega-ico { width: 20px; height: 20px; }
.selector-body { padding: 22px 26px 26px; display: flex; flex-direction: column; gap: 14px; }
.se-field { display: flex; flex-direction: column; gap: 7px; }
.se-field label { font-size: var(--text-small); color: var(--color-white-60); font-weight: 500; }
.se-input-wrap { position: relative; display: flex; align-items: center; }
.se-input-wrap .pin { position: absolute; left: 14px; width: 20px; height: 20px; pointer-events: none; opacity: .9; }
.se-input, .se-select { width: 100%; min-height: 52px; padding: 12px 15px 12px 44px; border-radius: var(--radius-form); background: rgba(255,255,255,0.10); border: 1px solid var(--color-white-15); color: #fff; font-family: var(--font-body); font-size: var(--text-regular); transition: all .18s ease; }
.se-input::placeholder { color: var(--color-white-40); }
.se-input:focus, .se-select:focus { outline: none; border-color: var(--color-picton-blue); background: rgba(255,255,255,0.14); }
.se-select { appearance: none; cursor: pointer; }
.se-select option { background: var(--panel); color: #fff; }
.se-route-line { display: flex; align-items: center; gap: 10px; }
.se-route-line .connector { width: 1px; height: 14px; background: var(--color-white-20); margin-left: 23px; }
.se-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.se-foot .note { font-size: var(--text-tiny); color: var(--color-white-40); }
.se-progress { display: flex; align-items: center; gap: 7px; }
.se-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-white-20); }
.se-dot.on { background: var(--color-picton-blue); }
.se-success { text-align: center; padding: 10px 0 6px; }
.se-success .ck { width: 64px; height: 64px; border-radius: 50%; background: var(--color-picton-blue); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }

/* ---- mobile drawer ---- */
.nav-toggle { display: none; background: none; border: 0; flex-direction: column; gap: 5px; padding: 8px; margin-left: auto; }
.nav-toggle span { width: 26px; height: 2px; background: #fff; display: block; }
.mobile-menu { display: none; }

@media (max-width: 1180px) {
  .nav-links, .nav-call { display: none; }
  .nav-toggle { display: flex; }
  .util-estimate .lbl { display: none; }
  .mobile-menu.open { display: block; background: var(--panel-2); border: 1px solid var(--hair); border-radius: var(--radius-card); margin-top: 10px; padding: 14px 18px 22px; max-height: 72vh; overflow-y: auto; }
  .mm-group { border-bottom: 1px solid var(--hair); }
  .mm-head { display: flex; align-items: center; justify-content: space-between; width: 100%; background: none; border: 0; color: #fff; padding: 15px 4px; font-family: var(--font-heading); font-weight: 700; font-size: var(--text-regular); }
  .mm-head .caret { transition: transform .25s ease; }
  .mm-group.open .mm-head .caret { transform: rotate(180deg); }
  .mm-panel { display: none; padding: 0 4px 14px; flex-direction: column; gap: 2px; }
  .mm-group.open .mm-panel { display: flex; }
  .mm-panel a { color: var(--color-neutral-lighter); padding: 9px 0; font-size: var(--text-small); }
  .mm-sub { font-size: var(--text-tiny); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--color-picton-blue); margin: 12px 0 4px; }
}
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 880px) {
  .util-right .cad-chip .ct { display: none; }
}
