/* =========================================================
   BIRARI GLOBAL TRADE — Shared Stylesheet
   Design tokens — palette matched to the client logo
   (navy globe/ship mark + gold trade-route accent)
   ---------------------------------------------------------
   Colors:
     --forest      #10204A  deep logo navy (primary / nav / headings)
     --forest-2    #1A2F5E  lighter navy for gradients & hovers
     --gold        #C9963A  logo gold (accent / CTAs)
     --gold-light  #E6C583  pale gold (highlights, borders)
     --soil        #2E4A78  steel-blue (secondary accent, IEC icon)
     --cream       #F7F2E5  warm paper background
     --ink         #1B1E24  near-black text
     --paper       #FFFFFF  card background
   Type:
     Display  -> 'Fraunces'      (headings, characterful serif)
     Body     -> 'Work Sans'     (paragraphs, nav, buttons)
     Utility  -> 'IBM Plex Mono' (labels, table data, eyebrows)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,500;9..144,600;9..144,700&family=Work+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root{
  --forest:#10204A;
  --forest-2:#1A2F5E;
  --gold:#C9963A;
  --gold-light:#E6C583;
  --soil:#2E4A78;
  --cream:#F7F2E5;
  --ink:#1B1E24;
  --paper:#FFFFFF;
  --line: rgba(16,32,74,0.12);
  --shadow: 0 10px 30px rgba(16,32,74,0.14);
  --radius: 14px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:'Work Sans', sans-serif;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{
  font-family:'Fraunces', serif;
  color:var(--forest);
  margin:0 0 .5em;
  line-height:1.15;
  font-weight:600;
}
p{ margin:0 0 1em; }
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
ul{ margin:0; padding:0; list-style:none; }
.eyebrow{
  font-family:'IBM Plex Mono', monospace;
  font-size:.72rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--gold);
  display:inline-block;
  margin-bottom:.6em;
}
.container{
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:0 24px;
}
section{ padding:80px 0; }
.section-head{ max-width:640px; margin-bottom:44px; }
.section-head p{ color:#4b463d; }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:13px 26px;
  border-radius:999px;
  font-family:'Work Sans',sans-serif;
  font-weight:600;
  font-size:.95rem;
  cursor:pointer;
  border:1px solid transparent;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover{ transform:translateY(-2px); }
.btn-gold{ background:var(--gold); color:var(--paper); box-shadow:0 6px 18px rgba(192,138,30,.35); }
.btn-gold:hover{ background:#a97a19; }
.btn-outline{ background:transparent; border-color:var(--forest); color:var(--forest); }
.btn-outline:hover{ background:var(--forest); color:var(--paper); }
.btn-line-light{ background:transparent; border-color:rgba(255,255,255,.5); color:#fff; }
.btn-line-light:hover{ background:rgba(255,255,255,.12); }

/* =========================== HEADER / NAV =========================== */
.site-header{
  position:fixed; top:0; left:0; right:0; z-index:900;
  background:rgba(16,32,74,.92);
  backdrop-filter:blur(6px);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.nav-wrap{
  max-width:1180px; margin:0 auto; padding:0 24px;
  display:flex; align-items:center; justify-content:space-between;
  height:78px;
}
.brand{ display:flex; align-items:center; gap:12px; }
/* TO CHANGE THE LOGO: replace assets/images/logo-full.png with your own
   logo file (transparent background PNG recommended). It is reused
   identically in the header and footer of every page. */
.brand img{ height:42px; width:auto; }
.brand img.brand-logo-full{
  height:64px;
  background:#fff;
  padding:6px 14px;
  border-radius:10px;
  box-shadow:0 2px 8px rgba(0,0,0,.15);
}
.brand .brand-text{ font-family:'Fraunces',serif; color:#fff; font-size:1.05rem; line-height:1.1; }
.brand .brand-text small{ display:block; font-family:'IBM Plex Mono',monospace; font-size:.62rem; letter-spacing:.12em; color:var(--gold-light); font-weight:400; text-transform:uppercase; margin-top:2px; }

.nav-links{ display:flex; align-items:center; gap:34px; }
.nav-links a{
  color:#EDEAE0; font-size:.92rem; font-weight:500; letter-spacing:.02em;
  position:relative; padding:6px 0;
}
.nav-links a::after{
  content:""; position:absolute; left:0; bottom:0; width:0; height:2px;
  background:var(--gold); transition:width .2s ease;
}
.nav-links a:hover::after, .nav-links a.active::after{ width:100%; }
.nav-links a.active{ color:#fff; }

.nav-right{ display:flex; align-items:center; gap:18px; }
.lang-switch{ display:flex; gap:4px; font-family:'IBM Plex Mono',monospace; font-size:.72rem; }
.lang-switch button{
  background:transparent; border:1px solid rgba(255,255,255,.25); color:#cfc9ba;
  padding:4px 8px; border-radius:6px; cursor:pointer;
}
.lang-switch button.active{ background:var(--gold); color:#fff; border-color:var(--gold); }

.enquiry-btn{
  background:var(--gold); color:#fff; border:none; padding:11px 22px; border-radius:999px;
  font-weight:600; font-size:.88rem; cursor:pointer; font-family:'Work Sans',sans-serif;
  box-shadow:0 6px 16px rgba(192,138,30,.4);
}
.enquiry-btn:hover{ background:#a97a19; }

.nav-burger{ display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:6px; }
.nav-burger span{ width:24px; height:2px; background:#fff; display:block; }

/* =========================== FOOTER =========================== */
.site-footer{ background:var(--forest); color:#DCD8C9; padding:64px 0 24px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; }
.footer-grid h4{ color:#fff; font-size:1rem; margin-bottom:16px; }
.site-footer p{ color:#B9B49F; font-size:.9rem; }
.footer-links a{ display:block; padding:4px 0; color:#CFCABA; font-size:.9rem; }
.footer-links a:hover{ color:var(--gold-light); }
.social-row{ display:flex; gap:10px; margin-top:16px; }
.social-row a{
  width:38px; height:38px; border-radius:50%; border:1px solid rgba(255,255,255,.25);
  display:flex; align-items:center; justify-content:center;
}
.social-row a:hover{ background:var(--gold); border-color:var(--gold); }
.social-row svg{ width:16px; height:16px; fill:#fff; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.12); margin-top:48px; padding-top:22px; text-align:center; font-size:.82rem; color:#948F7B; }

/* =========================== PAGE HERO (inner pages) =========================== */
.page-hero{
  background:linear-gradient(160deg,var(--forest) 0%, var(--forest-2) 100%);
  color:#fff; padding:170px 0 64px; position:relative; overflow:hidden;
}
.page-hero .container{ position:relative; z-index:2; }
.page-hero h1{ color:#fff; font-size:clamp(2rem,4vw,3rem); }
.page-hero p{ color:#D8D3C2; max-width:560px; }
.page-hero .seal{ position:absolute; right:-40px; top:30px; opacity:.16; }

/* =========================== HOME HERO SLIDER =========================== */
.hero-slider{ position:relative; height:640px; margin-top:78px; overflow:hidden; }
.slide{
  position:absolute; inset:0; opacity:0; transition:opacity 1s ease;
  display:flex; align-items:flex-end;
}
.slide.active{ opacity:1; }
.slide .scene{ position:absolute; inset:0; }
.slide .scrim{ position:absolute; inset:0; background:linear-gradient(0deg, rgba(15,30,18,.78) 0%, rgba(15,30,18,.15) 55%, rgba(15,30,18,.35) 100%); }
.slide-caption{ position:relative; z-index:2; padding:0 24px 56px; color:#fff; max-width:1180px; margin:0 auto; width:100%; }
.slide-caption .eyebrow{ color:var(--gold-light); }
.slide-caption h2{ color:#fff; font-size:clamp(1.8rem,4vw,3.1rem); margin-bottom:.2em; }

.slider-dots{ position:absolute; z-index:3; bottom:24px; left:50%; transform:translateX(-50%); display:flex; gap:8px; }
.slider-dots button{ width:9px; height:9px; border-radius:50%; border:none; background:rgba(255,255,255,.4); cursor:pointer; }
.slider-dots button.active{ background:var(--gold); width:22px; border-radius:5px; transition:width .25s ease; }
.slider-arrow{
  position:absolute; z-index:3; top:50%; transform:translateY(-50%);
  background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.4); color:#fff;
  width:44px; height:44px; border-radius:50%; cursor:pointer; font-size:1.1rem;
  display:flex; align-items:center; justify-content:center;
}
.slider-arrow:hover{ background:var(--gold); border-color:var(--gold); }
.slider-arrow.prev{ left:20px; }
.slider-arrow.next{ right:20px; }

/* Category / hero scene backgrounds — now using real product photography. */
.scene-vegetables{ background:#16321F url('assets/images/photos/product-1.jpg') center/cover no-repeat; }
.scene-fruits{ background:#3A1414 url('assets/images/photos/product-2.jpg') center/cover no-repeat; }
.scene-spices{ background:#4A2A06 url('assets/images/photos/product-3.jpg') center/cover no-repeat; }

/* Category / hero scene backgrounds — now using real product photography. */
.scene-vegetables-slider{ background:#16321F url('assets/images/photos/slider-1.jpg') center/cover no-repeat; }
.scene-fruits-slider{ background:#3A1414 url('assets/images/photos/slider-2.jpg') center/cover no-repeat; }
.scene-spices-slider{ background:#4A2A06 url('assets/images/photos/slider-3.jpg') center/cover no-repeat; }

/* =========================== EXPORT SEAL (signature element) =========================== */
.export-seal{
  width:132px; height:132px; border-radius:50%;
  border:2px dashed var(--gold-light);
  display:flex; align-items:center; justify-content:center;
  animation:spin 34s linear infinite;
}
.export-seal svg{ width:100%; height:100%; }
@keyframes spin{ to{ transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce){ .export-seal{ animation:none; } }

/* =========================== CARDS =========================== */
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.grid-4{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.card{
  background:var(--paper); border-radius:var(--radius); padding:30px;
  border:1px solid var(--line); box-shadow:var(--shadow);
}
.cat-card{ overflow:hidden; padding:0; }
.cat-card .cat-art{ height:235px; }
.cat-card .cat-body{ padding:24px; }
.cat-card h3{ font-size:1.25rem; }

.icon-badge{
  width:56px; height:56px; border-radius:50%; background:var(--forest);
  display:flex; align-items:center; justify-content:center; margin-bottom:16px;
}
.icon-badge svg{ width:26px; height:26px; stroke:var(--gold-light); fill:none; }

.country-grid{ display:grid; grid-template-columns:repeat(6,1fr); gap:16px; text-align:center; }
.country-chip{ background:var(--paper); border:1px solid var(--line); border-radius:12px; padding:18px 8px; }
.country-chip .flag{ font-size:1.8rem; margin-bottom:8px; }
.country-chip span{ font-size:.82rem; font-weight:600; }

/* Product cards */
.tabs{ display:flex; gap:10px; margin-bottom:36px; flex-wrap:wrap; }
.tab-btn{
  padding:10px 20px; border-radius:999px; border:1px solid var(--line);
  background:var(--paper); font-weight:600; font-size:.9rem; cursor:pointer;
}
.tab-btn.active{ background:var(--forest); color:#fff; border-color:var(--forest); }
.tab-panel{ display:none; }
.tab-panel.active{ display:block; }
.product-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.product-card{
  background:var(--paper); border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; text-align:center; transition:transform .18s ease, box-shadow .18s ease;
}
.product-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow); }
.product-art{
  width:100%; aspect-ratio:1/1; overflow:hidden;
}
.product-art img{ width:100%; height:100%; object-fit:cover; display:block; }
.product-card .product-label{ padding:14px 14px 18px; }
.product-card h4{ font-size:1rem; margin-bottom:2px; }
.product-card .local{ font-size:.85rem; color:#736C5C; font-family:'IBM Plex Mono',monospace; }
.product-card .product-desc{
  font-size:.82rem; line-height:1.45; color:#5A5548; margin:8px 0 14px;
  min-height:38px;
}
.product-enquiry-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  width:100%; padding:9px 12px; border-radius:8px; border:1px solid var(--forest);
  background:transparent; color:var(--forest); font-weight:600; font-size:.82rem;
  cursor:pointer; transition:background .15s ease, color .15s ease;
}
.product-enquiry-btn:hover{ background:var(--forest); color:#fff; }

/* Certificate page — icon-only cards */
.cert-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:32px; text-align:center; }
.cert-card{
  background:var(--paper); border:1px solid var(--line); border-radius:var(--radius);
  padding:44px 20px; box-shadow:var(--shadow);
}
.cert-icon{ width:96px; height:96px; margin:0 auto 20px; }
.cert-card p{ font-family:'IBM Plex Mono',monospace; font-size:.85rem; letter-spacing:.04em; color:var(--forest); margin:0; text-transform:uppercase; }

/* Profile table */
.profile-table{ width:100%; border-collapse:collapse; background:var(--paper); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); }
.profile-table tr:nth-child(even){ background:#FAF7EF; }
.profile-table td{ padding:16px 22px; border-bottom:1px solid var(--line); vertical-align:top; }
.profile-table td:first-child{
  width:280px; font-family:'IBM Plex Mono',monospace; font-size:.82rem;
  color:var(--forest); font-weight:600; text-transform:uppercase; letter-spacing:.03em;
}
.profile-table tr:last-child td{ border-bottom:none; }

/* Contact page */
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:44px; align-items:start; }
.contact-item{ display:flex; gap:16px; margin-bottom:22px; }
.contact-item .icon-badge{ flex-shrink:0; margin-bottom:0; }
.map-wrap{ position:relative; width:100%; padding-top:75%; border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); margin-top:24px; }
.map-wrap iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }

form.form{ display:grid; gap:16px; }
form.form .row-2{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
form.form label{
  font-family:'IBM Plex Mono',monospace; font-size:.7rem; font-weight:600; letter-spacing:.06em;
  text-transform:uppercase; color:var(--forest); margin-bottom:7px; display:block;
}
form.form input, form.form select, form.form textarea{
  width:100%; padding:12px 14px; border:1px solid var(--line); border-radius:10px;
  font-family:'Work Sans',sans-serif; font-size:.95rem; background:var(--cream); color:var(--ink);
}
form.form textarea{ resize:vertical; min-height:100px; }
form.form input:focus, form.form select:focus, form.form textarea:focus{ outline:2px solid var(--gold); outline-offset:1px; background:#fff; }

.cta-strip{ background:var(--forest); color:#fff; border-radius:var(--radius); padding:48px; display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.cta-strip h3{ color:#fff; margin:0; }

/* =========================== ENQUIRY MODAL =========================== */
.modal-overlay{
  position:fixed; inset:0; background:rgba(10,20,45,.7); z-index:1000;
  display:none; align-items:center; justify-content:center; padding:20px;
}
.modal-overlay.open{ display:flex; }
.modal-box{
  background:#fff; border-radius:18px; padding:40px 38px; width:100%; max-width:500px;
  position:relative; max-height:92vh; overflow-y:auto;
  border-top:4px solid var(--gold);
  box-shadow:0 30px 60px -18px rgba(10,20,45,.45);
}
.modal-close{
  position:absolute; top:18px; right:18px; background:var(--cream); border:none;
  width:34px; height:34px; border-radius:50%; cursor:pointer; font-size:1.15rem; color:var(--forest);
  line-height:1; transition:background .15s ease;
}
.modal-close:hover{ background:var(--gold-light); }
.modal-box h3{ margin-bottom:.2em; }
.modal-box .modal-lede{ font-size:.9rem; margin-bottom:24px; color:#5A5548; }
.modal-success{ display:none; text-align:center; padding:24px 0 4px; }
.modal-success.show{ display:block; }
.modal-success .tick{
  width:58px; height:58px; border-radius:50%; background:var(--forest); color:var(--gold-light);
  display:flex; align-items:center; justify-content:center; margin:0 auto 18px; font-size:1.7rem;
  font-weight:700;
}

/* Floating WhatsApp + chat */
.float-stack{ position:fixed; right:22px; bottom:22px; z-index:850; display:flex; flex-direction:column; gap:12px; align-items:flex-end; }
.float-btn{
  width:56px; height:56px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  box-shadow:0 8px 20px rgba(0,0,0,.25); cursor:pointer; border:none;
}
.float-btn.whatsapp{ background:#25D366; }
.float-btn.chat{ background:var(--forest); }
.float-btn svg{ width:26px; height:26px; fill:#fff; }

/* =========================== RESPONSIVE =========================== */
@media (max-width: 980px){
  .grid-3, .grid-4{ grid-template-columns:repeat(2,1fr); }
  .country-grid{ grid-template-columns:repeat(3,1fr); }
  .product-grid{ grid-template-columns:repeat(2,1fr); }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .contact-grid{ grid-template-columns:1fr; }
}
@media (max-width: 760px){
  .nav-links, .lang-switch{ display:none; }
  .nav-burger{ display:flex; }
  .nav-right .enquiry-btn{ padding:9px 16px; font-size:.8rem; }
  .hero-slider{ height:520px; }
  section{ padding:56px 0; }
  .grid-3, .grid-4, .product-grid, .cert-grid{ grid-template-columns:1fr 1fr; }
  .country-grid{ grid-template-columns:repeat(2,1fr); }
  form.form .row-2{ grid-template-columns:1fr; }
  .profile-table td:first-child{ width:150px; }
}
@media (max-width: 480px){
  .grid-3, .grid-4, .product-grid, .cert-grid{ grid-template-columns:1fr; }
  .country-grid{ grid-template-columns:repeat(2,1fr); }
  .profile-table, .profile-table tbody, .profile-table tr, .profile-table td{ display:block; width:100%; }
  .profile-table tr{ padding:12px 0; }
  .profile-table td:first-child{ padding-bottom:2px; border-bottom:none; }
}

/* Mobile nav drawer */
.mobile-drawer{
  position:fixed; top:78px; left:0; right:0; background:var(--forest);
  z-index:899; padding:20px 24px 30px; display:none; flex-direction:column; gap:6px;
}
.mobile-drawer.open{ display:flex; }
.mobile-drawer a{ color:#EDEAE0; padding:12px 0; border-bottom:1px solid rgba(255,255,255,.08); font-weight:500; }
