/* ==========================================================================
   PG Carriers — Stylesheet
   Design tokens drawn from logo: red #c1272d, near-black #1a1a1a, Urbanist
   ========================================================================== */

:root {
  --red: #c1272d;
  --red-dark: #9c1f24;
  --red-light: #e8424a;
  --ink: #1a1a1a;
  --ink-soft: #2c2c2c;
  --muted: #5a5a5a;
  --line: #e6e6e6;
  --bg: #ffffff;
  --bg-alt: #f6f4f1;
  --bg-dark: #111111;
  --warn: #b88a00;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.14);

  --container: 1200px;
  --gutter: clamp(1rem, 3vw, 2rem);

  --font-sans: 'Urbanist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --transition: 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Reset ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, picture, video { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { color: var(--red); }
.btn-lg { padding: 1.05rem 1.75rem; font-size: 1.05rem; }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
}
/* Backdrop blur lives on ::before so the header element itself does NOT
   become a containing block for position:fixed children (e.g. the mobile nav).
   backdrop-filter on a parent traps fixed-position descendants, which causes
   the closed nav to leak a white strip below the header on mobile. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(160%) blur(8px);
  z-index: -1;
  pointer-events: none;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.75rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}
.brand img { height: 56px; width: auto; }
.brand:hover { color: var(--ink); }

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav a {
  color: var(--ink);
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
}
.nav a:hover { color: var(--red); background: var(--bg-alt); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-weight: 700;
}

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(26, 26, 26, 0.78), rgba(26, 26, 26, 0.55)),
    url('images/image-1.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding-block: clamp(4rem, 10vw, 7rem);
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: auto -10% -40% auto;
  width: 60%;
  height: 120%;
  background: radial-gradient(circle at center, rgba(193, 39, 45, 0.55), transparent 60%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: 820px; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 6vw, 4.25rem); }
.hero h1 span { color: var(--red-light); }
.hero p.lede { font-size: clamp(1.05rem, 1.75vw, 1.25rem); color: rgba(255,255,255,0.85); max-width: 640px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.hero__ctas .btn-outline { color: #fff; border-color: #fff; }
.hero__ctas .btn-outline:hover { background: #fff; color: var(--ink); }

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-top: 2.25rem;
  color: rgba(255,255,255,0.78);
  font-size: 0.95rem;
}
.hero__badges span { display: flex; align-items: center; gap: 0.5rem; }
.hero__badges svg { width: 22px; height: 22px; flex-shrink: 0; }

/* Sections --------------------------------------------------------------- */
section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: #fff; }
.section-dark h2 { color: #fff; }

.section-head { max-width: 760px; margin: 0 auto 2.5rem; text-align: center; }
.section-head .eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--red);
  margin-bottom: 0.75rem;
}
.section-head p { color: var(--muted); }

/* Services grid ---------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.service-card__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(193, 39, 45, 0.1);
  color: var(--red);
  display: grid; place-items: center;
  margin-bottom: 1rem;
}
.service-card__icon svg { width: 26px; height: 26px; }
.service-card h3 { margin-bottom: 0.5rem; }
.service-card p { color: var(--muted); margin: 0; }

/* About / split ---------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
  position: relative;
}
.split__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(193, 39, 45, 0.4), transparent 60%);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
.split__stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; text-align: center; }
.split__stat strong { display: block; font-size: 1.6rem; color: var(--red); font-weight: 800; }
.split__stat span { color: var(--muted); font-size: 0.9rem; }

/* Slider ----------------------------------------------------------------- */
.slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  outline: none;
}
.slider:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.slider__track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}
.slider__slide {
  flex: 0 0 100%;
  position: relative;
  margin: 0;
  height: 100%;
  overflow: hidden;
}
.slider__slide img,
.slider__placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slider__slide figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.5rem 1.25rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  z-index: 1;
}

/* Prev / next buttons */
.slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--transition), transform var(--transition);
  z-index: 2;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.slider__btn:hover { background: var(--red); transform: translateY(-50%) scale(1.05); }
.slider__btn:focus-visible { background: var(--red); outline: 3px solid #fff; outline-offset: 2px; }
.slider__btn svg { width: 22px; height: 22px; }
.slider__btn--prev { left: 0.75rem; }
.slider__btn--next { right: 0.75rem; }

/* Dots */
.slider__dots {
  position: absolute;
  bottom: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  z-index: 2;
  max-width: calc(100% - 6rem);
}
.slider__dot {
  width: 9px;
  height: 9px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background var(--transition), width var(--transition), border-radius var(--transition);
}
.slider__dot:hover { background: rgba(255,255,255,0.85); }
.slider__dot.is-active {
  background: var(--red);
  width: 24px;
  border-radius: 999px;
}
.slider__dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 520px) {
  .slider__btn { width: 38px; height: 38px; }
  .slider__btn svg { width: 18px; height: 18px; }
  .slider__slide figcaption { font-size: 0.9rem; padding: 2rem 1rem 0.75rem; }
}

/* Process / steps -------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  counter-reset: step;
}
.step {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
  border: 1px solid var(--line);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 1rem; right: 1.25rem;
  font-size: 2rem;
  font-weight: 800;
  color: var(--red);
  opacity: 0.18;
}

/* Reviews / form / CTA --------------------------------------------------- */
.embed-frame {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  min-height: 200px;
}
.embed-placeholder {
  text-align: center;
  color: var(--muted);
  padding: 2rem 1rem;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
}

.cta-band {
  background: var(--red);
  color: #fff;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.cta-band h2 { color: #fff; }
.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.cta-band .btn-primary { background: #fff; color: var(--red); }
.cta-band .btn-primary:hover { background: var(--ink); color: #fff; }
.cta-band .btn-outline { color: #fff; border-color: #fff; }
.cta-band .btn-outline:hover { background: #fff; color: var(--red); }

/* Contact grid ----------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.contact-card .icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid; place-items: center;
  margin: 0 auto 0.75rem;
}
.contact-card .icon svg { width: 22px; height: 22px; }
.contact-card a { color: var(--ink); font-weight: 700; word-break: break-word; }
.contact-card a:hover { color: var(--red); }
.contact-card p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* Footer ----------------------------------------------------------------- */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.75);
  padding: 3rem 0 1.5rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.1em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: #fff; }
.site-footer__brand img { height: 64px; width: auto; filter: invert(1) brightness(2); margin-bottom: 1rem; }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}
.site-footer__bottom a { text-decoration: underline; }

/* Cookie banner --------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: none;
  max-width: 760px;
  margin: 0 auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner h3 { color: #fff; margin: 0 0 0.5rem; font-size: 1.15rem; }
.cookie-banner p { margin: 0 0 1rem; color: rgba(255,255,255,0.82); font-size: 0.95rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner .btn-primary { background: var(--red); color: #fff; }
.cookie-banner .btn-primary:hover { background: var(--red-dark); }
.cookie-banner .btn-outline { color: #fff; border-color: rgba(255,255,255,0.5); }
.cookie-banner .btn-outline:hover { background: #fff; color: var(--ink); }
.cookie-banner .btn-ghost { color: #fff; }
.cookie-banner .btn-ghost:hover { color: var(--red-light); }

/* Cookie modal ---------------------------------------------------------- */
.cookie-modal {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center; justify-content: center;
  padding: 1rem;
}
.cookie-modal.is-visible { display: flex; }
.cookie-modal__panel {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}
.cookie-modal__panel h2 { margin-top: 0; }
.cookie-cat { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 0.75rem; }
.cookie-cat__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.cookie-cat__head h4 { margin: 0; font-size: 1.05rem; }
.cookie-cat p { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.9rem; }
.cookie-cat--locked { background: var(--bg-alt); }

.toggle {
  position: relative;
  display: inline-block;
  width: 44px; height: 24px;
  flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle__track {
  position: absolute; inset: 0;
  background: #ccc;
  border-radius: 999px;
  transition: background var(--transition);
  cursor: pointer;
}
.toggle__track::before {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--transition);
}
.toggle input:checked + .toggle__track { background: var(--red); }
.toggle input:checked + .toggle__track::before { transform: translateX(20px); }
.toggle input:disabled + .toggle__track { background: var(--ink); cursor: not-allowed; opacity: 0.7; }

.cookie-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  justify-content: flex-end;
}

/* Skip link ------------------------------------------------------------- */
.skip-link {
  position: fixed;
  left: 1rem; top: -100px;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 200;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* Policy page ----------------------------------------------------------- */
.policy {
  padding-block: clamp(3rem, 7vw, 5rem);
}
.policy .container { max-width: 820px; }
.policy h1 { font-size: clamp(2rem, 4vw, 3rem); }
.policy h2 { margin-top: 2.25rem; font-size: 1.5rem; }
.policy h3 { margin-top: 1.5rem; font-size: 1.15rem; }
.policy p, .policy li { color: var(--ink-soft); }
.policy table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}
.policy th, .policy td {
  text-align: left;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  vertical-align: top;
}
.policy th { background: var(--bg-alt); font-weight: 700; }
.policy ul { padding-left: 1.25rem; }
.policy li { margin-bottom: 0.4rem; }
.policy .meta { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.5rem; }

/* Mobile ---------------------------------------------------------------- */
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 1rem;
    gap: 0.25rem;
    transform: translateY(calc(-100% - 64px));
    transition: transform var(--transition);
    box-shadow: var(--shadow);
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: 0.85rem 1rem; }
  .header-cta .btn:not(.nav-toggle) { display: none; }
  .header-cta .btn-icon { display: inline-flex; }
  .split { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .cookie-banner { inset: auto 0.5rem 0.5rem 0.5rem; padding: 1.25rem; }
}
@media (max-width: 520px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .split__stats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
