/* ==========================================================================
   Onsite Packers — Global Stylesheet
   Brand: #04143C (primary navy) · #E9EDF8 (light accent) · #FFFFFF (bg)
   Type:  Bebas Neue (primary headings) · General Sans (everything else)
   ========================================================================== */

/* --- Fonts --------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=general-sans@400,500,600,700&display=swap');

/* --- Design tokens ------------------------------------------------------- */
:root {
  --navy:        #04143C;
  --navy-700:    #0a205a;
  --navy-600:    #123078;
  --accent:      #E9EDF8;
  --accent-200:  #d7def2;
  --ink:         #0d1b3e;
  --muted:       #5b667e;
  --line:        #e6e9f2;
  --white:       #ffffff;
  --wa:          #25D366;

  --radius-card: 16px;
  --radius-btn:  12px;

  --shadow-sm:   0 1px 2px rgba(4,20,60,.06), 0 1px 3px rgba(4,20,60,.05);
  --shadow-md:   0 6px 18px rgba(4,20,60,.08);
  --shadow-lg:   0 18px 40px rgba(4,20,60,.12);

  --container:   1280px;
}

/* --- Base ---------------------------------------------------------------- */
.hidden { display: none !important; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'General Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.font-display {
  font-family: 'Bebas Neue', 'General Sans', sans-serif;
  font-weight: 400;
  letter-spacing: .5px;
  line-height: .98;
}

/* --- Layout -------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.section { padding-block: 88px; }
@media (max-width: 768px){ .section { padding-block: 56px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy); background: var(--accent);
  padding: 7px 14px; border-radius: 999px;
}
.h-display { font-family: 'Bebas Neue', sans-serif; line-height: .95; letter-spacing: .5px; }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 15px;
  padding: 13px 24px; border-radius: var(--radius-btn);
  border: 1.5px solid transparent; transition: all .25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-700); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--accent-200); }
.btn-outline:hover { background: var(--accent); border-color: var(--navy); transform: translateY(-2px); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #1eb257; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-lg { padding: 16px 30px; font-size: 16px; }

/* --- Cards --------------------------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-card); box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--accent-200); }

.icon-badge {
  width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--accent); color: var(--navy);
}

/* --- Forms --------------------------------------------------------------- */
.field { margin-bottom: 14px; }
.field label { display:block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.input {
  width: 100%; padding: 13px 15px; font-size: 15px; font-family: inherit;
  color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: var(--radius-btn);
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: #9aa3b8; }
.input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(4,20,60,.08); }

/* Selects: replace the native arrow with a consistently-aligned custom chevron */
select.input {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b667e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}
select.input::-ms-expand { display: none; }

/* --- Header -------------------------------------------------------------- */
.topbar { background: var(--navy); color: #cdd6ef; font-size: 13.5px; }
.topbar a:hover { color: #fff; }

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; transition: box-shadow .3s, padding .3s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(4,20,60,.08); }
.nav-link { position: relative; font-weight: 500; color: var(--ink); padding: 6px 2px; transition: color .2s; }
.nav-link::after {
  content:''; position:absolute; left:0; bottom:-4px; height:2px; width:0; background: var(--navy);
  transition: width .25s ease;
}
.nav-link:hover, .nav-link.active { color: var(--navy); }
.nav-link:hover::after, .nav-link.active::after { width:100%; }

.logo-lockup { display:flex; align-items:center; gap:12px; }

/* --- Modal --------------------------------------------------------------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(4,20,60,.55); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  width: 100%; max-width: 520px; background: #fff; border-radius: 20px;
  box-shadow: var(--shadow-lg); overflow: hidden;
  transform: translateY(16px) scale(.98); transition: transform .3s ease;
  max-height: 90vh; overflow-y: auto;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }

/* --- Tracking timeline --------------------------------------------------- */
.track-step { display: flex; gap: 14px; padding-bottom: 20px; position: relative; }
.track-step:last-child { padding-bottom: 0; }
.track-step::before {
  content:''; position:absolute; left: 13px; top: 30px; bottom: -4px; width: 2px; background: var(--line);
}
.track-step:last-child::before { display: none; }
.track-dot {
  width: 28px; height: 28px; border-radius: 50%; flex: none; z-index:1;
  display: grid; place-items: center; background: #fff; border: 2px solid var(--line); color: #9aa3b8;
}
.track-step.done .track-dot { background: var(--navy); border-color: var(--navy); color: #fff; }
.track-step.done::before { background: var(--navy); }
.track-step.current .track-dot { background: var(--accent); border-color: var(--navy); color: var(--navy); box-shadow: 0 0 0 4px rgba(4,20,60,.12); }

/* --- Marquee ------------------------------------------------------------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.client-logo { height: 34px; opacity: .55; filter: grayscale(1); transition: opacity .3s, filter .3s; }
.client-logo:hover { opacity: 1; filter: grayscale(0); }

/* --- Reveal animation ---------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* --- Floating WhatsApp + back to top ------------------------------------- */
.fab-wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color:#fff;
  display: grid; place-items: center; box-shadow: 0 10px 24px rgba(37,211,102,.45);
  transition: transform .25s;
}
.fab-wa:hover { transform: scale(1.08); }

/* --- Slider -------------------------------------------------------------- */
.slider { position: relative; border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-md); }
.slide { position:absolute; inset:0; opacity:0; transition: opacity .8s ease; }
.slide.active { opacity:1; position: relative; }
.slider-dots { position:absolute; bottom:16px; left:50%; transform:translateX(-50%); display:flex; gap:8px; z-index:2; }
.slider-dot { width:9px; height:9px; border-radius:50%; background: rgba(255,255,255,.55); border:none; cursor:pointer; transition: all .3s; }
.slider-dot.active { background:#fff; width:26px; border-radius:6px; }

/* --- Utilities ----------------------------------------------------------- */
.text-muted { color: var(--muted); }
.divider { height:1px; background: var(--line); }
.badge-star { color: #f5a623; }

/* --- Breadcrumb ---------------------------------------------------------- */
.breadcrumb { display:flex; gap:8px; align-items:center; font-size:14px; color:var(--muted); margin-bottom:16px; }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb .sep { opacity:.5; }

/* --- Page hero ----------------------------------------------------------- */
.page-hero { background: #F5F7FC; padding-block: 64px 72px; }

/* --- Accordion ----------------------------------------------------------- */
.acc-item { border:1px solid var(--line); border-radius:var(--radius-card); background:#fff; overflow:hidden; margin-bottom:14px; transition:box-shadow .3s; }
.acc-item.open { box-shadow: var(--shadow-md); }
.acc-q { width:100%; text-align:left; background:none; border:none; padding:20px 22px; font-size:16.5px; font-weight:600; color:var(--ink); display:flex; justify-content:space-between; align-items:center; gap:16px; }
.acc-q .chev { transition: transform .3s; flex:none; color:var(--navy); }
.acc-item.open .chev { transform: rotate(180deg); }
.acc-a { max-height:0; overflow:hidden; transition:max-height .35s ease; }
.acc-a-inner { padding:0 22px 20px; color:var(--muted); font-size:15px; }

/* --- Table --------------------------------------------------------------- */
.price-table-wrap { overflow-x:auto; border:1px solid var(--line); border-radius:var(--radius-card); box-shadow:var(--shadow-sm); }
table.price-table { width:100%; border-collapse:collapse; min-width:560px; font-size:15px; }
table.price-table th, table.price-table td { padding:16px 20px; text-align:left; border-bottom:1px solid var(--line); }
table.price-table thead th { background:var(--navy); color:#fff; font-weight:600; font-size:14px; }
table.price-table tbody tr:last-child td { border-bottom:none; }
table.price-table tbody tr:nth-child(even) { background:#fafbfe; }
table.price-table td:first-child { font-weight:600; color:var(--ink); }
.pill { display:inline-block; background:var(--accent); color:var(--navy); font-weight:600; font-size:13px; padding:5px 12px; border-radius:999px; }

/* --- Alternating feature rows ------------------------------------------- */
.feature-row { display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center; }
.feature-row.reverse .feature-media { order:2; }

/* --- Gallery (masonry) --------------------------------------------------- */
.gallery-masonry { column-count: 4; column-gap: 16px; }
@media (max-width: 1024px){ .gallery-masonry { column-count: 3; } }
@media (max-width: 700px){ .gallery-masonry { column-count: 2; } }
@media (max-width: 460px){ .gallery-masonry { column-count: 1; } }
.gal-item { display:block; break-inside:avoid; margin:0 0 16px; border-radius:14px; overflow:hidden; box-shadow:var(--shadow-sm); cursor:zoom-in; position:relative; background:var(--accent); }
.gal-item img { width:100%; display:block; transition:transform .45s ease; }
.gal-item:hover img { transform:scale(1.05); }

/* --- Lightbox ------------------------------------------------------------ */
.lightbox { position:fixed; inset:0; z-index:120; background:rgba(2,8,26,.93); display:none; align-items:center; justify-content:center; }
.lightbox.open { display:flex; }
.lb-img { max-width:92vw; max-height:88vh; border-radius:8px; box-shadow:var(--shadow-lg); }
.lb-close, .lb-prev, .lb-next { position:absolute; background:rgba(255,255,255,.12); color:#fff; border:none; width:48px; height:48px; border-radius:50%; font-size:26px; line-height:1; cursor:pointer; display:grid; place-items:center; transition:background .2s; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background:rgba(255,255,255,.28); }
.lb-close { top:22px; right:22px; }
.lb-prev { left:22px; top:50%; transform:translateY(-50%); }
.lb-next { right:22px; top:50%; transform:translateY(-50%); }
.lb-count { position:absolute; bottom:22px; left:50%; transform:translateX(-50%); color:#fff; font-size:14px; opacity:.8; }
@media (max-width:560px){ .lb-prev{left:8px} .lb-next{right:8px} }

/* --- Estimate calculator result ------------------------------------------ */
.calc-box { background: var(--navy); color:#fff; border-radius: 14px; padding: 22px; text-align:center; }
.calc-box-label { font-size:12px; color:#c3cdea; text-transform:uppercase; letter-spacing:.1em; }
.calc-box-range { font-size:34px; margin:6px 0 14px; }
.calc-note { font-size:12px; color:#b9c4e4; line-height:1.55; margin:0 0 16px; text-align:left; }
.calc-cta { background:#fff; color:var(--navy); padding:9px 18px; }

/* --- Hero form tabs ------------------------------------------------------ */
.hero-tabs { display:flex; gap:5px; background:var(--accent); padding:5px; border-radius:12px; margin-bottom:16px; }
.hero-tab { flex:1; border:none; background:none; padding:9px 10px; border-radius:9px; font-family:inherit; font-weight:600; font-size:14px; color:var(--muted); cursor:pointer; transition:.2s; }
.hero-tab.active { background:#fff; color:var(--navy); box-shadow:var(--shadow-sm); }

/* --- Trust bar ----------------------------------------------------------- */
.trust-bar { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:16px 44px; }
.trust-item { display:flex; align-items:center; gap:10px; font-weight:600; font-size:15px; color:var(--ink); white-space:nowrap; }
.trust-item svg { color:var(--navy); flex:none; }
@media (max-width: 560px){
  .trust-bar { flex-direction:column; align-items:flex-start; gap:16px; width:max-content; max-width:100%; margin-inline:auto; }
}

/* --- Shared responsive rules (all pages) -------------------------------- */
#back-to-top.show { opacity:1 !important; visibility:visible !important; }
@media (max-width: 1024px){
  .services-grid, .pricing-grid { grid-template-columns:repeat(2,1fr) !important; }
  .steps-grid { grid-template-columns:repeat(2,1fr) !important; }
  .steps-line { display:none; }
  .testi-grid, .cards-3 { grid-template-columns:1fr !important; }
  .cards-5, .cards-4 { grid-template-columns:repeat(2,1fr) !important; }
}
@media (max-width: 900px){
  .desktop-nav, .header-cta { display:none !important; }
  .mobile-only { display:block !important; }
  .hero-grid, .split-grid, .footer-grid, .feature-row { grid-template-columns:1fr !important; gap:36px !important; }
  .feature-row.reverse .feature-media { order:0; }
}
@media (max-width: 560px){
  .topbar { display:none; }
  .services-grid, .pricing-grid, .cards-5, .cards-4, .cards-2 { grid-template-columns:1fr !important; }
  .steps-grid { grid-template-columns:1fr !important; }
  .footer-grid { grid-template-columns:1fr !important; }
  .container { padding-inline:18px; }
}
