/* ══════════════════════════════════════════
   KHUBZNA — فرن خبزنا اليومي
   ══════════════════════════════════════════ */

:root {
  --brown-dark:    #5c3310;
  --brown-mid:     #7d5535;
  --brown-light:   #a87850;
  --accent:        #d4883a;
  --cream-dark:    #e8c9a0;
  --cream:         #f3e2cc;
  --cream-light:   #faf3ea;
  --white:         #ffffff;
  --text-dark:     #2a1505;
  --text-mid:      #5c3d1e;

  --shadow-sm:  0 2px 8px rgba(44,21,5,0.08);
  --shadow-md:  0 8px 30px rgba(44,21,5,0.12), 0 2px 8px rgba(44,21,5,0.06);
  --shadow-lg:  0 20px 60px rgba(44,21,5,0.16), 0 6px 20px rgba(44,21,5,0.08);
  --shadow-img: 0 24px 64px rgba(44,21,5,0.22), 0 6px 16px rgba(44,21,5,0.10);

  --radius-sm:  10px;
  --radius-md:  18px;
  --radius-lg:  28px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Tajawal', sans-serif;
  direction: rtl;
  background: var(--cream-light);
  color: var(--text-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }
.section     { padding: 7rem 0; }

/* ══════════════════════════════════════════
   SECTION HEADER
   ══════════════════════════════════════════ */
.section-header { text-align: center; margin-bottom: 3.5rem; }

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--brown-dark);
  line-height: 1.2;
  margin-bottom: 0.6rem;
}
.section-title::after {
  content: '';
  display: block;
  width: 52px;
  height: 4px;
  background: linear-gradient(to left, var(--accent), var(--cream-dark));
  border-radius: 2px;
  margin: 0.75rem auto 0;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--brown-light);
  font-weight: 400;
  margin-top: 0.9rem;
}

/* ══════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════ */
.btn {
  display: inline-block;
  padding: 0.85rem 2.4rem;
  border-radius: 50px;
  font-family: 'Tajawal', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  letter-spacing: 0.02em;
}
.btn-accent {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(212,136,58,0.35);
}
.btn-accent:hover {
  background: var(--brown-dark);
  box-shadow: 0 8px 28px rgba(92,51,16,0.4);
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--brown-dark);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(44,21,5,0.25);
}
.btn-dark:hover {
  background: var(--brown-mid);
  box-shadow: 0 8px 28px rgba(44,21,5,0.35);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════ */
#header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
#header.scrolled {
  background: var(--brown-dark);
  box-shadow: 0 2px 24px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 2.5rem;
  direction: ltr;
}

/* Logo — far RIGHT */
.header-logo { order: 3; }
.header-logo img {
  height: 64px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
  transition: opacity 0.3s;
  background: rgba(255,255,255,1);
  border-radius: 12px;
  padding: 4px 8px;
}
.header-logo img:hover { opacity: 0.85; }

/* Nav — center */
.header-nav { order: 2; }
.header-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  direction: rtl;
}
.header-nav a {
  color: var(--white);
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  transition: color 0.3s;
  white-space: nowrap;
}
.header-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0; left: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.header-nav a:hover { color: var(--cream-dark); }
.header-nav a:hover::after { transform: scaleX(1); }

/* Phone pill — far LEFT */
.header-phone { order: 1; }
.header-phone a {
  display: inline-block;
  color: var(--brown-dark);
  font-size: 0.9rem;
  font-weight: 800;
  background: var(--cream-dark);
  padding: 0.45rem 1.25rem;
  border-radius: 50px;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: background 0.3s, transform 0.25s;
}
.header-phone a:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

/* Hamburger */
.hamburger {
  display: none;
  order: 0;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.hamburger span {
  display: block;
  width: 25px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  background: var(--brown-dark);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.mobile-nav.open { max-height: 460px; }
.mobile-nav ul { list-style: none; padding: 0.5rem 0 1.25rem; }
.mobile-nav a {
  display: block;
  color: var(--white);
  font-size: 1.1rem;
  padding: 0.8rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.25s, background 0.25s;
}
.mobile-nav a:hover { color: var(--cream-dark); background: rgba(255,255,255,0.04); }
.mobile-nav .mobile-phone a {
  color: var(--accent);
  font-weight: 800;
  border-bottom: none;
  direction: ltr;
  text-align: right;
}

/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('assets/farnji.webp') center / cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    170deg,
    rgba(30,10,2,0.82) 0%,
    rgba(92,51,16,0.72) 50%,
    rgba(30,10,2,0.85) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 2rem;
  max-width: 780px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.hero-verse-ref {
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--cream-dark);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}
.hero-quote {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.55;
  margin-bottom: 0;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.hero-divider {
  width: 56px;
  height: 3px;
  background: linear-gradient(to left, transparent, var(--accent), transparent);
  border-radius: 2px;
  margin: 1.4rem 0;
}
.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.8;
  margin-bottom: 2.25rem;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero-scroll-hint span {
  display: block;
  width: 22px; height: 22px;
  border-left: 2px solid rgba(255,255,255,0.5);
  border-bottom: 2px solid rgba(255,255,255,0.5);
  transform: rotate(-45deg);
  animation: bounce 1.8s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: rotate(-45deg) translate(0,0); opacity: 0.5; }
  50%       { transform: rotate(-45deg) translate(6px,6px); opacity: 1; }
}

/* ══════════════════════════════════════════
   PRODUCTS SECTION
   ══════════════════════════════════════════ */
.products-section {
  background: var(--cream-light);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(212,136,58,0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212,136,58,0.35);
}
.product-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream);
}
.product-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44,21,5,0.18) 0%, transparent 50%);
  pointer-events: none;
}
.product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.07); }

.product-label {
  padding: 1.1rem 1.25rem 1.3rem;
  border-top: 2px solid var(--cream);
  background: var(--white);
}
.product-label h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--brown-dark);
  text-align: center;
  letter-spacing: 0.02em;
}

/* ══════════════════════════════════════════
   SPLIT SECTIONS (Delivery + Menu)
   ══════════════════════════════════════════ */
.split-section {
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

/* image on the RIGHT (physical), content on LEFT */
.split-img-right .split-image { order: 2; }
.split-img-right .split-content { order: 1; }

/* image on the LEFT (physical), content on RIGHT */
.split-img-left .split-image { order: 1; }
.split-img-left .split-content { order: 2; }

.split-image {
  position: relative;
  overflow: hidden;
  min-height: 500px;
}
.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.split-section:hover .split-image img { transform: scale(1.04); }

/* Subtle inner shadow on image edge facing content */
.split-img-right .split-image::after,
.split-img-left  .split-image::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.split-img-right .split-image::after {
  background: linear-gradient(to right, rgba(44,21,5,0.18) 0%, transparent 40%);
}
.split-img-left .split-image::after {
  background: linear-gradient(to left, rgba(44,21,5,0.18) 0%, transparent 40%);
}

.split-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 4.5rem;
  background: var(--cream-light);
}

/* Delivery section gets a warm cream bg */
.split-img-right .split-content { background: var(--cream); }

/* Delivery section — fixed-width button */
#delivery .btn-dark {
  width: 400px;
  max-width: 100%;
  text-align: center;
}

/* Delivery section — half-height image at correct aspect ratio */
#delivery .split-image {
  min-height: 600px;
  max-height: 600px;
  background: var(--cream);
}
#delivery .split-image img {
  object-fit: contain;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.split-content h2 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 900;
  color: var(--brown-dark);
  line-height: 1.25;
  margin-bottom: 0;
}
.split-divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(to left, var(--accent), var(--cream-dark));
  border-radius: 2px;
  margin: 1.25rem 0;
}
.split-content p {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--text-mid);
  margin-bottom: 2.25rem;
}

/* Menu list */
.menu-list {
  list-style: none;
  margin-bottom: 1.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1.5rem;
}
.menu-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brown-dark);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(212,136,58,0.15);
}
.menu-bullet {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.menu-phone {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--brown-dark);
  direction: ltr;
  transition: color 0.25s;
}
.menu-phone:hover { color: var(--accent); }

/* ══════════════════════════════════════════
   BHAMDOUN SECTION
   ══════════════════════════════════════════ */
.bhamdoun-section { background: var(--cream); }

.bhamdoun-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.bhamdoun-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-img);
  border: 4px solid var(--white);
  outline: 1px solid rgba(212,136,58,0.18);
}
.bhamdoun-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.bhamdoun-photo:hover img { transform: scale(1.03); }

.bhamdoun-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(212,136,58,0.1);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.info-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(212,136,58,0.28);
}
.info-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-icon svg {
  width: 20px; height: 20px;
  color: var(--accent);
}
.info-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.info-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--brown-dark);
  line-height: 1.5;
}
.info-link {
  transition: color 0.25s;
  direction: ltr;
  display: inline-block;
}
.info-link:hover { color: var(--accent); }

.bhamdoun-map {
  grid-column: 1 / -1;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 3px solid var(--white);
  outline: 1px solid rgba(212,136,58,0.15);
  margin-top: 30px;
}
.bhamdoun-map iframe { display: block; }

/* ══════════════════════════════════════════
   ORDER CTA SECTION
   ══════════════════════════════════════════ */
.order-section {
  position: relative;
  background: var(--brown-dark);
  color: var(--white);
  text-align: center;
  padding: 6rem 0;
  overflow: hidden;
}
.order-bg-shape {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(212,136,58,0.15) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 50%, rgba(125,85,53,0.2) 0%, transparent 55%);
  pointer-events: none;
}
.order-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}
.order-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--cream-dark);
  text-transform: uppercase;
}
.order-phone {
  display: block;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--accent);
  direction: ltr;
  transition: color 0.3s, transform 0.25s;
  text-shadow: 0 2px 16px rgba(212,136,58,0.3);
}
.order-phone:hover { color: var(--cream-dark); transform: scale(1.03); }
.order-note {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--cream);
  letter-spacing: 0.12em;
  margin-top: -0.4rem;
}

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.footer {
  background: var(--brown-dark);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 2.5rem 0 1.75rem;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  direction: ltr;
  margin-bottom: 1.75rem;
}
.footer-logo img {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  transition: opacity 0.3s;
}
.footer-logo img:hover { opacity: 1; }
.footer-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  line-height: 1.7;
}
.footer-info a {
  color: var(--accent);
  direction: ltr;
  transition: color 0.25s;
}
.footer-info a:hover { color: var(--cream-dark); }
.footer-social {
  display: flex;
  gap: 0.85rem;
}
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background 0.3s, border-color 0.3s, transform 0.25s;
}
.footer-social a svg { width: 17px; height: 17px; }
.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}
.footer-copy {
  text-align: center;
  color: rgba(255,255,255,0.3);
  font-size: 0.82rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 960px) {
  .header-nav, .header-phone { display: none; }
  .hamburger { display: flex; }
  .header-inner { padding: 0.8rem 1.5rem; }
  .header-logo img { height: 54px; }

  .split-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .split-img-right .split-image,
  .split-img-left .split-image { order: 1; min-height: 380px; }
  .split-img-right .split-content,
  .split-img-left .split-content { order: 2; padding: 3.5rem 2.5rem; }

  .bhamdoun-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

@media (max-width: 620px) {
  .section { padding: 5rem 0; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .menu-list { grid-template-columns: 1fr; }
  .split-content { padding: 3rem 1.75rem; }
  .footer-row { flex-direction: column; align-items: center; text-align: center; }
  .footer-info { text-align: center; }
}

@media (max-width: 400px) {
  .products-grid { grid-template-columns: 1fr; }
}
