/* ===========================
   SWEETS BY ROSIE — styles
   =========================== */

:root {
  --rose:       #c0506a;
  --rose-light: #f7e8ec;
  --rose-dark:  #8c3349;
  --cream:      #fdf8f2;
  --warm-tan:   #e8d9c8;
  --brown:      #5c3d2e;
  --text:       #2a1f1a;
  --text-muted: #7a6259;
  --white:      #ffffff;
  --radius:     14px;
  --radius-sm:  8px;
  --shadow:     0 2px 16px rgba(0,0,0,0.08);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.12);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

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

/* ── UTILITIES ── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.placeholder-img {
  background: linear-gradient(135deg, var(--warm-tan) 0%, #d6c4b0 100%);
  position: relative;
  overflow: hidden;
}
.placeholder-img::after {
  content: 'Photo coming soon';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--brown);
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.section { padding: 96px 0; }

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
}

.section-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--brown);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 15px;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--rose);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--rose-dark); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--rose);
  padding: 13px 28px;
  border-radius: 100px;
  border: 1.5px solid var(--rose);
  font-size: 15px;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}
.btn-ghost:hover { background: var(--rose-light); }

.btn-nav {
  background: var(--rose-light);
  color: var(--rose-dark);
  padding: 8px 20px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  transition: background 0.2s;
}
.btn-nav:hover { background: var(--warm-tan); }

/* ── HEADER / NAV ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 248, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--warm-tan);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
}
.logo img {
  height: 20px !important;
  width: auto !important;
  display: block;
  padding: 4px 0
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--rose); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brown);
  border-radius: 2px;
  transition: transform 0.2s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--warm-tan);
}
.mobile-menu a {
  padding: 14px 24px;
  font-size: 15px;
  color: var(--text);
  border-top: 1px solid var(--warm-tan);
}
.mobile-menu.open { display: flex; }

/* ── HERO ── */
.hero {
  position: relative;
  padding: 80px 0 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
}
.blob1 {
  width: 500px; height: 500px;
  background: var(--rose-light);
  top: -100px; left: -80px;
}
.blob2 {
  width: 400px; height: 400px;
  background: var(--warm-tan);
  top: 50px; right: -60px;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding-bottom: 56px;
}

.hero-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--brown);
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: italic;
  color: var(--rose);
}

.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 36px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-image-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  align-items: end;
}

.hero-card {
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  text-align: center;
}
.hero-card p {
  padding: 12px 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.hero-card-img {
  width: 100%;
  height: 220px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.hero-card--tall .hero-card-img { height: 300px; }

/* ── MENU ── */
.menu-section { background: var(--white); }

.menu-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.tab {
  background: none;
  border: 1.5px solid var(--warm-tan);
  color: var(--text-muted);
  padding: 10px 24px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.tab:hover { border-color: var(--rose); color: var(--rose); }
.tab.active {
  background: var(--rose);
  border-color: var(--rose);
  color: var(--white);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.menu-card {
  border: 1px solid var(--warm-tan);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
  transition: box-shadow 0.2s, transform 0.2s;
}
.menu-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.gallery-item img,
img.gallery-item {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.menu-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.menu-card-body {
  padding: 20px;
}
.menu-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 6px;
}
.menu-card-body p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.menu-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.menu-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--rose-dark);
}
.menu-card a {
  font-size: 13px;
  font-weight: 700;
  color: var(--rose);
}
.menu-card a:hover { text-decoration: underline; }

.menu-note {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  color: var(--text-muted);
}
.menu-note a { color: var(--rose); font-weight: 700; }

/* ── GALLERY ── */
.gallery-section { background: var(--cream); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 8px;
  padding: 0 24px;
  max-width: 1120px;
  margin: 0 auto;
}
.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.2s;
}
.gallery-item:hover { opacity: 0.88; }
.gallery-item--wide {
  grid-column: span 2;
}

/* ── ABOUT ── */
.about-section { background: var(--rose-light); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-img {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.about-text .section-tag { text-align: left; }
.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--brown);
  line-height: 1.2;
  margin-bottom: 20px;
}
.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 15px;
}
.about-text .btn-primary { margin-top: 8px; }

/* ── ORDER FORM ── */
.order-section { background: var(--white); }

.order-form {
  max-width: 680px;
  margin: 0 auto;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--brown);
  letter-spacing: 0.04em;
}
.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid var(--warm-tan);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--cream);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--rose);
}
.form-group textarea { resize: vertical; }

.btn-submit { width: 100%; font-size: 16px; padding: 16px; }

.form-success {
  display: none;
  text-align: center;
  margin-top: 24px;
  padding: 16px;
  background: #eaf7ec;
  color: #2d6a3f;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
}
.form-success.visible { display: block; }

/* ── FOOTER ── */
.site-footer {
  background: var(--brown);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 24px;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 40px;
}
.site-footer .logo { color: var(--white); }
.site-footer .logo span { color: var(--warm-tan); }
.footer-tagline {
  font-size: 13px;
  margin-top: 8px;
  color: rgba(255,255,255,0.5);
  font-style: italic;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
}
.footer-social a {
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--white); }

.footer-copy {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero-image-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .hero-card--tall .hero-card-img { height: 220px; }

  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-img { aspect-ratio: 16/9; }

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

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

  .footer-inner { flex-direction: column; }
}

@media (max-width: 480px) {
  .section { padding: 64px 0; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item--wide { grid-column: span 1; }
}
