/*
Theme Name: Bakery Custom
Theme URI: https://example.com
Author: Your Bakery
Description: قالب اختصاصی نانوایی بر اساس دیزاین سفارشی
Version: 1.0
Text Domain: bakery-custom
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root{
  --cream-bg: #F6EEE3;
  --cream-bg-alt: #EFE2D1;
  --text-dark: #3B2A1E;
  --text-muted: #7A6A5A;
  --brown: #7B4B32;
  --brown-dark: #5E3A24;
  --brown-light: #A9744F;
  --white: #FFFFFF;
  --radius-pill: 999px;
  --radius-sm: 10px;
  --max-width: 1180px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Jost', 'Segoe UI', Tahoma, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--cream-bg);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
}

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

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

ul { list-style: none; margin: 0; padding: 0; }

.container{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-dark);
  margin: 0;
  line-height: 1.2;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  background: var(--brown);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease;
}
.btn:hover{ background: var(--brown-dark); transform: translateY(-2px); }
.btn.btn-outline{
  background: transparent;
  border: 1.5px solid var(--white);
  color: var(--white);
}
.btn.btn-outline:hover{ background: rgba(255,255,255,.15); }

/* ==========================================================================
   Top bar
   ========================================================================== */
.top-bar{
  background: var(--brown-dark);
  color: #EFE2D1;
  font-size: 0.82rem;
}
.top-bar .container{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar .contact-info{ display: flex; gap: 24px; flex-wrap: wrap; }
.top-bar .socials{ display: flex; gap: 14px; }
.top-bar .socials a{ opacity: .85; }
.top-bar .socials a:hover{ opacity: 1; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header{
  background: var(--cream-bg);
  padding: 18px 0;
  position: relative;
  z-index: 30;
}
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-logo{
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-dark);
}
.site-logo span{ display:block; font-family: var(--font-body); font-size: 0.6rem; letter-spacing: 3px; color: var(--text-muted); font-weight: 400; }

.main-nav ul{ display: flex; gap: 34px; }
.main-nav a{
  font-size: 0.95rem;
  color: var(--text-dark);
  position: relative;
  padding-bottom: 4px;
}
.main-nav a::after{
  content:"";
  position:absolute; left:0; bottom:0;
  width:0; height:2px; background: var(--brown);
  transition: width .25s ease;
}
.main-nav a:hover::after{ width:100%; }

.header-actions{ display:flex; align-items:center; gap:18px; }

.menu-toggle{
  display:none;
  background:none; border:none; cursor:pointer;
  flex-direction:column; gap:5px;
}
.menu-toggle span{ width:26px; height:2px; background: var(--text-dark); display:block; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  position: relative;
  padding: 60px 0 80px;
  overflow: hidden;
}
.hero-grid{
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 20px;
  align-items: stretch;
}
.hero-card{
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 60px 44px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-self: center;
}
.hero-card .eyebrow{
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--brown);
  margin-bottom: 14px;
}
.hero-card h1{
  font-size: 2.6rem;
  margin-bottom: 18px;
}
.hero-card p{
  color: var(--text-muted);
  max-width: 380px;
  margin-bottom: 28px;
}
.hero-images{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.hero-images img{
  border-radius: var(--radius-sm);
  height: 100%;
  object-fit: cover;
}
.hero-images .tall{ grid-row: span 2; }

/* ==========================================================================
   Why choose us
   ========================================================================== */
.section{ padding: 90px 0; }
.section-head{
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
}
.section-head .eyebrow{ color: var(--brown); font-size: 0.85rem; letter-spacing: 2px; margin-bottom: 10px; }
.section-head h2{ font-size: 2.2rem; margin-bottom: 14px; }
.section-head p{ color: var(--text-muted); }

.cards-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.card{
  background: var(--white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  text-align: center;
  padding-bottom: 34px;
}
.card img{ width:100%; height: 240px; object-fit: cover; }
.card h3{ font-size: 1.3rem; margin: 24px 0 10px; }
.card p{ color: var(--text-muted); padding: 0 24px; margin-bottom: 22px; font-size: 0.92rem; }

/* ==========================================================================
   Visit us today
   ========================================================================== */
.visit-section{ background: var(--cream-bg-alt); }
.visit-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items:center;
}
.visit-text h2{
  font-size: 2.2rem;
  font-style: italic;
  margin-bottom: 20px;
}
.visit-text p{ color: var(--text-muted); margin-bottom: 18px; }
.visit-images{
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
}
.visit-images img{ border-radius: var(--radius-sm); object-fit:cover; width:100%; height:100%; }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 10px;
  gap: 18px;
}
.gallery-grid img{ width:100%; height:100%; object-fit:cover; border-radius: var(--radius-sm); }
.g-span-60{ grid-row: span 60; }
.g-span-50{ grid-row: span 50; }
.g-span-70{ grid-row: span 70; }
.g-span-40{ grid-row: span 40; }
.gallery-text{
  align-self:center;
  padding: 20px;
}
.gallery-text h4{ font-style: italic; font-size:1.2rem; margin-bottom:8px; }
.gallery-text p{ color: var(--text-muted); font-size: 0.92rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{
  background: var(--brown-dark);
  color: #E7D9C9;
  padding: 70px 0 26px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-grid h4{ color: var(--white); font-size:1.1rem; margin-bottom:18px; }
.footer-grid p, .footer-grid a{ color: #C9B7A3; font-size: 0.92rem; }
.footer-grid ul li{ margin-bottom: 10px; }
.footer-grid a:hover{ color: var(--white); }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 22px;
  text-align:center;
  font-size: 0.85rem;
  color: #C9B7A3;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-images{ order: -1; }
  .cards-grid{ grid-template-columns: 1fr; }
  .visit-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .gallery-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px){
  .main-nav{
    position:absolute; top:100%; left:0; right:0;
    background: var(--cream-bg);
    padding: 20px 24px;
    display:none;
    box-shadow: 0 10px 20px rgba(0,0,0,.08);
  }
  .main-nav.is-open{ display:block; }
  .main-nav ul{ flex-direction:column; gap:16px; }
  .menu-toggle{ display:flex; }
  .header-actions .btn{ display:none; }
  .hero-card{ padding: 36px 24px; }
  .hero-card h1{ font-size: 1.9rem; }
  .footer-grid{ grid-template-columns: 1fr; }
  .gallery-grid{ grid-template-columns: 1fr; }
  .top-bar .contact-info{ display:none; }
}
