/* Pac-Rite website — built from the RIFTE design PDFs (2025).
   Palette: royal blue #1D419A, navy gradient #103352→#1E5A8A, grey #F2F2F2, black. */

:root {
  --blue: #1D419A;
  --navy-1: #103352;
  --navy-2: #1E5A8A;
  --grey: #F2F2F2;
  --ink: #111417;
  --body: #3d434a;
  --c-blue: #2196cf;
  --c-orange: #e4581c;
  --c-gold: #dfa51f;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif; color: var(--ink); background: #fff; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 960px; }
.center { text-align: center; }

h1, h2, h3 { line-height: 1.2; }
h2 { font-size: 2.2rem; font-weight: 400; }
h2 strong { font-weight: 800; }
section p { color: var(--body); }

/* ---------- buttons ---------- */
.btn { display: inline-block; padding: 14px 34px; font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: opacity .15s ease, background .15s ease; text-align: center; }
.btn:hover { opacity: .82; }
.btn-black { background: #000; color: #fff; }
.btn-white { background: #fff; color: #000; }
.link-arrow { font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid transparent; }
.link-arrow:hover { border-bottom-color: currentColor; }

/* ---------- top bar ---------- */
.topbar { background: #000; color: #fff; font-size: .8rem; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 54px; padding-top: 6px; padding-bottom: 6px; }
.topbar-phone { font-size: 1.05rem; font-weight: 700; letter-spacing: .02em; }
.topbar-hours { text-align: center; line-height: 1.45; }
.lang-switch { white-space: nowrap; letter-spacing: .04em; }
.lang-switch .on { font-weight: 800; }
.lang-switch a:hover { text-decoration: underline; }

/* ---------- header ---------- */
.sitehead { background: #fff; padding: 18px 0 0; position: relative; }
.brand { display: block; width: 190px; margin: 0 auto 14px; }
.mainnav { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 42px; padding-bottom: 16px; }
.mainnav a { font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); padding: 6px 2px; }
.mainnav a:hover { color: var(--blue); }
.mainnav a.active { color: var(--blue); }
.accent-bar { height: 7px; background: var(--blue); }
.nav-toggle { display: none; }

/* ---------- hero (rotating backgrounds) ---------- */
.hero { position: relative; overflow: hidden; min-height: 600px; display: flex; align-items: center; background: var(--grey); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center right; opacity: 0; transition: opacity 1.2s ease; }
.hero-bg.on { opacity: 1; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.62) 40%, rgba(255,255,255,0) 68%); }
.hero .container { position: relative; z-index: 1; width: 100%; }
.hero-text { max-width: 470px; padding: 60px 0; }
.hero-text h1 { font-size: 3.2rem; font-weight: 800; letter-spacing: -.02em; }
.hero-text h1 em { font-style: italic; font-weight: 400; }
.hero-text p { margin: 22px 0 30px; max-width: 400px; }
.stars-band { background: var(--blue); color: #fff; text-align: center; padding: 13px 16px; font-size: .95rem; }
.stars { letter-spacing: 3px; margin-right: 8px; }
.stars .half { opacity: .45; }

/* ---------- tradition ---------- */
.tradition { padding: 90px 0; }
.tradition h2 { margin-bottom: 28px; }
.tradition p { max-width: 720px; margin: 0 auto 34px; font-size: 1.1rem; }

/* ---------- quality band ---------- */
.quality-band { background: #0b0b0c; color: #fff; padding: 64px 0; }
.quality-in { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.quality-in h2 { font-size: 2rem; margin-bottom: 14px; }
.quality-in p { max-width: 620px; color: #d7dade; font-size: .95rem; }
.quality-in .btn { flex-shrink: 0; }

/* ---------- products ---------- */
.products-sec { padding: 70px 0 60px; }
.products-sec h2 { font-weight: 800; font-size: 1.8rem; margin-bottom: 18px; }
.prod-intro { max-width: 640px; margin-bottom: 14px; font-size: .95rem; }
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 28px; margin: 44px 0 40px; }
.prod-card.wide { grid-column: span 2; }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; }
.prod-card.wide .card-img { aspect-ratio: auto; height: 100%; max-height: 340px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.prod-card:hover .card-img img { transform: scale(1.06); }
.card-img.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prod-card h3 { font-size: 1.25rem; font-weight: 800; margin: 16px 0 8px; }
.prod-card p { font-size: .92rem; }
.prod-card { display: flex; flex-direction: column; }
.prod-card .card-img { flex: 0 0 auto; }
.prod-card.wide { display: block; }

/* ---------- tray pack ---------- */
.traypack { background: var(--grey); padding: 70px 0; }
.traypack-in { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.tp-text { text-align: center; }
.tp-text h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 16px; }
.tp-text p { margin-bottom: 26px; }

/* ---------- company block (truck + black panel) ---------- */
.company-block { display: grid; grid-template-columns: 1fr 1fr; background: #000; }
.cb-photo img { width: 100%; height: 100%; object-fit: cover; }
.cb-info { color: #fff; padding: 56px 56px 56px 48px; }
.cb-info h2 { font-size: 1.9rem; font-weight: 800; }
.cb-addr { margin: 14px 0 30px; color: #cfd3d8; }
.cb-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 26px 30px; }
.cb-label, .pb-label { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #aab0b7; margin-bottom: 4px; }
.cb-big, .pb-big { display: block; font-size: 1.35rem; font-weight: 800; color: #fff; }
.cb-hours span:first-child { color: #cfd3d8; font-size: .9rem; }
.cb-small, .pb-small { display: block; color: #aab0b7; font-size: .85rem; margin-top: 6px; }

/* ---------- open positions ---------- */
.openpos { padding: 80px 0; }
.sec-title { text-align: center; font-weight: 800; font-size: 1.7rem; text-transform: uppercase; letter-spacing: .04em; }
.sec-title::after { content: ""; display: block; width: 56px; height: 3px; background: #000; margin: 14px auto 0; }
.openpos > .container > .center { margin: 22px 0 40px; }
.job-list { max-width: 860px; margin: 40px auto; }
.job-group h3 { font-size: .95rem; font-weight: 800; margin-top: 26px; }
.job-row { display: flex; justify-content: space-between; gap: 20px; padding: 8px 0 10px 18px; border-bottom: 1px solid #d8dbdf; font-size: .92rem; color: var(--body); }
.job-loc { white-space: nowrap; }
.openpos-mail { margin-top: 36px; }
.openpos-mail a { color: var(--ink); }

/* ---------- moments ---------- */
.moments { background: var(--grey); padding: 80px 0; }
.display { font-family: 'Oswald', 'Inter', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.moments h2.display { font-size: 2.6rem; margin-bottom: 20px; }
.c-blue { color: var(--c-blue); }
.c-orange { color: var(--c-orange); }
.c-gold { color: var(--c-gold); }
.moments p { max-width: 640px; margin: 0 auto 18px; }
.tricolor { font-size: 1.02rem; margin-top: 34px !important; }
.carousel { position: relative; margin: 40px auto 8px; }
.slides { overflow: hidden; display: grid; }
.slide { grid-area: 1 / 1; opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.slide.on { opacity: 1; pointer-events: auto; }
.slide img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.car-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #123c5e; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.car-btn.prev { left: -8px; }
.car-btn.next { right: -8px; }
.car-btn:hover { background: var(--blue); }
.dots { display: flex; justify-content: center; gap: 10px; padding: 18px 0 0; }
.dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #123c5e; background: transparent; cursor: pointer; padding: 0; }
.dot.on { background: #123c5e; }
.moments-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 14px; margin: 14px 0 30px; }
.moments-grid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.events-title { color: var(--c-blue); font-size: 1.5rem; margin: 44px 0 26px; }
.events { display: grid; grid-template-columns: 1fr 1fr 1fr; max-width: 900px; margin: 0 auto 40px; }
.event { padding: 6px 18px; }
.event + .event { border-left: 1px solid #b9bec4; }
.ev-day { display: block; font-size: 2.6rem; font-weight: 800; line-height: 1.1; }
.ev-month { display: block; font-weight: 800; margin-bottom: 4px; }
.ev-name { color: var(--body); }

/* ---------- marathon ---------- */
.marathon { padding: 80px 0; }
.marathon-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; margin-bottom: 50px; }
.marathon-logos { display: flex; align-items: center; gap: 36px; margin-bottom: 30px; }
.marathon-logos img { height: 64px; width: auto; }
.marathon-text h2 { font-weight: 800; font-size: 1.7rem; margin-bottom: 16px; }
.marathon-text p { margin-bottom: 26px; max-width: 560px; }
.marathon-mascot img { max-width: 320px; margin: 0 auto; }
.marathon-hero { width: 100%; }
.marathon-strip { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-top: 14px; }
.marathon-strip img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

/* ---------- FAQ ---------- */
.faq { padding: 80px 0; }
.faq h2 { font-weight: 800; font-size: 1.8rem; }
.faq-intro { margin: 10px 0 36px; max-width: 560px; }
.faq-item { margin-bottom: 18px; }
.faq-q { width: 100%; border: 0; text-align: left; font-family: inherit; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; background: linear-gradient(90deg, var(--navy-1), var(--navy-2)); color: #fff; font-size: 1.15rem; font-weight: 600; padding: 16px 26px; }
.faq-ic { font-size: 1.5rem; font-weight: 400; line-height: 1; transition: transform .25s ease; flex-shrink: 0; }
.faq-q[aria-expanded="true"] .faq-ic { transform: rotate(45deg); }
.faq-a { background: var(--grey); color: var(--body); padding: 18px 26px; font-size: .95rem; }
.faq .center { margin-top: 44px; }

/* ---------- testimonial ---------- */
.testimonial { background: var(--grey); padding: 80px 0; }
.tq-mark { color: var(--navy-1); font-size: 5rem; font-weight: 800; line-height: .6; margin-bottom: 26px; font-family: Georgia, serif; }
.tq-text { font-size: 1.8rem; line-height: 1.35; color: var(--ink); max-width: 560px; margin: 0 auto 26px; }
.tq-by { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #9aa0a7; }

/* ---------- locate band ---------- */
.locate-band { background: linear-gradient(90deg, var(--navy-1), var(--navy-2)); color: #fff; padding: 54px 0; }
.locate-in { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.locate-in h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 10px; }
.locate-in p { color: #d9e2ea; }

/* ---------- partner band ---------- */
.partner-band { background: #000; color: #fff; padding: 64px 0 54px; }
.partner-grid { display: grid; grid-template-columns: 1.6fr 1fr .8fr 1fr; gap: 40px; }
.partner-lead h2 { font-size: 1.7rem; font-weight: 800; margin-bottom: 14px; }
.partner-lead p { color: #b9bec4; font-size: .9rem; }
.partner-grid .pb-label { margin-top: 18px; }
.partner-grid .pb-label:first-child { margin-top: 0; }

/* ---------- footer ---------- */
.sitefoot { background: #000; color: #fff; padding: 40px 0 60px; border-top: 1px solid #2a2d31; }
.foot-logo { width: 150px; margin-bottom: 34px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-co p { color: #b9bec4; font-size: .9rem; margin-top: 12px; }
.foot-credit { font-size: .8rem !important; color: #8b9197 !important; margin-top: 30px !important; }
.sitefoot h3 { font-size: 1.15rem; font-weight: 500; margin-bottom: 16px; }
.sitefoot ul { list-style: none; }
.sitefoot li { margin-bottom: 9px; }
.sitefoot li a { color: #c9cdd2; font-size: .9rem; }
.sitefoot li a:hover { color: #fff; text-decoration: underline; }
.social { display: flex; gap: 14px; margin-bottom: 26px; }
.social a { color: #fff; }
.social a:hover { color: #9fc1e8; }
.foot-lang { font-size: .9rem; }

/* ---------- about ---------- */
.about-history { padding: 80px 0 40px; }
.about-history h2 { margin-bottom: 50px; }
.timeline { position: relative; max-width: 1020px; margin: 0 auto; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 14px; bottom: 14px; width: 4px; background: var(--blue); }
.tl-item { position: relative; display: grid; grid-template-columns: 220px 1fr; gap: 30px; padding: 30px 34px; align-items: start; }
.tl-item:nth-child(even) { background: var(--grey); }
.tl-item::before { content: ""; position: absolute; left: -30px; top: 42px; width: 16px; height: 16px; border-radius: 50%; background: var(--blue); }
.tl-year { font-size: 3rem; font-weight: 800; line-height: 1; }
.tl-text { color: var(--body); font-size: .95rem; }
.today { background: var(--grey); padding: 70px 0; }
.today-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: center; }
.today h2 { font-size: 2.6rem; font-weight: 800; margin-bottom: 18px; }
.certs { padding: 80px 0; }
.certs h2 { font-weight: 800; font-size: 1.9rem; }
.certs-intro { max-width: 520px; margin: 12px auto 50px; font-size: .95rem; }
.certs-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 50px; align-items: start; }
.cert img { height: 110px; width: auto; object-fit: contain; margin: 0 auto 26px; }
.cert p { font-size: .92rem; }
.mission { background: linear-gradient(90deg, #050505, #2a2d31); color: #fff; padding: 70px 0; text-align: center; }
.mission h2 { margin-bottom: 22px; }
.mission p { color: #d7dade; max-width: 620px; margin: 0 auto; font-size: 1.05rem; }
.values { padding: 80px 0; }
.values h2 { margin-bottom: 44px; }
.value-item { margin-bottom: 26px; }
.value-head { background: linear-gradient(90deg, var(--navy-1), var(--navy-2)); color: #fff; font-size: 1.05rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 15px 26px; }
.value-body { background: var(--grey); color: var(--body); padding: 18px 26px; font-size: .93rem; }

/* ---------- contact map ---------- */
.mapsec iframe { display: block; width: 100%; height: 440px; border: 0; }

/* ---------- sticky nav (desktop, applied on scroll) ---------- */
body.nav-stuck .mainnav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: #fff; padding: 12px 16px; box-shadow: 0 2px 12px rgba(0,0,0,.1); border-bottom: 4px solid var(--blue); }
body.nav-stuck .sitehead { padding-bottom: 62px; }

/* ---------- floating call button (mobile only) ---------- */
.call-fab { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .prod-grid { grid-template-columns: 1fr 1fr; gap: 30px 22px; }
  .prod-card.wide { grid-column: span 2; }
  .partner-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .company-block, .traypack-in, .today-in, .marathon-grid { grid-template-columns: 1fr; }
  .marathon-mascot img { max-width: 240px; }
  .quality-in { flex-direction: column; align-items: flex-start; }
  .cb-photo img { max-height: 420px; }
  .certs-grid { grid-template-columns: 1fr; gap: 40px; }
  .tl-item { grid-template-columns: 1fr; gap: 8px; padding: 24px; }
  .tl-item::before { top: 34px; }
}

@media (max-width: 720px) {
  .topbar-in { flex-direction: column; gap: 4px; padding: 10px 0; }
  .nav-toggle { display: block; position: absolute; right: 20px; top: 26px; background: none; border: 0; cursor: pointer; padding: 6px; }
  .nav-toggle span { display: block; width: 26px; height: 3px; background: #000; margin: 5px 0; transition: transform .2s ease, opacity .2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .mainnav { display: none; flex-direction: column; gap: 0; text-align: center; }
  .mainnav.open { display: flex; }
  .mainnav a { padding: 12px; border-top: 1px solid #eceef0; }
  .hero { min-height: 480px; }
  .hero-bg { background-position: 72% center; }
  .hero-scrim { background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.35)); }
  .hero-text h1 { font-size: 2.3rem; }
  body.nav-stuck .mainnav { position: static; padding: 0; box-shadow: none; border-bottom: 0; }
  body.nav-stuck .sitehead { padding-bottom: 0; }
  .call-fab { display: inline-flex; align-items: center; gap: 8px; position: fixed; right: 16px; bottom: 16px; z-index: 90; background: var(--blue); color: #fff; font-weight: 700; font-size: .9rem; padding: 13px 20px; border-radius: 999px; box-shadow: 0 4px 16px rgba(0,0,0,.3); }
  h2 { font-size: 1.7rem; }
  .moments h2.display { font-size: 1.9rem; }
  .prod-grid { grid-template-columns: 1fr; }
  .prod-card.wide { grid-column: auto; }
  .events { grid-template-columns: 1fr; }
  .event + .event { border-left: 0; border-top: 1px solid #b9bec4; margin-top: 18px; padding-top: 18px; }
  .moments-grid, .marathon-strip { grid-template-columns: 1fr; }
  .cb-info { padding: 36px 24px; }
  .cb-grid { grid-template-columns: 1fr; }
  .partner-grid, .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .job-row { flex-direction: column; gap: 2px; }
  .tq-text { font-size: 1.35rem; }
  .car-btn.prev { left: 6px; }
  .car-btn.next { right: 6px; }
  .marathon-logos { flex-wrap: wrap; gap: 20px; }
  .marathon-logos img { height: 48px; }
}
