/* ================================================================
   SWEET BAKEART — PREMIUM HERO SYSTEM
   Homepage + About + Gallery + Shop + Contact
   ================================================================ */
:root {
  --hero-wine: #7f2f3b;
  --hero-wine-deep: #45121d;
  --hero-rose: #dba7b1;
  --hero-blush: #f5dfe3;
  --hero-cream: #fff9f4;
  --hero-ink: #321820;
  --hero-gold: #c59a5c;
  --hero-shadow: 0 34px 90px rgba(69, 18, 29, 0.22);
}

.hero-wrapper {
  position: relative;
  overflow: hidden !important;
}

/* Keep the header visually connected to the new light editorial hero. */
body:is(.page-index, .page-about, .page-gallery, .page-shop, .page-contact) .navbar,
body:is(.page-index, .page-about, .page-gallery, .page-shop, .page-contact) header.navbar,
body:is(.page-index, .page-about, .page-gallery, .page-shop, .page-contact) .navbar.scrolled,
body:is(.page-index, .page-about, .page-gallery, .page-shop, .page-contact) header.navbar.scrolled {
  z-index: 1000 !important;
}

body:is(.page-index, .page-about, .page-gallery, .page-shop, .page-contact) .navbar .logo img {
  width: clamp(132px, 12vw, 178px) !important;
  height: clamp(132px, 12vw, 178px) !important;
}

body:is(.page-index, .page-about, .page-gallery, .page-shop, .page-contact) .nav-container {
  padding-top: 0.55rem !important;
  padding-bottom: 0.55rem !important;
}

body:is(.page-index, .page-about, .page-gallery, .page-shop, .page-contact) .nav-links a {
  color: var(--hero-wine) !important;
  text-shadow: none !important;
}

body:is(.page-index, .page-about, .page-gallery, .page-shop, .page-contact) .nav-links a:hover {
  color: var(--hero-wine-deep) !important;
  background: rgba(255, 255, 255, 0.62) !important;
}

body:is(.page-index, .page-about, .page-gallery, .page-shop, .page-contact) .nav-links a.active {
  color: var(--hero-wine-deep) !important;
}

/* Base hero */
/* Compact top spacing keeps every hero close to the overlaid header without overlap. */
.sba-hero.hero {
  --hero-accent: var(--hero-wine);
  --hero-accent-dark: var(--hero-wine-deep);
  position: relative;
  display: block !important;
  min-height: 100svh;
  height: auto !important;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(7.65rem, 11vw, 9.3rem) 0 clamp(3.8rem, 7vw, 6.25rem);
  background:
    radial-gradient(circle at 78% 15%, rgba(219, 167, 177, 0.30), transparent 31%),
    radial-gradient(circle at 14% 80%, rgba(197, 154, 92, 0.13), transparent 28%),
    linear-gradient(125deg, #fffaf6 0%, #fdf2ef 46%, #f4e1e5 100%);
}

.sba-hero::before {
  content: "";
  position: absolute;
  z-index: -3;
  width: clamp(340px, 42vw, 760px);
  aspect-ratio: 1;
  top: 4%;
  right: -12%;
  border-radius: 50%;
  border: 1px solid rgba(127, 47, 59, 0.11);
  box-shadow:
    0 0 0 55px rgba(255,255,255,0.17),
    0 0 0 110px rgba(127,47,59,0.025);
}

.sba-hero::after {
  content: "";
  position: absolute;
  z-index: -3;
  left: -8rem;
  bottom: -10rem;
  width: 25rem;
  height: 25rem;
  border-radius: 44% 56% 65% 35% / 46% 35% 65% 54%;
  background: rgba(255, 255, 255, 0.48);
  filter: blur(1px);
  transform: rotate(22deg);
}

.sba-hero__ambient {
  position: absolute;
  z-index: -2;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(2px);
}

.sba-hero__ambient--one {
  top: 20%;
  left: 45%;
  width: 12px;
  height: 12px;
  background: var(--hero-gold);
  box-shadow: 0 0 0 8px rgba(197,154,92,0.11);
  animation: sba-float 6.8s ease-in-out infinite;
}

.sba-hero__ambient--two {
  left: 7%;
  bottom: 19%;
  width: 8px;
  height: 8px;
  background: var(--hero-rose);
  box-shadow: 0 0 0 7px rgba(219,167,177,0.12);
  animation: sba-float 7.8s ease-in-out -2s infinite;
}

.sba-hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 6.5rem);
}

.sba-hero__content {
  max-width: 720px;
  padding: 1.4rem 0;
}

.sba-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  margin-bottom: 1.35rem;
  color: var(--hero-accent);
  font-size: clamp(0.73rem, 0.92vw, 0.88rem);
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1.4;
  text-transform: uppercase;
}

.sba-hero__eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, var(--hero-gold), var(--hero-accent));
}

.sba-hero__title {
  max-width: 770px;
  margin: 0;
  color: var(--hero-ink) !important;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3.55rem, 6.45vw, 7.15rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.sba-hero__title span {
  position: relative;
  display: inline-block;
  color: var(--hero-accent);
  font-style: italic;
  font-weight: 600;
}

.sba-hero__title span::after {
  content: "";
  position: absolute;
  left: 3%;
  right: -2%;
  bottom: -0.08em;
  height: 0.13em;
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(197,154,92,0.18), rgba(127,47,59,0.55), transparent);
  transform: rotate(-1.4deg);
}

.sba-hero__text {
  max-width: 640px;
  margin: clamp(1.35rem, 2vw, 1.8rem) 0 0;
  color: #654b52;
  font-size: clamp(1rem, 1.3vw, 1.17rem);
  line-height: 1.82;
}

.sba-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.82rem;
  margin-top: clamp(1.55rem, 2.5vw, 2.25rem);
}

.sba-hero__button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.86rem 1.34rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease, color 220ms ease;
}

.sba-hero__button--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--hero-accent), var(--hero-accent-dark));
  box-shadow: 0 17px 36px rgba(69,18,29,0.23);
}

.sba-hero__button--primary:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(69,18,29,0.31);
}

.sba-hero__button--secondary {
  color: var(--hero-accent-dark);
  border-color: rgba(127,47,59,0.17);
  background: rgba(255,255,255,0.64);
  box-shadow: 0 12px 28px rgba(69,18,29,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.sba-hero__button--secondary:hover {
  color: var(--hero-accent-dark);
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 18px 32px rgba(69,18,29,0.13);
}

.sba-hero__proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  max-width: 660px;
  margin-top: clamp(2rem, 3.5vw, 3.2rem);
  padding-top: 1.2rem;
  border-top: 1px solid rgba(69,18,29,0.11);
}

.sba-hero__proof-item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.sba-hero__proof-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--hero-accent);
  background: rgba(255,255,255,0.68);
  border: 1px solid rgba(127,47,59,0.10);
  box-shadow: 0 10px 24px rgba(69,18,29,0.08);
}

.sba-hero__proof-icon svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sba-hero__proof-copy,
.sba-hero__proof-copy strong,
.sba-hero__proof-copy span {
  display: block;
}

.sba-hero__proof-copy strong {
  color: var(--hero-ink);
  font-size: 0.91rem;
  line-height: 1.25;
}

.sba-hero__proof-copy > span {
  margin-top: 0.18rem;
  color: #836c72;
  font-size: 0.75rem;
  line-height: 1.35;
}

/* Editorial image composition */
.sba-hero__visual {
  position: relative;
  min-height: clamp(560px, 52vw, 745px);
  width: 100%;
}

.sba-hero__visual::before {
  content: "";
  position: absolute;
  left: 4%;
  top: 10%;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.70), rgba(219,167,177,0.25));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.56);
}

.sba-hero__frame {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 7px solid rgba(255,255,255,0.76);
  background: #ead6d8;
  box-shadow: var(--hero-shadow);
  transform: translateZ(0);
}

.sba-hero__frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 800ms cubic-bezier(.2,.75,.2,1);
}

.sba-hero__visual:hover .sba-hero__frame img {
  transform: scale(1.035);
}

.sba-hero__frame--main {
  z-index: 2;
  inset: 1.5% 7% 6% 15%;
  border-radius: 48% 48% 34px 34px / 34% 34% 34px 34px;
}

.sba-hero__frame--main img {
  object-position: center;
}

.sba-hero__frame--small-one {
  z-index: 4;
  left: -1%;
  bottom: 7%;
  width: clamp(150px, 16vw, 225px);
  aspect-ratio: 0.82;
  border-width: 5px;
  border-radius: 26px 26px 64px 26px;
  transform: rotate(-5deg);
}

.sba-hero__frame--small-two {
  z-index: 4;
  right: -1%;
  top: 7%;
  width: clamp(135px, 14vw, 205px);
  aspect-ratio: 0.83;
  border-width: 5px;
  border-radius: 60px 25px 25px 25px;
  transform: rotate(4deg);
}

.sba-hero__note {
  position: absolute;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 0.72rem;
  padding: 0.82rem 1rem;
  border-radius: 17px;
  color: var(--hero-ink);
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(255,255,255,0.92);
  box-shadow: 0 18px 45px rgba(69,18,29,0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.sba-hero__note i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--hero-gold), var(--hero-accent));
}

.sba-hero__note strong,
.sba-hero__note span { display: block; }
.sba-hero__note strong { font-size: 0.86rem; line-height: 1.25; }
.sba-hero__note span { margin-top: 0.13rem; color: #856d73; font-size: 0.72rem; }
.sba-hero__note--top { top: 3%; left: 6%; animation: sba-float 6s ease-in-out infinite; }
.sba-hero__note--bottom { right: 4%; bottom: 4%; animation: sba-float 7s ease-in-out -2.3s infinite; }

.sba-hero__scroll {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 1.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(69,18,29,0.64);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.sba-hero__scroll::before {
  content: "";
  width: 30px;
  height: 46px;
  border: 1px solid rgba(69,18,29,0.26);
  border-radius: 999px;
  background: radial-gradient(circle at 50% 28%, var(--hero-accent) 0 3px, transparent 4px);
  animation: sba-scroll-dot 1.9s ease-in-out infinite;
}

/* Inner page hero variations */
.sba-hero--inner.hero {
  min-height: clamp(680px, 82svh, 880px);
  padding-bottom: clamp(3.2rem, 5vw, 5.2rem);
}

.sba-hero--inner .sba-hero__grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
}

.sba-hero--inner .sba-hero__title {
  font-size: clamp(3.25rem, 5.65vw, 6.15rem);
}

.sba-hero--inner .sba-hero__visual {
  min-height: clamp(500px, 45vw, 640px);
}

.sba-hero--inner .sba-hero__frame--main {
  inset: 2% 4% 3% 13%;
  border-radius: 42px 170px 42px 42px;
}

.sba-hero--inner .sba-hero__frame--small-one {
  left: 1%;
  bottom: 2%;
}

.sba-hero--inner .sba-hero__frame--small-two {
  right: -2%;
  top: 4%;
}

.sba-hero__mini-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.62rem;
  margin-top: 1.45rem;
}

.sba-hero__mini-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.54rem 0.77rem;
  border-radius: 999px;
  color: #74585f;
  background: rgba(255,255,255,0.57);
  border: 1px solid rgba(127,47,59,0.10);
  font-size: 0.78rem;
  font-weight: 700;
}

.sba-hero--about {
  --hero-accent: #8b3342;
  --hero-accent-dark: #4f1823;
  background:
    radial-gradient(circle at 79% 17%, rgba(211,171,178,0.36), transparent 33%),
    radial-gradient(circle at 13% 84%, rgba(197,154,92,0.12), transparent 27%),
    linear-gradient(125deg, #fffaf6 0%, #faefed 51%, #edd6db 100%) !important;
}

.sba-hero--gallery {
  --hero-accent: #7e3942;
  --hero-accent-dark: #3f1820;
  background:
    radial-gradient(circle at 78% 14%, rgba(177,132,102,0.23), transparent 31%),
    radial-gradient(circle at 12% 85%, rgba(219,167,177,0.16), transparent 27%),
    linear-gradient(128deg, #fffaf4 0%, #f6ece4 50%, #ead6cf 100%) !important;
}

.sba-hero--shop {
  --hero-accent: #84303d;
  --hero-accent-dark: #4d1420;
  background:
    radial-gradient(circle at 79% 15%, rgba(230,184,193,0.37), transparent 33%),
    radial-gradient(circle at 8% 82%, rgba(197,154,92,0.13), transparent 25%),
    linear-gradient(130deg, #fffaf6 0%, #fceeed 48%, #f0d9de 100%) !important;
}

.sba-hero--contact {
  --hero-accent: #77313a;
  --hero-accent-dark: #43141b;
  background:
    radial-gradient(circle at 79% 13%, rgba(206,160,151,0.30), transparent 31%),
    radial-gradient(circle at 9% 85%, rgba(219,167,177,0.17), transparent 27%),
    linear-gradient(130deg, #fffaf5 0%, #f8eee8 49%, #e9d6d2 100%) !important;
}

.sba-hero__contact-card {
  position: absolute;
  z-index: 7;
  right: 1%;
  bottom: 3%;
  width: min(300px, 58%);
  padding: 1.15rem;
  border-radius: 23px;
  color: #fff;
  background: linear-gradient(145deg, rgba(79,24,35,0.95), rgba(127,47,59,0.91));
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 25px 55px rgba(69,18,29,0.28);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
}

.sba-hero__contact-card strong {
  display: block;
  margin-bottom: 0.7rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.18rem;
}

.sba-hero__contact-line {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 0.55rem;
  color: rgba(255,255,255,0.88);
  font-size: 0.78rem;
  line-height: 1.45;
}

.sba-hero__contact-line i {
  width: 22px;
  padding-top: 0.12rem;
  color: #f3d8b0;
  text-align: center;
}

/* Introduce content smoothly without slowing interaction. */
.sba-hero__content > *,
.sba-hero__visual {
  opacity: 0;
  transform: translateY(18px);
  animation: sba-reveal 720ms cubic-bezier(.2,.75,.2,1) forwards;
}
.sba-hero__content > :nth-child(1) { animation-delay: 80ms; }
.sba-hero__content > :nth-child(2) { animation-delay: 150ms; }
.sba-hero__content > :nth-child(3) { animation-delay: 220ms; }
.sba-hero__content > :nth-child(4) { animation-delay: 290ms; }
.sba-hero__content > :nth-child(5) { animation-delay: 360ms; }
.sba-hero__visual { animation-delay: 180ms; }

@keyframes sba-reveal {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes sba-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes sba-scroll-dot {
  0%, 100% { background-position: 50% 28%; }
  50% { background-position: 50% 73%; }
}

/* Tablet */
@media (max-width: 1080px) {
  .sba-hero__grid,
  .sba-hero--inner .sba-hero__grid {
    grid-template-columns: minmax(0, 0.96fr) minmax(360px, 1.04fr);
    gap: 2rem;
  }

  .sba-hero__proof {
    grid-template-columns: 1fr 1fr;
  }

  .sba-hero__proof-item:last-child {
    grid-column: 1 / -1;
  }

  .sba-hero__visual {
    min-height: 580px;
  }
}

@media (max-width: 900px) {
  .sba-hero.hero,
  .sba-hero--inner.hero {
    min-height: auto;
    padding-top: clamp(7.15rem, 15vw, 8.15rem);
    padding-bottom: 4.8rem;
  }

  .sba-hero__grid,
  .sba-hero--inner .sba-hero__grid {
    grid-template-columns: 1fr;
    gap: 2.1rem;
  }

  .sba-hero__content {
    max-width: 740px;
    text-align: center;
    margin-inline: auto;
  }

  .sba-hero__eyebrow,
  .sba-hero__actions,
  .sba-hero__mini-meta {
    justify-content: center;
  }

  .sba-hero__text {
    margin-inline: auto;
  }

  .sba-hero__proof {
    max-width: 650px;
    margin-inline: auto;
    text-align: left;
  }

  .sba-hero__visual,
  .sba-hero--inner .sba-hero__visual {
    width: min(700px, 100%);
    min-height: 610px;
    margin-inline: auto;
  }

  .sba-hero__scroll {
    display: none;
  }
}

@media (max-width: 640px) {
  body:is(.page-index, .page-about, .page-gallery, .page-shop, .page-contact) .navbar .logo img {
    width: 102px !important;
    height: 102px !important;
  }

  .sba-hero.hero,
  .sba-hero--inner.hero {
    padding-top: 6.35rem;
    padding-bottom: 3.15rem;
  }

  .sba-hero__title,
  .sba-hero--inner .sba-hero__title {
    font-size: clamp(2.75rem, 13.6vw, 4.15rem);
    line-height: 0.98;
  }

  .sba-hero__text {
    font-size: 0.98rem;
    line-height: 1.72;
  }

  .sba-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .sba-hero__button {
    width: 100%;
    min-height: 52px;
  }

  .sba-hero__proof {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .sba-hero__proof-item:last-child {
    grid-column: auto;
  }

  .sba-hero__proof-item {
    padding: 0.65rem 0.75rem;
    border-radius: 14px;
    background: rgba(255,255,255,0.44);
  }

  .sba-hero__visual,
  .sba-hero--inner .sba-hero__visual {
    min-height: 475px;
  }

  .sba-hero__visual::before {
    left: 8%;
    top: 9%;
    width: 84%;
  }

  .sba-hero__frame--main,
  .sba-hero--inner .sba-hero__frame--main {
    inset: 2% 7% 8% 9%;
    border-width: 5px;
    border-radius: 38% 38% 27px 27px / 27% 27% 27px 27px;
  }

  .sba-hero__frame--small-one,
  .sba-hero--inner .sba-hero__frame--small-one {
    left: -1%;
    bottom: 4%;
    width: 31%;
    min-width: 118px;
  }

  .sba-hero__frame--small-two,
  .sba-hero--inner .sba-hero__frame--small-two {
    right: -1%;
    top: 3%;
    width: 29%;
    min-width: 108px;
  }

  .sba-hero__note {
    padding: 0.68rem 0.78rem;
  }

  .sba-hero__note i {
    width: 29px;
    height: 29px;
  }

  .sba-hero__note--top {
    top: 0;
    left: 5%;
  }

  .sba-hero__note--bottom {
    right: 2%;
    bottom: 1%;
  }

  .sba-hero__contact-card {
    right: 1%;
    bottom: 1%;
    width: min(270px, 72%);
    padding: 0.92rem;
  }

  .sba-hero__contact-card strong {
    font-size: 1rem;
  }

  .sba-hero__contact-line {
    font-size: 0.71rem;
  }
}

@media (max-width: 390px) {
  .sba-hero__visual,
  .sba-hero--inner .sba-hero__visual {
    min-height: 425px;
  }

  .sba-hero__note span {
    display: none;
  }

  .sba-hero__note strong {
    font-size: 0.76rem;
  }

  .sba-hero__contact-card {
    width: 76%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sba-hero *,
  .sba-hero *::before,
  .sba-hero *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .sba-hero__frame img,
  .sba-hero__button {
    transition: none !important;
  }
}

/* Final specificity guard: legacy responsive files set fixed hero heights. */
body.page-index .sba-hero.hero {
  height: auto !important;
  min-height: max(760px, 100svh) !important;
}

body:is(.page-about, .page-gallery, .page-shop, .page-contact) .sba-hero--inner.hero {
  height: auto !important;
  min-height: clamp(680px, 82svh, 880px) !important;
}

@media (max-width: 900px) {
  body.page-index .sba-hero.hero,
  body:is(.page-about, .page-gallery, .page-shop, .page-contact) .sba-hero--inner.hero {
    height: auto !important;
    min-height: 0 !important;
  }
}
