/* ===========================
   DIVYA CAKE SHOP – STYLES
   =========================== */

:root {
  --cream: #FAF5EE;
  --warm-white: #FFF8F0;
  --rose: #C8816A;
  --rose-dark: #A5644F;
  --rose-light: #E8B09A;
  --cocoa: #2C1810;
  --cocoa-mid: #5C3A28;
  --gold: #C9A84C;
  --text: #3A2218;
  --text-light: #7A5A4A;
  --border: rgba(200,129,106,0.2);
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  line-height: 1.2;
}
h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.6rem; }
em { font-style: italic; color: var(--rose); }

.section-tag {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  display: block;
  margin-bottom: 0.8rem;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--rose);
  color: #fff;
}
.btn-primary:hover {
  background: var(--rose-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,129,106,0.4);
}
.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--rose);
  border: 1.5px solid var(--rose);
}
.btn-outline:hover {
  background: var(--rose);
  color: #fff;
  transform: translateY(-2px);
}
.btn-full { width: 100%; text-align: center; }

.btn-sm {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  background: var(--rose);
  color: #fff;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s;
}
.btn-sm:hover { background: var(--rose-dark); transform: translateY(-1px); }

/* ===========================
   NAV
   =========================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  z-index: 100;
  transition: background 0.4s, box-shadow 0.4s;
}
.nav.scrolled {
  background: rgba(250,245,238,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  backdrop-filter: blur(12px);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: #fff;
  font-weight: 600;
  transition: color 0.4s;
}
.nav.scrolled .nav-logo { color: var(--cocoa); }
.nav-logo span {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  margin-top: -4px;
  color: var(--rose-light);
}
.nav.scrolled .nav-logo span { color: var(--rose); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.85);
  transition: color 0.3s;
  position: relative;
  padding-bottom: 3px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--rose);
  transition: width 0.3s;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover,
.nav-links a.active { color: rgba(255,255,255,1); }
.nav.scrolled .nav-links a { color: var(--text-light); }
.nav.scrolled .nav-links a:hover,
.nav.scrolled .nav-links a.active { color: var(--rose); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}
.nav.scrolled .nav-toggle span { background: var(--cocoa); }

/* ===========================
   HERO
   =========================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img { object-position: center; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(44,24,16,0.72) 0%, rgba(44,24,16,0.4) 60%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  max-width: 750px;
  padding: 0 5%;
  animation: fadeUp 1s ease both;
}
.hero-tag {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose-light);
  font-family: 'DM Sans', sans-serif;
  display: block;
  margin-bottom: 1rem;
}
.hero-content h1 { color: #fff; margin-bottom: 1.2rem; }
.hero-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  animation: bob 2s ease-in-out infinite;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ===========================
   FEATURES
   =========================== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
.feature-card {
  padding: 3rem 3rem;
  border-right: 1px solid var(--border);
  text-align: center;
  animation: fadeUp 0.8s ease both;
}
.feature-card:last-child { border-right: none; }
.feature-icon {
  font-size: 1.5rem;
  color: var(--rose);
  margin-bottom: 1.2rem;
}
.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--cocoa);
}
.feature-card p { color: var(--text-light); font-size: 0.95rem; }

/* ===========================
   ABOUT
   =========================== */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 560px;
  border-top: 1px solid var(--border);
}
.about-img {
  position: relative;
  overflow: hidden;
}
.about-img img { object-position: center; }
.about-badge {
  position: absolute;
  bottom: 2rem; right: 2rem;
  background: var(--rose);
  color: #fff;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-style: italic;
  box-shadow: 0 8px 24px rgba(200,129,106,0.4);
}
.about-text {
  padding: 5rem 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--warm-white);
}
.about-text h2 { margin-bottom: 1.5rem; }
.about-text p { color: var(--text-light); margin-bottom: 1.2rem; }
.about-text .btn-outline { margin-top: 1rem; align-self: flex-start; }

/* ===========================
   PREVIEW SECTION (Home)
   =========================== */
.preview-section {
  padding: 6rem 5%;
  background: var(--cream);
}
.preview-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.preview-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3/4;
  display: block;
  cursor: pointer;
}
.preview-card img {
  transition: transform 0.6s ease;
}
.preview-card:hover img { transform: scale(1.06); }
.preview-card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem 1.2rem;
  background: linear-gradient(transparent, rgba(44,24,16,0.85));
  color: #fff;
}
.preview-card-info h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
}
.preview-card-info span {
  font-size: 0.85rem;
  color: var(--rose-light);
}

/* ===========================
   TESTIMONIALS
   =========================== */
.testimonials {
  padding: 6rem 5%;
  background: var(--cocoa);
  color: #fff;
  text-align: center;
}
.testimonials .section-tag { color: var(--rose-light); }
.testimonials h2 { color: #fff; margin-bottom: 3rem; }
.testimonials em { color: var(--rose-light); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.testimonial-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 2.2rem;
  text-align: left;
}
.testimonial-card p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.2rem;
}
.testimonial-card cite {
  font-size: 0.82rem;
  color: var(--rose-light);
  letter-spacing: 0.05em;
  font-style: normal;
}

/* ===========================
   CTA SECTION
   =========================== */
.cta-section {
  padding: 6rem 5%;
  text-align: center;
  background: linear-gradient(135deg, var(--warm-white), var(--cream));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p {
  color: var(--text-light);
  margin-bottom: 2.5rem;
  max-width: 480px;
  margin-left: auto; margin-right: auto;
}

/* ===========================
   PAGE HERO (inner pages)
   =========================== */
.page-hero {
  padding: calc(var(--nav-h) + 4rem) 5% 4rem;
  text-align: center;
  background: linear-gradient(135deg, var(--cocoa), var(--cocoa-mid));
  color: #fff;
}
.page-hero .section-tag { color: var(--rose-light); }
.page-hero h1 { color: #fff; margin-bottom: 1rem; }
.page-hero p {
  color: rgba(255,255,255,0.75);
  max-width: 540px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ===========================
   ITEMS PAGE
   =========================== */
.filter-bar {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 2.5rem 5% 0;
}
.filter-btn {
  padding: 0.55rem 1.5rem;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-light);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--rose);
  border-color: var(--rose);
  color: #fff;
}
.items-section { padding: 3rem 5% 5rem; }
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.8rem;
  max-width: 1200px;
  margin: 0 auto;
}
.item-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  animation: fadeUp 0.6s ease both;
}
.item-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.item-card.hidden { display: none; }
.item-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.item-img img { transition: transform 0.5s; }
.item-card:hover .item-img img { transform: scale(1.05); }
.item-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--rose);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  letter-spacing: 0.05em;
}
.item-info { padding: 1.5rem; }
.item-info h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.item-info p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 1.2rem; }
.item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.item-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--rose);
}

/* ===========================
   GALLERY PAGE
   =========================== */
.gallery-section { padding: 3rem 5% 5rem; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}
.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item img { transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(44,24,16,0.6);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  color: #fff;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  width: auto;
  height: auto;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 2rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }
#lightboxCaption {
  color: rgba(255,255,255,0.7);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  margin-top: 1rem;
  font-size: 1.1rem;
}

/* ===========================
   CONTACT PAGE
   =========================== */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 0;
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 5%;
}
.contact-info {
  padding-right: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.info-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  border-left: 3px solid var(--rose);
}
.info-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.info-card h4 {
  font-size: 1rem;
  color: var(--cocoa);
  margin-bottom: 0.4rem;
}
.info-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }
.info-card a { color: var(--rose); }
.info-card a:hover { text-decoration: underline; }

.social-links { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 0.5rem; }
.social-link {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border: 1px solid var(--rose);
  border-radius: 50px;
  color: var(--rose);
  font-size: 0.8rem;
  transition: all 0.3s;
}
.social-link:hover { background: var(--rose); color: #fff; }

.contact-form-wrap {
  background: #fff;
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}
.contact-form-wrap h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.form-subtext { color: var(--text-light); font-size: 0.9rem; margin-bottom: 2rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.85rem; font-weight: 500; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #E8DDD5;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--cream);
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
  appearance: auto;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(200,129,106,0.15);
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note { text-align: center; font-size: 0.85rem; color: var(--text-light); }
.form-note a { color: var(--rose); }

.form-success { text-align: center; padding: 3rem 1rem; }
.success-icon { font-size: 3rem; margin-bottom: 1rem; }
.form-success h3 { font-size: 2rem; margin-bottom: 0.8rem; }
.form-success p { color: var(--text-light); }

.map-section {
  padding: 0 5% 5rem;
}
.map-placeholder {
  background: var(--warm-white);
  border: 2px dashed var(--border);
  border-radius: 16px;
  height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-light);
  max-width: 1200px;
  margin: 0 auto;
}
.map-placeholder span { font-size: 3rem; }
.map-placeholder p { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; }
.map-placeholder small { font-size: 0.8rem; }

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: var(--cocoa);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 3rem 5% 2rem;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 1.5rem;
}
.footer-logo span {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose-light);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  margin-top: -4px;
}
.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--rose-light); }
.footer-addr { font-size: 0.85rem; margin-bottom: 0.8rem; }
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.35); }

/* ===========================
   ANIMATIONS
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(250,245,238,0.98);
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-120%);
    transition: transform 0.4s;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { color: var(--text-light) !important; font-size: 1rem; }
  .nav-toggle { display: flex; }
  .nav { background: rgba(44,24,16,0.8); }

  .features { grid-template-columns: 1fr; }
  .feature-card { border-right: none; border-bottom: 1px solid var(--border); }

  .about { grid-template-columns: 1fr; }
  .about-img { min-height: 320px; }
  .about-text { padding: 3rem 5%; }

  .preview-grid { grid-template-columns: 1fr 1fr; }
  .preview-grid .preview-card:last-child { display: none; }

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

  .contact-section { grid-template-columns: 1fr; }
  .contact-info { padding-right: 0; margin-bottom: 2rem; }

  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item.wide { grid-column: span 2; }
}

@media (max-width: 600px) {
  .preview-grid { grid-template-columns: 1fr; }
  .preview-grid .preview-card:last-child { display: block; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .gallery-item.tall,
  .gallery-item.wide { grid-column: auto; grid-row: auto; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 1.8rem; }
  .about-text { padding: 2.5rem 5%; }
  .about-text .btn-outline { align-self: stretch; text-align: center; }
  .hero-btns { flex-direction: column; align-items: center; }
}
