/* ============================================================
   Akbar Ali Quail & Duck Hatchery Farms - main stylesheet
   ============================================================ */

:root {
  --brand-primary: #0F5C5E;
  --brand-primary-dark: #093F41;
  --brand-primary-light: #2A7879;
  --brand-accent: #E7AF52;
  --brand-accent-hover: #D99A38;
  --brand-on-accent: #182C2C;
  --brand-accent-dark: #A66C1A;
  --brand-secondary: #A86343;
  --brand-cream: #FBF7EF;
  --surface: #FFFFFF;
  --surface-muted: #F1ECE2;
  --text: #203334;
  --text-muted: #566A69;
  --border: #DDDCD2;
  --success: #1F8B4C;
  --warning: #D08A1A;
  --error: #B3342A;
  --whatsapp: #25D366;
  --whatsapp-dark: #1DA851;
  --call: #2563EB;
  --order: #E7AF52;

  --r: 10px;
  --r-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 30px rgba(0,0,0,.12);

  --font-base: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Alvi Nastaleeq", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--brand-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-primary); text-decoration: none; }
a:hover { color: var(--brand-primary-dark); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 { margin: 0 0 .75rem; line-height: 1.25; color: var(--text); font-weight: 700; }
h1 { font-size: clamp(1.875rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

.font-urdu { font-family: var(--font-urdu); direction: rtl; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 768px) { .container { padding: 0 1.5rem; } }

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--brand-accent-dark); }
.mb-2 { margin-bottom: .5rem; } .mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; }
.mt-2 { margin-top: .5rem; } .mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; }
.gap-2 { gap: .5rem; } .gap-4 { gap: 1rem; }
.flex { display: flex; } .grid { display: grid; }
.items-center { align-items: center; } .justify-between { justify-content: space-between; } .justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.no-js .no-js-hide, html.no-js .lang-switch-script { display: none; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--brand-primary); color: #fff; padding: .5rem 1rem; z-index: 9999; }
.skip-link:focus { left: 0; }

/* ===== Grid ===== */
.grid { gap: 1.25rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 639px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .65rem 1.15rem; border-radius: var(--r); font-weight: 600;
  border: 1px solid transparent; cursor: pointer; font-family: inherit; font-size: .95rem;
  text-decoration: none; line-height: 1.2; transition: all .15s ease;
  white-space: nowrap; min-height: 44px;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: .45rem .85rem; font-size: .85rem; min-height: 36px; }
.btn-lg { padding: .9rem 1.6rem; font-size: 1.05rem; min-height: 52px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand-primary); color: #fff; }
.btn-primary:hover { background: var(--brand-primary-dark); color: #fff; }
.btn-accent {
  background: var(--brand-accent);
  color: var(--brand-on-accent);
  font-weight: 700;
  letter-spacing: .01em;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(231,175,82, .35);
}
.btn-accent:hover {
  background: var(--brand-accent-hover);
  color: var(--brand-on-accent);
  box-shadow: 0 4px 14px rgba(231,175,82, .45);
}
.btn-outline { background: transparent; color: var(--brand-primary); border-color: var(--brand-primary); }
.btn-outline:hover { background: var(--brand-primary); color: #fff; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; font-weight: 700; }
.btn-whatsapp:hover { background: var(--whatsapp-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--surface-muted); color: var(--text); }
.btn-pill { border-radius: 999px; }
.btn-light { background: #fff; color: var(--brand-primary-dark); font-weight: 700; }
.btn-light:hover { background: var(--brand-cream); color: var(--brand-primary-dark); }

/* Filter / tab chips (gallery, products, videos) */
.gallery-tabs,
.video-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: 1.75rem;
}
.gallery-tabs a,
.filter-chip,
.video-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 40px;
  padding: .55rem 1.05rem;
  border-radius: 999px;
  border: 1.5px solid #CDDAD7;
  background: #fff;
  color: #093F41;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.gallery-tabs a:hover,
.filter-chip:hover,
.video-filter:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary-dark);
  background: #EDF5F3;
  text-decoration: none;
}
.gallery-tabs a.active,
.filter-chip.active,
.video-filter.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(15,92,94, .28);
}
.gallery-tabs a.active:hover,
.filter-chip.active:hover,
.video-filter.active:hover {
  background: var(--brand-primary-dark);
  border-color: var(--brand-primary-dark);
  color: #fff;
}
.video-filter .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 .35rem;
  border-radius: 999px;
  background: rgba(0,0,0,.12);
  color: inherit;
  font-size: .75rem;
  font-weight: 700;
}
.video-filter.active .badge { background: rgba(255,255,255,.22); }

/* ===== Top bar ===== */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow-sm); }
.topbar { background: var(--brand-primary-dark); color: #fff; font-size: .85rem; }
.topbar a { color: #fff; opacity: .9; }
.topbar a:hover { opacity: 1; text-decoration: none; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: .5rem 1rem; flex-wrap: wrap; gap: .5rem; }
.lang-switch { display: flex; gap: .25rem; }
.lang-switch a { padding: .2rem .55rem; border-radius: 4px; font-size: .8rem; }
.lang-switch a.active { background: rgba(255,255,255,.15); opacity: 1; }

.nav { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1rem; gap: 1rem; }
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.nav-logo:hover { text-decoration: none; color: inherit; }
.nav-logo__mark {
  width: 52px;
  height: 52px;
  object-fit: contain;
  padding: 3px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(9,63,65, .18);
  background: #fff;
}
.nav-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}
.nav-logo__text strong {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--brand-primary-dark);
}
.nav-logo__text small {
  font-size: .78rem;
  font-weight: 500;
  color: var(--brand-primary);
  white-space: nowrap;
}
@media (max-width: 420px) {
  .nav-logo__text small { display: none; }
  .nav-logo__mark { width: 46px; height: 46px; }
}
.nav-links { display: none; gap: 1.5rem; align-items: center; }
.nav-links a { color: var(--text); font-weight: 500; }
.nav-links a:hover { color: var(--brand-primary); text-decoration: none; }
.nav-links a.btn,
.nav-links a.btn:hover {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.nav-links a.btn-accent {
  color: var(--brand-on-accent);
  background: var(--brand-accent);
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(231,175,82, .35);
}
.nav-links a.btn-accent:hover {
  background: var(--brand-accent-hover);
  color: var(--brand-on-accent);
  box-shadow: 0 4px 14px rgba(231,175,82, .45);
}
.nav-toggle { background: none; border: 0; font-size: 1.6rem; cursor: pointer; padding: .5rem; color: var(--text); }
@media (min-width: 1024px) { .nav-links { display: flex; } .nav-toggle { display: none; } }
.mobile-menu { display: none; flex-direction: column; gap: .25rem; padding: 1rem 0; border-top: 1px solid var(--border); }
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--text); padding: .5rem 0; }

/* ===== Hero ===== */
.hero { background: linear-gradient(135deg, #FBF7EF 0%, #F1ECE2 100%); padding: 3rem 0; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -100px; right: -100px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(15,92,94,.08) 0%, transparent 70%); border-radius: 50%; }
.hero-inner { display: grid; gap: 2.5rem; align-items: center; position: relative; }
@media (min-width: 1024px) { .hero-inner { grid-template-columns: 1.1fr 1fr; } }
.hero h1 { color: var(--brand-primary-dark); margin: 0 0 1rem; }
.hero .tagline { font-size: 1.1rem; color: var(--text-muted); margin: 0 0 1.5rem; max-width: 600px; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.hero-badges { display: flex; gap: .5rem; flex-wrap: wrap; }
.hero-img { position: relative; }
.hero-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }

/* ===== Sections ===== */
.section { padding: 3rem 0; }
@media (min-width: 768px) { .section { padding: 4.5rem 0; } }
.section-cream { background: var(--brand-cream); }
.section-muted { background: var(--surface-muted); }
.section-dark {
  background: linear-gradient(145deg, #082F31 0%, #0F5C5E 55%, #093F41 100%);
  color: #FBF7EF;
}
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 { color: #FBF7EF; }
.section-dark p,
.section-dark li { color: rgba(251,247,239, .9); }
.section-dark strong { color: var(--brand-accent); }
.section-dark .farm-map {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.section-dark .farm-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  min-height: 280px;
}

/* ===== Cards ===== */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.card-body { padding: 1.25rem; }

/* ===== Trust tile ===== */
.trust-tile { background: var(--surface); padding: 1.5rem; border-radius: var(--r-lg); border: 1px solid var(--border); display: flex; gap: 1rem; align-items: flex-start; transition: all .2s ease; }
.trust-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.trust-tile .icon { width: 48px; height: 48px; background: var(--brand-cream); color: var(--brand-primary); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.trust-tile h4 { margin: 0 0 .25rem; font-size: 1rem; }
.trust-tile p { margin: 0; color: var(--text-muted); font-size: .9rem; }

/* ===== Product card ===== */
.product-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: all .2s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-primary-light); }
.product-card .img-wrap { display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--surface-muted); }
.product-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.product-card:hover .img-wrap img { transform: scale(1.04); }
.product-card .body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.product-card .meta { display: flex; gap: .35rem; margin-bottom: .5rem; flex-wrap: wrap; }
.product-card h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.product-card .price { font-size: 1.2rem; font-weight: 800; color: var(--brand-primary-dark); margin: .5rem 0; }
.product-card .actions { margin-top: auto; }
.product-card a.btn { width: 100%; }

/* ===== Badges ===== */
.badge { display: inline-block; padding: .25rem .65rem; border-radius: 999px; font-size: .75rem; font-weight: 600; line-height: 1.4; }
.badge-primary { background: var(--brand-primary); color: #fff; }
.badge-accent { background: var(--brand-accent); color: #2A1A05; }
.badge-success { background: #DCF4E4; color: var(--success); }
.badge-warn { background: #FCEBC7; color: var(--warning); }
.badge-error { background: #FAD9D5; color: var(--error); }
.badge-muted { background: var(--surface-muted); color: var(--text-muted); }

/* ===== Forms ===== */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .9rem; }
.form-control, input[type="text"], input[type="tel"], input[type="email"], input[type="number"], input[type="password"], textarea, select {
  width: 100%; padding: .65rem .85rem; border: 1px solid var(--border); border-radius: var(--r); font-family: inherit; font-size: 1rem; background: var(--surface); min-height: 44px;
}
textarea { min-height: 100px; resize: vertical; }
.form-control:focus, input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(15,92,94,.15); }
.form-hint { font-size: .8rem; color: var(--text-muted); margin: .35rem 0 0; }
.form-error { color: var(--error); font-size: .85rem; margin: .35rem 0 0; font-weight: 500; }
.form-success { color: var(--success); font-size: .9rem; }

/* ===== Quantity stepper ===== */
.qty-control { display: inline-flex; align-items: stretch; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.qty-control button { background: var(--surface-muted); border: 0; padding: .65rem 1rem; cursor: pointer; font-size: 1.1rem; font-weight: 700; color: var(--brand-primary); }
.qty-control button:hover { background: var(--brand-cream); }
.qty-control input { width: 80px; text-align: center; border: 0; border-left: 1px solid var(--border); border-right: 1px solid var(--border); border-radius: 0; min-height: 0; }
.qty-control input:focus { box-shadow: none; }

/* ===== Gallery ===== */
.gallery-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-grid .gallery-item {
  position: relative;
  display: block;
  aspect-ratio: 1/1;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface-muted);
  text-decoration: none;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,.08));
}
.gallery-grid .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.gallery-grid .gallery-item:hover img { transform: scale(1.05); }
.gallery-grid .gallery-item .cat {
  position: absolute;
  left: .7rem;
  bottom: .7rem;
  z-index: 1;
  margin: 0;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: rgba(8,35,37, .88);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
  backdrop-filter: blur(4px);
}

/* ===== Video card ===== */
.video-card { aspect-ratio: 16/9; background: #000; border-radius: var(--r); overflow: hidden; position: relative; }
.video-card iframe, .video-card video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ===== Footer ===== */
.site-footer { background: var(--brand-primary-dark); color: #fff; padding: 3rem 0 1.5rem; margin-top: 4rem; }
.site-footer h4 { color: var(--brand-accent); margin-bottom: 1rem; font-size: 1rem; }
.site-footer h4 { color: var(--brand-cream); }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding-top: 1rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .85rem; color: rgba(255,255,255,.7); }

/* ===== Sticky mobile bar ===== */
.sticky-mobile-bar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; box-shadow: 0 -2px 10px rgba(0,0,0,.12); z-index: 60; border-top: 1px solid var(--border); }
.sticky-mobile-bar a { flex: 1; padding: .75rem .5rem; text-align: center; color: #fff; font-weight: 600; font-size: .8rem; display: flex; flex-direction: column; align-items: center; gap: .15rem; }
.sticky-mobile-bar .ic-whatsapp { background: var(--whatsapp); }
.sticky-mobile-bar .ic-call { background: var(--call); }
.sticky-mobile-bar .ic-order { background: var(--order); color: #2A1A05; }
@media (min-width: 1024px) { .sticky-mobile-bar { display: none; } }
body { padding-bottom: 70px; }
@media (min-width: 1024px) { body { padding-bottom: 0; } }

/* ===== WhatsApp FAB ===== */
.whatsapp-fab { position: fixed; bottom: 80px; right: 20px; width: 56px; height: 56px; background: var(--whatsapp); color: #fff; border-radius: 50%; display: none; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(37,211,102,.4); z-index: 55; transition: all .2s ease; }
.whatsapp-fab:hover { transform: scale(1.08); color: #fff; text-decoration: none; }
@media (min-width: 1024px) { .whatsapp-fab { display: flex; } }

/* ===== Process steps ===== */
.process-steps { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .process-steps { grid-template-columns: repeat(4, 1fr); } }
.process-step { text-align: center; padding: 1.5rem 1rem; }
.process-step .num { width: 48px; height: 48px; background: var(--brand-primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.25rem; margin: 0 auto 1rem; }
.process-step h4 { margin: 0 0 .5rem; }
.process-step p { margin: 0; color: var(--text-muted); font-size: .9rem; }

/* ===== Order summary ===== */
.order-summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.5rem; }
.order-line { display: flex; justify-content: space-between; padding: .75rem 0; border-bottom: 1px dashed var(--border); }
.order-line:last-child { border-bottom: 0; font-weight: 700; }

/* ===== Toasts ===== */
.toast-container { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: .5rem; }
.toast { padding: .75rem 1.25rem; border-radius: var(--r); color: #fff; box-shadow: var(--shadow-lg); font-size: .9rem; }
.toast.success { background: var(--success); }
.toast.error { background: var(--error); }
.toast.info { background: var(--call); }

/* ===== Payment cards ===== */
.payment-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.25rem; }
.payment-card h4 { color: var(--brand-primary); }

/* ===== Contact ===== */
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.map-frame { aspect-ratio: 16/10; border: 0; border-radius: var(--r-lg); overflow: hidden; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ===== Admin ===== */
.admin-layout { display: grid; min-height: 100vh; grid-template-rows: auto 1fr; }
.admin-topbar { background: var(--brand-primary-dark); color: #fff; padding: .75rem 1rem; display: flex; justify-content: space-between; align-items: center; }
.admin-topbar a { color: #fff; }
.admin-body { display: grid; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .admin-body { grid-template-columns: 240px 1fr; } }
.admin-sidebar { background: var(--surface); border-right: 1px solid var(--border); padding: 1rem 0; min-height: 100%; }
.admin-sidebar a { display: block; padding: .6rem 1.25rem; color: var(--text); border-left: 3px solid transparent; }
.admin-sidebar a.active, .admin-sidebar a:hover { background: var(--surface-muted); border-left-color: var(--brand-primary); color: var(--brand-primary-dark); text-decoration: none; }
.admin-main { padding: 1.5rem 1rem; }
@media (min-width: 1024px) { .admin-main { padding: 2rem; } }
.kpi-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .kpi-grid { grid-template-columns: repeat(4, 1fr); } }
.kpi-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.25rem; }
.kpi-card .label { font-size: .85rem; color: var(--text-muted); }
.kpi-card .value { font-size: 1.75rem; font-weight: 800; color: var(--brand-primary-dark); }

.table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.table th, .table td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); font-size: .9rem; }
.table th { background: var(--surface-muted); font-weight: 700; color: var(--text); }
.table tr:hover td { background: rgba(15,92,94,.04); }
@media (max-width: 767px) { .table-responsive { overflow-x: auto; } }

.alert { padding: .85rem 1rem; border-radius: var(--r); margin-bottom: 1rem; border: 1px solid; }
.alert-success { background: #DCF4E4; color: var(--success); border-color: var(--success); }
.alert-error { background: #FAD9D5; color: var(--error); border-color: var(--error); }
.alert-info { background: #E0E7FF; color: var(--call); border-color: var(--call); }

/* ===== Image placeholder ===== */
.img-placeholder { background: var(--surface-muted); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: .9rem; aspect-ratio: 4/3; border-radius: var(--r); }

/* ===== Utility ===== */
.hidden { display: none !important; }
[dir="rtl"] { text-align: right; }

/* ============================================================
   UPGRADED HOMEPAGE — v2 (cinematic, real-estate feel)
   ============================================================ */

/* ---- Cinematic hero with parallax image & overlay ---- */
.hero-cinema {
  position: relative;
  min-height: min(88vh, 720px);
  background: #203334;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
}
@media (min-width: 1024px) { .hero-cinema { min-height: min(90vh, 780px); } }
.hero-cinema .hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.04);
  transition: transform 10s ease-out;
}
.hero-cinema:hover .hero-bg { transform: scale(1.08); }
.hero-cinema::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(105deg, rgba(8,35,37, .92) 0%, rgba(8,35,37, .72) 38%, rgba(8,35,37, .35) 68%, rgba(8,35,37, .15) 100%),
    linear-gradient(0deg, rgba(5,25,27, .78) 0%, transparent 48%);
}
.hero-cinema--photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  box-shadow: inset 0 0 140px rgba(0,0,0,.4);
}
.hero-cinema .hero-content { position: relative; z-index: 2; padding: 5rem clamp(1rem, 3vw, 1.5rem) 4rem; max-width: 720px; width: 100%; text-align: left; }
.hero-cinema .brand-mark {
  margin: 0 0 1rem;
  font-family: var(--font-display, Georgia, "Times New Roman", serif);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: .01em;
  color: #F2CB88;
  text-shadow: 0 2px 18px rgba(0,0,0,.55);
  max-width: 22ch;
  line-height: 1.2;
}
.hero-cinema .hero-cta .btn-whatsapp {
  background: #25D366;
  color: #fff !important;
  border: 1px solid transparent;
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
}
.hero-cinema .hero-cta .btn-whatsapp:hover {
  background: #1ebe57;
  color: #fff !important;
}
.hero-cinema .hero-cta .btn-outline-light {
  background: rgba(255,255,255,.22);
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.85);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
}
.hero-cinema .hero-cta .btn-outline-light:hover {
  background: rgba(255,255,255,.34);
  color: #fff !important;
  border-color: #fff;
}
.hero-cinema .eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .85rem; border-radius: 999px;
  background: rgba(231,175,82,.18); color: #F2CB88;
  border: 1px solid rgba(231,175,82,.4);
  font-size: .8rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; margin-bottom: 1rem;
}
.hero-cinema .eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #FF6A2A; box-shadow: 0 0 0 4px rgba(255,106,42,.3); animation: pulseDot 1.6s ease-in-out infinite; }
@keyframes pulseDot { 0%,100% { box-shadow: 0 0 0 4px rgba(255,106,42,.3); } 50% { box-shadow: 0 0 0 9px rgba(255,106,42,0); } }
.hero-cinema h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.1; margin: 0 0 1rem; text-shadow: 0 2px 20px rgba(0,0,0,.55); }
.hero-cinema h1 .accent { color: #F2CB88; }
.hero-cinema .tagline { color: rgba(255,255,255,.94); font-size: clamp(1rem, 1.8vw, 1.2rem); max-width: 620px; margin: 0 0 1.75rem; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.hero-cinema .hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.hero-cinema .hero-meta { display: flex; gap: 1.5rem; flex-wrap: wrap; color: rgba(255,255,255,.85); font-size: .9rem; }
.hero-cinema .hero-meta .pill {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.12); backdrop-filter: blur(6px);
  padding: .35rem .75rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
}
.hero-cinema .scroll-cue {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  z-index: 2; color: rgba(255,255,255,.7); font-size: .85rem;
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  animation: float 2.5s ease-in-out infinite;
}
.hero-cinema .scroll-cue svg { width: 20px; height: 20px; }
@keyframes float { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* ---- Floating stat tiles overlaid on hero ---- */
.hero-stats { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); margin-top: 2rem; }
@media (min-width: 640px) { .hero-stats { grid-template-columns: repeat(4, 1fr); } }
.hero-stat {
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  color: #fff;
  display: flex; flex-direction: column; gap: .15rem;
}
.hero-stat .num { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 800; color: #F2CB88; line-height: 1; }
.hero-stat .lbl { font-size: .8rem; opacity: .9; letter-spacing: .02em; }

/* ---- Section header (centered title with eyebrow chip) ---- */
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head .eyebrow {
  display: inline-block;
  padding: .35rem .8rem; border-radius: 999px;
  background: rgba(15,92,94,.08); color: var(--brand-primary-dark);
  border: 1px solid rgba(15,92,94,.18);
  font-size: .75rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: .75rem;
}
.section-head h2 { margin: 0 0 .5rem; }
.section-head p { color: var(--text-muted); max-width: 640px; margin: 0 auto; }

/* ---- Trust strip / features with images ---- */
.feature-row {
  display: grid; gap: 1.25rem;
}
@media (min-width: 768px) { .feature-row { grid-template-columns: repeat(4, 1fr); } }
.feature-tile {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all .25s ease;
  position: relative;
}
.feature-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand-primary-light); }
.feature-tile .icon-circle {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 8px 16px rgba(15,92,94,.18);
}
.feature-tile .ft-body { padding: 1.25rem 1.25rem 1.5rem; }
.feature-tile h4 { margin: 0 0 .35rem; font-size: 1.05rem; }
.feature-tile p { margin: 0; color: var(--text-muted); font-size: .9rem; line-height: 1.5; }

/* ---- Farm stats band (full width strip) ---- */
.stats-band {
  background: linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--brand-primary) 60%, var(--brand-primary-light) 100%);
  color: #fff;
  padding: 2.5rem 0;
  position: relative;
  overflow: hidden;
}
.stats-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(231,175,82,.18) 0%, transparent 50%);
}
.stats-grid {
  position: relative;
  display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-item { text-align: center; }
.stat-item .num {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  color: #F2CB88; line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.stat-item .lbl { font-size: .9rem; opacity: .9; margin-top: .35rem; letter-spacing: .04em; text-transform: uppercase; }
.stat-item + .stat-item { position: relative; }
@media (min-width: 768px) {
  .stat-item + .stat-item::before {
    content: ""; position: absolute; left: -.75rem; top: 12%; height: 76%;
    width: 1px; background: rgba(255,255,255,.18);
  }
}

/* ---- Cinematic category banner section ---- */
.cat-banner {
  position: relative;
  margin: 2.5rem 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
  min-height: 320px;
  display: flex;
  align-items: stretch;
}
.cat-banner .cat-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  transform: scale(1.04);
  transition: transform 1.2s ease;
}
.cat-banner:hover .cat-bg { transform: scale(1.08); }
.cat-banner::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.4) 60%, rgba(0,0,0,.1) 100%);
}
.cat-banner .cat-overlay {
  position: relative; z-index: 2;
  color: #fff;
  padding: 2.5rem 1.5rem;
  max-width: 540px;
  display: flex; flex-direction: column; justify-content: center;
}
@media (min-width: 768px) { .cat-banner .cat-overlay { padding: 3rem 2.5rem; } }
.cat-banner .chip {
  display: inline-flex; align-items: center; gap: .4rem;
  align-self: flex-start;
  padding: .3rem .75rem; border-radius: 999px;
  background: rgba(231,175,82,.85); color: #203334;
  font-size: .75rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.cat-banner h2 { color: #fff; margin: 0 0 .75rem; font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
.cat-banner p { color: rgba(255,255,255,.9); margin: 0 0 1.5rem; max-width: 480px; }
.cat-banner .cat-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.cat-banner .product-strip {
  position: relative; z-index: 2; margin-left: auto;
  display: none; gap: 1rem; padding: 2rem 2rem 2rem 0; align-items: center;
}
@media (min-width: 1024px) { .cat-banner .product-strip { display: flex; } }
.cat-banner .product-strip img {
  width: 130px; height: 130px; object-fit: cover; border-radius: 14px;
  border: 3px solid rgba(255,255,255,.85);
  box-shadow: 0 10px 28px rgba(0,0,0,.45);
  transform: rotate(-3deg);
}
.cat-banner .product-strip img:nth-child(2) { transform: rotate(2deg); margin-top: 1.5rem; }
.cat-banner .product-strip img:nth-child(3) { transform: rotate(-1deg); margin-top: -.5rem; }

/* ---- Premium product card ---- */
.product-card-premium {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
  transition: all .25s ease;
}
.product-card-premium:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-primary-light); }
.product-card-premium .img-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--surface-muted); display: block; }
.product-card-premium .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card-premium:hover .img-wrap img { transform: scale(1.06); }
.product-card-premium .img-wrap .badges {
  position: absolute; top: .75rem; left: .75rem;
  display: flex; gap: .35rem; flex-wrap: wrap;
}
.product-card-premium .img-wrap .fav {
  position: absolute; top: .75rem; right: .75rem;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-primary); cursor: pointer; border: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
  transition: all .2s ease;
}
.product-card-premium .img-wrap .fav:hover { background: #fff; transform: scale(1.08); }
.product-card-premium .body { padding: 1.1rem 1.15rem 1.25rem; flex: 1; display: flex; flex-direction: column; }
.product-card-premium .body .cat-tag {
  font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--brand-primary);
  margin-bottom: .35rem;
}
.product-card-premium .body h3 { margin: 0 0 .35rem; font-size: 1.05rem; line-height: 1.3; }
.product-card-premium .body h3 a { color: inherit; }
.product-card-premium .body h3 a:hover { color: var(--brand-primary-dark); text-decoration: none; }
.product-card-premium .desc { color: var(--text-muted); font-size: .85rem; margin: 0 0 .85rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-premium .price-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: .85rem; }
.product-card-premium .price { font-size: 1.3rem; font-weight: 800; color: var(--brand-primary-dark); }
.product-card-premium .unit { font-size: .8rem; color: var(--text-muted); font-weight: 500; }
.product-card-premium .actions { display: flex; gap: .5rem; margin-top: auto; }
.product-card-premium .actions .btn { flex: 1; padding-left: .5rem; padding-right: .5rem; }

/* ---- Video showcase (interactive modal) ---- */
.video-showcase {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .video-showcase { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .video-showcase { grid-template-columns: repeat(3, 1fr); } }
.video-thumb {
  position: relative; aspect-ratio: 16/9; border-radius: var(--r-lg);
  overflow: hidden; cursor: pointer; background: #000;
  box-shadow: var(--shadow);
  transition: all .25s ease;
}
.video-thumb:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: transform .5s ease, opacity .25s ease; }
.video-thumb:hover img { transform: scale(1.05); opacity: 1; }
.video-thumb .play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(255,255,255,.92);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  transition: all .2s ease;
}
.video-thumb .play-btn::before {
  content: ""; display: block; width: 0; height: 0;
  border-left: 22px solid var(--brand-primary-dark);
  border-top: 13px solid transparent; border-bottom: 13px solid transparent;
  margin-left: 5px;
}
.video-thumb:hover .play-btn { background: #fff; transform: translate(-50%, -50%) scale(1.08); }
.video-thumb .vmeta {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1rem 1.1rem;
  background: linear-gradient(0deg, rgba(0,0,0,.78) 0%, transparent 100%);
  color: #fff;
}
.video-thumb .vmeta strong { display: block; font-size: 1rem; margin-bottom: .15rem; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.video-thumb .vmeta small { color: rgba(255,255,255,.85); font-size: .8rem; }
.video-thumb > .chip {
  position: absolute; top: .75rem; right: .75rem; z-index: 2;
  background: rgba(231,175,82,.92); color: #203334;
  padding: .2rem .6rem; border-radius: 999px;
  font-size: .7rem; font-weight: 700; letter-spacing: .04em;
}
.video-thumb__live {
  position: absolute; top: .75rem; left: .75rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(0,0,0,.62); color: #fff;
  padding: .25rem .55rem; border-radius: 6px;
  font-size: .7rem; font-weight: 700; letter-spacing: .04em;
}
.video-thumb__live .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #ff4040;
  box-shadow: 0 0 0 3px rgba(255,64,64,.28);
  animation: pulseDot 1.5s ease-in-out infinite;
}

/* Video modal */
.video-modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.78); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; transition: opacity .25s ease;
}
.video-modal.open { display: flex; opacity: 1; }
.video-modal .vm-frame {
  width: 100%; max-width: 1100px;
  background: #000; border-radius: 14px;
  overflow: hidden; position: relative;
  aspect-ratio: 16/9;
  box-shadow: 0 30px 60px rgba(0,0,0,.6);
  transform: scale(.96); transition: transform .25s ease;
}
.video-modal.open .vm-frame { transform: scale(1); }
.video-modal .vm-frame iframe, .video-modal .vm-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-modal .vm-close {
  position: absolute; top: -56px; right: 0;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; border: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.4rem;
}
.video-modal .vm-close:hover { background: rgba(255,255,255,.2); }
.video-modal .vm-title {
  position: absolute; top: -56px; left: 0; right: 60px;
  color: #fff; font-size: 1.05rem; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.video-modal .vm-frame .vm-no-embed {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; gap: 1rem; text-align: center; padding: 2rem;
}

/* ---- Refined gallery ---- */
.gallery-premium {
  display: grid; gap: .75rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .gallery-premium { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .gallery-premium { grid-template-columns: repeat(4, 1fr); } }
.gallery-premium .g-item {
  position: relative; aspect-ratio: 1/1; border-radius: var(--r);
  overflow: hidden; cursor: pointer; background: var(--surface-muted);
}
.gallery-premium .g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-premium .g-item:hover img { transform: scale(1.08); }
.gallery-premium .g-item .g-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.65) 0%, transparent 50%);
  opacity: 0; transition: opacity .25s ease;
  display: flex; align-items: flex-end; padding: .85rem;
}
.gallery-premium .g-item:hover .g-overlay { opacity: 1; }
.gallery-premium .g-item .g-tag {
  background: rgba(231,175,82,.92); color: #203334;
  padding: .25rem .65rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}

/* ---- Inline CTA strip ---- */
.cta-strip {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  padding: 3rem 1.5rem;
  border-radius: var(--r-lg);
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-strip::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(255,255,255,.15) 0%, transparent 40%);
}
.cta-strip > * { position: relative; }
.cta-strip h2 { color: #fff; margin: 0 0 .5rem; }
.cta-strip p { color: rgba(255,255,255,.92); font-size: 1.1rem; max-width: 540px; margin: 0 auto 1.5rem; }

/* ---- Animations ---- */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
}
/* Hero content must never start invisible */
.hero-cinema .fade-up { opacity: 1; transform: none; }

/* ---- Utility ---- */
.shadow-lg { box-shadow: var(--shadow-lg); }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

/* Teal and amber brand: visible keyboard focus and readable order actions. */
.hero-cinema .hero-cta .btn-accent { background: var(--brand-accent); color: var(--brand-on-accent) !important; border-color: transparent; }
.hero-cinema .hero-cta .btn-accent:hover { background: var(--brand-accent-hover); color: var(--brand-on-accent) !important; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--brand-primary-light); outline-offset: 4px; }
.topbar a:focus-visible, .site-footer a:focus-visible, .section-dark a:focus-visible, .hero-cinema a:focus-visible { outline-color: var(--brand-accent); }
