/* CakeCanva luxury design system — white + blush pink, with gold used only as a
   small accent (no brown). Playfair Display for headings, Poppins for body, a
   script face for the wordmark and small decorative flourishes. */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=Poppins:wght@400;500;600&family=Dancing+Script:wght@600;700&display=swap");

:root {
  --bg: #ffffff;
  --bg-alt: #fff5f8;
  --surface: #ffffff;
  --ink: #2d2d2d;
  --ink-heading: #3b1f2c;
  --ink-muted: #9a8790;
  --brand: #d98fa5;
  --brand-dark: #c56f8a;
  --brand-tint: #fbe9ee;
  --gold: #d4a373;
  --border: #f5dce6;
  --shadow: rgba(196, 111, 149, 0.12);
  --radius: 20px;
  --radius-btn: 12px;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-script: "Dancing Script", cursive;
  --font-sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

[data-theme="dark"] {
  --bg: #241820;
  --bg-alt: #2e1e28;
  --surface: #33212c;
  --ink: #ede0e6;
  --ink-heading: #f5d9e6;
  --ink-muted: #c2a8b5;
  --brand: #e39fb2;
  --brand-dark: #eab4c4;
  --brand-tint: #40232f;
  --gold: #ddb088;
  --border: #4a2e3c;
  --shadow: rgba(0, 0, 0, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink-heading);
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo-icon {
  height: 2.5rem;
  width: 2.5rem;
  object-fit: cover;
  border-radius: 10px;
}

.nav-logo .brand {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  color: var(--ink-heading);
}

.nav-flag {
  font-size: 1.1rem;
  line-height: 1;
}

.nav-logo .tagline {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand);
}

.nav-link.nav-cta {
  background: var(--brand);
  color: #fff;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-weight: 700;
}

.nav-link.nav-cta:hover {
  background: var(--brand-dark);
  color: #fff;
}

.mobile-menu a.nav-cta {
  background: var(--brand);
  color: #fff;
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: none;
  font-size: 1.05rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--ink);
}

.icon-btn:hover {
  background: var(--bg-alt);
}

.mobile-menu-toggle {
  display: none;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 1.5rem 1rem;
  border-top: 1px solid var(--border);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  padding: 0.6rem 0.5rem;
  border-radius: 10px;
  font-size: 0.95rem;
}

.mobile-menu a:hover {
  background: var(--bg-alt);
}

@media (max-width: 800px) {
  .nav-menu {
    display: none;
  }
  .mobile-menu-toggle {
    display: grid;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--bg-alt);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Hero ---------- */
.hero {
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 2.5rem;
  padding: 4rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-title {
  font-size: 2.8rem;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-subtitle {
  color: var(--ink-muted);
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.tag {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.hero-image,
.square-image {
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px var(--shadow);
}

.hero-image img,
.square-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Hero rotating slider ---------- */
.hero-image {
  position: relative;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1rem;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

.hero-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.hero-dot.active {
  background: #fff;
  transform: scale(1.3);
}

.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.hero-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

@media (max-width: 800px) {
  .hero-grid {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.5rem;
  }
  .hero-title {
    font-size: 2.1rem;
  }
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2.5rem;
}

@media (max-width: 800px) {
  .split-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .split-grid > div:first-child {
    order: -1;
  }
}

/* ---------- Sections ---------- */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2.5rem;
}

.page-hero {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: 2.6rem;
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: var(--ink-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- Cards / grids ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 8px 25px var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: 0 14px 32px var(--shadow);
  transform: translateY(-2px);
}

.card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-alt);
}

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

.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.card-body h3 {
  font-size: 1.15rem;
}

.card-body p {
  color: var(--ink-muted);
  font-size: 0.9rem;
  flex: 1;
}

.card-link {
  font-weight: 600;
  color: var(--brand);
  font-size: 0.9rem;
}

/* ---------- Photo grid (category / gallery) ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.85rem;
}

.photo-grid img,
.photo-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.photo-tile {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

/* Masonry-ish gallery using CSS columns */
.gallery-columns {
  columns: 2;
  column-gap: 0.85rem;
}

.gallery-columns .photo-tile {
  break-inside: avoid;
  margin-bottom: 0.85rem;
  display: block;
}

.gallery-columns .photo-tile img {
  aspect-ratio: auto;
  border-radius: 12px;
}

@media (min-width: 640px) {
  .gallery-columns {
    columns: 3;
  }
}

@media (min-width: 960px) {
  .gallery-columns {
    columns: 4;
  }
}

/* ---------- Info cards ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.info-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.info-card ul {
  list-style: none;
  color: var(--ink-muted);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.info-card strong {
  color: var(--ink);
}

/* ---------- Flavor pill list ---------- */
.pill-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.6rem;
}

.pill-list li {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
}

/* ---------- Category hero meta ---------- */
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.25rem 0;
}

.meta-pill {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

/* ---------- Filters (gallery) ---------- */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.5rem 0 2.5rem;
}

.filter-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--ink);
}

.filter-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-height: 85vh;
  max-width: 100%;
  border-radius: 10px;
  object-fit: contain;
}

.lightbox-btn {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
}

.lightbox-close {
  top: 1rem;
  right: 1.25rem;
  font-size: 1.8rem;
}

.lightbox-prev {
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
}

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.1rem 1.3rem;
  margin-bottom: 1rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-display);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item .plus {
  color: var(--brand);
  transition: transform 0.2s ease;
  font-size: 1.3rem;
}

.faq-item[open] .plus {
  transform: rotate(45deg);
}

.faq-item p {
  margin-top: 0.75rem;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

/* ---------- Floating buttons ---------- */
.whatsapp-fab {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 50;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  box-shadow: 0 8px 20px var(--shadow);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer h2 {
  font-size: 1.3rem;
  color: var(--brand);
}

.footer h3 {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer p,
.footer li {
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer .legal-links {
  flex-direction: row;
  gap: 1rem;
  margin-top: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* ---------- Contact / QR ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.contact-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-card.full {
  grid-column: 1 / -1;
}

.qr-box {
  width: 14rem;
  margin: 1rem auto 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem;
}

/* ---------- Placeholder / empty states ---------- */
.empty-note {
  border: 1px dashed var(--border);
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.placeholder-tile {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  font-size: 2rem;
  background: var(--bg-alt);
  border-radius: 12px;
  border: 1px solid var(--border);
}

/* ---------- Legal pages ---------- */
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.prose h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.prose .updated {
  color: var(--ink-muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.prose h2 {
  font-size: 1.2rem;
  margin: 1.75rem 0 0.5rem;
}

.prose p {
  color: var(--ink-muted);
  font-size: 0.92rem;
}

/* ---------- Print (catalogue) ---------- */
@media print {
  .navbar,
  .footer,
  .whatsapp-fab,
  .no-print {
    display: none !important;
  }
}

/* ---------- Announcement bar ---------- */
.announce-bar {
  background: var(--brand-tint);
  color: var(--brand-dark);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.55rem 1rem;
}

/* ---------- Hero accents ---------- */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero-eyebrow::after {
  content: "";
  flex: 1;
  max-width: 4rem;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.hero-title .accent-pink {
  color: var(--brand);
}

.hero-title .accent-script {
  font-family: var(--font-script);
  font-weight: 700;
  color: var(--ink-heading);
}

/* ---------- Shop by category / occasion icon rows ---------- */
.category-shelf {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 25px var(--shadow);
  padding: 2rem 1.5rem;
}

.icon-tile-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1rem;
}

.icon-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
  padding: 1rem 0.5rem;
  border-radius: var(--radius-btn);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.icon-tile:hover {
  transform: translateY(-3px);
  background: var(--brand-tint);
}

.icon-tile .icon-tile-svg {
  width: 2.1rem;
  height: 2.1rem;
  color: var(--gold);
}

.icon-tile .icon-tile-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-heading);
}

.icon-tile .icon-tile-link {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
}

/* ---------- Our Fresh Cake Journey ---------- */
.journey-showcase {
  max-width: 960px;
  margin: 0 auto 2.5rem;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px var(--shadow);
  border: 1px solid var(--border);
}

.journey-showcase img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Bestseller cards ---------- */
.bestseller-card .card-body {
  gap: 0.4rem;
}

.card-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink-heading);
}

.card-order-btn {
  margin-top: 0.5rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.card-order-btn svg {
  width: 1rem;
  height: 1rem;
}

/* ---------- Why CakeCanva ---------- */
.why-us-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.why-us-item {
  text-align: center;
  padding: 1.5rem 1rem;
}

.why-us-item .why-us-icon {
  font-size: 1.8rem;
  color: var(--brand);
  margin-bottom: 0.6rem;
}

.why-us-item h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.why-us-item p {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* ---------- Trust bar (above footer) ---------- */
.trust-bar {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.trust-bar-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  padding: 2.5rem 0;
}

.trust-bar-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
}

.trust-bar-item svg {
  width: 1.8rem;
  height: 1.8rem;
  color: var(--gold);
  flex-shrink: 0;
}

.trust-bar-item h3 {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-heading);
}

.trust-bar-item p {
  font-size: 0.78rem;
  color: var(--ink-muted);
}
