/* ============================================================
   Sweet Savory By Grace — Shared Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── Custom Properties ── */
:root {
  --cream:      #FBF7EF;
  --ivory:      #F5EFE0;
  --espresso:   #2D1A0E;
  --brown:      #5C3D2E;
  --dusty-rose: #D4A5A5;
  --sage:       #8FAF8A;
  --mauve:      #C4A8BE;
  --gold:       #C9A84C;
  --soft-blue:  #A8C5CF;
  --muted:      #8A7060;

  --nav-height: 72px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --radius-card: 14px;
  --radius-btn:  100px;
  --shadow-card: 0 4px 24px rgba(45, 26, 14, 0.08);
  --shadow-hover: 0 12px 40px rgba(45, 26, 14, 0.15);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  background-color: var(--cream);
  color: var(--espresso);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ── Typography ── */
.script {
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--espresso);
}

.eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before, .eyebrow::after {
  content: '';
  flex: 0 0 32px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

/* ── Layout Helpers ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

/* ── Navigation ── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(251, 247, 239, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(92, 61, 46, 0.08);
  transition: box-shadow var(--transition), background var(--transition);
}

.site-nav.scrolled {
  background: rgba(251, 247, 239, 0.95);
  box-shadow: 0 2px 20px rgba(45, 26, 14, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  text-decoration: none;
  gap: 1px;
}

.nav-logo .logo-script {
  font-family: 'Dancing Script', cursive;
  font-size: 1.35rem;
  color: var(--espresso);
  font-weight: 700;
}

.nav-logo .logo-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brown);
  font-weight: 600;
}

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

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--brown);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover { color: var(--espresso); }
.nav-links a:hover::after { width: 100%; }

.nav-links .nav-cta {
  background: var(--espresso);
  color: var(--cream);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-btn);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  transition: background var(--transition), transform var(--transition);
}
.nav-links .nav-cta:hover {
  background: var(--brown);
  transform: translateY(-1px);
}
.nav-links .nav-cta::after { display: none; }

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--muted);
  margin-left: 1rem;
}
.lang-toggle span { color: var(--muted); font-size: 0.65rem; }
.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 0.15rem 0.25rem;
  border-radius: 3px;
  transition: color var(--transition);
}
.lang-btn.active { color: var(--espresso); font-weight: 600; }
.lang-btn:hover { color: var(--espresso); }
.nav-drawer .lang-toggle { margin: 0.75rem 0 0; justify-content: center; }
@media (max-width: 900px) { .nav-inner > .lang-toggle { display: none; } }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.25rem;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--espresso);
  transition: all var(--transition);
  border-radius: 2px;
}

/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--cream);
  padding: 1.5rem 2rem 2rem;
  border-bottom: 1px solid rgba(92, 61, 46, 0.12);
  z-index: 99;
}
.nav-drawer.open { display: block; }
.nav-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.nav-drawer a {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--espresso);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-btn);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gold);
  color: var(--espresso);
  box-shadow: 0 2px 12px rgba(201, 168, 76, 0.3);
}
.btn-primary:hover { box-shadow: 0 6px 24px rgba(201, 168, 76, 0.4); }

.btn-outline {
  background: transparent;
  color: var(--espresso);
  border: 1.5px solid var(--espresso);
}
.btn-outline:hover { background: rgba(45, 26, 14, 0.05); }

.btn-dark {
  background: var(--espresso);
  color: var(--cream);
}
.btn-dark:hover { background: var(--brown); }

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(251, 247, 239, 0.5);
}
.btn-ghost:hover { border-color: var(--cream); background: rgba(251,247,239,0.1); }

/* ── Cards ── */
.card {
  background: var(--cream);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* ── Cake Gallery Cards ── */
.cake-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.cake-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.cake-card:hover img { transform: scale(1.04); }
.cake-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.cake-card .cake-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(45, 26, 14, 0.85) 0%, rgba(45, 26, 14, 0.1) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition);
}
.cake-card:hover .cake-overlay { opacity: 1; }

/* Always-visible label at bottom */
.cake-card .cake-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 1.25rem 1.1rem;
  background: linear-gradient(to top, rgba(45,26,14,0.75) 0%, transparent 100%);
  color: var(--cream);
  transition: opacity var(--transition);
}
.cake-card:hover .cake-label { opacity: 0; }

.cake-label h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0;
}

.cake-overlay h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.4rem;
}
.cake-overlay p {
  font-size: 0.8rem;
  color: rgba(251, 247, 239, 0.85);
  line-height: 1.55;
}

/* ── Scroll Animations ── */
.animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.animate.visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }

/* ── Section Headers ── */
.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-header h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-top: 0.75rem;
}
.section-header p {
  margin-top: 0.75rem;
  color: var(--muted);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
}

/* ── Footer ── */
.site-footer {
  background: var(--espresso);
  color: rgba(251, 247, 239, 0.75);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(251, 247, 239, 0.1);
}
.footer-brand .logo-script {
  font-family: 'Dancing Script', cursive;
  font-size: 1.6rem;
  color: var(--cream);
  display: block;
  margin-bottom: 0.2rem;
}
.footer-brand .logo-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(201, 168, 76, 0.8);
  font-weight: 600;
  display: block;
  margin-bottom: 1rem;
}
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(251, 247, 239, 0.6);
  max-width: 260px;
}
.footer-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col ul a {
  font-size: 0.9rem;
  color: rgba(251, 247, 239, 0.65);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--cream); }
.footer-col p {
  font-size: 0.88rem;
  color: rgba(251, 247, 239, 0.6);
  line-height: 1.8;
}
.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(251, 247, 239, 0.35);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
