/* ==========================================================================
   Pizza Box Store — design system
   ========================================================================== */

/* ---- Local fonts (no remote requests) ---- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-var-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-600-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-700-latin.woff2') format('woff2');
}

:root {
  --brand: #2455bf;
  --brand-dark: #183c85;
  --brand-soft: #e8eefb;
  --accent: #fed03d;
  --accent-dark: #e5b800;
  --ink: #1c2430;
  --muted: #5b6572;
  --line: #e5e9f0;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --footer-bg: #161a22;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, .07);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, .09);
  --shadow-lg: 0 20px 48px rgba(16, 24, 40, .14);
  --font-body: 'Inter', -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: 'Poppins', 'Inter', -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

img { max-width: 100%; height: auto; }

/* ---- Buttons ---- */
.btn-brand,
.btn-accent,
.btn-ghost,
.btn-ghost-dark {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  padding: .78rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  cursor: pointer;
}
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-dark); color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn-ghost-dark { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-ghost-dark:hover { background: var(--brand); color: #fff; }

/* ---- Top bar ---- */
.topbar {
  background: var(--brand-dark);
  color: #cdd9f4;
  font-size: .85rem;
  padding: .4rem 0;
}
.topbar a { color: #fff; font-weight: 500; }
.topbar a:hover { color: var(--accent); }
.topbar .sep { opacity: .4; margin: 0 .65rem; }

/* ---- Header / nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.navbar-pbs { padding: .55rem 0; }
.navbar-pbs .navbar-brand img { height: 56px; width: auto; }

.navbar-pbs .nav-link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink);
  padding: .55rem .85rem !important;
  border-radius: 8px;
}
.navbar-pbs .nav-link:hover,
.navbar-pbs .nav-link:focus { color: var(--brand); background: var(--brand-soft); }
.navbar-pbs .nav-link.active { color: var(--brand); }

.navbar-pbs .dropdown-menu {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: .5rem;
  min-width: 260px;
}
.navbar-pbs .dropdown-item {
  font-size: .9rem;
  font-weight: 500;
  border-radius: 8px;
  padding: .5rem .8rem;
}
.navbar-pbs .dropdown-item:hover { background: var(--brand-soft); color: var(--brand); }

.nav-cta { margin-left: .5rem; }

/* ---- Hero ---- */
.hero {
  position: relative;
  color: #fff;
  background: var(--footer-bg);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(13, 24, 48, .88) 15%, rgba(13, 24, 48, .55) 55%, rgba(13, 24, 48, .25) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 7.5rem 0;
}
.hero .eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(254, 208, 61, .12);
  border: 1px solid rgba(254, 208, 61, .4);
  padding: .35rem .9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  max-width: 17ch;
  margin-bottom: 1.1rem;
}
.hero p.lead {
  color: rgba(255, 255, 255, .85);
  font-size: 1.1rem;
  max-width: 54ch;
  margin-bottom: 2rem;
}

/* ---- Page hero (interior pages) ---- */
.page-hero {
  position: relative;
  color: #fff;
  background: var(--footer-bg);
  overflow: hidden;
}
.page-hero .hero-inner { padding: 4.5rem 0; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.5vw, 2.7rem); margin-bottom: .4rem; }
.page-hero .breadcrumbs { font-size: .87rem; color: rgba(255,255,255,.7); }
.page-hero .breadcrumbs a { color: rgba(255,255,255,.9); }
.page-hero .breadcrumbs a:hover { color: var(--accent); }

/* ---- Sections ---- */
.section { padding: 4.5rem 0; }
.section-soft { background: var(--bg-soft); }

.section-head { max-width: 640px; margin-bottom: 2.75rem; }
.section-head.centered { margin-inline: auto; text-align: center; }
.section-head .kicker {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: .5rem;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .75rem; }
.section-head h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
  margin-top: .8rem;
}
.section-head.centered h2::after { margin-inline: auto; }
.section-head p { color: var(--muted); margin-bottom: 0; }

/* ---- Feature cards ---- */
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-card .icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 1.2rem;
}
.feature-card .icon svg { width: 28px; height: 28px; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.feature-card p { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.feature-card .link-more { font-weight: 600; font-size: .92rem; }

/* ---- Category / product cards ---- */
.cat-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  color: var(--ink);
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--brand); color: var(--ink); }
.cat-card .thumb {
  aspect-ratio: 4 / 3;
  background: #fff;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.cat-card .thumb img { max-height: 100%; object-fit: contain; transition: transform .25s ease; }
.cat-card:hover .thumb img { transform: scale(1.05); }
.cat-card .body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.cat-card h3 { font-size: 1.02rem; margin: 0; }
.cat-card p { font-size: .86rem; color: var(--muted); margin: 0; }
.cat-card .link-more { margin-top: auto; padding-top: .6rem; font-weight: 600; font-size: .88rem; color: var(--brand); }

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card .thumb {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.product-card .thumb img { max-height: 100%; object-fit: contain; }
.product-card h3 {
  font-size: .98rem;
  font-weight: 600;
  text-align: center;
  padding: .95rem .75rem;
  margin: 0;
}

/* ---- Split section ---- */
.split-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}
.split-img img { width: 100%; display: block; }

.checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.checklist li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: .65rem;
  color: var(--muted);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .3em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232455bf'%3E%3Cpath d='M12.7 4.7a1 1 0 0 1 0 1.4l-5 5a1 1 0 0 1-1.4 0l-2-2a1 1 0 1 1 1.4-1.4l1.3 1.29 4.3-4.3a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E") center/70% no-repeat;
}

/* ---- Banner CTA ---- */
.banner-cta {
  position: relative;
  color: #fff;
  overflow: hidden;
}
.banner-cta .hero-bg::after {
  background: linear-gradient(90deg, rgba(24, 60, 133, .93) 0%, rgba(36, 85, 191, .82) 55%, rgba(36, 85, 191, .55) 100%);
}
.banner-cta .inner { position: relative; z-index: 1; padding: 4.25rem 0; }
.banner-cta h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.banner-cta p { color: rgba(255,255,255,.85); max-width: 56ch; }

/* ---- Accordion ---- */
.accordion-pbs .accordion-item {
  border: 1px solid var(--line);
  border-radius: var(--radius) !important;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}
.accordion-pbs .accordion-button {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  background: #fff;
  padding: 1.15rem 1.4rem;
  box-shadow: none;
}
.accordion-pbs .accordion-button:not(.collapsed) { color: var(--brand); background: var(--brand-soft); }
.accordion-pbs .accordion-button:focus { box-shadow: none; }
.accordion-pbs .accordion-body { padding: 1.25rem 1.4rem; color: var(--muted); }

/* ---- Team ---- */
.team-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  height: 100%;
  box-shadow: var(--shadow-sm);
}
.team-card .avatar {
  width: 84px;
  height: 84px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.6rem;
}
.team-card h3 { font-size: 1.1rem; margin-bottom: .15rem; }
.team-card .role { color: var(--muted); font-size: .9rem; margin-bottom: .8rem; }
.team-card a { font-weight: 500; font-size: .92rem; }

/* ---- Contact ---- */
.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
}
.info-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: .9rem;
}
.info-card .icon svg { width: 22px; height: 22px; }
.info-card h3 { font-size: 1rem; margin-bottom: .35rem; }
.info-card p { color: var(--muted); font-size: .93rem; margin: 0; }
.info-card a { font-weight: 500; }

.contact-form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
.contact-form-card .form-label { font-weight: 600; font-size: .88rem; }
.contact-form-card .form-control {
  border-radius: 10px;
  border-color: var(--line);
  padding: .65rem .9rem;
  font-size: .95rem;
}
.contact-form-card .form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 .2rem rgba(36, 85, 191, .12);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--footer-bg);
  color: #9aa3b2;
  font-size: .93rem;
}
.site-footer .footer-main { padding: 4rem 0 2.5rem; }
.site-footer h4 {
  color: #fff;
  font-size: .95rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.site-footer a { color: #cdd4e0; }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: .5rem; }
.site-footer .brand-blurb img {
  height: 54px;
  width: auto;
  background: #fff;
  border-radius: 10px;
  padding: 6px 10px;
  margin-bottom: 1rem;
}
.site-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 1.25rem 0;
  font-size: .84rem;
}
.site-footer address { margin: 0; font-style: normal; }

/* ---- Utilities ---- */
.text-muted-2 { color: var(--muted) !important; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---- Responsive tweaks ---- */
@media (max-width: 991.98px) {
  .hero-inner { padding: 5rem 0; }
  .navbar-pbs .navbar-collapse {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: .75rem;
    margin-top: .5rem;
  }
  .nav-cta { margin: .5rem 0 0; }
}
@media (max-width: 575.98px) {
  .section { padding: 3rem 0; }
  .hero-inner { padding: 4rem 0; }
  .navbar-pbs .navbar-brand img { height: 44px; }
}
