/* Shahid Rice Shop — shared stylesheet. Mobile-first, no external fonts/frameworks. */

:root {
  --bg: #FBF6EC;
  --bg-alt: #F3E7CC;
  --ink: #2B2118;
  --ink-soft: #5B4B3A;
  --primary: #A8551B;
  --primary-dark: #7E3F13;
  --accent: #4C6B3F;
  --gold: #C79A1E;
  --call: #1E8E3E;
  --call-dark: #166B2E;
  --white: #FFFFFF;
  --line: #E6D8BC;
  --radius: 12px;
  --shadow: 0 6px 20px rgba(43,33,24,0.10);
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 0.5em; }
h1 { font-size: 1.85rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }

/* Pattern strip — abstract Sindh-inspired stripe divider */
.pattern-strip {
  height: 8px;
  background: repeating-linear-gradient(135deg,
    var(--primary) 0 12px,
    var(--gold) 12px 24px,
    var(--accent) 24px 36px);
}

/* Top bar */
.topbar {
  background: var(--ink);
  color: #EFE6D6;
  font-size: 0.82rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 18px;
  max-width: var(--maxw);
  margin: 0 auto;
  gap: 10px;
  flex-wrap: wrap;
}
.topbar-phone a { color: var(--gold); font-weight: 600; }
.topbar-owner { opacity: 0.85; }
.lang-switch a { color: #EFE6D6; padding: 2px 6px; }
.lang-switch a.active { color: var(--gold); font-weight: 700; }
.lang-switch span { opacity: 0.5; }

/* Header / nav */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.nav-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand-name { font-weight: 800; font-size: 1.05rem; color: var(--primary-dark); }
.brand-sub { display: block; font-size: 0.68rem; font-weight: 500; color: var(--ink-soft); }

.nav-toggle {
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

.main-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  padding: 8px 18px 16px;
}
.main-nav.open { display: flex; }
.main-nav a {
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  color: var(--ink-soft);
}
.main-nav a:last-child { border-bottom: none; }
.main-nav a.active, .main-nav a:hover { color: var(--primary); }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .main-nav {
    position: static;
    display: flex !important;
    flex-direction: row;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: 26px;
  }
  .main-nav a { border-bottom: none; padding: 6px 0; position: relative; }
  .main-nav a.active, .main-nav a:hover { color: var(--primary); }
  .main-nav a.active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2px;
    background: var(--primary);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-call { background: var(--call); color: var(--white); }
.btn-call:hover { background: var(--call-dark); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Hero */
.hero {
  padding: 34px 0 30px;
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
}
.hero-badge {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.hero h1 { color: var(--ink); }
.hero p.lead { font-size: 1.02rem; color: var(--ink-soft); max-width: 62ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* Trust strip */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 26px;
}
.trust-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}
.trust-item svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--accent); }
@media (min-width: 700px) {
  .trust-strip { grid-template-columns: repeat(4, 1fr); }
}

/* Sections */
.section { padding: 40px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 22px; }
.section-head h2 { color: var(--primary-dark); }
.section-head p { color: var(--ink-soft); max-width: 60ch; }
.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

/* Feature / info cards */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 860px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card h3 { color: var(--ink); }
.card p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 0; }
.icon-badge {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--bg-alt);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.icon-badge svg { width: 22px; height: 22px; }

/* Catalog cards */
.catalog-card { display: flex; flex-direction: column; gap: 8px; }
.catalog-card .tag {
  align-self: flex-start;
  background: var(--bg-alt);
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.catalog-card .best-for { font-size: 0.85rem; color: var(--accent); font-weight: 700; }

/* Rice grain visual (CSS/SVG based — no stock photography) */
.grain-art {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

/* Blog cards */
.blog-card time {
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-weight: 700;
}
.blog-card h3 { margin-top: 6px; }
.read-more { color: var(--primary); font-weight: 700; font-size: 0.88rem; }

/* CTA band */
.cta-band {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: #F6E7D6; margin-bottom: 18px; }
.cta-band .btn-outline { border-color: var(--white); color: var(--white); }
.cta-band .btn-outline:hover { background: var(--white); color: var(--primary); }

/* Breadcrumb */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--ink-soft);
  padding: 12px 0;
}
.breadcrumb a { color: var(--primary-dark); font-weight: 600; }

/* Article / blog post */
.article-header { padding: 26px 0 10px; }
.article-header .eyebrow { margin-bottom: 10px; }
.article-meta { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 4px; }
.article-body { max-width: 68ch; }
.article-body h2 { margin-top: 1.4em; color: var(--primary-dark); }
.article-body ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.article-body li { margin-bottom: 0.4em; }
.article-body p { color: var(--ink); }

/* Table-ish list for catalog details on About/Contact if needed */
.info-list { display: flex; flex-direction: column; gap: 10px; }
.info-list li {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; font-size: 0.92rem;
}
.info-list svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }

/* Footer */
.site-footer { background: var(--ink); color: #D8CBB4; padding: 36px 0 18px; margin-top: 20px; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.footer-brand img { width: 40px; height: 40px; border-radius: 50%; }
.footer-brand strong { color: var(--white); font-size: 1.05rem; }
.site-footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 10px; }
.site-footer a { color: #D8CBB4; }
.site-footer a:hover { color: var(--gold); }
.footer-col ul li { margin-bottom: 8px; font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid #4A3F32;
  margin-top: 26px;
  padding-top: 16px;
  font-size: 0.8rem;
  color: #A8987C;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

/* Floating call button — always visible, bottom-right, mobile + desktop */
.call-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  background: var(--call);
  color: var(--white);
  border-radius: 999px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(30,142,62,0.45);
  animation: fab-pulse 2.6s ease-in-out infinite;
}
.call-fab svg { width: 20px; height: 20px; }
.call-fab:hover { background: var(--call-dark); }
@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(30,142,62,0.45); }
  50% { box-shadow: 0 8px 24px rgba(30,142,62,0.45), 0 0 0 8px rgba(30,142,62,0.16); }
}
body { padding-bottom: 78px; }
@media (min-width: 860px) { body { padding-bottom: 0; } }

/* Illustrations */
.hero-grid { display: grid; gap: 26px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }
.hero-visual { max-width: 320px; margin: 0 auto; }
.hero-visual img { width: 100%; height: auto; display: block; }
.hero-visual-sm { max-width: 220px; margin: 18px auto 0; }
.hero-visual-sm img { width: 100%; height: auto; display: block; }

.media-col img { width: 100%; max-width: 340px; height: auto; display: block; margin: 0 auto; }

.blog-card img.thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--bg-alt);
  border-radius: 10px;
  margin-bottom: 12px;
}

.catalog-card .thumb {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin-bottom: 4px;
}

/* Utility */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.small { font-size: 0.85rem; color: var(--ink-soft); }
