/* =========================================================
   Bloom Coffee — Main Stylesheet
   Visual identity: dark roast, cream, beige, caramel + sage
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --roast: #25160f;       /* Espresso */
  --roast-2: #3a2419;     /* Coffee */
  --coffee: #3a2419;
  --cream: #fbf7f0;       /* Cream */
  --cream-2: #f3e9dc;     /* Warm canvas */
  --beige: #e9c48f;       /* Gold */
  --caramel: #c68a4c;     /* Caramel */
  --caramel-dark: #a96f34;
  --sage: #6f927c;        /* Sage accent */
  --sage-light: #93ae9b;
  --ink: #25160f;
  --muted: #766253;
  --line: rgba(37, 22, 15, .12);
  --white: #ffffff;
  --shadow-sm: 0 4px 16px rgba(37, 22, 15, .06);
  --shadow-md: 0 12px 32px rgba(37, 22, 15, .10);
  --shadow-lg: 0 22px 52px rgba(37, 22, 15, .15);
  --radius: 18px;
  --radius-sm: 12px;
  --transition: .35s cubic-bezier(.22,.8,.3,1);
  --font-ar: 'Tajawal', 'Segoe UI', sans-serif;
  --font-en: 'Inter', sans-serif;
  --font-display: 'Playfair Display', serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ar);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

html[lang="en"] body { font-family: var(--font-en); }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; border: none; background: none; color: inherit; }

.container { width: min(1180px, 92%); margin-inline: auto; }

/* ---------- Typography helpers ---------- */
.display { font-family: var(--font-display); font-weight: 600; line-height: 1.12; }
html[lang="ar"] .display { font-family: var(--font-ar); font-weight: 800; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--caramel-dark);
  margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--caramel); }
.section-title { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 14px; }
.section-desc { color: var(--muted); max-width: 560px; margin-bottom: 40px; }
.section-head { text-align: center; }
.section-head .section-desc { margin-inline: auto; }
html[lang="en"] .eyebrow { letter-spacing: .16em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 100px; font-weight: 700; font-size: .95rem;
  transition: var(--transition); white-space: nowrap; border: 1.5px solid transparent;
}
.btn-primary { background: var(--roast); color: var(--cream); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--caramel); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--caramel); color: #fff; }
.btn-accent:hover { background: var(--caramel-dark); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-outline { border-color: var(--roast); color: var(--roast); }
.btn-outline:hover { background: var(--roast); color: var(--cream); transform: translateY(-3px); }
.btn-light { background: var(--cream); color: var(--roast); }
.btn-light:hover { background: #fff; transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-block { width: 100%; }
.btn svg, .icon-btn svg { width: 19px; height: 19px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 247, 240, .92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--roast); color: var(--cream);
  display: grid; place-items: center; font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 700; border: 2px solid var(--caramel);
}
.brand-text strong { display: block; font-family: var(--font-display); font-size: 1.35rem; line-height: 1; letter-spacing: -.02em; }
html[lang="ar"] .brand-text strong { font-family: var(--font-ar); font-weight: 800; }
.brand-text span { font-size: .64rem; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 9px 15px; border-radius: 100px; font-weight: 600; font-size: .9rem;
  color: var(--roast-2); transition: var(--transition); position: relative;
}
.nav-links a:hover { color: var(--caramel-dark); background: var(--cream-2); }
.nav-links a.active { color: var(--cream); background: var(--roast); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--white); position: relative;
  transition: var(--transition);
}
.icon-btn:hover { border-color: var(--caramel); color: var(--caramel-dark); transform: translateY(-2px); }
.icon-btn .badge {
  position: absolute; top: -4px; inset-inline-end: -4px; min-width: 19px; height: 19px;
  border-radius: 50%; background: var(--caramel); color: #fff; font-size: .65rem; font-weight: 700;
  display: grid; place-items: center; padding: 0 4px; border: 2px solid var(--cream);
}
.lang-btn { width: auto; padding-inline: 13px; font-size: .82rem; font-weight: 700; border-radius: 100px; }
.hamburger { display: none; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200; visibility: hidden; opacity: 0; transition: var(--transition);
}
.mobile-menu.open { visibility: visible; opacity: 1; }
.mobile-overlay { position: absolute; inset: 0; background: rgba(37, 22, 15,.55); backdrop-filter: blur(4px); }
.mobile-panel {
  position: absolute; top: 0; inset-inline-start: 0; height: 100%; width: min(330px, 85%);
  background: var(--cream); padding: 28px; box-shadow: var(--shadow-lg);
  transform: translateX(-100%); transition: var(--transition); display: flex; flex-direction: column; gap: 8px;
}
html[dir="ltr"] .mobile-panel { transform: translateX(-100%); }
html[dir="rtl"] .mobile-panel { transform: translateX(100%); }
.mobile-menu.open .mobile-panel { transform: translateX(0); }
.mobile-panel .brand { margin-bottom: 28px; }
.mobile-panel a.nav-links-item {
  padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 600;
  display: block; transition: var(--transition);
}
.mobile-panel a.nav-links-item:hover, .mobile-panel a.nav-links-item.active { background: var(--roast); color: var(--cream); }
.mobile-panel .close-mobile { margin-top: auto; }

/* ---------- Drawer (Cart / Wishlist) ---------- */
.drawer-root { position: fixed; inset: 0; z-index: 300; visibility: hidden; opacity: 0; transition: var(--transition); }
.drawer-root.open { visibility: visible; opacity: 1; }
.drawer-overlay { position: absolute; inset: 0; background: rgba(37, 22, 15,.5); backdrop-filter: blur(4px); }
.drawer {
  position: absolute; top: 0; inset-inline-end: 0; height: 100%; width: min(420px, 100%);
  background: var(--cream); box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
  transform: translateX(100%); transition: var(--transition);
}
html[dir="rtl"] .drawer { transform: translateX(-100%); }
.drawer-root.open .drawer { transform: translateX(0); }
.drawer-head { padding: 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.drawer-head h3 { font-size: 1.35rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.drawer-foot { padding: 22px 24px; border-top: 1px solid var(--line); background: var(--cream-2); }
.drawer-foot .row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-weight: 700; font-size: 1.1rem; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state svg { width: 64px; height: 64px; margin: 0 auto 18px; color: var(--beige); }
.empty-state h4 { color: var(--ink); margin-bottom: 6px; font-size: 1.15rem; }

.drawer-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.drawer-item img { width: 76px; height: 76px; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
.drawer-item-info { flex: 1; min-width: 0; }
.drawer-item-title { font-weight: 700; font-size: .92rem; margin-bottom: 2px; }
.drawer-item-meta { font-size: .75rem; color: var(--muted); margin-bottom: 8px; }
.drawer-item-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.qty-control { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 100px; overflow: hidden; }
.qty-control button { width: 30px; height: 30px; display: grid; place-items: center; font-weight: 700; transition: var(--transition); }
.qty-control button:hover { background: var(--beige); }
.qty-control span { min-width: 24px; text-align: center; font-size: .85rem; font-weight: 700; }
.remove-btn { color: var(--muted); font-size: .75rem; display: inline-flex; align-items: center; gap: 4px; transition: var(--transition); }
.remove-btn:hover { color: #b4453b; }
.price-tag { color: var(--caramel-dark); font-weight: 800; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--roast); color: var(--cream); }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; padding-block: 80px 96px; min-height: 620px; }
.hero-content { position: relative; z-index: 2; }
.hero .eyebrow { color: var(--sage-light); }
.hero .eyebrow::before { background: var(--sage-light); }
.hero h1 { font-size: clamp(2.6rem, 5.5vw, 4.6rem); margin-bottom: 22px; }
.hero h1 span { color: var(--caramel); display: block; }
.hero p { color: rgba(251, 247, 240,.78); max-width: 480px; font-size: 1.05rem; margin-bottom: 34px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-visual { position: relative; }
.hero-visual::before {
  content: ''; position: absolute; width: 130%; height: 130%; border-radius: 50%;
  background: radial-gradient(circle, rgba(192,133,82,.28), transparent 62%);
  top: -15%; inset-inline-start: -15%; z-index: 0;
}
.hero-img-wrap {
  position: relative; z-index: 1; border-radius: 220px 220px 26px 26px; overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 4/4.6;
}
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.hero-img-wrap:hover img { transform: scale(1.06); }
.hero-float {
  position: absolute; z-index: 3; background: var(--cream); color: var(--roast);
  border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 12px;
}
.hero-float .stars-mini { color: var(--caramel); font-size: .9rem; }
.hero-float strong { display: block; font-size: 1.1rem; line-height: 1.2; }
.hero-float small { font-size: .72rem; color: var(--muted); }
.hero-float.one { bottom: 40px; inset-inline-start: -30px; }
.hero-float.two { top: 60px; inset-inline-end: -28px; }
.hero-float .fav-bubble { width: 40px; height: 40px; border-radius: 50%; background: var(--sage-light); color: var(--roast); display: grid; place-items: center; }
.hero-shape { position: absolute; bottom: -1px; inset-inline: 0; z-index: 2; line-height: 0; color: var(--cream); }
.hero-shape svg { width: 100%; height: 60px; }

/* ---------- Sections ---------- */
.section { padding-block: 90px; }
.section.alt { background: var(--cream-2); }
.section.tint { background: linear-gradient(180deg, var(--cream-2), var(--cream)); }

/* Product cards grid */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.product-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: var(--transition); position: relative;
  border: 1px solid rgba(37, 22, 15,.05); display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.product-media { position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--beige); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.22,.8,.3,1); }
.product-card:hover .product-media img { transform: scale(1.09); }
.product-tag {
  position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2;
  background: var(--roast); color: var(--cream); font-size: .68rem; font-weight: 700;
  padding: 6px 12px; border-radius: 100px; letter-spacing: .03em;
}
.fav-btn {
  position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.92);
  display: grid; place-items: center; transition: var(--transition); color: var(--roast);
}
.fav-btn:hover { transform: scale(1.1); color: #b4453b; }
.fav-btn.active { color: #b4453b; background: #fff0ef; }
.product-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.product-name { display: flex; justify-content: space-between; align-items: start; gap: 10px; margin-bottom: 8px; }
.product-name h3 { font-size: 1.12rem; font-weight: 700; }
.rating { color: var(--caramel); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.product-desc { color: var(--muted); font-size: .86rem; line-height: 1.65; margin-bottom: 18px; flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-price { font-weight: 800; font-size: 1.15rem; color: var(--caramel-dark); }
.product-price small { font-size: .7rem; color: var(--muted); font-weight: 600; }
.card-actions { display: flex; gap: 8px; }
.card-actions .icon-btn { width: 42px; height: 42px; border-radius: 12px; background: var(--roast); color: var(--cream); border-color: var(--roast); }
.card-actions .icon-btn:hover { background: var(--caramel); border-color: var(--caramel); color: #fff; }

/* Offers cards */
.offer-card {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 380px;
  display: flex; flex-direction: column; justify-content: flex-end; color: #fff;
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.offer-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.offer-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.offer-card:hover img { transform: scale(1.08); }
.offer-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(37, 22, 15,.05) 20%, rgba(37, 22, 15,.88) 100%); }
.offer-body { position: relative; z-index: 2; padding: 28px; }
.offer-badge { position: absolute; top: 20px; inset-inline-start: 20px; z-index: 2; background: var(--caramel); color: #fff; padding: 7px 14px; border-radius: 100px; font-size: .72rem; font-weight: 700; }
.offer-body h3 { font-size: 1.5rem; margin-bottom: 8px; }
.offer-body p { font-size: .88rem; color: rgba(255,255,255,.82); margin-bottom: 18px; }
.offer-price { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.offer-price strong { font-size: 1.5rem; color: var(--caramel); }
.offer-price del { color: rgba(255,255,255,.55); font-size: .95rem; }

/* About split */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-images { position: relative; }
.about-images img.main-img { border-radius: 200px 200px 24px 24px; width: 100%; aspect-ratio: 4/4.3; object-fit: cover; box-shadow: var(--shadow-md); }
.about-images .small-img { position: absolute; bottom: -30px; inset-inline-end: -30px; width: 46%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; border: 6px solid var(--cream); box-shadow: var(--shadow-md); }
.about-split .section-desc { margin-bottom: 28px; }
.feature-row { display: flex; gap: 16px; margin-bottom: 20px; }
.feature-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--beige); color: var(--coffee); display: grid; place-items: center; flex-shrink: 0; }
.feature-icon svg { width: 22px; height: 22px; }
.feature-row h4 { font-size: 1.02rem; margin-bottom: 4px; }
.feature-row p { font-size: .85rem; color: var(--muted); }

/* Reviews */
.review-card {
  background: var(--white); border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow-sm); transition: var(--transition); height: 100%;
}
.review-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.review-stars { color: var(--caramel); margin-bottom: 16px; letter-spacing: 2px; }
.review-text { color: var(--roast-2); font-size: .95rem; margin-bottom: 22px; line-height: 1.8; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--sage-light); color: var(--roast); display: grid; place-items: center; font-weight: 800; }
.review-author strong { display: block; font-size: .9rem; }
.review-author small { font-size: .72rem; color: var(--muted); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--roast); color: var(--cream); padding-block: 70px 90px; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(192,133,82,.22), transparent 70%);
  top: -120px; inset-inline-end: -60px;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 12px; }
.page-hero p { color: rgba(251, 247, 240,.75); font-size: 1.05rem; max-width: 560px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .8rem; margin-bottom: 18px; color: var(--sage-light); }
.breadcrumb a:hover { color: var(--caramel); }

/* ---------- Menu filters ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 28px; }
.filter-btn {
  padding: 10px 20px; border-radius: 100px; border: 1px solid var(--line); background: var(--white);
  font-weight: 600; font-size: .86rem; transition: var(--transition);
}
.filter-btn:hover { border-color: var(--caramel); color: var(--caramel-dark); }
.filter-btn.active { background: var(--roast); color: var(--cream); border-color: var(--roast); }
.search-box { position: relative; max-width: 420px; margin: 0 auto 36px; }
.search-box svg { position: absolute; inset-inline-start: 18px; top: 50%; transform: translateY(-50%); width: 19px; color: var(--muted); }
.search-box input {
  width: 100%; padding: 14px 20px 14px 48px; border-radius: 100px; border: 1px solid var(--line);
  background: var(--white); outline: none; transition: var(--transition); font-size: .92rem;
}
html[dir="rtl"] .search-box input { padding: 14px 48px 14px 20px; }
.search-box input:focus { border-color: var(--caramel); box-shadow: 0 0 0 4px rgba(192,133,82,.12); }
.results-count { text-align: center; color: var(--muted); font-size: .85rem; margin-bottom: 20px; }

/* ---------- Product detail ---------- */
.detail-wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: start; }
.detail-image { border-radius: 220px 220px 24px 24px; overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/4.2; background: var(--beige); }
.detail-image img { width: 100%; height: 100%; object-fit: cover; }
.detail-info h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; }
.detail-price { font-size: 1.8rem; color: var(--caramel-dark); font-weight: 800; margin-bottom: 18px; }
.detail-price small { font-size: .8rem; color: var(--muted); font-weight: 600; }
.detail-desc { color: var(--muted); margin-bottom: 28px; line-height: 1.85; }
.option-group { margin-bottom: 26px; }
.option-group h4 { font-size: .95rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.option-group h4 span { color: var(--caramel); }
.option-row { display: flex; flex-wrap: wrap; gap: 10px; }
.option-chip {
  padding: 11px 20px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white);
  font-weight: 600; font-size: .86rem; transition: var(--transition); display: inline-flex; gap: 8px; align-items: center;
}
.option-chip:hover { border-color: var(--caramel); }
.option-chip.active { background: var(--roast); color: var(--cream); border-color: var(--roast); }
.option-chip small { opacity: .7; font-size: .75rem; }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.detail-extra-box { background: var(--cream-2); border-radius: var(--radius-sm); padding: 22px; margin-bottom: 26px; }
.ingredients-box { border-top: 1px solid var(--line); padding-top: 22px; }
.ingredients-box h4 { margin-bottom: 8px; }
.ingredients-box p { color: var(--muted); font-size: .9rem; }

/* ---------- About page ---------- */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.story-grid.reverse .story-visual { order: 2; }
.story-visual img { width: 100%; aspect-ratio: 4/3.2; object-fit: cover; border-radius: 200px 200px 22px 22px; box-shadow: var(--shadow-sm); }
.vision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.vision-card { background: var(--white); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm); border-top: 4px solid var(--caramel); }
.vision-card.sage { border-top-color: var(--sage); }
.vision-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.vision-card p { color: var(--muted); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-item strong { display: block; font-size: 2.6rem; color: var(--caramel); font-family: var(--font-display); line-height: 1; }
html[lang="ar"] .stat-item strong { font-family: var(--font-ar); font-weight: 800; }
.stat-item span { color: var(--muted); font-size: .85rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); transition: var(--transition); }
.gallery-grid img:hover { transform: scale(1.04); box-shadow: var(--shadow-md); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: start; }
.form-card { background: var(--white); border-radius: var(--radius); padding: 38px; box-shadow: var(--shadow-sm); }
.form-card h3 { font-size: 1.4rem; margin-bottom: 22px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 8px; }
.form-field input, .form-field textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--cream); outline: none; transition: var(--transition); font-size: .92rem;
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--caramel); background: var(--white); box-shadow: 0 0 0 4px rgba(192,133,82,.1); }
.form-field .error { color: #b4453b; font-size: .76rem; margin-top: 5px; display: none; }
.form-field.invalid .error { display: block; }
.form-field.invalid input, .form-field.invalid textarea { border-color: #b4453b; }
.contact-info-card { background: var(--roast); color: var(--cream); border-radius: var(--radius); padding: 38px; margin-bottom: 22px; }
.contact-info-card h3 { font-size: 1.4rem; margin-bottom: 22px; }
.info-line { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.info-line svg { width: 21px; color: var(--caramel); flex-shrink: 0; margin-top: 4px; }
.info-line span { display: block; font-size: .78rem; color: rgba(251, 247, 240,.6); }
.info-line strong { font-size: .94rem; font-weight: 600; }
.social-row { display: flex; gap: 10px; margin-top: 24px; }
.social-row a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(251, 247, 240,.25); display: grid; place-items: center; transition: var(--transition); }
.social-row a:hover { background: var(--caramel); border-color: var(--caramel); transform: translateY(-3px); }
.map-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--white); }
.map-card iframe { width: 100%; height: 300px; border: 0; display: block; }
.map-note { padding: 12px 18px; font-size: .72rem; color: var(--muted); background: var(--cream-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--roast-2); color: var(--cream); padding-block: 70px 26px; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 50px; }
.footer-brand .brand-mark { background: var(--cream); color: var(--roast); border-color: var(--caramel); }
.footer-brand p { color: rgba(251, 247, 240,.65); font-size: .88rem; margin-top: 18px; max-width: 300px; }
.footer-col h4 { font-size: 1rem; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; inset-inline-start: 0; width: 32px; height: 2px; background: var(--caramel); }
.footer-col ul { list-style: none; display: grid; gap: 11px; }
.footer-col a, .footer-col li { color: rgba(251, 247, 240,.68); font-size: .87rem; transition: var(--transition); }
.footer-col a:hover { color: var(--caramel); padding-inline-start: 5px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(251, 247, 240,.2); display: grid; place-items: center; transition: var(--transition); }
.footer-social a:hover { background: var(--caramel); border-color: var(--caramel); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(251, 247, 240,.12); padding-top: 22px; text-align: center; color: rgba(251, 247, 240,.5); font-size: .8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- Toast ---------- */
.toast-stack { position: fixed; bottom: 26px; inset-inline-end: 26px; z-index: 500; display: grid; gap: 10px; pointer-events: none; }
.toast {
  background: var(--roast); color: var(--cream); padding: 14px 20px; border-radius: 14px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px; font-size: .88rem; font-weight: 600;
  animation: toastIn .35s cubic-bezier(.22,.8,.3,1); pointer-events: auto; border-inline-start: 4px solid var(--sage-light);
}
.toast.out { animation: toastOut .3s ease forwards; }
.toast svg { color: var(--sage-light); width: 20px; height: 20px; flex-shrink: 0; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }

/* ---------- Modal ---------- */
.modal-root { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; visibility: hidden; opacity: 0; transition: var(--transition); padding: 20px; }
.modal-root.open { visibility: visible; opacity: 1; }
.modal-overlay { position: absolute; inset: 0; background: rgba(37, 22, 15,.6); backdrop-filter: blur(4px); }
.modal-box {
  position: relative; z-index: 2; background: var(--cream); border-radius: var(--radius); width: min(560px, 100%);
  max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); transform: scale(.94); transition: var(--transition);
}
.modal-root.open .modal-box { transform: scale(1); }
.modal-box img { width: 100%; height: 220px; object-fit: cover; }
.modal-content { padding: 28px; }
.modal-content h3 { font-size: 1.5rem; margin-bottom: 10px; }
.modal-content p { color: var(--muted); margin-bottom: 20px; }
.modal-close { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow-sm); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.8,.3,1); }
.reveal.show { opacity: 1; transform: none; }

/* ---------- Loading skeleton ---------- */
.skeleton { background: linear-gradient(90deg, var(--cream-2) 25%, var(--beige) 50%, var(--cream-2) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .hamburger { display: grid; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { gap: 36px; min-height: auto; padding-block: 60px 80px; }
  .hero-float.one { inset-inline-start: -10px; }
  .hero-float.two { inset-inline-end: -10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .grid-3, .detail-wrap, .about-split, .story-grid, .contact-grid, .vision-grid { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-buttons { justify-content: center; }
  .hero p { margin-inline: auto; }
  .hero-visual { max-width: 460px; margin-inline: auto; }
  .story-grid.reverse .story-visual { order: 0; }
  .about-images { max-width: 460px; margin-inline: auto; }
  .detail-image { max-width: 480px; margin-inline: auto; }
  .page-hero { padding-block: 55px 70px; }
  .section { padding-block: 65px; }
}

@media (max-width: 560px) {
  .grid-4, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .brand-text span { display: none; }
  .hero h1 { font-size: 2.5rem; }
  .hero-float { padding: 10px 13px; }
  .hero-float.one { bottom: 14px; }
  .hero-float.two { top: 20px; }
  .hero-float small { display: none; }
  .section-title { font-size: 1.7rem; }
  .footer-bottom { justify-content: center; text-align: center; }
  .form-card, .contact-info-card { padding: 26px; }
  .filter-btn { padding: 8px 14px; font-size: .78rem; }
  .detail-actions .btn { width: 100%; }
  .toast-stack { inset-inline: 16px; bottom: 16px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
