/* The Cinnamon Shack — Modern single-page starter */

/* ========== CSS Reset-ish ========== */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: #1f1b16;
  background: radial-gradient(1200px 800px at 20% 0%, rgba(255, 220, 170, 0.55), transparent 60%),
              radial-gradient(900px 700px at 90% 10%, rgba(255, 190, 150, 0.35), transparent 55%),
              #fffdf8;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

/* ========== Helpers ========== */
.srOnly {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.accent { color: #b14a1e; }
.lead { font-size: 1.125rem; color: rgba(31, 27, 22, 0.85); }
.fine { font-size: 0.9rem; color: rgba(31, 27, 22, 0.75); }

/* ========== Announcement ========== */
.announce {
  background: linear-gradient(135deg, rgba(0, 190, 230, 0.95) 0%, rgba(0, 160, 210, 0.98) 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.announce__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.55rem 0;
  font-size: 0.95rem;
}
.announce__link {
  font-weight: 700;
  text-decoration: underline;
}

/* ========== Header ========== */
.header {
  position: sticky;
  top: 42px; /* sits under announcement */
  z-index: 40;
  background: rgba(255, 253, 248, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(31, 27, 22, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.brand__logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(31, 27, 22, 0.08);
}
.brand__text { font-size: 1.05rem; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-weight: 600;
}
.nav a { opacity: 0.92; }
.nav a:hover { opacity: 1; }

.navToggle {
  display: none;
  border: 1px solid rgba(31, 27, 22, 0.12);
  background: rgba(255,255,255,0.75);
  border-radius: 14px;
  padding: 0.55rem 0.65rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.navToggle:hover {
  background: rgba(255, 220, 170, 0.5);
  transform: scale(1.05);
}
.navToggle span {
  display: block;
  width: 20px;
  height: 2.5px;
  background: rgba(31, 27, 22, 0.85);
  margin: 4px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.navToggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.navToggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.navToggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobileNav {
  display: none;
  padding: 0 0 0.9rem 0;
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.mobileNav a {
  display: block;
  padding: 0.85rem 1rem;
  margin: 0.25rem 0;
  border-radius: 12px;
  font-weight: 650;
  transition: background 0.2s ease;
}
.mobileNav a:hover {
  background: rgba(255, 220, 170, 0.3);
  text-decoration: none;
}
.mobileNav.isOpen { display: block; }

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.05rem;
  border-radius: 18px;
  border: 1px solid rgba(31, 27, 22, 0.12);
  background: #b14a1e;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(31, 27, 22, 0.12);
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(31, 27, 22, 0.16);
  text-decoration: none;
}
.btn--ghost {
  background: rgba(255,255,255,0.8);
  color: #1f1b16;
}
.btn--small { padding: 0.65rem 0.85rem; border-radius: 14px; }
.btn--full { width: 100%; }

/* ========== Hero ========== */
.hero { padding: 3.2rem 0 2.2rem; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.2rem;
  align-items: center;
}

.pill {
  display: inline-flex;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 220, 170, 0.55);
  border: 1px solid rgba(31, 27, 22, 0.08);
  font-weight: 700;
  font-size: 0.92rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
  margin: 0.8rem 0 0.8rem;
  letter-spacing: -0.5px;
}

.hero__cta {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.6rem;
}
.trust__item {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(31, 27, 22, 0.08);
  border-radius: 18px;
  padding: 0.8rem 0.9rem;
}
.trust__item strong { display: block; }
.trust__item span { color: rgba(31, 27, 22, 0.72); font-size: 0.95rem; }

.hero__media { position: relative; }
.heroCard {
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(31, 27, 22, 0.10);
  background: rgba(255,255,255,0.75);
  box-shadow: 0 18px 60px rgba(31, 27, 22, 0.18);
}
.heroImg { width: 100%; height: 420px; object-fit: cover; }

.heroCard__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(31, 27, 22, 0.10);
  color: #1f1b16;
  font-weight: 900;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
}

/* Mascot placements */
.mascot {
  position: absolute;
  width: 92px;
  height: auto;
  filter: drop-shadow(0 10px 22px rgba(31, 27, 22, 0.18));
  transform: rotate(-6deg);
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
  animation: mascotBounce 3s ease-in-out infinite;
}
@keyframes mascotBounce {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50% { transform: rotate(-6deg) translateY(-8px); }
}
.mascot--hero {
  right: -16px;
  bottom: -14px;
}
.mascot--card {
  right: 10px;
  top: -18px;
  width: 64px;
  transform: rotate(10deg);
  opacity: 0.95;
  animation: mascotWiggle 4s ease-in-out infinite;
}
@keyframes mascotWiggle {
  0%, 100% { transform: rotate(10deg); }
  25% { transform: rotate(8deg); }
  75% { transform: rotate(12deg); }
}
.mascot--callout {
  position: static;
  width: 96px;
  transform: rotate(-8deg);
}

.mascotLabel {
  position: absolute;
  right: -8px;
  bottom: -30px;
  background: rgba(255, 220, 170, 0.95);
  border: 2px solid rgba(31, 27, 22, 0.15);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.9rem;
  color: #b14a1e;
  box-shadow: 0 8px 20px rgba(31, 27, 22, 0.15);
  animation: labelPulse 2s ease-in-out infinite;
}
@keyframes labelPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.spark {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(255, 220, 170, 0.85);
  border: 1px solid rgba(31, 27, 22, 0.10);
}
.spark--1 { right: 32px; top: 52px; transform: rotate(20deg); }
.spark--2 { right: 72px; bottom: 62px; transform: rotate(-12deg); }

/* ========== Sections ========== */
.section { padding: 3.2rem 0; }
.section--tint {
  background: rgba(255, 220, 170, 0.22);
  border-top: 1px solid rgba(31, 27, 22, 0.06);
  border-bottom: 1px solid rgba(31, 27, 22, 0.06);
}

.sectionHead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.sectionHead h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: -0.3px;
}
.sectionHead p { margin: 0; color: rgba(31, 27, 22, 0.78); }

/* ========== Cards (Shop) ========== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.card {
  position: relative;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(31, 27, 22, 0.10);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(31, 27, 22, 0.12);
}

.card__img {
  position: relative;
  height: 210px;
  overflow: hidden;
}
.card__img img { width: 100%; height: 100%; object-fit: cover; }

.tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.85rem;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(31, 27, 22, 0.10);
}
.tag--alt { background: rgba(255, 220, 170, 0.85); }

.card__body { padding: 1.05rem 1.05rem 1.15rem; }
.card__body h3 { margin: 0 0 0.35rem; letter-spacing: -0.2px; }
.card__body p { margin: 0 0 0.9rem; color: rgba(31, 27, 22, 0.78); }

.card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}
.price { font-size: 1.25rem; font-weight: 950; }
.note { font-size: 0.9rem; color: rgba(31, 27, 22, 0.6); }

/* ========== Cart bar ========== */
.cartBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.2rem;
  padding: 1rem 1.1rem;
  border-radius: 22px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(31, 27, 22, 0.10);
}
.cartBar__actions { display: flex; gap: 0.7rem; }

/* ========== Steps ========== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}
.step {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(31, 27, 22, 0.10);
  border-radius: 26px;
  padding: 1.4rem 1.3rem;
  position: relative;
  text-align: center;
}
.step__icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 0.8rem;
  display: block;
  text-align: center;
  filter: drop-shadow(0 4px 12px rgba(31, 27, 22, 0.12));
}
.step__num {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 950;
  font-size: 0.95rem;
  background: rgba(255, 220, 170, 0.85);
  border: 1px solid rgba(31, 27, 22, 0.10);
  margin: 0 auto 0.8rem;
  box-shadow: 0 4px 12px rgba(31, 27, 22, 0.08);
}
.step h3 {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
  letter-spacing: -0.2px;
  color: #b14a1e;
}
.step p {
  margin: 0;
  line-height: 1.6;
  color: rgba(31, 27, 22, 0.85);
}
.step p strong {
  color: rgba(31, 27, 22, 0.95);
}

/* ========== Callout ========== */
.callout {
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem;
  border-radius: 26px;
  background: rgba(177, 74, 30, 0.08);
  border: 1px solid rgba(31, 27, 22, 0.08);
}
.callout__text h3 { margin: 0 0 0.25rem; }
.callout__text p { margin: 0; color: rgba(31, 27, 22, 0.78); }

/* ========== Quotes ========== */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}
.quote {
  margin: 0;
  padding: 1.1rem;
  border-radius: 26px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(31, 27, 22, 0.10);
}
.quote blockquote {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  letter-spacing: -0.15px;
}
.quote figcaption { color: rgba(31, 27, 22, 0.7); font-weight: 700; }

/* ========== Newsletter ========== */
.newsletter {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.2rem;
  align-items: center;
  padding: 1.2rem;
  border-radius: 28px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(31, 27, 22, 0.10);
  position: relative;
}

.mascot--newsletter {
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%) rotate(-6deg);
  width: 90px;
  animation: mascotBounce 3s ease-in-out infinite;
}

.form {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}
input[type="email"] {
  width: min(340px, 55vw);
  padding: 0.9rem 0.95rem;
  border-radius: 18px;
  border: 1px solid rgba(31, 27, 22, 0.16);
  background: rgba(255,255,255,0.9);
  font-weight: 650;
}

/* ========== Footer ========== */
.footer {
  padding: 2.2rem 0;
  background: linear-gradient(135deg, rgba(0, 190, 230, 0.92) 0%, rgba(0, 150, 200, 0.95) 100%);
  border-top: 1px solid rgba(0, 160, 210, 0.3);
  color: rgba(255, 255, 255, 0.95);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 1.2rem;
  align-items: center;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.footer__brand p {
  color: rgba(255, 255, 255, 0.85);
}
.footer__brand img {
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255,255,255,0.9);
  object-fit: contain;
}
.footer__links, .footer__social {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.footer__links a, .footer a {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease;
}
.footer__links a:hover, .footer a:hover {
  color: rgba(255, 255, 255, 1);
  text-decoration: none;
}
.footer__social a {
  display: inline-flex;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-weight: 900;
  color: #fff;
  transition: all 0.2s ease;
}
.footer__social a:hover {
  background: rgba(255, 255, 255, 0.95);
  color: rgba(0, 190, 230, 1);
  transform: translateY(-2px);
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .heroImg { height: 320px; }
  .heroCard { margin-bottom: 2rem; }
  .trust { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; gap: 1.5rem; }
  .steps { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .newsletter { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; text-align: center; }
  .footer__links, .footer__social { justify-content: center; }
  .nav { display: none; }
  .navToggle { display: inline-block; }
  .hero h1 { font-size: 2rem; }
  .section { padding: 2.5rem 0; }
  .cartBar { flex-direction: column; align-items: flex-start; }
  .cartBar__actions { width: 100%; }
  .cartBar__actions button { flex: 1; }
  .mascotLabel { font-size: 0.8rem; padding: 0.35rem 0.7rem; }
  .step { padding: 1.2rem 1.1rem; }
  .step__icon { font-size: 2.5rem; margin-bottom: 0.6rem; }
  .mascot--newsletter { width: 70px; top: -28px; }
}

@media (max-width: 600px) {
  .announce__inner { flex-direction: column; text-align: center; gap: 0.5rem; font-size: 0.9rem; }
  .hero { padding: 2rem 0 1.5rem; }
  .heroImg { height: 280px; }
  .hero__cta { flex-direction: column; width: 100%; }
  .hero__cta .btn { width: 100%; }
  .btn { padding: 0.85rem 1rem; font-size: 0.95rem; }
  input[type="email"] { width: 100%; }
  .form { flex-direction: column; width: 100%; }
  .form .btn { width: 100%; }
  .mascot--hero { width: 75px; right: -10px; bottom: -10px; }
  .mascotLabel { right: 5px; bottom: -25px; }
  .card__img { height: 180px; }
  .trust__item { padding: 0.7rem; }
  .step { padding: 1rem; }
  .step__icon { font-size: 2.2rem; }
  .step h3 { font-size: 1.05rem; }
  .mascot--newsletter { width: 60px; top: -24px; }
}