/* ===========================
   VivBakes — Main Stylesheet
   =========================== */

:root {
  --color-bg: #fafaf8;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #6b6b6b;
  --color-accent: #c8956c;
  --color-border: #e8e8e4;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --max-width: 1100px;
  --spacing-section: 112px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* Base */
html { scroll-behavior: smooth; }

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

/* ===========================
   Navigation
   =========================== */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--color-text); }

/* ===========================
   Hero
   =========================== */

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 120px 32px 80px;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* ===========================
   Gallery
   =========================== */

#gallery {
  padding: var(--spacing-section) 32px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

.gallery-grid {
  column-count: 3;
  column-gap: 16px;
}

.gallery-item {
  display: block;
  break-inside: avoid;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--color-border);
  cursor: pointer;
  position: relative;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.gallery-item:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

/* Hover overlay */
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
  pointer-events: none;
}

.gallery-item:hover::after {
  background: rgba(0, 0, 0, 0.15);
}

/* ===========================
   About
   =========================== */

#about {
  padding: var(--spacing-section) 32px;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.about-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-border);
  aspect-ratio: 3 / 4;
}

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

.about-text .section-title {
  margin-bottom: 24px;
}

.about-text p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
  font-size: 1.0625rem;
}

/* ===========================
   Contact
   =========================== */

#contact {
  padding: var(--spacing-section) 32px;
  text-align: center;
  background: #f5ebe0;
  border-top: 1px solid var(--color-border);
}

#contact .section-inner {
  max-width: 560px;
}

#contact .section-title {
  margin-bottom: 16px;
}

#contact p {
  color: var(--color-text-muted);
  margin-bottom: 36px;
  font-size: 1.0625rem;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--color-text);
  color: var(--color-bg);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s, transform 0.1s;
}

.btn:hover {
  background: var(--color-accent);
  transform: translateY(-1px);
}

/* ===========================
   Footer
   =========================== */

footer {
  border-top: 1px solid var(--color-border);
  padding: 32px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* ===========================
   Fade-in on scroll
   =========================== */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   Mobile menu
   =========================== */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 6px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===========================
   Responsive
   =========================== */

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

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(250, 250, 248, 0.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 32px;
  }

  .nav-links.open { display: flex; }

  .nav-links li { padding: 12px 0; }

  .gallery-grid { column-count: 2; }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    aspect-ratio: auto;
  }
}

@media (max-width: 480px) {
  .gallery-grid { column-count: 1; }
}
