/* ==========================================================================
   Ozcoast Logistics — Hero (2-step quote) + "What we carry" strip
   Self-contained & SCOPED to .hero2 / .x-strip so it never affects the
   header, footer, or any other section of the live site.
   Loads AFTER css/style.css.
   ========================================================================== */

/* ---- Scoped design tokens (do not leak to :root) ---- */
.hero2, .x-strip {
  --ocean: #064358;
  --coastal: #0987A7;
  --coastal-600: #0a7693;
  --aqua: #7DA2AD;
  --ink: #0a2a37;
  --text: #44606b;
  --muted: #7c95a0;
  --line: #e4edf1;
  --line-2: #d6e3e9;
  --grad-brand: linear-gradient(135deg, #064358 0%, #0987A7 100%);
  --container: 1240px;
  --ease: cubic-bezier(.16,1,.3,1);
  --header-h: 78px;
}

/* ---- Scoped layout container (overrides site .container only inside hero/strip) ---- */
.hero2 .container, .x-strip .container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---- Scoped buttons (override site .btn only inside the hero) ---- */
.hero2 .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: 'Outfit',sans-serif; font-weight: 600; font-size: 1rem; padding: 15px 28px; border-radius: 100px; cursor: pointer; border: none; text-decoration: none; white-space: nowrap; line-height: 1; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s ease, color .3s ease; }
.hero2 .btn svg { width: 18px; height: 18px; }
.hero2 .btn:hover svg { transform: none; }
.hero2 .btn-lg { padding: 18px 34px; font-size: 1.06rem; }
.hero2 .btn-block { width: 100%; }
.hero2 .btn-primary { background: var(--coastal); color: #fff; box-shadow: 0 10px 26px rgba(9,135,167,.26); }
.hero2 .btn-primary:hover { background: var(--coastal-600); transform: none; box-shadow: 0 10px 26px rgba(9,135,167,.26); }
.hero2 .btn-outline { background: #fff; color: var(--ocean); border: 1.5px solid var(--line-2); box-shadow: 0 4px 14px rgba(6,40,55,.05); }
.hero2 .btn-outline:hover { transform: none; border-color: var(--coastal); color: var(--coastal); background: #fff; }

/* ---- Editorial heading kit ---- */
.hero2 .h-kicker { display: inline-flex; align-items: center; gap: 10px; font-family: 'Outfit',sans-serif; font-weight: 600; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--coastal); }
.hero2 .h-kicker .kdot { width: 26px; height: 1.5px; background: linear-gradient(90deg, var(--coastal), transparent); }
.hero2 .grad-ink { background: linear-gradient(110deg, #0987A7, #064358 70%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ==========================================================================
   HERO
   ========================================================================== */
.aurora { position: absolute; inset: -20% -10% 0; z-index: 0; pointer-events: none; filter: blur(60px); opacity: .9; }
.aurora span { position: absolute; border-radius: 50%; background: var(--b); width: var(--s); height: var(--s); left: var(--x); top: var(--y); animation: drift var(--d) ease-in-out infinite alternate; }
.aurora .b1 { --b: radial-gradient(circle, rgba(9,135,167,.55), transparent 65%); --s: 620px; --x: -6%; --y: -8%; --d: 14s; }
.aurora .b2 { --b: radial-gradient(circle, rgba(125,162,173,.55), transparent 65%); --s: 560px; --x: 58%; --y: -14%; --d: 18s; }
.aurora .b3 { --b: radial-gradient(circle, rgba(6,67,88,.40), transparent 65%); --s: 520px; --x: 30%; --y: 40%; --d: 22s; }
.aurora .b4 { --b: radial-gradient(circle, rgba(120,210,235,.45), transparent 65%); --s: 440px; --x: 70%; --y: 45%; --d: 16s; }

.hero2 { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 56px) 0 84px; overflow: hidden;
  font-family: 'Inter',sans-serif;
  background:
    radial-gradient(100% 100% at 50% 0%, rgba(9,135,167,.04), transparent 60%),
    radial-gradient(80% 80% at 10% 90%, rgba(125,162,173,.06), transparent 70%),
    linear-gradient(180deg, #fafcfd 0%, #f4f8fa 100%); }
.hero2 .aurora { opacity: .4; }
.hero2::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(48% 44% at 64% 36%, rgba(120,210,235,.09), transparent 72%);
  animation: heroShift 20s ease-in-out infinite alternate; }
.hero2-wave { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; width: 100%; height: 180px; opacity: .5; pointer-events: none; }
.hero2-wave path { fill: none; stroke: rgba(9,135,167,.18); stroke-width: 1.5; }

.hero2-grid { position: relative; z-index: 3; display: grid; grid-template-columns: 1.16fr .84fr; grid-template-areas: "head form"; gap: clamp(28px,4vw,64px); align-items: center; width: 100%; }

.hero2-head { grid-area: head; max-width: 660px; position: relative; z-index: 3; }
.hero2-head::before { content: ""; position: absolute; inset: -50px -120px -50px -60px; z-index: -1; pointer-events: none;
  background: radial-gradient(62% 72% at 32% 46%, rgba(244,249,251,.94), rgba(244,249,251,.55) 55%, rgba(244,249,251,0) 78%); }
.hero2-head h1 { font-family: 'Outfit',sans-serif; font-weight: 900; letter-spacing: -.035em; line-height: .98; font-size: clamp(1.9rem, 4.6vw, 3.7rem); color: var(--ink); margin: 28px 0 0; }
.hero2-head h1 .line { display: block; overflow: hidden; }
.hero2-head h1 .line > span { display: block; transform: translateY(110%); animation: riseIn .9s var(--ease) forwards; }
.hero2-head h1 .line:nth-child(2) > span { animation-delay: .1s; }
.hero2-head h1 .line:nth-child(3) > span { animation-delay: .2s; }
.hero2-sub { max-width: 392px; font-size: clamp(1.02rem,1.5vw,1.16rem); line-height: 1.6; color: var(--text); margin: 22px 0 30px; opacity: 0; animation: fadeUp .8s var(--ease) .42s forwards; }
.hero2-sub strong { color: var(--ocean); font-weight: 700; }
.hero2-actions { display: flex; flex-wrap: wrap; gap: 14px; opacity: 0; animation: fadeUp .8s var(--ease) .54s forwards; }

/* trust check list */
.hero2-chips { display: grid; grid-template-columns: repeat(2, max-content); gap: 15px 28px; margin-top: 34px; max-width: 520px; opacity: 0; animation: fadeUp .8s var(--ease) .66s forwards; }
.tchip { display: inline-flex; align-items: center; gap: 12px; font-family: 'Outfit',sans-serif; font-weight: 600; font-size: .95rem; color: var(--ink); }
.tc-check { width: 22px; height: 22px; flex: none; color: var(--coastal); }

/* truck (sits behind grid + form) */
.hero2-truck { position: absolute; z-index: 2; bottom: -3%; left: 61%; width: min(47vw, 720px); max-width: none; transform: translateX(-50%); will-change: transform; pointer-events: none; }
.truck-glow { position: absolute; z-index: 1; left: 59%; top: 44%; transform: translate(-50%,-50%); width: min(40vw, 500px); height: min(27vw, 340px); border-radius: 50%; background: radial-gradient(circle, rgba(9,135,167,.20), transparent 70%); filter: blur(60px); pointer-events: none; }
.truck-shadow { position: absolute; z-index: 1; left: 59%; bottom: 6%; transform: translateX(-50%); width: min(37vw, 480px); height: 40px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(6,40,55,.26), transparent 70%); filter: blur(22px); pointer-events: none; }
@keyframes floatTruck {
  0% { transform: translateX(-50%) translateY(0px); }
  50% { transform: translateX(-50%) translateY(-6px); }
  100% { transform: translateX(-50%) translateY(0px); }
}
.hero2-truck.float-anim { animation: floatTruck 6s ease-in-out infinite; }

/* 2-step quote card */
.qcard { grid-area: form; position: relative; z-index: 5; background: rgba(255,255,255,.85); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%); border: 1px solid rgba(255,255,255,.92); border-radius: 24px; box-shadow: 0 28px 66px rgba(6,40,55,.10), 0 6px 16px rgba(6,40,55,.04); padding: 28px; opacity: 0; animation: qslide .9s var(--ease) .5s forwards; justify-self: end; width: 100%; max-width: 460px; }
.qcard-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.qcard-head .qh-title { font-family: 'Outfit',sans-serif; font-weight: 700; font-size: 1.18rem; color: var(--ink); }
.qcard-head .qh-title span { display: block; font-size: .82rem; font-weight: 500; color: var(--muted); margin-top: 2px; }
.qsteps { display: flex; gap: 6px; }
.qstep-dot { width: 26px; height: 5px; border-radius: 100px; background: var(--line-2); transition: background .4s var(--ease); }
.qstep-dot.on { background: var(--grad-brand); }
.qpane { display: none; }
.qpane.active { display: block; animation: fadeUp .5s var(--ease); }
.qcard .field { margin-bottom: 14px; }
.qcard .field label { display: block; font-family: 'Outfit',sans-serif; font-weight: 600; font-size: .82rem; color: var(--ink); margin-bottom: 6px; }
.qcard .field label .opt { color: var(--muted); font-weight: 500; }
.qcard .field input, .qcard .field textarea { width: 100%; padding: 15px 16px; border: 1.5px solid var(--line-2); border-radius: 12px; font-family: 'Inter',sans-serif; font-size: .98rem; color: var(--ink); background: rgba(255,255,255,.7); transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s; }
.qcard .field input:focus, .qcard .field textarea:focus { outline: none; border-color: var(--coastal); box-shadow: 0 0 0 4px rgba(9,135,167,.16), 0 8px 20px rgba(9,135,167,.10); background: #fff; }
.qcard .field textarea { resize: vertical; min-height: 74px; }
.qcard .field .err { display: none; color: #d23f3f; font-size: .8rem; margin-top: 5px; }
.qcard .field.invalid input, .qcard .field.invalid textarea { border-color: #e0908f; background: #fdf4f4; }
.qcard .field.invalid .err { display: block; }
.qprivacy { display: flex; align-items: center; gap: 7px; font-size: .74rem; color: var(--muted); margin: 4px 0 14px; line-height: 1.4; }
.qprivacy svg { width: 15px; height: 15px; color: #16c098; flex: none; }

/* consent checkbox */
.qconsent { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; margin: 2px 0 16px; }
.qconsent input[type="checkbox"] { -webkit-appearance: none; appearance: none; width: 19px; height: 19px; margin: 1px 0 0; flex: none; border: 1.5px solid var(--line-2); border-radius: 6px; background: #fff; cursor: pointer; position: relative; transition: border-color .2s var(--ease), background .2s var(--ease); }
.qconsent input[type="checkbox"]:hover { border-color: var(--coastal); }
.qconsent input[type="checkbox"]:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(9,135,167,.18); }
.qconsent input[type="checkbox"]:checked { background: var(--coastal); border-color: var(--coastal); }
.qconsent input[type="checkbox"]:checked::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.qconsent label { font-size: .8rem; line-height: 1.45; color: var(--muted); cursor: pointer; font-family: 'Inter',sans-serif; font-weight: 400; }
.qconsent label a { color: var(--coastal); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(9,135,167,.35); }
.qconsent label a:hover { border-bottom-color: var(--coastal); }
.qconsent .err { display: none; grid-column: 1 / -1; color: #d23f3f; font-size: .78rem; margin-top: 2px; }
.qconsent.invalid input[type="checkbox"] { border-color: #e0908f; background: #fdf4f4; }
.qconsent.invalid .err { display: block; }

.qresponse { text-align: center; font-size: .8rem; color: var(--muted); margin-top: 12px; }
.qresponse b { color: var(--ocean); font-weight: 600; }
.qback { background: none; border: none; color: var(--muted); font-family: 'Outfit',sans-serif; font-weight: 600; font-size: .86rem; display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; cursor: pointer; transition: color .25s; }
.qback:hover { color: var(--coastal); }
.qback svg { width: 15px; height: 15px; }
.qsuccess { text-align: center; padding: 18px 4px 8px; }
.qsuccess .qs-ic { width: 66px; height: 66px; margin: 0 auto 14px; border-radius: 50%; background: rgba(22,192,152,.12); color: #16c098; display: flex; align-items: center; justify-content: center; }
.qsuccess .qs-ic svg { width: 32px; height: 32px; }
.qsuccess h3 { color: var(--ink); margin-bottom: 8px; font-size: 1.3rem; font-family: 'Outfit',sans-serif; }
.qsuccess p { color: var(--text); font-size: .95rem; }

/* scroll cue */
.hero2-cue { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 9px; color: var(--muted); font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; text-decoration: none; opacity: 0; animation: fadeUp 1s var(--ease) 1.1s forwards; transition: opacity .4s ease; }
.hero2-cue .mouse { width: 22px; height: 34px; border: 2px solid var(--aqua); border-radius: 12px; position: relative; }
.hero2-cue .mouse::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 6px; background: var(--coastal); border-radius: 2px; transform: translateX(-50%); animation: wheel 1.6s ease-in-out infinite; }

/* ==========================================================================
   "WHAT WE CARRY" STRIP
   ========================================================================== */
.x-strip { position: relative; z-index: 2; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; overflow: hidden; }
.x-strip .container { display: flex; align-items: center; gap: 26px; }
.x-strip .lbl { flex: none; font-family: 'Outfit',sans-serif; font-weight: 600; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.x-strip-track { display: flex; gap: 40px; width: max-content; animation: marquee 32s linear infinite; }
.x-strip-track span { font-family: 'Outfit',sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--ink); opacity: .85; display: inline-flex; align-items: center; gap: 40px; }
.x-strip-track span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--coastal); }
.x-strip-mask { position: relative; flex: 1; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }

/* ---- Keyframes ---- */
@keyframes riseIn { to { transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes qslide { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes heroShift { 0% { transform: translate3d(-3%, -2%, 0) scale(1); } 100% { transform: translate3d(4%, 3%, 0) scale(1.12); } }
@keyframes drift { to { transform: translate3d(40px, 30px, 0) scale(1.12); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes wheel { 0% { opacity: 1; top: 6px; } 60% { opacity: 0; top: 16px; } 100% { opacity: 0; top: 6px; } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hero2 { min-height: auto; }
  .hero2-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "form"; gap: 40px; }
  .hero2-head { max-width: 100%; }
  .hero2-actions { max-width: 100%; }
  .hero2-chips { grid-template-columns: repeat(2, max-content); gap: 16px 40px; max-width: 100%; }
  .qcard { justify-self: stretch; max-width: 520px; min-width: 0; }
  .hero2-truck { width: 90%; max-width: 540px; left: 50%; bottom: auto; top: 7%; opacity: .12; animation: none; }
  .truck-glow, .truck-shadow { display: none; }
  .hero2-cue { display: none; }
}
/* Tablet only: centre the hero column so it doesn't sit left with empty space */
@media (min-width: 681px) and (max-width: 1024px) {
  .hero2-grid { justify-items: center; }
  .hero2-head { text-align: center; max-width: 660px; }
  .hero2-head::before { display: none; }
  .hero2-head .h-kicker { justify-content: center; }
  .hero2-sub { margin-left: auto; margin-right: auto; }
  .hero2-actions { justify-content: center; }
  .hero2-chips { justify-content: center; }
  .qcard { justify-self: center; }
}
@media (max-width: 680px) {
  .hero2 { padding-top: calc(var(--header-h) + 20px); }
  .hero2-head h1 { font-size: clamp(1.85rem, 8vw, 3rem); }
  .hero2-actions { flex-direction: column; align-items: stretch; }
  .hero2 .btn { width: 100%; }
  .hero2-chips { grid-template-columns: 1fr 1fr; gap: 15px 14px; max-width: 100%; margin-top: 30px; }
  .tchip { font-size: .85rem; gap: 10px; }
  .tc-check { width: 20px; height: 20px; }
  .qcard { padding: 22px; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero2-head h1 .line > span, .hero2-sub, .hero2-actions, .hero2-chips, .qcard, .hero2-cue { animation: none !important; opacity: 1 !important; transform: none !important; }
  .aurora span, .float-anim, .hero2::before, .hero2-cue .mouse::after, .x-strip-track { animation: none !important; }
}
