:root {
  --cb-red: #c90012;
  --cb-red-dark: #9d0010;
  --cb-ink: #181313;
  --cb-muted: #6d6260;
  --cb-cream: #fff8f4;
  --cb-soft: #f4eeee;
  --cb-line: #ead8d4;
  --cb-gold: #b88746;
  --cb-ivory: #fffdf9;
  --cb-shadow: 0 20px 60px rgba(63, 25, 18, .10);
  --cb-soft-shadow: 0 12px 30px rgba(63, 25, 18, .08);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--cb-ink);
  background: var(--cb-ivory);
  font-family: "Poppins", Arial, sans-serif;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.brand-text {
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

a {
  color: var(--cb-red);
  text-decoration: none;
}

img {
  max-width: 100%;
}

.top-strip {
  background: var(--cb-red);
  color: #fff;
  font-size: .88rem;
}

.top-strip a {
  color: #fff;
}

.top-strip .container {
  align-items: center;
  gap: 1rem;
}

.site-header {
  background: rgba(255, 253, 249, .96);
  border-bottom: 1px solid rgba(201, 0, 18, .1);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(63, 25, 18, .04);
}

.navbar-brand img {
  width: 94px;
  height: auto;
}

.brand-text {
  color: var(--cb-red);
  font-size: 1.68rem;
  line-height: 1;
}

.navbar-nav .nav-link {
  color: #302727;
  font-size: .92rem;
  padding: .8rem .75rem;
  position: relative;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  color: var(--cb-red);
}

.navbar-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: .75rem;
  right: .75rem;
  bottom: .42rem;
  height: 2px;
  background: var(--cb-red);
}

.btn-cb {
  --bs-btn-bg: var(--cb-red);
  --bs-btn-border-color: var(--cb-red);
  --bs-btn-hover-bg: var(--cb-red-dark);
  --bs-btn-hover-border-color: var(--cb-red-dark);
  --bs-btn-color: #fff;
  border-radius: 8px;
  padding: .82rem 1.35rem;
  box-shadow: 0 14px 30px rgba(201, 0, 18, .18);
  font-weight: 700;
}

.btn-outline-cb {
  color: var(--cb-red);
  border: 1px solid var(--cb-red);
  border-radius: 8px;
  padding: .82rem 1.35rem;
}

.btn-outline-cb:hover {
  color: #fff;
  background: var(--cb-red);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--cb-red);
  background: #ffe5e8;
  border-radius: 999px;
  padding: .35rem .75rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--cb-cream);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 253, 249, .86) 0%, rgba(255, 253, 249, .58) 35%, rgba(255, 253, 249, .04) 72%),
    var(--hero-img, url("../img/bakery-factory-hero.jpg?v=2")) center/cover;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 92px;
  background: linear-gradient(90deg, #efe5e2, #65331f);
  border-bottom-right-radius: 34px;
  opacity: .9;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.45rem, 5vw, 5.4rem);
  line-height: .98;
}

.hero p {
  max-width: 610px;
  color: #5e5351;
}

.home-carousel .carousel-item {
  transition: transform .8s ease-in-out;
}

.home-carousel .carousel-item.hero {
  display: none;
}

.home-carousel .carousel-item.active.hero,
.home-carousel .carousel-item-next.hero,
.home-carousel .carousel-item-prev.hero {
  display: flex;
}

.home-carousel .carousel-control-prev,
.home-carousel .carousel-control-next {
  width: 58px;
  height: 58px;
  top: auto;
  bottom: 116px;
  border-radius: 50%;
  background: rgba(201, 0, 18, .92);
  opacity: 1;
}

.home-carousel .carousel-control-prev {
  left: auto;
  right: 98px;
}

.home-carousel .carousel-control-next {
  right: 28px;
}

.home-carousel .carousel-indicators {
  bottom: 28px;
  z-index: 3;
}

.home-carousel .carousel-indicators [data-bs-target] {
  width: 42px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
}

.breadcrumb-band {
  background: #fff;
  border-bottom: 1px solid var(--cb-line);
  padding: 1rem 0;
}

.breadcrumb {
  margin: 0;
  font-size: .9rem;
}

.breadcrumb a {
  color: var(--cb-muted);
}

.breadcrumb .active {
  color: var(--cb-red);
  font-weight: 600;
}

.page-hero {
  padding: 4.6rem 0 4rem;
  background:
    linear-gradient(135deg, rgba(255, 248, 244, .94), rgba(255, 255, 255, .98)),
    radial-gradient(circle at top right, rgba(201, 0, 18, .08), transparent 34%);
  border-bottom: 1px solid var(--cb-line);
}

.page-hero h1 {
  font-size: clamp(2.4rem, 4.2vw, 4.6rem);
}

.page-hero img {
  width: 100%;
  max-height: 470px;
  object-fit: cover;
}

.section-pad {
  padding: 5.5rem 0;
}

.section-soft {
  background: linear-gradient(180deg, #f8f2ef, #fffaf7);
}

.section-title {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-title p,
.muted {
  color: var(--cb-muted);
}

.category-card,
.branch-card,
.value-card,
.program-card,
.team-card,
.testimonial-card,
.gallery-item,
.contact-card,
.form-panel,
.product-card,
.process-card,
.standard-card,
.ingredient-panel {
  background: #fff;
  border: 1px solid var(--cb-line);
  border-radius: 8px;
  box-shadow: var(--cb-shadow);
  overflow: hidden;
}

.product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.product-card:hover,
.branch-card:hover,
.program-card:hover,
.gallery-item:hover,
.value-card:hover,
.core-value-card:hover,
.feature-card:hover,
.process-card:hover,
.standard-card:hover,
.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 0, 18, .28);
  box-shadow: 0 24px 70px rgba(63, 25, 18, .14);
}

.product-card > .p-4 {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.product-media {
  position: relative;
  height: 270px;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.045);
}

.product-badge {
  position: absolute;
  left: 1rem;
  top: 1rem;
  color: #fff;
  background: rgba(201, 0, 18, .94);
  border-radius: 999px;
  padding: .38rem .8rem;
  font-size: .78rem;
  font-weight: 700;
}

.product-card .price {
  color: var(--cb-red);
  font-weight: 800;
}

.product-action {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  gap: .45rem;
  color: var(--cb-red);
  font-weight: 700;
}

.premium-panel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(255, 248, 244, .92)),
    radial-gradient(circle at top right, rgba(184, 135, 70, .18), transparent 34%);
  border: 1px solid var(--cb-line);
  border-radius: 18px;
  box-shadow: var(--cb-shadow);
  padding: clamp(2rem, 4vw, 3.5rem);
}

.trust-stat-card {
  height: 100%;
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--cb-line);
  border-radius: 8px;
  box-shadow: var(--cb-soft-shadow);
}

.trust-stat-card strong {
  display: block;
  color: var(--cb-red);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.trust-stat-card span {
  display: block;
  margin-top: .65rem;
  color: var(--cb-ink);
  font-weight: 700;
}

.trust-stat-card p {
  margin: .5rem 0 0;
  color: var(--cb-muted);
}

.category-card {
  position: relative;
  min-height: 260px;
}

.category-card.tall {
  min-height: 440px;
}

.category-card img,
.branch-card img,
.program-card img,
.team-card img,
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card .overlay {
  position: absolute;
  inset: auto 0 0;
  color: #fff;
  padding: 1.6rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, .78), transparent);
}

.welcome-image {
  width: 100%;
  min-height: 430px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--cb-shadow);
}

.welcome-copy {
  max-width: 650px;
}

.trust-panel {
  background: #fff;
  border: 1px solid var(--cb-line);
  border-radius: 18px;
  box-shadow: var(--cb-shadow);
  padding: 2.1rem;
}

.stat {
  border-top: 1px solid var(--cb-line);
  padding-top: 1.2rem;
}

.stat strong {
  display: block;
  color: var(--cb-red);
  font-size: 1.55rem;
}

.testimonial-card {
  padding: 1.8rem;
  min-height: 245px;
}

.feature-card {
  height: 100%;
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--cb-line);
  border-radius: 8px;
  box-shadow: var(--cb-soft-shadow);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.special-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 190px;
  background: #fff;
  border: 1px solid var(--cb-line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--cb-shadow);
}

.special-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stars {
  color: var(--cb-red);
  letter-spacing: .12rem;
}

.cta-band {
  color: #fff;
  background: linear-gradient(135deg, #ed1b24, var(--cb-red));
  border-radius: 22px;
  padding: clamp(2.5rem, 5vw, 4.5rem);
  box-shadow: var(--cb-shadow);
  overflow: hidden;
}

.cta-band p {
  color: rgba(255, 255, 255, .86);
}

.site-footer {
  background: #e7e4e4;
  border-top: 1px solid #d4c9c7;
  padding-top: 0;
}

.site-footer h5 {
  color: var(--cb-red);
  font-weight: 700;
}

.site-footer a {
  color: #493f3e;
  display: block;
  margin-bottom: .55rem;
}

.footer-connect {
  color: #fff;
  background: var(--cb-red);
  border-radius: 26px 26px 0 0;
  padding: 4rem 1.5rem;
  margin-bottom: 0;
}

.footer-connect p {
  color: rgba(255, 255, 255, .88);
}

.footer-newsletter {
  max-width: 640px;
  margin: 2rem auto 0;
  padding: 1rem;
  background: rgba(255, 255, 255, .88);
  border-radius: 8px;
}

.footer-main {
  padding: 4rem 0 2rem;
}

.footer-brand img {
  width: 112px;
  height: auto;
}

.social-icon,
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: var(--cb-red);
  border: 1px solid var(--cb-line);
}

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1040;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #20c65a;
  box-shadow: 0 16px 36px rgba(32, 198, 90, .35);
  font-size: 1.55rem;
}

.wa-float:hover {
  color: #fff;
  transform: translateY(-2px);
}

.image-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.image-stack img {
  height: 220px;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--cb-shadow);
}

.image-stack img:nth-child(1) {
  grid-row: span 2;
  height: 456px;
}

.value-card {
  padding: 2rem;
}

.value-card.red {
  color: #fff;
  background: var(--cb-red);
  border-color: var(--cb-red);
}

.value-card.red p {
  color: rgba(255, 255, 255, .84);
}

.core-value-card {
  position: relative;
  height: 100%;
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--cb-line);
  border-radius: 8px;
  box-shadow: var(--cb-soft-shadow);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.core-value-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -38px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(201, 0, 18, .06);
}

.core-value-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 0, 18, .24);
  box-shadow: 0 24px 50px rgba(63, 25, 18, .11);
}

.core-value-card h4,
.core-value-card p,
.core-value-card .icon-box {
  position: relative;
  z-index: 1;
}

.core-value-card.featured {
  color: #fff;
  background: linear-gradient(135deg, var(--cb-red), var(--cb-red-dark));
  border-color: var(--cb-red);
}

.core-value-card.featured::after {
  background: rgba(255, 255, 255, .12);
}

.core-value-card.featured p {
  color: rgba(255, 255, 255, .86);
}

.core-value-card.featured .icon-box {
  color: var(--cb-red);
  border-color: rgba(255, 255, 255, .45);
}

.process-card {
  height: 100%;
  padding: 1.8rem;
}

.process-number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1.2rem;
  color: #fff;
  background: var(--cb-red);
  border-radius: 50%;
  font-weight: 800;
}

.ingredient-panel {
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.ingredient-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 0;
  margin: 1.5rem 0 0;
  list-style: none;
}

.ingredient-list li {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--cb-ink);
  font-weight: 600;
}

.ingredient-list i {
  color: var(--cb-red);
}

.standard-card {
  height: 100%;
  padding: 2rem;
  box-shadow: var(--cb-soft-shadow);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.branch-card .card-img {
  height: 230px;
}

.branch-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.branch-card > .p-4 {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.branch-card .btn {
  margin-top: auto;
}

.badge-cb {
  color: #fff;
  background: var(--cb-red);
  border-radius: 999px;
  padding: .45rem .75rem;
}

.filter-pill {
  border: 1px solid var(--cb-line);
  border-radius: 999px;
  background: #fff;
  padding: .85rem 1.35rem;
  color: var(--cb-muted);
}

.filter-pill.active {
  color: #fff;
  background: var(--cb-red);
  border-color: var(--cb-red);
}

.program-card .program-img {
  height: 245px;
}

.program-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.program-card .p-4 {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.program-card .btn-link-tail,
.program-card strong {
  margin-top: auto;
}

.program-card .row {
  min-height: 0;
}

.program-card .row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.curriculum-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.curriculum-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.curriculum-list span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cb-red);
  color: #fff;
  font-weight: 700;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 0;
  cursor: zoom-in;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.gallery-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  color: #fff;
  background: rgba(24, 19, 19, .7);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  padding: .55rem .75rem;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.25;
  backdrop-filter: blur(10px);
}

.gallery-item.wide {
  grid-column: span 1;
}

.gallery-item.small {
  grid-column: span 1;
}

.gallery-item.mid {
  grid-column: span 1;
}

.video-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  background: #111;
  color: #fff;
  cursor: pointer;
  text-align: inherit;
}

.play-badge {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 3.6rem;
  background: rgba(0, 0, 0, .24);
  transition: background .2s ease, transform .2s ease;
}

.video-card:hover .play-badge {
  background: rgba(201, 0, 18, .26);
}

.play-badge i {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(201, 0, 18, .95);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
}

.video-modal .modal-content {
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #090909;
}

.video-modal .btn-close {
  filter: invert(1);
  opacity: 1;
}

.video-frame-wrap {
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-frame-wrap iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.lightbox-modal .modal-content {
  background: transparent;
  border: 0;
}

.lightbox-modal img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
}

.lightbox-modal .btn-close {
  filter: invert(1);
  opacity: 1;
}

.form-control,
.form-select {
  min-height: 52px;
  border-color: #e5c8c3;
  border-radius: 8px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--cb-red);
  box-shadow: 0 0 0 .2rem rgba(201, 0, 18, .12);
}

.form-panel {
  padding: clamp(1.5rem, 3vw, 2.6rem);
}

.contact-card {
  padding: 1.8rem;
  height: 100%;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.legal-panel {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: #fff;
  border: 1px solid var(--cb-line);
  border-radius: 8px;
  box-shadow: var(--cb-shadow);
}

.legal-panel h2 {
  margin-top: 1.5rem;
  font-size: 1.35rem;
}

.legal-panel h2:first-child {
  margin-top: 0;
}

.form-status {
  font-weight: 600;
}

.form-status.is-loading {
  color: var(--cb-muted);
}

.form-status.is-success {
  color: #137a3a;
}

.form-status.is-error {
  color: var(--cb-red);
}

.map-wrap iframe {
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: 8px;
  filter: saturate(.95);
}

@media (max-width: 991.98px) {
  .top-strip {
    display: none;
  }

  .navbar-nav .nav-link.active::after {
    display: none;
  }

  .hero {
    min-height: 560px;
  }

  .navbar-brand img {
    width: 78px;
  }

  .brand-text {
    font-size: 1.42rem;
  }

  .home-carousel .carousel-control-prev,
  .home-carousel .carousel-control-next {
    display: none;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(255, 250, 250, .88), rgba(255, 250, 250, .5)),
      var(--hero-img, url("../img/bakery-factory-hero.jpg?v=2")) center/cover;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item.wide,
  .gallery-item.small,
  .gallery-item.mid {
    grid-column: span 1;
  }
}

@media (max-width: 767.98px) {
  .section-pad {
    padding: 3.5rem 0;
  }

  .hero h1 {
    font-size: 2.45rem;
  }

  .hero {
    min-height: 540px;
  }

  .category-card,
  .category-card.tall {
    min-height: 320px;
  }

  .image-stack {
    grid-template-columns: 1fr;
  }

  .image-stack img,
  .image-stack img:nth-child(1) {
    height: 260px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .welcome-image {
    min-height: 280px;
  }

  .special-card {
    grid-template-columns: 1fr;
  }

  .special-card img {
    height: 220px;
  }

  .footer-connect {
    border-radius: 18px 18px 0 0;
  }

  .product-media {
    height: 230px;
  }

  .ingredient-list {
    grid-template-columns: 1fr;
  }
}
