/* =========================================================================
   SM Ali Tobacco Industry — Global stylesheet
   Palette: deep navy #0c142d / #1a2b5e, gold #c9a227, ivory #f7f5ef
   ========================================================================= */
:root {
  --navy: #0c142d;
  --navy-2: #1a2b5e;
  --gold: #c9a227;
  --gold-light: #e2c15a;
  --ivory: #f7f5ef;
  --ink: #1b2233;
  --muted: #5b6472;
  --line: #e6e3da;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(12, 20, 45, 0.08);
  --shadow-lg: 0 24px 60px rgba(12, 20, 45, 0.16);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; color: var(--navy); }
.container { width: min(1180px, 92%); margin: 0 auto; }
.center { text-align: center; }
.narrow { max-width: 820px; margin: 0 auto; }
.gold { color: var(--gold); }
.lead { font-size: 1.15rem; color: var(--muted); }
.kicker {
  display: inline-block; font-family: var(--font-body); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; font-size: .74rem;
  color: var(--gold); margin-bottom: .6rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: .2s ease; white-space: nowrap;
}
.btn-sm { padding: .6rem 1.05rem; font-size: .85rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--navy); box-shadow: 0 8px 22px rgba(201,162,39,.35); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(201,162,39,.45); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--navy); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1da851; transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .65rem 0; }
.brand-logo { display: flex; align-items: center; gap: .7rem; }
.brand-logo img { width: 52px; height: 52px; object-fit: contain; }
.brand-text strong { display: block; font-family: var(--font-display); font-size: 1.1rem; color: var(--navy); line-height: 1; }
.brand-text small { color: var(--muted); font-size: .72rem; letter-spacing: .05em; }
.main-nav { display: flex; align-items: center; gap: 1.35rem; }
.main-nav a { font-weight: 500; font-size: .95rem; color: var(--ink); position: relative; padding: .3rem 0; }
.main-nav a:hover, .main-nav a.active { color: var(--gold); }
.main-nav a.active::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px; background: var(--gold); }
.nav-quote { margin-left: .3rem; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--navy); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--navy); }
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(12,20,45,.94), rgba(26,43,94,.82)), url('/static/images/field-sunset.jpg');
  background-size: cover; background-position: center;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; align-items: center; padding: 5.5rem 0 5rem; }
.eyebrow { display: inline-flex; gap: .5rem; align-items: center; background: rgba(201,162,39,.16); color: var(--gold-light); padding: .4rem .9rem; border-radius: 999px; font-size: .8rem; font-weight: 600; margin-bottom: 1.2rem; }
.hero-copy h1 { color: #fff; font-size: clamp(2.2rem, 4.5vw, 3.5rem); margin-bottom: 1.1rem; }
.hero-copy p { font-size: 1.12rem; color: rgba(255,255,255,.82); max-width: 560px; margin-bottom: 1.8rem; }
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.2rem; margin-top: 2.6rem; flex-wrap: wrap; }
.hero-stats strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--gold-light); }
.hero-stats span { font-size: .82rem; color: rgba(255,255,255,.7); }
.hero-packs { display: flex; align-items: flex-end; justify-content: center; gap: 1rem; }

/* ---------- Cigarette pack visual ---------- */
.pack {
  position: relative; border-radius: 10px 10px 6px 6px;
  background: linear-gradient(160deg, var(--pk), color-mix(in srgb, var(--pk) 70%, #000));
  box-shadow: 0 18px 40px rgba(0,0,0,.35); overflow: hidden; flex: none;
  border: 1px solid rgba(255,255,255,.15);
}
.pack-top { height: 20%; background: linear-gradient(var(--pk2), color-mix(in srgb, var(--pk2) 60%, #000)); opacity: .95; }
.pack-body { padding: 10% 8% 8%; height: 80%; display: flex; flex-direction: column; align-items: center; text-align: center; color: #fff; }
.pack-mono { font-family: var(--font-display); font-weight: 800; font-size: 1.6em; letter-spacing: .04em; color: var(--pk2); line-height: 1; }
.pack-name { font-family: var(--font-display); font-weight: 700; font-size: .78em; margin-top: .3em; }
.pack-seg { font-size: .5em; letter-spacing: .22em; opacity: .8; margin-top: .25em; }
.pack-band { margin-top: auto; width: 70%; height: 4px; border-radius: 2px; background: var(--pk2); opacity: .85; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-alt { background: var(--ivory); }
.section-dark { background: var(--navy); color: #fff; }
.section-dark h2, .section-dark .kicker { color: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head.light h2 { color: #fff; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: .8rem; }
.section-head p { color: var(--muted); }
.section-dark .section-head p { color: rgba(255,255,255,.75); }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.feature-card, .step-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.5rem; box-shadow: var(--shadow); transition: .25s; }
.feature-card:hover, .step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-ic { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; color: var(--gold); background: linear-gradient(135deg, rgba(201,162,39,.14), rgba(201,162,39,.05)); margin-bottom: 1rem; }
.feature-card h3, .step-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.feature-card p, .step-card p { color: var(--muted); font-size: .93rem; }

/* ---------- Brand grid ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.brand-grid.wide { grid-template-columns: repeat(3, 1fr); }
.brand-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .25s; display: flex; flex-direction: column; }
.brand-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.brand-card-visual { background: linear-gradient(135deg, var(--pk), color-mix(in srgb, var(--pk) 78%, #000)); padding: 2rem; display: grid; place-items: center; }
.brand-card-body { padding: 1.5rem; }
.chip { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); background: rgba(201,162,39,.12); padding: .28rem .7rem; border-radius: 999px; margin-bottom: .7rem; }
.chip.light { color: var(--gold-light); background: rgba(255,255,255,.14); }
.brand-card-body h3 { font-size: 1.3rem; margin-bottom: .35rem; }
.brand-card-body p { color: var(--muted); font-size: .92rem; margin-bottom: .8rem; }
.brand-flavours { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; }
.brand-flavours span { font-size: .74rem; background: var(--ivory); border: 1px solid var(--line); padding: .22rem .6rem; border-radius: 999px; color: var(--muted); }
.brand-flavours.light span { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.85); }
.brand-more { color: var(--navy); font-weight: 600; font-size: .9rem; }
.brand-card:hover .brand-more { color: var(--gold); }
.center { margin-top: 2.5rem; text-align: center; }

/* ---------- Split ---------- */
.split-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split-media { min-height: 420px; border-radius: var(--radius); background-size: cover; background-position: center; box-shadow: var(--shadow-lg); }
.split-copy h2 { font-size: 2rem; margin-bottom: 1rem; }
.split-copy p { color: var(--muted); margin-bottom: 1.2rem; }
.tick-list { list-style: none; margin-bottom: 1.6rem; }
.tick-list li { display: flex; align-items: center; gap: .6rem; padding: .35rem 0; color: var(--ink); }
.tick-list i { color: #1b9c5a; }

/* ---------- Page hero ---------- */
.page-hero { background-size: cover; background-position: center; color: #fff; padding: 5rem 0; text-align: center; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.page-hero p { color: rgba(255,255,255,.85); max-width: 620px; margin: .8rem auto 0; }

/* ---------- Stats ---------- */
.stat-row, .stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 2.5rem; }
.stat { background: var(--ivory); border-radius: var(--radius); padding: 1.6rem; text-align: center; }
.stat strong { display: block; font-family: var(--font-display); font-size: 1.8rem; color: var(--navy); }
.stat span { color: var(--muted); font-size: .85rem; }

/* ---------- Mission/Vision ---------- */
.mv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.mv-card { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); border-top: 4px solid var(--gold); }
.mv-card h3 { margin-bottom: .6rem; }
.mv-card p { color: var(--muted); }

/* ---------- Timeline ---------- */
.timeline { margin-top: 2rem; border-left: 2px solid var(--line); padding-left: 1.6rem; }
.tl-item { position: relative; padding-bottom: 1.6rem; }
.tl-item::before { content: ''; position: absolute; left: -1.95rem; top: .35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,39,.2); }
.tl-year { font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 1.1rem; display: block; }
.tl-item p { color: var(--muted); }

/* ---------- Brand detail ---------- */
.brand-detail-hero { background: linear-gradient(135deg, var(--pk), color-mix(in srgb, var(--pk) 70%, #000)); color: #fff; padding: 4rem 0; }
.brand-detail-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: center; }
.brand-detail-visual { display: grid; place-items: center; }
.brand-detail-copy h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin: .5rem 0; }
.brand-detail-copy p { color: rgba(255,255,255,.85); margin-bottom: 1rem; }
.brand-tag { font-family: var(--font-display); font-size: 1.2rem; font-style: italic; color: var(--gold-light) !important; }
.back-link { color: rgba(255,255,255,.8); font-size: .88rem; display: inline-flex; gap: .4rem; align-items: center; margin-bottom: .8rem; }
.back-link:hover { color: #fff; }

/* ---------- Products ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 2.5rem; }
.filter-btn { border: 1px solid var(--line); background: #fff; padding: .5rem 1.1rem; border-radius: 999px; font-family: var(--font-body); font-weight: 500; font-size: .88rem; cursor: pointer; transition: .2s; }
.filter-btn:hover { border-color: var(--gold); }
.filter-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .25s; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-visual { background: linear-gradient(135deg, var(--pk), color-mix(in srgb, var(--pk) 78%, #000)); padding: 1.8rem; display: grid; place-items: center; }
.product-body { padding: 1.4rem; }
.product-body h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.product-desc { color: var(--muted); font-size: .88rem; margin-bottom: .9rem; }
.spec-list { list-style: none; margin-bottom: .9rem; }
.spec-list li { display: flex; justify-content: space-between; padding: .35rem 0; border-bottom: 1px dashed var(--line); font-size: .85rem; }
.spec-list span { color: var(--muted); }
.spec-list strong { color: var(--ink); }
.product-pack { font-size: .8rem; color: var(--muted); margin-bottom: 1rem; }
.product-pack i { color: var(--gold); }

/* ---------- Steps / regions ---------- */
.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.region-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: 2.5rem; }
.region-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.region-card i { font-size: 1.6rem; color: var(--gold-light); margin-bottom: .6rem; }
.region-card strong { display: block; font-family: var(--font-display); font-size: 1.15rem; }
.region-card span { color: rgba(255,255,255,.7); font-size: .85rem; }

/* ---------- Warning box ---------- */
.warning-box { display: flex; gap: 1.2rem; background: #fff5f5; border: 1px solid #f3c9c9; border-left: 5px solid #d9463f; border-radius: var(--radius); padding: 1.6rem; }
.warning-box i { color: #d9463f; font-size: 1.8rem; }
.warning-box h3 { color: #a62822; margin-bottom: .3rem; }
.warning-box p { color: #7a3833; font-size: .92rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; }
.contact-list { list-style: none; margin: 1.5rem 0; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.contact-list i { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--ivory); color: var(--gold); font-size: 1.1rem; }
.contact-list strong { display: block; font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.contact-form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.contact-form-wrap h3 { margin-bottom: 1.2rem; }

/* ---------- Forms ---------- */
form label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: .9rem; }
form input, form select, form textarea {
  width: 100%; margin-top: .35rem; padding: .7rem .9rem; border: 1px solid var(--line);
  border-radius: 10px; font-family: var(--font-body); font-size: .92rem; font-weight: 400; color: var(--ink);
  background: #fff; transition: .2s;
}
form input:focus, form select:focus, form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,39,.15); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.quote-status { font-size: .9rem; margin-top: .8rem; }
.quote-status.ok { color: #1b9c5a; }
.quote-status.err { color: #d9463f; }

/* ---------- CTA banner ---------- */
.cta-banner { background: linear-gradient(135deg, var(--gold), var(--gold-light)); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 3rem 0; flex-wrap: wrap; }
.cta-banner h2 { color: var(--navy); font-size: 1.9rem; }
.cta-banner p { color: rgba(12,20,45,.8); }
.cta-actions { display: flex; gap: .9rem; flex-wrap: wrap; }
.cta-banner .btn-gold { background: var(--navy); color: #fff; box-shadow: none; }
.cta-banner .btn-gold:hover { background: var(--navy-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.8); padding-top: 3.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-brand { display: flex; gap: .8rem; align-items: center; margin-bottom: 1rem; }
.footer-brand img { width: 54px; height: 54px; background: #fff; border-radius: 12px; padding: 4px; }
.footer-brand strong { color: #fff; font-family: var(--font-display); font-size: 1.1rem; }
.footer-brand p { font-size: .78rem; color: var(--gold-light); }
.footer-note { font-size: .88rem; color: rgba(255,255,255,.6); }
.site-footer h4 { color: #fff; margin-bottom: 1rem; font-size: 1rem; }
.site-footer a, .site-footer span { display: flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.7); font-size: .9rem; padding: .3rem 0; }
.site-footer a:hover { color: var(--gold-light); }
.footer-warning { border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); padding: 1.2rem 0; margin-top: 1rem; font-size: .82rem; color: rgba(255,255,255,.65); }
.footer-warning strong { color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; padding: 1.4rem 0; font-size: .82rem; color: rgba(255,255,255,.5); flex-wrap: wrap; gap: .5rem; }

/* ---------- WhatsApp float ---------- */
.wa-float { position: fixed; bottom: 24px; right: 24px; z-index: 60; display: flex; align-items: center; gap: .6rem; background: #25d366; color: #fff; padding: .85rem 1.1rem; border-radius: 999px; box-shadow: 0 12px 30px rgba(37,211,102,.45); font-weight: 600; animation: waPulse 2.6s infinite; }
.wa-float i { font-size: 1.5rem; }
.wa-float:hover { background: #1da851; transform: scale(1.05); }
.wa-label { font-size: .9rem; }
@keyframes waPulse { 0%,100% { box-shadow: 0 12px 30px rgba(37,211,102,.4); } 50% { box-shadow: 0 12px 40px rgba(37,211,102,.7); } }

/* ---------- Quote modal ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(12,20,45,.6); backdrop-filter: blur(4px); z-index: 100; display: none; align-items: flex-start; justify-content: center; padding: 4vh 1rem; overflow-y: auto; }
.modal-overlay.open { display: flex; }
.modal { background: #fff; border-radius: 18px; max-width: 560px; width: 100%; padding: 2rem; position: relative; box-shadow: var(--shadow-lg); animation: modalIn .25s ease; }
@keyframes modalIn { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close { position: absolute; top: 1rem; right: 1.2rem; background: none; border: none; font-size: 1.8rem; color: var(--muted); cursor: pointer; line-height: 1; }
.modal h3 { display: flex; align-items: center; gap: .5rem; margin-bottom: .3rem; }
.modal h3 i { color: var(--gold); }
.modal-sub { color: var(--muted); font-size: .9rem; margin-bottom: 1.3rem; }

/* ---------- Age gate ---------- */
.age-gate { position: fixed; inset: 0; z-index: 200; background: linear-gradient(135deg, var(--navy), var(--navy-2)); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.age-gate.hidden { display: none; }
.age-card { background: #fff; border-radius: 18px; max-width: 460px; padding: 2.5rem; text-align: center; box-shadow: var(--shadow-lg); }
.age-logo { width: 90px; height: 90px; object-fit: contain; margin: 0 auto 1rem; }
.age-card h2 { margin-bottom: .8rem; }
.age-card p { color: var(--muted); font-size: .95rem; margin-bottom: .6rem; }
.age-q { font-weight: 600; color: var(--ink) !important; margin: 1rem 0 !important; }
.age-actions { display: flex; gap: .8rem; justify-content: center; margin-bottom: 1rem; flex-wrap: wrap; }
.age-card small { color: var(--muted); font-size: .78rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .feature-grid, .step-grid, .stat-row, .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .brand-grid, .brand-grid.wide, .product-grid, .mv-grid, .region-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner, .split-inner, .contact-grid, .brand-detail-inner { grid-template-columns: 1fr; }
  .hero-packs { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .main-nav { position: fixed; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 1rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-140%); transition: .3s; }
  .main-nav.open { transform: none; }
  .main-nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav-quote { margin: .8rem 0 0; justify-content: center; }
  .nav-toggle { display: block; }
  .feature-grid, .step-grid, .brand-grid, .brand-grid.wide, .product-grid, .mv-grid, .region-grid, .stat-row, .stat-cards, .footer-grid, .grid-2 { grid-template-columns: 1fr; }
  .wa-label { display: none; }
  .cta-inner, .footer-bottom { flex-direction: column; text-align: center; }
}
