/*
Theme Name: Samer's Cakery Classic
Theme URI: https://example.com/
Author: OpenAI
Author URI: https://openai.com/
Description: Classic WordPress theme for Samer's Cakery based on the provided landing page and PRD.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: samers-cakery
*/

:root {
  --bg-primary: #FAF7F2;
  --bg-secondary: #F3EADF;
  --text-dark: #3B2F2A;
  --text-secondary: #6B5B53;
  --gold: #C9A14A;
  --gold-hover: #B68C34;
  --cta: #A86A4A;
  --cta-hover: #8F5538;
  --white: #FFFFFF;
  --border: rgba(201,161,74,0.2);
  --shadow: 0 8px 40px rgba(59,47,42,0.08);
  --shadow-hover: 0 16px 60px rgba(59,47,42,0.14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: 'Playfair Display', serif; margin: 0 0 1rem; }
p { margin: 0 0 1rem; }
.site-main { min-height: 60vh; }
.container { width: min(1200px, calc(100% - 2rem)); margin: 0 auto; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); margin: 0 8%; }
.screen-reader-text { position: absolute; left: -9999px; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,247,242,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.site-header-inner {
  min-height: 72px; padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.site-branding img { width: 143px; height: auto; }
.site-branding-text { font-family: 'Playfair Display', serif; font-size: 1.4rem; text-decoration: none; }
.primary-nav { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2rem; align-items: center; }
.primary-nav a {
  font-size: 0.875rem; font-weight: 500; color: var(--text-secondary);
  text-decoration: none; letter-spacing: 0.02em; transition: color 0.2s;
}
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--text-dark); }

.btn-primary, .btn-outline, .btn-gold, button, input[type="submit"] {
  border-radius: 100px;
  padding: 0.7rem 1.5rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font-family: 'Inter', sans-serif; font-size: 0.875rem; font-weight: 600;
  text-decoration: none; cursor: pointer; transition: all 0.2s ease;
}
.btn-primary, button, input[type="submit"] { background: var(--cta); color: var(--white); border: 0; }
.btn-primary:hover, button:hover, input[type="submit"]:hover { background: var(--cta-hover); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(168,106,74,0.35); }
.btn-outline { background: transparent; color: var(--text-dark); border: 1.5px solid var(--text-dark); }
.btn-outline:hover { background: var(--text-dark); color: var(--white); transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--white); border: 0; }
.btn-gold:hover { background: var(--gold-hover); transform: translateY(-1px); }

.hero {
  min-height: calc(100vh - 72px);
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  overflow: hidden; position: relative;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 70% 50%, #F3EADF 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { padding: 5% 5% 5% 8%; position: relative; z-index: 2; }
.hero-eyebrow, .section-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold);
}
.hero-eyebrow::before, .section-label::before {
  content: ''; display: block; width: 2rem; height: 1px; background: var(--gold);
}
.hero h1 { font-size: clamp(2.4rem, 4.5vw, 3.6rem); line-height: 1.12; margin: 1.5rem 0; font-weight: 600; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p { font-size: 1.05rem; line-height: 1.75; color: var(--text-secondary); max-width: 38ch; margin-bottom: 2.5rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-image { position: relative; z-index: 2; height: 100%; min-height: 720px; }
.hero-image-inner { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; }
.hero-img-frame { width: 80%; aspect-ratio: 3/4; border-radius: 200px 200px 50px 50px; overflow: hidden; box-shadow: var(--shadow-hover); background: linear-gradient(135deg, #f0e8df 0%, #e8ddd4 100%); }
.hero-img-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; bottom: 12%; left: 5%; background: var(--white); padding: 1rem 1.4rem;
  border-radius: 16px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 0.8rem;
}
.hero-badge-text { font-size: 0.75rem; color: var(--text-secondary); line-height: 1.4; }
.hero-badge-text strong { display: block; color: var(--text-dark); font-weight: 600; font-size: 0.95rem; }

section { padding: 6rem 8%; }
.section-header { margin-bottom: 3.5rem; }
.section-header-center { text-align: center; }
.section-header-center .section-label { justify-content: center; }
.section-header-center .section-label::before { display: none; }
.section-title { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.2; }
.section-subtitle { font-size: 1rem; line-height: 1.75; color: var(--text-secondary); max-width: 52ch; }
.section-header-center .section-subtitle { margin-inline: auto; }

.brand-intro { background: var(--bg-secondary); display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.brand-values, .contact-cards, .testimonials-grid, .footer-grid { display: grid; gap: 1.5rem; }
.brand-values { grid-template-columns: repeat(2, 1fr); margin-top: 2.5rem; }
.value-card, .contact-card, .testimonial-card, .cake-card {
  background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.value-card { padding: 1.5rem; border-radius: 16px; }
.value-card h4 { font-size: 0.95rem; margin-bottom: 0.35rem; }
.value-card p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; margin: 0; }
.brand-image-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.brand-img { border-radius: 20px; overflow: hidden; aspect-ratio: 1; background: linear-gradient(135deg, #f0e8df 0%, #e8ddd4 100%); }
.brand-img:first-child { grid-column: 1 / -1; aspect-ratio: 16/9; }
.brand-img img { width: 100%; height: 100%; object-fit: cover; }

.cakes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }
.cake-card { border-radius: 24px; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.cake-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.cake-card-image { position: relative; aspect-ratio: 4/3; overflow: hidden; background: linear-gradient(135deg, #f0e8df 0%, #e8ddd4 100%); }
.cake-card-image img { width: 100%; height: 100%; object-fit: cover; }
.cake-badges { position: absolute; top: 1rem; left: 1rem; display: flex; gap: 0.4rem; flex-wrap: wrap; }
.badge { background: var(--white); padding: 0.3rem 0.65rem; border-radius: 100px; font-size: 0.7rem; font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.badge-gf { color: #4a7c59; background: #f0f9f3; }
.badge-offer { color: var(--white); background: var(--cta); }
.cake-card-body { padding: 1.4rem; }
.cake-card-body h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.cake-desc { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 1rem; }
.cake-footer, .single-cake-price, .footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cake-price, .single-cake-price { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.price-current, .single-cake-price .current { font-size: 1.25rem; font-weight: 700; font-family: 'Playfair Display', serif; }
.price-old, .single-cake-price .original { font-size: 0.85rem; color: var(--text-secondary); text-decoration: line-through; }
.view-btn { font-size: 0.8rem; font-weight: 600; color: var(--cta); text-decoration: none; }

.offers-section, .testimonials-section, .final-cta { background: var(--bg-secondary); }
.offer-banner {
  background: linear-gradient(135deg, #3B2F2A 0%, #5A3E35 100%);
  border-radius: 28px; padding: 3.5rem; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; position: relative; overflow: hidden;
}
.offer-tag { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--gold); color: var(--white); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.35rem 0.8rem; border-radius: 100px; margin-bottom: 1rem; }
.offer-banner h2 { color: var(--white); }
.offer-banner p { color: rgba(255,255,255,0.7); max-width: 40ch; }
.offer-discount-circle { width: 120px; height: 120px; border-radius: 50%; background: var(--gold); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.offer-discount-circle .pct { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--white); }
.offer-discount-circle .off { font-size: 0.7rem; color: rgba(255,255,255,0.85); text-transform: uppercase; letter-spacing: 0.08em; }

.gf-section, .single-cake-inner {
  display: grid; gap: 4rem; align-items: center;
}
.gf-section { grid-template-columns: auto 1fr; background: var(--white); border-radius: 28px; padding: 3rem; border: 1px solid var(--border); box-shadow: var(--shadow); }
.gf-icon-wrap { width: 100px; height: 100px; background: #f0f9f3; border-radius: 28px; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 1rem; }
.gallery-item { border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, #f0e8df 0%, #e8ddd4 100%); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item-large { grid-column: span 2; grid-row: span 2; }
.testimonials-grid { grid-template-columns: repeat(3, 1fr); }
.testimonial-card { padding: 2rem; border-radius: 20px; position: relative; }
.contact-cards { grid-template-columns: repeat(3, 1fr); }
.contact-card { border-radius: 20px; padding: 2rem; text-align: center; }
.contact-card p { color: var(--text-secondary); }
.final-cta { text-align: center; padding: 7rem 8%; }
.final-cta p { max-width: 45ch; margin: 0 auto 2rem; color: var(--text-secondary); }
.final-cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.single-cake-preview { background: var(--bg-secondary); }
.single-cake-inner { grid-template-columns: 1fr 1fr; align-items: start; }
.single-cake-gallery-main { aspect-ratio: 1; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-hover); background: linear-gradient(135deg, #f0e8df 0%, #e8ddd4 100%); }
.single-cake-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.single-cake-thumbs { display: flex; gap: 0.75rem; margin-top: 1rem; }
.single-cake-thumbs .thumb { flex: 1; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 2px solid transparent; }
.single-cake-thumbs .thumb.active { border-color: var(--gold); }
.single-cake-info .breadcrumb { font-size: 0.8rem; color: var(--text-secondary); display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 1rem; }
.single-cake-info p { color: var(--text-secondary); line-height: 1.8; }
.info-row { display: flex; gap: 1rem; flex-wrap: wrap; margin: 0 0 2rem; }
.info-chip { background: var(--white); border: 1px solid var(--border); padding: 0.5rem 1rem; border-radius: 100px; font-size: 0.8rem; color: var(--text-secondary); }
.order-btn-large { width: 100%; border-radius: 14px; padding: 1rem 2rem; }

.site-footer { background: #3B2F2A; padding: 4rem 8% 2rem; color: rgba(255,255,255,0.7); }
.footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; margin-bottom: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.site-footer h5 { font-size: 0.95rem; color: var(--white); }
.site-footer a { color: rgba(255,255,255,0.7); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-socials { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.social-btn { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; }

.page-hero { padding: 5rem 8% 3rem; text-align: center; }
.page-hero p { max-width: 60ch; margin: 0 auto; color: var(--text-secondary); }
.page-content { padding: 2rem 8% 6rem; }
.entry-content, .entry-summary { color: var(--text-secondary); line-height: 1.85; }
.entry-content ul, .entry-content ol { padding-inline-start: 1.25rem; }

.archive-header { padding: 5rem 8% 2rem; text-align: center; }
.tax-filter { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; margin: 1.5rem 0 0; }
.tax-filter a { padding: 0.55rem 1rem; border: 1px solid var(--border); border-radius: 100px; background: var(--white); text-decoration: none; }
.tax-filter a.active { background: var(--text-dark); color: var(--white); }
.pagination { margin-top: 3rem; }

@media (max-width: 900px) {
  .site-header-inner { padding-block: 1rem; flex-direction: column; }
  .primary-nav, .primary-nav ul { width: 100%; justify-content: center; flex-wrap: wrap; gap: 1rem; }
  .hero, .brand-intro, .single-cake-inner, .gf-section { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .hero-content { padding: 4rem 5% 4rem; }
  .brand-image-grid { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item-large { grid-column: span 1; grid-row: span 1; }
  .testimonials-grid, .contact-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .offer-banner { grid-template-columns: 1fr; }
  .offer-discount-circle { display: none; }
}

@media (max-width: 640px) {
  section, .page-hero, .page-content, .archive-header, .site-footer, .final-cta { padding-left: 1rem; padding-right: 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
}
