/* ============================================================
   RYTHM STAR LOGISTICS L.L.C — common stylesheet
   Direction: "Freight Manifest" — white paper base, Swiss grid,
   condensed black display type, signal-red blocks, star markers,
   dashed route lines as the signature motif.
   Palette is taken directly from the company logo.
   ============================================================ */

:root{
  --red:        #D71A20;
  --red-deep:   #A81318;
  --star:       #F9DE0B;
  --ink:        #141414;
  --ink-soft:   #4A4A48;
  --paper:      #FFFFFF;
  --bone:       #F5F4F0;
  --line:       #E5E3DD;

  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-body:    'Archivo', 'Helvetica Neue', Arial, sans-serif;

  --container: 1180px;
  --radius: 2px;
  --shadow: 0 18px 40px -18px rgba(20,20,20,.25);
  --ease: cubic-bezier(.22,.8,.28,1);
}

/* ---------- Reset ---------- */
*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  font-family:var(--font-body);
  font-size:1rem; line-height:1.65;
  color:var(--ink); background:var(--paper);
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
button{ font:inherit; cursor:pointer; }
:focus-visible{ outline:3px solid var(--red); outline-offset:3px; }

.container{ width:min(var(--container), 100% - 2.5rem); margin-inline:auto; }

/* ---------- Type ---------- */
h1,h2,h3,.display{
  font-family:var(--font-display);
  font-weight:400;
  text-transform:uppercase;
  letter-spacing:.01em;
  line-height:1.02;
}
h1{ font-size:clamp(2.9rem, 7.2vw, 5.6rem); }
h2{ font-size:clamp(2.1rem, 4.6vw, 3.4rem); }
h3{ font-size:clamp(1.2rem, 2.2vw, 1.5rem); letter-spacing:.03em; }
p{ color:var(--ink-soft); max-width:62ch; }
strong{ color:var(--ink); }

.eyebrow{
  display:inline-flex; align-items:center; gap:.55rem;
  font-size:.78rem; font-weight:700; letter-spacing:.22em;
  text-transform:uppercase; color:var(--red);
  margin-bottom:1rem;
}
.eyebrow::before{
  content:""; width:26px; height:2px; background:var(--red);
}

/* Star marker (shared) */
.star{
  display:inline-block; width:1em; height:1em; flex:none;
  background:var(--star);
  clip-path:polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.star--red{ background:var(--red); }
.star--ink{ background:var(--ink); }

/* Dashed route line — signature motif */
.route{
  position:relative; height:2px; flex:1;
  background-image:linear-gradient(90deg, var(--ink) 55%, transparent 0);
  background-size:14px 2px;
  opacity:.85;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:.6rem;
  padding:.95rem 1.7rem;
  font-weight:700; font-size:.92rem; letter-spacing:.08em; text-transform:uppercase;
  border:2px solid var(--ink); border-radius:var(--radius);
  transition:transform .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:hover{ transform:translateY(-2px); }
.btn--red{ background:var(--red); border-color:var(--red); color:#fff; }
.btn--red:hover{ background:var(--red-deep); border-color:var(--red-deep); }
.btn--ghost{ background:transparent; color:var(--ink); }
.btn--ghost:hover{ background:var(--ink); color:#fff; }
.btn--inverse{ background:#fff; border-color:#fff; color:var(--ink); }
.btn--inverse:hover{ background:var(--star); border-color:var(--star); }
.btn .star{ width:.8em; height:.8em; }

/* ---------- Top bar ---------- */
.topbar{
  background:var(--red); color:#fff;
  font-size:.8rem; font-weight:600; letter-spacing:.06em;
}
.topbar .container{
  display:flex; justify-content:space-between; align-items:center;
  min-height:38px; gap:1rem;
}
.topbar span{ display:inline-flex; align-items:center; gap:.5rem; }
.topbar .star{ width:.7rem; height:.7rem; }
@media (max-width:640px){ .topbar .topbar-right{ display:none; } }

/* ---------- Header / nav ---------- */
.header{
  position:sticky; top:0; z-index:60;
  background:var(--paper);
  border-bottom:1px solid var(--line);
  transition:box-shadow .25s;
}
.header.is-scrolled{ box-shadow:0 10px 30px -18px rgba(20,20,20,.35); }
.header .container{
  display:flex; align-items:center; justify-content:space-between;
  min-height:78px; gap:1.5rem;
}
.brand{ display:flex; align-items:center; gap:.8rem; }
.brand img{ width:100%; height:106px; }
.brand-name{
  font-family:var(--font-display); text-transform:uppercase;
  font-size:1.25rem; line-height:1; letter-spacing:.02em;
}
.brand-name small{
  display:block; font-family:var(--font-body); font-weight:700;
  font-size:.6rem; letter-spacing:.34em; color:var(--red); margin-top:.25rem;
}
.nav{ display:flex; align-items:center; gap:2rem; }
.nav a{
  font-weight:600; font-size:.92rem; letter-spacing:.04em;
  position:relative; padding:.4rem 0;
}
.nav a::after{
  content:""; position:absolute; left:0; bottom:0;
  width:100%; height:2px; background:var(--red);
  transform:scaleX(0); transform-origin:left;
  transition:transform .25s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after{ transform:scaleX(1); }
.nav .btn{ padding:.65rem 1.2rem; }
.nav-toggle{
  display:none; background:none; border:2px solid var(--ink);
  border-radius:var(--radius); padding:.45rem .6rem;
}
.nav-toggle span{
  display:block; width:22px; height:2px; background:var(--ink); margin:5px 0;
  transition:transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

@media (max-width:920px){
  .nav-toggle{ display:block; }
  .nav{
    position:absolute; top:100%; left:0; right:0;
    flex-direction:column; align-items:flex-start; gap:0;
    background:var(--paper); border-bottom:3px solid var(--red);
    padding:0 1.25rem;
    max-height:0; overflow:hidden;
    transition:max-height .35s var(--ease), padding .35s;
  }
  .nav.is-open{ max-height:420px; padding:1rem 1.25rem 1.5rem; }
  .nav a{ width:100%; padding:.8rem 0; border-bottom:1px solid var(--line); }
  .nav a:last-of-type{ border-bottom:0; }
  .nav .btn{ margin-top:.8rem; width:100%; justify-content:center; }
}

/* ---------- Hero (home) ---------- */
.hero{ padding:clamp(3rem,7vw,5.5rem) 0 clamp(3rem,7vw,5rem); overflow:hidden; }
.hero .container{
  display:grid; grid-template-columns:1.05fr .95fr;
  gap:clamp(2rem,5vw,4.5rem); align-items:center;
}
.hero h1 em{ font-style:normal; color:var(--red); }
.hero-lede{ margin:1.4rem 0 2.2rem; font-size:1.08rem; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:1rem; }
.hero-routeline{
  display:flex; align-items:center; gap:.8rem;
  margin-top:3rem; font-size:.78rem; font-weight:700;
  letter-spacing:.18em; text-transform:uppercase; color:var(--ink-soft);
}
.hero-routeline .star{ width:1rem; height:1rem; }

.hero-media{ position:relative; }
.hero-media::before{           /* offset red frame */
  content:""; position:absolute; inset:-18px 18px 18px -18px;
  background:var(--red); z-index:-1;
}
.hero-media img{
  width:100%; aspect-ratio:4/4.6; object-fit:cover;
  background:var(--bone); box-shadow:var(--shadow);
}
.hero-stamp{
  position:absolute; right:-14px; bottom:34px;
  background:var(--ink); color:#fff;
  padding:.8rem 1.1rem;
  font-size:.72rem; font-weight:700; letter-spacing:.22em; text-transform:uppercase;
  display:flex; align-items:center; gap:.6rem;
}
.hero-stamp .star{ width:.85rem; height:.85rem; }

@media (max-width:920px){
  .hero .container{ grid-template-columns:1fr; }
  .hero-media{ order:-1; margin-bottom:1rem; }
  .hero-media img{ aspect-ratio:16/10; }
}

/* ---------- Marquee strip ---------- */
.marquee{
  background:var(--red); color:#fff;
  overflow:hidden; padding:.85rem 0;
  border-top:3px solid var(--ink); border-bottom:3px solid var(--ink);
}
.marquee-track{
  display:flex; gap:2.5rem; width:max-content;
  animation:marquee 28s linear infinite;
}
.marquee span{
  display:inline-flex; align-items:center; gap:2.5rem;
  font-family:var(--font-display); text-transform:uppercase;
  font-size:1.05rem; letter-spacing:.08em; white-space:nowrap;
}
.marquee .star{ width:.9rem; height:.9rem; }
@keyframes marquee{ to{ transform:translateX(-50%); } }
@media (prefers-reduced-motion:reduce){
  .marquee-track{ animation:none; flex-wrap:wrap; width:auto; }
}

/* ---------- Sections ---------- */
.section{ padding:clamp(2.45rem,5.6vw,4.55rem) 0; }
.section--bone{ background:var(--bone); }
.section--ink{ background:var(--ink); color:#fff; }
.section--ink p{ color:#CFCDC6; }
.section-head{
  display:flex; justify-content:space-between; align-items:flex-end;
  gap:2rem; margin-bottom:clamp(2rem,5vw,3.5rem);
}
.section-head p{ margin-top:.8rem; }
@media (max-width:760px){
  .section-head{ flex-direction:column; align-items:flex-start; }
}

/* ---------- Service cards ---------- */
.services-grid{
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:1.4rem;
}
.service-card{
  background:var(--paper); border:1px solid var(--line);
  padding:1.9rem 1.7rem 1.7rem;
  display:flex; flex-direction:column; gap:.9rem;
  position:relative; overflow:hidden;
  transition:transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.service-card::before{           /* red signal edge */
  content:""; position:absolute; left:0; top:0;
  width:4px; height:100%; background:var(--red);
  transform:scaleY(0); transform-origin:top;
  transition:transform .3s var(--ease);
}
.service-card:hover{ transform:translateY(-5px); box-shadow:var(--shadow); border-color:transparent; }
.service-card:hover::before{ transform:scaleY(1); }
.service-icon{
  width:54px; height:54px; flex:none;
  background:var(--bone); border-radius:var(--radius);
  display:grid; place-items:center;
}
.service-icon svg{ width:28px; height:28px; stroke:var(--red); }
.service-card p{ font-size:.95rem; flex:1; }
.service-card .card-link{
  font-weight:700; font-size:.82rem; letter-spacing:.14em; text-transform:uppercase;
  color:var(--red); display:inline-flex; align-items:center; gap:.5rem;
}
.service-card .card-link .star{ width:.7rem; height:.7rem; }
@media (max-width:980px){ .services-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){ .services-grid{ grid-template-columns:1fr; } }

/* ---------- Process / route timeline ---------- */
.process{ counter-reset:step; }
.process-grid{
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:2.4rem 1.6rem; position:relative;
}
.process-step{
  position:relative; padding-top:1.4rem;
  border-top:2px dashed rgba(255,255,255,.35);
}
.section--ink .process-step h3{ color:#fff; }
.process-step::before{
  counter-increment:step;
  content:"0" counter(step);
  font-family:var(--font-display); font-size:2rem; color:var(--star);
  display:block; margin-bottom:.4rem;
}
.process-step::after{           /* star node on the dashed route */
  content:""; position:absolute; top:-9px; left:0;
  width:16px; height:16px; background:var(--star);
  clip-path:polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.process-step p{ font-size:.94rem; }
@media (max-width:920px){ .process-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:600px){ .process-grid{ grid-template-columns:1fr; } }

/* ---------- Split feature (image + text) ---------- */
.split{
  display:grid; grid-template-columns:1fr 1fr;
  gap:clamp(2rem,5vw,4.5rem); align-items:center;
}
.split-media{ position:relative; }
.split-media img{
  width:100%; aspect-ratio:4/3.2; object-fit:cover;
  background:var(--bone); box-shadow:var(--shadow);
}
.split-media .corner-tag{
  position:absolute; left:0; top:0;
  background:var(--red); color:#fff;
  font-size:.7rem; font-weight:700; letter-spacing:.24em; text-transform:uppercase;
  padding:.55rem .9rem;
}
.split--reverse .split-media{ order:2; }
.split ul{ margin-top:1.4rem; display:grid; gap:.75rem; }
.split ul li{
  display:flex; gap:.7rem; align-items:flex-start;
  font-weight:500; color:var(--ink);
}
.split ul .star{ width:.85rem; height:.85rem; margin-top:.32rem; }
.split .btn{ margin-top:2rem; }
@media (max-width:880px){
  .split{ grid-template-columns:1fr; }
  .split--reverse .split-media{ order:0; }
}

/* ---------- CTA band ---------- */
.cta-band{ background:var(--red); color:#fff; position:relative; overflow:hidden; }
.cta-band .container{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
  gap:2rem; padding-top:clamp(3rem,6vw,4.5rem); padding-bottom:clamp(3rem,6vw,4.5rem);
}
.cta-band h2{ max-width:18ch; }
.cta-band p{ color:rgba(255,255,255,.85); margin-top:.8rem; }
.cta-band::after{               /* giant ghost star */
  content:""; position:absolute; right:-70px; top:-70px;
  width:260px; height:260px; opacity:.18; background:var(--star);
  clip-path:polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero{
  background:var(--ink); color:#fff;
  padding:clamp(2.1rem,4.8vw,3.3rem) 0;
  position:relative; overflow:hidden;
}
.page-hero .eyebrow{ color:var(--star); }
.page-hero .eyebrow::before{ background:var(--star); }
.page-hero p{ color:#CFCDC6; margin-top:1rem; }
.page-hero::after{
  content:""; position:absolute; right:4%; bottom:-40px;
  width:200px; height:200px; opacity:.14; background:var(--red);
  clip-path:polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.crumbs{
  display:flex; gap:.6rem; align-items:center;
  font-size:.8rem; font-weight:600; letter-spacing:.12em; text-transform:uppercase;
  color:#9c9a94; margin-bottom:1.2rem;
}
.crumbs a:hover{ color:var(--star); }

/* ---------- Values grid (about) ---------- */
.values-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:1.4rem; }
.value-card{
  border:1px solid var(--line); background:var(--paper);
  padding:1.7rem 1.5rem;
}
.value-card .star{ width:1.1rem; height:1.1rem; margin-bottom:1rem; }
.value-card h3{ font-size:1.1rem; margin-bottom:.5rem; }
.value-card p{ font-size:.92rem; }
@media (max-width:980px){ .values-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .values-grid{ grid-template-columns:1fr; } }

/* ---------- Service detail rows ---------- */
.service-detail{
  display:grid; grid-template-columns:.9fr 1.1fr;
  gap:clamp(2rem,5vw,4rem); align-items:center;
  padding:clamp(2rem,4.8vw,3.2rem) 0;
  border-bottom:1px dashed var(--line);
}
.service-detail:last-of-type{ border-bottom:0; }
.service-detail:nth-of-type(even) .sd-media{ order:2; }
.sd-media{ position:relative; }
.sd-media img{
  max-height:350px; width:100%; object-fit:cover;
  background:var(--bone); box-shadow:var(--shadow);
}
.sd-media .corner-tag{
  position:absolute; left:0; top:0;
  background:var(--ink); color:var(--star);
  font-size:.7rem; font-weight:700; letter-spacing:.24em; text-transform:uppercase;
  padding:.55rem .9rem;
}
.service-detail ul{ margin-top:1.2rem; display:grid; gap:.6rem; }
.service-detail ul li{ display:flex; gap:.7rem; align-items:flex-start; font-size:.96rem; }
.service-detail ul .star{ width:.8rem; height:.8rem; margin-top:.34rem; }
@media (max-width:880px){
  .service-detail{ grid-template-columns:1fr; }
  .service-detail:nth-of-type(even) .sd-media{ order:0; }
}

/* ---------- Contact ---------- */
.contact-grid{
  display:grid; grid-template-columns:.85fr 1.15fr;
  gap:clamp(2rem,5vw,4rem); align-items:start;
}
.contact-card{
  border:1px solid var(--line); background:var(--paper);
  padding:1.4rem 1.5rem; display:flex; gap:1rem; align-items:flex-start;
  margin-bottom:1rem;
}
.contact-card .service-icon{ width:46px; height:46px; }
.contact-card .service-icon svg{ width:22px; height:22px; }
.contact-card h3{ font-size:1rem; margin-bottom:.2rem; }
.contact-card p, .contact-card a{ font-size:.95rem; color:var(--ink-soft); word-break:break-word; }
.contact-card a:hover{ color:var(--red); }

.quote-form{
  background:var(--ink); color:#fff;
  padding:clamp(1.8rem,4vw,2.8rem);
  position:relative;
}
.quote-form::before{
  content:""; position:absolute; top:0; left:0; right:0; height:4px;
  background:repeating-linear-gradient(90deg, var(--red) 0 26px, var(--star) 26px 40px);
}
.quote-form h2{ font-size:1.7rem; margin-bottom:.4rem; }
.quote-form > p{ color:#CFCDC6; font-size:.94rem; margin-bottom:1.6rem; }
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.form-field{ display:flex; flex-direction:column; gap:.4rem; }
.form-field--full{ grid-column:1 / -1; }
.form-field label{
  font-size:.74rem; font-weight:700; letter-spacing:.18em; text-transform:uppercase;
  color:#B5B3AC;
}
.form-field input, .form-field select, .form-field textarea{
  background:#1F1F1E; border:1px solid #3A3A38; border-radius:var(--radius);
  color:#fff; padding:.85rem 1rem; font:inherit;
  transition:border-color .2s;
}
.form-field textarea{ min-height:120px; resize:vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus{
  outline:none; border-color:var(--star);
}
.quote-form .btn{ margin-top:1.4rem; width:100%; justify-content:center; }
.form-note{ font-size:.8rem; color:#8f8d87; margin-top:.9rem; }
.form-status{ margin-top:1rem; font-weight:600; color:var(--star); min-height:1.4em; }
@media (max-width:880px){ .contact-grid{ grid-template-columns:1fr; } }
@media (max-width:560px){ .form-grid{ grid-template-columns:1fr; } }

.map-wrap{ margin-top:clamp(2.5rem,6vw,4rem); border:1px solid var(--line); }
.map-wrap iframe{ display:block; width:100%; height:380px; border:0; filter:grayscale(.35); }

/* ---------- Footer ---------- */
.footer{ background:var(--ink); color:#CFCDC6; }
.footer-top{
  display:grid; grid-template-columns:1.3fr 1fr 1fr 1.2fr;
  gap:2.5rem; padding:clamp(3rem,6vw,4.5rem) 0;
}
.footer-brand img{ width:100px; background:#fff; padding:.2rem; }
.footer-brand p{ color:#9c9a94; font-size:.92rem; margin-top:1.2rem; }
.footer h3{ color:#fff; font-size:.95rem; letter-spacing:.16em; margin-bottom:1.2rem; }
.footer ul{ display:grid; gap:.7rem; }
.footer ul a{ color:#CFCDC6; font-size:.94rem; display:inline-flex; gap:.6rem; align-items:center; }
.footer ul a:hover{ color:var(--star); }
.footer ul .star{ width:.6rem; height:.6rem; }
.footer-contact li{ display:flex; gap:.7rem; font-size:.94rem; color:#CFCDC6; }
.footer-contact .star{ width:.7rem; height:.7rem; margin-top:.4rem; }
.footer-bottom{
  border-top:1px solid #2c2c2a;
  padding:1.2rem 0; font-size:.82rem; color:#8f8d87;
}
.footer-bottom .container{
  display:flex; flex-wrap:wrap; justify-content:space-between; gap:.8rem;
}
.footer-bottom .fl{ display:flex; flex-wrap:wrap; gap:1.2rem; }
.footer-bottom .fl a:hover{ color:var(--star); }
@media (max-width:920px){ .footer-top{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .footer-top{ grid-template-columns:1fr; } }

/* ---------- Legal pages (privacy / terms) ---------- */
.legal-wrap{ max-width:840px; margin:0 auto; }
.legal-updated{
  display:inline-block; background:var(--bone); border:1px solid var(--line);
  color:var(--ink-soft); font-size:.78rem; font-weight:700; letter-spacing:.14em;
  text-transform:uppercase; padding:.5rem 1rem; margin-bottom:1.8rem;
}
.legal-intro{ max-width:none; font-size:1.04rem; text-align:justify; margin-bottom:1rem; }
.legal-sec{ padding:2rem 0; border-top:1px dashed var(--line); }
.legal-sec:first-of-type{ border-top:0; }
.legal-sec h2{
  display:flex; align-items:center; gap:1rem;
  font-size:clamp(1.15rem, 2.4vw, 1.5rem); margin-bottom:1.1rem;
}
.legal-sec h2 .num{
  display:inline-flex; align-items:center; justify-content:center; flex:none;
  width:2.1rem; height:2.1rem; background:var(--red); color:#fff;
  font-family:var(--font-display); font-size:1rem;
}
.legal-sec p{ max-width:none; text-align:justify; margin-bottom:1rem; }
.legal-sec p:last-child{ margin-bottom:0; }
.legal-sec ul{ display:grid; gap:.75rem; margin:0 0 1rem; }
.legal-sec ul li{ display:flex; gap:.7rem; align-items:flex-start; font-size:.96rem; }
.legal-sec ul .star{ width:.8rem; height:.8rem; margin-top:.4rem; }
.legal-sec ul li span{ color:var(--ink-soft); text-align:justify; }
.legal-contact{ display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; margin-top:1.4rem; }
.legal-contact .contact-card{ margin-bottom:0; }
@media (max-width:760px){ .legal-contact{ grid-template-columns:1fr; } }

/* ---------- Reveal on scroll ---------- */
.reveal{ opacity:0; transform:translateY(26px); transition:opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible{ opacity:1; transform:none; }
@media (prefers-reduced-motion:reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
  *{ scroll-behavior:auto !important; }
}
