/* ==========================================================================
   Whale Glass Nigeria — static microsite stylesheet
   Theme: Nigerian flag green (#008751) on paper white + deep bottle ink.
   No external fonts, no external scripts: runs from a local folder or any host.
   ========================================================================== */

:root {
  --green: #008751;          /* Nigerian flag green */
  --green-deep: #00613a;
  --green-ink: #04241a;
  --green-mist: #eaf4ef;
  --green-line: #cfe4d8;
  --ink: #101b15;
  --muted: #5b6b62;
  --paper: #ffffff;
  --sand: #f7f6f1;
  --line: #e3e9e5;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(4, 36, 26, .06), 0 4px 14px rgba(4, 36, 26, .05);
  --shadow-md: 0 10px 30px rgba(4, 36, 26, .08), 0 2px 6px rgba(4, 36, 26, .05);
  --wrap: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--green-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.6vw, 3.35rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.5rem, 2.9vw, 2.2rem); }
h3 { font-size: 1.14rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .74rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--green-deep); margin: 0 0 14px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--green) 0 34%, #fff 34% 66%, var(--green) 66%);
  box-shadow: 0 0 0 1px var(--green-line);
}

.lede { font-size: 1.06rem; color: var(--muted); max-width: 62ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 650; font-size: .95rem; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 18px rgba(0, 135, 81, .26); }
.btn-primary:hover { background: var(--green-deep); }
.btn-ghost { background: #fff; color: var(--green-ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green-line); background: var(--green-mist); }
.btn-dark { background: var(--green-ink); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: .86rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto;
  background: var(--green); display: grid; place-items: center;
}
.brand-mark svg { width: 19px; height: 19px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 750; font-size: .98rem; letter-spacing: -.01em; }
.brand-sub { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green-deep); font-weight: 700; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav a {
  color: var(--ink); font-size: .92rem; font-weight: 550; text-decoration: none;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--green-deep); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--green-deep); border-bottom-color: var(--green); }

.header-cta { margin-left: 6px; }
.nav-toggle {
  display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; cursor: pointer; padding: 0;
}
.nav-toggle span {
  display: block; width: 17px; height: 2px; background: var(--ink);
  margin: 4px auto; border-radius: 2px; transition: .2s;
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 62px 0 54px; background: linear-gradient(180deg, var(--green-mist) 0%, #fff 78%); }
.hero::after {
  content: ""; position: absolute; inset: 0 0 auto auto; width: 42vw; height: 100%;
  background: linear-gradient(180deg, rgba(0, 135, 81, .07), rgba(0, 135, 81, 0));
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%); pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.06fr .94fr; gap: 46px; align-items: center; }
.hero-copy h1 span { color: var(--green-deep); }
.hero-sub { font-size: 1.09rem; color: #33463c; max-width: 46ch; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-top: 20px; border-top: 1px solid var(--green-line); }
.hero-stat strong { display: block; font-size: 1.22rem; letter-spacing: -.02em; }
.hero-stat span { font-size: .78rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

.hero-media { position: relative; }
.hero-shot {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #fff;
  box-shadow: var(--shadow-md); border: 1px solid #eef2ef;
}
.hero-shot img { width: 100%; height: 430px; object-fit: contain; padding: 14px; box-sizing: border-box; }
.hero-flag {
  position: absolute; left: 0; top: 0; bottom: 0; width: 9px;
  background: linear-gradient(90deg, var(--green) 0 34%, #fff 34% 66%, var(--green) 66%);
  z-index: 2;
}
.hero-badge {
  position: absolute; right: 16px; bottom: 16px; background: #fff; border-radius: 12px;
  padding: 11px 15px; box-shadow: var(--shadow-sm); border: 1px solid #eef2ef;
  font-size: .8rem; line-height: 1.4; max-width: 210px;
}
.hero-badge b { display: block; font-size: .95rem; color: var(--green-deep); }
.hero-mini {
  position: absolute; left: -26px; bottom: -26px; width: 168px; border-radius: 14px;
  overflow: hidden; border: 4px solid #fff; box-shadow: var(--shadow-md);
}
.hero-mini img { height: 132px; width: 100%; object-fit: contain; background: #fff; padding: 6px; box-sizing: border-box; }

/* ---------- trust strip ---------- */
.trust { border-block: 1px solid var(--line); background: #fff; }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.trust-item { padding: 20px 22px; border-left: 1px solid var(--line); }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item b { display: block; font-size: .95rem; }
.trust-item span { font-size: .84rem; color: var(--muted); }

/* ---------- section scaffolding ---------- */
.section { padding: 68px 0; }
.section--tight { padding: 48px 0; }
.section--sand { background: var(--sand); }
.section--mist { background: var(--green-mist); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head .lede { margin-bottom: 0; }

/* ---------- categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card {
  display: flex; flex-direction: column; gap: 10px; padding: 22px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.cat-card:hover { border-color: var(--green-line); transform: translateY(-2px); box-shadow: var(--shadow-sm); text-decoration: none; }
.cat-icon {
  width: 42px; height: 42px; border-radius: 11px; background: var(--green-mist);
  display: grid; place-items: center; color: var(--green-deep);
}
.cat-icon svg { width: 22px; height: 22px; }
.cat-card h3 { margin: 0; font-size: 1.02rem; }
.cat-card p { margin: 0; font-size: .87rem; color: var(--muted); }
.cat-card .more { font-size: .82rem; font-weight: 700; color: var(--green-deep); margin-top: auto; }

/* ---------- product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .18s, border-color .18s, transform .18s;
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--green-line); transform: translateY(-2px); }
.card-media { position: relative; aspect-ratio: 4 / 3.4; background: #f3f5f3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 12px; box-sizing: border-box; }
.card-tag {
  position: absolute; left: 12px; top: 12px; background: rgba(255, 255, 255, .95);
  color: var(--green-deep); font-size: .68rem; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; padding: 5px 9px; border-radius: 6px; border: 1px solid var(--green-line);
}
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: .97rem; margin: 0; line-height: 1.32; }
.card-specs { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: .74rem; color: #3f5148; background: var(--sand); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 9px;
}
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 6px; }
.card-moq { font-size: .8rem; color: var(--muted); }
.card-moq b { color: var(--ink); font-size: .9rem; }

/* ---------- filter bar ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 26px; }
.filter-btn {
  border: 1px solid var(--line); background: #fff; color: #2c3d34; border-radius: 999px;
  padding: 8px 15px; font-size: .85rem; font-weight: 600; cursor: pointer; font-family: inherit;
}
.filter-btn:hover { border-color: var(--green-line); }
.filter-btn[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.search-input {
  margin-left: auto; min-width: 230px; padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--line); font-family: inherit; font-size: .88rem; background: #fff;
}
.search-input:focus { outline: 2px solid var(--green-line); outline-offset: 1px; }
.empty-note { padding: 32px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); display: none; }

/* ---------- calculator ---------- */
.calc-wrap { display: grid; grid-template-columns: 1.02fr .98fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--green-line); }
.calc-form { background: #fff; padding: 32px; }
.calc-result { background: var(--green-ink); color: #eaf4ef; padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.calc-result h3 { color: #fff; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: .95rem; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus { outline: 2px solid var(--green-line); outline-offset: 1px; border-color: var(--green-line); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc-out-main { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 750; letter-spacing: -.03em; color: #fff; line-height: 1.1; }
.calc-out-main small { font-size: .9rem; font-weight: 500; color: #9fc4b1; display: block; letter-spacing: 0; margin-top: 6px; }
.calc-lines { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.calc-lines li { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; padding: 5px 0; color: #c8e0d3; }
.calc-lines li b { color: #fff; font-weight: 600; }
.calc-note { font-size: .74rem; color: #8fb4a1; margin: 16px 0 0; line-height: 1.5; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--sand); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: #41524a; font-weight: 800; }
tbody tr:last-child td { border-bottom: 0; }
td b { font-weight: 650; }
.table-note { font-size: .8rem; color: var(--muted); margin: 12px 0 0; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: step; }
.step { position: relative; padding: 22px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-size: .78rem; font-weight: 800; color: var(--green); letter-spacing: .1em; display: block; margin-bottom: 8px;
}
.step h3 { font-size: .93rem; margin-bottom: 6px; }
.step p { font-size: .84rem; color: var(--muted); margin: 0; }
.steps--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- split content ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split > * { min-width: 0; }   /* let inner .table-wrap scroll instead of stretching the column */
.split-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid #eef2ef; }
.split-media img { width: 100%; height: 420px; object-fit: contain; background: #fff; padding: 12px; box-sizing: border-box; }
.checklist { list-style: none; padding: 0; margin: 0 0 22px; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 12px; font-size: .95rem; color: #2e3f37; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green-mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23008751' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* ---------- faq ---------- */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 17px 38px 17px 0; position: relative;
  font-weight: 650; font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; font-weight: 400; color: var(--green); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-right: 30px; margin: 0 0 16px; }

/* ---------- quote / form ---------- */
.quote-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--green-line); }
.quote-aside { background: var(--green); color: #eaf4ef; padding: 34px; }
.quote-aside h2 { color: #fff; }
.quote-aside p { color: #d5ece0; font-size: .95rem; }
.quote-aside .contact-line { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; font-size: .93rem; }
.quote-aside .contact-line b { color: #fff; display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px; }
.quote-form { background: #fff; padding: 34px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
textarea { width: 100%; min-height: 110px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 10px; font-family: inherit; font-size: .95rem; resize: vertical; }
textarea:focus { outline: 2px solid var(--green-line); outline-offset: 1px; }
.form-hint { font-size: .78rem; color: var(--muted); margin: 12px 0 0; }
.form-status { font-size: .86rem; margin: 12px 0 0; color: var(--green-deep); font-weight: 600; }

/* ---------- cta band ---------- */
.cta-band { background: var(--green-ink); color: #eaf4ef; padding: 56px 0; }
.cta-band h2 { color: #fff; max-width: 22ch; }
.cta-band p { color: #a9c9b8; max-width: 52ch; }
.cta-band .btn-primary { background: #fff; color: var(--green-ink); box-shadow: none; }
.cta-band .btn-primary:hover { background: var(--green-mist); }

/* ---------- footer ---------- */
.site-footer { background: #fbfcfa; border-top: 1px solid var(--line); padding: 52px 0 26px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 36px; margin-bottom: 34px; }
.footer-grid h4 { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: #64746b; margin-bottom: 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #2f4138; }
.footer-about p { color: var(--muted); font-size: .88rem; max-width: 34ch; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .82rem; }
.flag-strip { height: 4px; display: flex; }
.flag-strip i { flex: 1; background: var(--green); }
.flag-strip i:nth-child(2) { background: #fff; }

/* ---------- utility ---------- */
.page-head { padding: 48px 0 10px; background: linear-gradient(180deg, var(--green-mist), #fff); }
.breadcrumb { font-size: .82rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.pill-note { display: inline-flex; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--green-line); color: var(--green-deep); border-radius: 999px; padding: 7px 14px; font-size: .8rem; font-weight: 650; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; background: #fff; padding: 10px 16px; border-radius: 8px; z-index: 99; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-shot img { height: 340px; }
  .hero-mini { display: none; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 26px; }
  .calc-wrap, .quote-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav {
    position: fixed; inset: 68px 0 auto; background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; padding: 8px 22px 18px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--green-deep); }
  .header-cta { display: none; }
  .nav-toggle { display: block; }
  .trust-inner { grid-template-columns: 1fr 1fr; }
  .trust-item { border-left: 0; padding: 16px 0; border-top: 1px solid var(--line); }
  .trust-item:nth-child(3), .trust-item:nth-child(4) { border-top: 1px solid var(--line); }
  .product-grid, .cat-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 46px 0; }
  .form-grid, .field-row { grid-template-columns: 1fr; }
  .search-input { margin-left: 0; width: 100%; }
  .calc-form, .calc-result, .quote-form, .quote-aside { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-shot img { height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto; }
}

/* ==========================================================================
   About page extras
   ========================================================================== */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stats-grid .stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 18px;
}
.stats-grid .stat b { display: block; font-size: 1.5rem; letter-spacing: -.03em; color: var(--green-deep); line-height: 1.15; }
.stats-grid .stat span { font-size: .8rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; font-weight: 650; }
.factory-shot { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.factory-shot img { width: 100%; height: 430px; object-fit: cover; object-position: 50% 18%; }
.caps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cap-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.cap-card h3 { font-size: .98rem; margin-bottom: 6px; }
.cap-card p { font-size: .86rem; color: var(--muted); margin: 0; }
@media (max-width: 1000px) {
  .caps-grid { grid-template-columns: repeat(2, 1fr); }
  .factory-shot img { height: 340px; }
}
@media (max-width: 720px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .caps-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Chat desk widget
   ========================================================================== */
.chat-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--green); color: #fff; box-shadow: 0 10px 26px rgba(0, 135, 81, .38);
  display: grid; place-items: center; transition: transform .18s ease, background .18s;
}
.chat-fab:hover { transform: translateY(-2px); background: var(--green-deep); }
.chat-fab svg { width: 26px; height: 26px; }
.chat-fab .chat-dot {
  position: absolute; top: -2px; right: -2px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; color: var(--green-deep); font-size: .68rem; font-weight: 800;
  display: grid; place-items: center; border: 2px solid var(--green);
}
.chat-fab[aria-expanded="true"] .chat-icon-open { display: none; }
.chat-fab:not([aria-expanded="true"]) .chat-icon-close { display: none; }

.chat-panel {
  position: fixed; right: 20px; bottom: 90px; z-index: 95;
  width: 372px; max-width: calc(100vw - 32px); height: min(600px, calc(100vh - 130px));
  background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(4, 36, 26, .22);
  border: 1px solid var(--line); display: none; flex-direction: column; overflow: hidden;
}
.chat-panel.open { display: flex; animation: chat-in .22s ease; }
@keyframes chat-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

.chat-head {
  background: linear-gradient(135deg, var(--green-deep), var(--green));
  color: #fff; padding: 16px 18px; display: flex; align-items: center; gap: 12px;
}
.chat-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .16);
  display: grid; place-items: center; flex: 0 0 auto;
}
.chat-avatar svg { width: 22px; height: 22px; }
.chat-id b { display: block; font-size: .95rem; }
.chat-id span { font-size: .76rem; color: #cdeadd; display: inline-flex; align-items: center; gap: 6px; }
.chat-id span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #7ff0b4; }
.chat-min {
  margin-left: auto; background: rgba(255, 255, 255, .14); border: 0; color: #fff;
  width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-size: 1rem; line-height: 1;
}
.chat-min:hover { background: rgba(255, 255, 255, .26); }

.chat-body { flex: 1; overflow-y: auto; padding: 16px; background: var(--sand); display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 84%; padding: 10px 13px; border-radius: 14px; font-size: .88rem; line-height: 1.5; animation: msg-in .18s ease; }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.msg.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.me { background: var(--green); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg a { color: var(--green-deep); font-weight: 650; }
.msg.me a { color: #dff5e9; }
.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #9db3a7; animation: tp 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tp { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.chat-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 16px 10px; background: var(--sand); }
.chip-btn {
  border: 1px solid var(--green-line); background: #fff; color: var(--green-deep);
  font-size: .78rem; font-weight: 650; border-radius: 999px; padding: 7px 12px; cursor: pointer; font-family: inherit;
}
.chip-btn:hover { background: var(--green-mist); }

.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.chat-input input {
  flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 10px 15px;
  font-family: inherit; font-size: .88rem;
}
.chat-input input:focus { outline: 2px solid var(--green-line); outline-offset: 1px; }
.chat-send {
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--green); color: #fff; display: grid; place-items: center;
}
.chat-send:hover { background: var(--green-deep); }
.chat-send svg { width: 18px; height: 18px; }
.chat-foot { padding: 0 14px 10px; background: #fff; font-size: .72rem; color: var(--muted); text-align: center; }
.chat-foot a { font-weight: 700; }
.chat-cta {
  display: block; margin: 4px 0 2px; text-align: center; background: var(--green-mist);
  border: 1px solid var(--green-line); color: var(--green-deep); font-weight: 700;
  font-size: .8rem; border-radius: 10px; padding: 8px; text-decoration: none; cursor: pointer;
}
.chat-cta:hover { background: #dcefe4; }

@media (max-width: 720px) {
  .chat-fab { right: 14px; bottom: 14px; width: 54px; height: 54px; }
  .chat-panel { right: 8px; left: 8px; width: auto; bottom: 80px; height: min(78vh, 620px); }
}
@media (prefers-reduced-motion: reduce) {
  .chat-panel.open, .msg { animation: none; }
}
