/* ============================================================
   Sugary Crush — Stylesheet
   Palette: --cream #FDFAF6 | --sand #C8A97E | --sand-light #E8D5B7
            --text #2C2420 | --muted #8A7968 | --footer-bg #F5F0E8
   ============================================================ */

:root {
  --cream:       #FDFAF6;
  --sand:        #C8A97E;
  --sand-light:  #E8D5B7;
  --sand-pale:   #F5EEE3;
  --text:        #2C2420;
  --muted:       #8A7968;
  --footer-bg:   #F0EAE0;
  --nav-h:       64px;
  --gap:         12px;
  --radius:      5px;
  --transition:  0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  line-height: 1.2;
}

/* ── Container ──────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 3px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: opacity var(--transition), background var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--sand);
  color: #fff;
  border: 1px solid var(--sand);
}
.btn--primary:hover { opacity: 0.88; }

.btn--outline {
  background: transparent;
  color: var(--sand);
  border: 1px solid var(--sand);
}
.btn--outline:hover {
  background: var(--sand-pale);
}

/* ── Section headers ────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--text);
  margin-bottom: 12px;
}

.section-line {
  width: 48px;
  height: 1px;
  background: var(--sand);
  margin: 0 auto 16px;
}

.section-subtitle {
  font-size: 0.875rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* ── Navigation ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(253, 250, 246, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand-light);
  z-index: 900;
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: 0 2px 16px rgba(44, 36, 32, 0.06);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav__logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 28px;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
  transition: color var(--transition);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--sand);
  transition: width var(--transition);
}
.nav__links a:hover { color: var(--sand); }
.nav__links a:hover::after { width: 100%; }

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-sep {
  color: var(--sand-light);
  font-size: 0.75rem;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 3px 0;
  transition: color var(--transition);
}
.lang-btn.active { color: var(--sand); }
.lang-btn:hover  { color: var(--sand); }

/* Hamburger */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}

/* ── Mobile nav overlay ──────────────────────────────────── */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 950;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.nav-overlay__close {
  position: absolute;
  top: 20px; right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-overlay__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin-bottom: 40px;
}

.nav-overlay__links a {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--text);
  transition: color var(--transition);
}
.nav-overlay__links a:hover { color: var(--sand); }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* HERO IMAGE — swap src in index.html or change this var */
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 14, 10, 0.30) 0%,
    rgba(20, 14, 10, 0.52) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
  max-width: 680px;
}

.hero__label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 20px;
}

.hero__content h1 {
  font-size: clamp(2.2rem, 7vw, 4rem);
  color: #fff;
  margin-bottom: 16px;
  font-style: italic;
}

.hero__subline {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  font-weight: 300;
}

/* ── Gallery ────────────────────────────────────────────── */
.gallery {
  padding: 96px 0 80px;
}

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

.gallery-item {
  border: 1px solid var(--sand-light);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

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

.gallery-item figcaption {
  padding: 8px 10px;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-align: center;
  background: var(--cream);
}

.gallery-instagram {
  text-align: center;
  margin-top: 48px;
}

.gallery-instagram a {
  font-size: 0.875rem;
  color: var(--sand);
  letter-spacing: 0.04em;
  transition: opacity var(--transition);
}
.gallery-instagram a:hover { opacity: 0.7; }

/* ── About ──────────────────────────────────────────────── */
.about {
  padding: 96px 0;
  background: var(--sand-pale);
}

.about__layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.about__photo {
  flex-shrink: 0;
}

.about__photo-placeholder {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--sand-light);
  border: 1px solid var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about__photo-placeholder svg {
  opacity: 0.4;
}

.about__text {
  max-width: 560px;
}

.about__text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}

.about__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 28px;
}

.about__badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.about__badge svg {
  color: var(--sand);
  flex-shrink: 0;
}

/* ── Order / Contact ────────────────────────────────────── */
.order {
  padding: 96px 0;
}

.order__intro {
  max-width: 540px;
  margin: 0 auto 48px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
}

/* Form */
.order-form {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--sand-light);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--sand);
}

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

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A7968' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.order-form .btn {
  align-self: flex-start;
  margin-top: 4px;
}

/* Contact buttons */
.order-divider {
  max-width: 560px;
  margin: 48px auto;
  height: 1px;
  background: var(--sand-light);
}

.order-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--sand-light);
  padding: 56px 0;
  text-align: center;
}

.footer__wordmark {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 12px;
}

.footer__tagline {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.footer__socials {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--sand-light);
  border-radius: 50%;
  color: var(--sand);
  transition: background var(--transition), border-color var(--transition);
}

.footer__socials a:hover {
  background: var(--sand-pale);
  border-color: var(--sand);
}

/* ── Back to top ────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: var(--cream);
  border: 1px solid var(--sand-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--sand);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), background var(--transition);
  z-index: 800;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

.back-to-top:hover {
  background: var(--sand-pale);
}

/* ── Scroll reveal ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .nav__links    { display: flex; }
  .nav__hamburger { display: none; }

  .about__layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 64px;
  }

  .about__photo-placeholder {
    width: 260px;
    height: 260px;
  }
}

@media (min-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
