/* Generic courier marketing site — "Island Fresh" theme, shared by every courier.
   Brand color variables (--blue/--blue-dark/--blue-soft) are overridden per-courier
   by an inline <style> block in layout.blade.php, from Courier::brandColor().
   Mobile-first. Spacing scale: 4/8/12/16/24/32/48/64/96. */
:root {
  --blue: #1d4ed8;          /* default; overridden per-courier */
  --blue-dark: #1e3a8a;
  --blue-soft: #e8efff;
  --sun: #fbbf24;           /* shared accent — always paired with dark text */
  --sun-soft: #fff4d6;
  --sea: #0f766e;
  --ink: #14213d;
  --ink-2: #44506a;         /* 7.9:1 on --bg */
  --bg: #fffaf2;
  --card: #ffffff;
  --line: #ece3d3;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(20,33,61,.06), 0 8px 24px rgba(20,33,61,.07);
  --font-head: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.65 var(--font-body); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }

:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
.section { padding: 56px 0; }
@media (min-width: 768px) { .section { padding: 88px 0; } }
.eyebrow { display: inline-block; font: 600 .8rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); background: var(--blue-soft); padding: 8px 12px; border-radius: 999px; margin-bottom: 16px; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Staging ribbon */
.staging { background: var(--ink); color: #fff; font-size: .85rem; text-align: center; padding: 6px 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font: 600 1rem/1 var(--font-body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #f6b100; color: var(--ink); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-ghost:hover { background: var(--blue-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,250,242,.94); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 1.1rem/1.1 var(--font-head); }
.brand img { width: 64px; height: auto; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.nav-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 20px; }
.nav-menu.open { display: block; }
.nav-menu ul { list-style: none; margin: 0 0 12px; padding: 0; }
.nav-menu li a { display: block; padding: 12px 4px; color: var(--ink); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
.nav-menu li a[aria-current="page"] { color: var(--blue); font-weight: 700; }
.nav-menu .btn-row .btn { flex: 1 1 140px; }
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav-menu { display: flex !important; position: static; align-items: center; gap: 24px; background: none; border: 0; padding: 0; }
  .nav-menu ul { display: flex; gap: 4px; margin: 0; }
  .nav-menu li a { border: 0; padding: 10px 12px; border-radius: 10px; }
  .nav-menu li a:hover { background: var(--blue-soft); }
  .nav-menu .btn-row .btn { flex: 0 0 auto; min-height: 44px; padding: 10px 18px; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, var(--sun-soft), transparent 60%), linear-gradient(180deg, var(--bg), #fff 100%); }
.hero-grid { display: grid; gap: 40px; align-items: center; padding-top: 48px; padding-bottom: 64px; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr .9fr; padding-top: 80px; padding-bottom: 96px; } }
.hero h1 .hl { color: var(--blue); }
.hero .lead { margin-bottom: 28px; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; color: var(--ink-2); }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; }
.tick { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; }
.route-card { background: var(--card); border-radius: 24px; box-shadow: var(--shadow); padding: 24px; border: 1px solid var(--line); }
.route-card .label { font-size: .85rem; color: var(--ink-2); }
.route-card .stop { font: 700 1.15rem/1.2 var(--font-head); }
.route-steps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; }
.route-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; }
.route-steps .dot { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--blue-soft); color: var(--blue); }
.route-steps li.done .dot { background: var(--blue); color: #fff; }
.route-steps li.now .dot { background: var(--sun); color: var(--ink); }
.status { font-size: .8rem; font-weight: 600; color: var(--ink-2); }

/* Cards / grids */
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 959px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card p { color: var(--ink-2); margin: 0; }
.icon { width: 52px; height: 52px; border-radius: 14px; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.icon.sun { background: var(--sun-soft); color: #92400e; }
.benefits { background: var(--blue); color: #fff; }
.benefits .grid { padding-top: 28px; padding-bottom: 28px; }
.benefit { display: flex; gap: 14px; align-items: center; font-weight: 600; }
.benefit .icon { background: rgba(255,255,255,.14); color: #fff; margin: 0; width: 44px; height: 44px; }
.section-head { margin-bottom: 36px; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 56px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 24px; width: 44px; height: 44px; border-radius: 50%; background: var(--sun); color: var(--ink); font: 700 1.2rem/44px var(--font-head); text-align: center; }
.step.card { padding-top: 84px; }

/* Rates */
.rates-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.rates-table caption { text-align: left; padding: 0 0 12px; color: var(--ink-2); font-size: .95rem; }
.rates-table th, .rates-table td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.rates-table thead th { background: var(--blue); color: #fff; font-weight: 600; }
.rates-table tbody tr:last-child td, .rates-table tbody tr:last-child th { border-bottom: 0; }
.rates-table tbody tr:nth-child(even) { background: #fbf8f2; }
.rates-table td.price { font: 700 1.1rem/1 var(--font-head); color: var(--blue-dark); text-align: right; }
.rates-table thead th:last-child { text-align: right; }
.note { background: var(--sun-soft); border-radius: var(--radius-sm); padding: 16px 20px; color: #5b3a06; }
.rates-split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .rates-split { grid-template-columns: 1fr 1fr; } }

/* Stores */
.stores { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.stores li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-weight: 600; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--blue-dark), var(--blue)); color: #fff; border-radius: 28px; padding: 40px 24px; display: grid; gap: 20px; align-items: center; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { margin: 0; color: #dbe5ff; }
@media (min-width: 960px) { .cta-band { grid-template-columns: 1fr auto; padding: 56px; } }

/* FAQ */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 700 1.3rem/1 var(--font-head); color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 20px 18px; color: var(--ink-2); max-width: 68ch; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { margin: 0; flex: 0 0 52px; }
.contact-list strong { display: block; }
.placeholder { background: #fff1f2; color: #9f1239; border: 1px dashed #fda4af; border-radius: 8px; padding: 2px 8px; font-size: .9rem; }

/* Page hero (inner pages) */
.page-hero { background: linear-gradient(180deg, var(--sun-soft), var(--bg)); padding: 48px 0 32px; }
@media (min-width: 768px) { .page-hero { padding: 72px 0 48px; } }

/* Footer */
.site-footer { background: var(--ink); color: #cdd5e6; margin-top: 64px; padding: 56px 0 24px; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1.05rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot-brand img { width: 88px; background: #fff; border-radius: 12px; padding: 6px; margin-bottom: 12px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: .9rem; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* WhatsApp floating button */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #128c7e; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.wa-float:hover { background: #075e54; color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover { transform: none; }
}

/* Utilities (kept out of inline styles so a strict CSP works) */
.section.alt { background: #fff; }
.pt-0 { padding-top: 0 !important; }
.mt-28 { margin-top: 28px; }
.plain { list-style: none; padding: 0; margin: 0; }
.h-sm { font-size: 1.4rem; }
.mt-16 { margin-top: 16px; }

/* ===== Motion (homepage) =====
   Everything below only runs when the visitor hasn't asked their device to reduce motion.
   Only opacity/transform are animated, so it stays smooth on budget phones and causes no layout shift. */
.route-steps { position: relative; }
.route-steps::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: var(--line); }
.route-steps::after { content: ""; position: absolute; left: 17px; top: 18px; width: 2px; height: calc(100% - 36px); background: var(--blue); transform-origin: top; transform: scaleY(var(--p, 0)); transition: transform .6s ease; }
.route-steps .dot { position: relative; z-index: 1; transition: background-color .35s ease, color .35s ease, transform .35s ease; }
.route-steps li > div { transition: opacity .35s ease; }
.route-card.live .route-steps li:not(.done):not(.now) > div { opacity: .55; }

@media (prefers-reduced-motion: no-preference) {
  /* 1. Hero entrance: copy rises in, one line after another */
  @keyframes site-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  .hero-grid > div:first-child > * { animation: site-rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero-grid > div:first-child > :nth-child(2) { animation-delay: .08s; }
  .hero-grid > div:first-child > :nth-child(3) { animation-delay: .16s; }
  .hero-grid > div:first-child > :nth-child(4) { animation-delay: .24s; }
  .hero-grid > div:first-child > :nth-child(5) { animation-delay: .32s; }
  .route-card { animation: site-rise .8s .3s cubic-bezier(.2,.7,.2,1) both; }

  /* 2. Journey card: gentle float + pulsing "current step" */
  @keyframes site-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
  @keyframes site-ping { 0% { box-shadow: 0 0 0 0 rgba(251,191,36,.55); } 100% { box-shadow: 0 0 0 12px rgba(251,191,36,0); } }
  .route-card.live { animation: site-rise .8s .3s cubic-bezier(.2,.7,.2,1) both, site-float 6s 1.2s ease-in-out infinite; }
  .route-steps li.now .dot { transform: scale(1.08); animation: site-ping 1.4s ease-out infinite; }

  /* 3. Sections, cards and tables slide up as they scroll into view (only when JS is running) */
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
  .js .reveal.in { opacity: 1; transform: none; }

  /* 4. Small touches */
  .card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
  .card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(20,33,61,.06), 0 16px 32px rgba(20,33,61,.10); }
  .card:hover .icon { transform: rotate(-6deg) scale(1.06); }
  .icon { transition: transform .2s ease; }
  .stores li { transition: transform .2s ease, border-color .2s ease; }
  .stores li:hover { transform: translateY(-2px); border-color: var(--blue); }
  @keyframes site-nudge { 0%, 100% { transform: none; } 20% { transform: translateY(-8px); } 40% { transform: none; } 60% { transform: translateY(-4px); } }
  .wa-float { animation: site-nudge 1.2s 3s ease-in-out 2; }
  @keyframes site-shine { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(220%) skewX(-20deg); } }
  .cta-band .btn-sun, .hero .btn-sun { position: relative; overflow: hidden; }
  .cta-band .btn-sun::after, .hero .btn-sun::after { content: ""; position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); transform: translateX(-120%) skewX(-20deg); animation: site-shine 3.5s 1.5s ease-in-out infinite; }
}

/* ===== Hero photo =====
   Each page sets its own background-image inline (per-courier photo), this file only
   supplies the tint/overlay treatment and text-contrast rules for when a photo is present. */
.hero.has-photo { color: #fff; background-color: #0e1e50; background-size: cover; background-position: center right; }
@media (min-width: 960px) {
  .hero.has-photo { background-position: center right; }
}
.hero.has-photo h1 { color: #fff; }
.hero.has-photo h1 .hl { color: var(--sun); }
.hero.has-photo .lead, .hero.has-photo .hero-points { color: #e3e9ff; }
.hero.has-photo .eyebrow { background: rgba(255,255,255,.14); color: #fff; }
.hero.has-photo .btn-ghost { color: #fff; border-color: #fff; }
.hero.has-photo .btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.hero.has-photo .tick { background: var(--sun); color: var(--ink); }
.hero.has-photo .route-card { color: var(--ink); }

/* Live site: hide 'to be confirmed' notes (still shown on /preview) */
.is-live .placeholder { display: none; }
