/* ============================================
   D and K Cakes — Styles
   Palette: Terracotta + Sand + Warm Neutrals
   ============================================ */

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

:root {
  --terra-50:  #fdf0eb;
  --terra-100: #fce4d9;
  --terra-200: #f8c4b0;
  --terra-300: #f0a080;
  --terra-400: #e8784e;
  --terra-500: #c0603a;
  --terra-600: #a84e2c;
  --terra-700: #8c3e22;
  --terra-800: #73331e;
  --terra-900: #5e2a1a;

  --sand-50:   #fdfaf6;
  --sand-100:  #faf3ea;
  --sand-200:  #f5e6d0;
  --sand-300:  #edd2b0;
  --sand-400:  #e0b888;
  --sand-500:  #d4a06a;
  --sand-600:  #c4884e;
  --sand-700:  #a66e3c;
  --sand-800:  #865630;
  --sand-900:  #6b4428;

  --cream:     #FFFAF5;
  --warm-white:#FFF8F0;
  --warm-gray: #6B5B50;
  --warm-gray-light: #9A8A7E;
  --text-dark: #3D2B20;
  --text-muted: #7A6458;
  --text-light: #A89488;

  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Nunito', 'Segoe UI', system-ui, sans-serif;

  --shadow-sm: 0 2px 8px rgba(61,43,32,.06);
  --shadow-md: 0 4px 20px rgba(61,43,32,.08);
  --shadow-lg: 0 8px 40px rgba(61,43,32,.10);
  --shadow-xl: 0 16px 60px rgba(61,43,32,.12);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --transition: .3s cubic-bezier(.4,0,.2,1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--cream);
  overflow-x: hidden;
}

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

a {
  color: var(--terra-600);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--terra-700); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== TYPOGRAPHY ========== */
.section-tag {
  display: inline-block;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--terra-600);
  background: var(--terra-100);
  padding: .4em 1em;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 1.2rem;
}

.section-heading em {
  font-style: italic;
  color: var(--terra-600);
}

.section-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.text-center { text-align: center; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  padding: .85em 1.8em;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--terra-500);
  color: #fff;
  border-color: var(--terra-500);
  box-shadow: 0 4px 16px rgba(192,96,58,.3);
}
.btn-primary:hover {
  background: var(--terra-600);
  border-color: var(--terra-600);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(192,96,58,.35);
}

.btn-outline {
  background: transparent;
  color: var(--terra-600);
  border-color: var(--terra-400);
}
.btn-outline:hover {
  background: var(--terra-50);
  color: var(--terra-700);
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--terra-600);
  border-color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  background: var(--sand-100);
  color: var(--terra-700);
  transform: translateY(-2px);
}

.btn-sm {
  font-size: .85rem;
  padding: .6em 1.4em;
}

.btn-lg {
  font-size: 1.05rem;
  padding: 1em 2.2em;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ========== HEADER ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253,250,245,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--terra-100);
  transition: box-shadow var(--transition);
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: .6em;
  text-decoration: none;
  color: var(--text-dark);
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--terra-500);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  letter-spacing: .04em;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-dark);
}

/* NAV */
.nav-list {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
}

.nav-list a {
  display: block;
  padding: .5em .9em;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 100px;
  transition: all var(--transition);
}
.nav-list a:hover {
  color: var(--terra-600);
  background: var(--terra-50);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all var(--transition);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.hamburger { top: 50%; margin-top: -1px; }
.hamburger::before { content: ''; top: -7px; }
.hamburger::after { content: ''; bottom: -7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: translateX(-50%) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger::after {
  bottom: 0;
  transform: translateX(-50%) rotate(-45deg);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  padding: 120px 0 0;
  background: var(--terra-500);
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}
.hero-wave svg {
  width: 100%;
  height: 80px;
  fill: var(--cream);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-bottom: 6rem;
}

.hero-content {
  color: #fff;
  padding: 2rem 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  padding: .55em 1.2em;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  letter-spacing: .04em;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.4rem;
  max-width: 560px;
}

.hero-sub {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255,255,255,.85);
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-actions .btn-outline {
  border-color: rgba(255,255,255,.5);
  color: #fff;
}
.hero-actions .btn-outline:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
  border-color: rgba(255,255,255,.7);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: .5em;
  font-size: .9rem;
  color: rgba(255,255,255,.8);
}

/* HERO VISUAL */
.hero-visual {
  position: relative;
}

.hero-img-stack {
  position: relative;
  height: 600px;
}

.hero-img {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero-img-main {
  width: 380px;
  height: 480px;
  top: 0;
  right: 0;
}
.hero-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-img-float {
  width: 260px;
  height: 200px;
  bottom: 40px;
  left: -20px;
  border: 5px solid rgba(255,255,255,.3);
}
.hero-img-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-accent {
  position: absolute;
  top: -20px;
  left: 20px;
  color: var(--terra-300);
  opacity: .5;
  animation: spin-slow 20s linear infinite;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ========== SECTIONS ========== */
.section {
  padding: 6rem 0;
}

.section-alt {
  background: var(--sand-100);
}

.section-header {
  margin-bottom: 3.5rem;
}

/* ========== ABOUT ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-images {
  position: relative;
  height: 560px;
}

.about-img-main {
  position: absolute;
  width: 75%;
  height: 85%;
  top: 0;
  left: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-accent {
  position: absolute;
  width: 55%;
  height: 45%;
  bottom: 0;
  right: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 5px solid var(--cream);
}
.about-img-accent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-stat {
  position: absolute;
  bottom: 30%;
  left: 55%;
  background: var(--terra-500);
  color: #fff;
  padding: 1.2rem 1.6rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  text-align: center;
  z-index: 2;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  margin-bottom: .3em;
}

.stat-label {
  font-size: .82rem;
  font-weight: 600;
  opacity: .9;
  line-height: 1.3;
}

.about-content {
  padding: 1rem 0;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.about-features {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--terra-100);
  color: var(--terra-600);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-item strong {
  display: block;
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: .15em;
}

.feature-item span {
  font-size: .9rem;
  color: var(--text-muted);
}

/* ========== MENU ========== */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.menu-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.menu-card-img {
  height: 200px;
  overflow: hidden;
}
.menu-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.menu-card:hover .menu-card-img img {
  transform: scale(1.06);
}

.menu-card-body {
  padding: 1.4rem;
}

.menu-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: .5rem;
}

.menu-card-body p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========== CUSTOM CAKES CTA ========== */
.custom-cakes {
  background: var(--terra-500);
  overflow: hidden;
}

.custom-cakes-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.custom-cakes-content {
  color: #fff;
}

.custom-cakes-content .section-tag {
  background: rgba(255,255,255,.2);
  color: #fff;
}

.custom-cakes-content .section-heading {
  color: #fff;
}
.custom-cakes-content .section-heading em {
  color: var(--sand-300);
}

.custom-cakes-content > p {
  color: rgba(255,255,255,.85);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.custom-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem 1.5rem;
  margin-bottom: 2rem;
}

.custom-list li {
  display: flex;
  align-items: center;
  gap: .6em;
  font-size: .95rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
}

.custom-list svg {
  flex-shrink: 0;
  color: var(--sand-300);
}

.custom-cakes-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.custom-cakes-visual {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  height: 560px;
}
.custom-cakes-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== GALLERY ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  aspect-ratio: 5/4;
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
}

/* ========== VISIT ========== */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.visit-info {
  padding: 1rem 0;
}

.visit-info .section-heading {
  margin-bottom: 2rem;
}

.hours-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
}

.hours-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.hours-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--sand-200);
  font-size: .95rem;
}
.hours-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hours-list .day {
  font-weight: 700;
  color: var(--text-dark);
}

.hours-list .time {
  color: var(--text-muted);
}

.hours-note {
  font-size: .85rem;
  color: var(--text-light);
  margin-top: 1rem;
  font-style: italic;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: .7em;
  font-size: .95rem;
  color: var(--text-muted);
}
.contact-row svg {
  flex-shrink: 0;
  color: var(--terra-500);
}
.contact-row a {
  color: var(--terra-600);
  font-weight: 700;
}
.contact-row a:hover {
  color: var(--terra-700);
}

.visit-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 420px;
}

/* ========== CONTACT ========== */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-text {
  padding: 1rem 0;
}

.contact-text .section-heading {
  margin-bottom: 1rem;
}

.contact-text > p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.contact-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: .4em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .8em 1em;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text-dark);
  background: var(--sand-50);
  border: 2px solid var(--sand-200);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--terra-400);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(192,96,58,.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-success {
  display: flex;
  align-items: center;
  gap: .6em;
  margin-top: 1rem;
  padding: 1em 1.2em;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,.7);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-brand .logo-text {
  color: #fff;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: .9rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 1rem;
}

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

.footer-links a {
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  transition: color var(--transition);
}
.footer-links a:hover {
  color: var(--terra-300);
}

.footer-contact address {
  font-style: normal;
  font-size: .9rem;
  line-height: 1.7;
  margin-bottom: .5rem;
}

.footer-contact a {
  color: var(--terra-300);
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.5rem 0;
  text-align: center;
  font-size: .85rem;
  color: rgba(255,255,255,.4);
}

/* ========== REVEAL ANIMATIONS ========== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .6s ease, transform .6s ease;
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  /* Default state is visible — no hidden state needed */
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    order: 1;
  }
  .hero-visual {
    order: 0;
    display: flex;
    justify-content: center;
  }
  .hero-img-stack {
    height: 400px;
  }
  .hero-img-main {
    width: 280px;
    height: 360px;
  }
  .hero-img-float {
    width: 180px;
    height: 140px;
  }
  .hero-headline {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-meta {
    justify-content: center;
  }

  .about-grid,
  .custom-cakes-inner,
  .visit-grid,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-images {
    height: 400px;
    max-width: 500px;
    margin: 0 auto;
  }

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

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

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

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-list {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(253,250,245,.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1.5rem;
    gap: .25rem;
    border-bottom: 1px solid var(--terra-100);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
    pointer-events: none;
  }

  .nav-list.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-list a {
    padding: .8em 1em;
    font-size: 1rem;
    width: 100%;
  }

  .hero {
    padding: 100px 0 0;
    min-height: auto;
  }

  .hero-img-stack {
    height: 320px;
  }
  .hero-img-main {
    width: 220px;
    height: 290px;
  }
  .hero-img-float {
    width: 150px;
    height: 115px;
  }

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

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

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section {
    padding: 4rem 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-img-stack {
    height: 260px;
  }
  .hero-img-main {
    width: 180px;
    height: 240px;
  }
  .hero-img-float {
    width: 130px;
    height: 100px;
  }

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

  .about-images {
    height: 300px;
  }
}
