/* =========================================================
   BetterLife International — public site stylesheet
   Palette: forest green (primary) + sky/ocean blue (secondary)
   ========================================================= */

:root {
  --green-900: #0b3d2e;
  --green-800: #0f4a37;
  --green-700: #16593f;
  --green-600: #1f7a52;
  --green-500: #2f9463;
  --green-400: #4bb37e;
  --green-100: #e6f3ec;

  --blue-900: #0a3d52;
  --blue-700: #0e6788;
  --blue-600: #1583ab;
  --blue-500: #29a3cf;
  --blue-100: #e5f5fb;

  --cream: #f7f6ef;
  --white: #ffffff;
  --ink: #16241d;
  --ink-soft: #4a5a51;
  --border: #e4e3d8;

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 28px;
  --shadow: 0 10px 30px rgba(11, 61, 46, 0.10);
  --shadow-lg: 0 20px 50px rgba(11, 61, 46, 0.16);

  --font-head: 'Plus Jakarta Sans', 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--green-900);
  line-height: 1.25;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(30px, 3.6vw, 44px); }
h2 { font-size: clamp(22px, 2.2vw, 28px); }
h3 { font-size: 19px; }
h4 { font-size: 16px; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
}
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }

section { padding: 76px 0; }
@media (max-width: 768px) { section { padding: 52px 0; } }

.section-cream { background: var(--cream); }
.section-dark {
  background: linear-gradient(160deg, var(--green-900), var(--green-700));
  color: #eaf3ee;
}
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark .section-kicker { color: var(--green-400); }
.section-dark .muted { color: #cfe3d8; }

.eyebrow, .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-700);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--green-500);
  display: inline-block;
}

.section-head { max-width: 620px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(24px, 2.6vw, 32px); }
.section-head p { font-size: 15px; }
.muted { color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green-600); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--green-700); }
.btn-accent { background: var(--blue-600); color: #fff; box-shadow: var(--shadow); }
.btn-accent:hover { background: var(--blue-700); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.5); color: inherit; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-outline-dark { background: transparent; border-color: var(--green-600); color: var(--green-700); }
.btn-outline-dark:hover { background: var(--green-600); color: #fff; }
.btn-white { background: #fff; color: var(--green-800); }
.btn-white:hover { background: var(--green-100); }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 17px; color: var(--green-900); }
.brand img { height: 38px; width: auto; }
.brand small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--blue-600); }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-weight: 600; font-size: 15px; color: var(--ink); position: relative; padding: 6px 0;
}
.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--green-600); transition: width .2s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--green-700); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; color: var(--green-900); }

.cart-link { position: relative; display: inline-flex; color: var(--green-900); }
.cart-count {
  position: absolute; top: -8px; right: -9px; background: var(--blue-600); color: #fff;
  font-size: 10px; font-weight: 800; min-width: 17px; height: 17px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}

/* Dropdown ("Our Work") */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex; align-items: center; gap: 5px; background: none; border: none; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 15px; color: var(--ink); padding: 6px 0;
}
.nav-dropdown.active .nav-dropdown-toggle { color: var(--green-700); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%);
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  padding: 8px; min-width: 210px; display: none; flex-direction: column; gap: 2px; z-index: 50;
}
.nav-dropdown-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ink); }
.nav-dropdown-menu a:hover { background: var(--green-100); color: var(--green-800); }
.nav-dropdown-menu a::after { display: none; }
.nav-dropdown.open .nav-dropdown-menu { display: flex; }
@media (min-width: 981px) { .nav-dropdown:hover .nav-dropdown-menu { display: flex; } }

@media (max-width: 980px) {
  .main-nav {
    position: fixed; top: 0; right: 0; left: auto; bottom: auto;
    height: 100vh; height: 100dvh; /* dvh accounts for mobile browser toolbars so the panel never runs taller than what's actually visible */
    width: min(300px, 85%);
    background: #fff; display: flex; flex-direction: column; align-items: flex-start;
    padding: 84px 24px 24px; box-shadow: -20px 0 40px rgba(0,0,0,.15);
    transform: translateX(100%); transition: transform .3s ease; gap: 4px;
    overflow-y: auto; -webkit-overflow-scrolling: touch; z-index: 300;
  }
  .main-nav.open { transform: translateX(0); }
  .nav-toggle { display: block; }
  .header-actions .btn span.label { display: none; }
  .main-nav > a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--border); }
  .nav-dropdown { width: 100%; border-bottom: 1px solid var(--border); }
  .nav-dropdown-toggle { width: 100%; justify-content: space-between; padding: 12px 0; }
  .nav-dropdown-menu { position: static; transform: none; box-shadow: none; border: none; padding: 0 0 10px 14px; min-width: 0; }
}

/* ---------- Hero (neat split + diagonal photo grid) ---------- */
/* Full-width hero: scrolling photo wall fills the whole section, dimmed
   by a scrim, with centered copy floating on top. */
.hero-full {
  position: relative; overflow: hidden; min-height: 86vh;
  display: flex; align-items: center; justify-content: center;
  padding: 130px 0 70px; color: #fff;
}
.hero-full-copy { position: relative; z-index: 2; }
.hero-text { max-width: 780px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.35);
  padding: 8px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #fff;
  margin-bottom: 20px; backdrop-filter: blur(6px);
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-400); }
.hero-text h1 { color: #fff; font-size: clamp(32px, 4.8vw, 56px); margin-bottom: 18px; letter-spacing: -.01em; text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.hero-text p.lead { font-size: 17px; color: #e6efe9; max-width: 640px; margin-bottom: 24px; }

.feature-pills { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 28px; justify-content: center; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 15px; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1); font-size: 12.5px; font-weight: 600; color: #f2f5f2;
  backdrop-filter: blur(6px);
}
.pill.pill-active { background: var(--green-600); border-color: var(--green-600); color: #fff; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* Full-bleed scrolling photo wall — 12 admin-editable photos in 4
   horizontal rows that drift continuously (alternating left/right)
   behind a dark scrim, filling the entire hero section edge to edge.
   Each row's photos are duplicated in the markup and animated by
   exactly -50% so the loop is seamless (no jump). */
.hero-scroll-panel {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.scroll-track { display: flex; flex-direction: column; gap: 10px; height: 100%; width: 100%; padding: 10px 0; }
.scroll-row { display: flex; flex-direction: row; gap: 10px; flex: 1; min-height: 0; will-change: transform; }
.scroll-row.dir-left { animation: scrollRowLeft 40s linear infinite; }
.scroll-row.dir-right { animation: scrollRowRight 46s linear infinite; transform: translateX(-50%); }
@keyframes scrollRowLeft { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes scrollRowRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .scroll-row { animation: none !important; transform: none !important; } }

.scroll-tile { position: relative; overflow: hidden; aspect-ratio: 4 / 3; height: 100%; width: auto; flex-shrink: 0; }
.scroll-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scroll-tile::after { content: ''; position: absolute; inset: 0; mix-blend-mode: multiply; opacity: .3; }
.scroll-tile.tint-green::after { background: linear-gradient(160deg, var(--green-700), transparent 65%); }
.scroll-tile.tint-blue::after { background: linear-gradient(160deg, var(--blue-700), transparent 65%); }

.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(9,40,29,.78), rgba(9,40,29,.55) 45%, rgba(9,40,29,.82));
}

.btn-hero-cta {
  background: var(--green-600); color: #fff; box-shadow: var(--shadow);
  padding-right: 8px;
}
.btn-hero-cta:hover { background: var(--green-500); }
.btn-hero-cta .cta-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; background: var(--blue-500); color: #fff;
}

@media (max-width: 640px) {
  .hero-full { padding: 120px 0 56px; min-height: 92vh; }
  .scroll-track { gap: 6px; }
  .scroll-row { gap: 6px; }
}

/* ---------- Breadcrumb / page header ---------- */
.page-header {
  background: linear-gradient(120deg, var(--green-900), var(--green-700) 60%, var(--blue-700));
  color: #fff;
  padding: 54px 0 46px;
  position: relative;
}
.page-header h1 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin-bottom: 10px; }
.page-header .crumb { font-size: 13.5px; color: #cfe3d8; }
.page-header .crumb a { color: #fff; font-weight: 600; }
.page-header .crumb span { opacity: .7; margin: 0 6px; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 30px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  border: 1px solid var(--border);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* Program cards */
.program-card { display: flex; flex-direction: column; height: 100%; }
.program-card .thumb { height: 200px; overflow: hidden; }
.program-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.program-card:hover .thumb img { transform: scale(1.08); }
.program-card .body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.program-card .icon-badge { width: 46px; height: 46px; border-radius: 12px; background: var(--green-100); color: var(--green-700); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.program-card .tagline { color: var(--blue-600); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.program-card h3 { font-size: 20px; margin-bottom: 10px; }
.program-card .more { margin-top: auto; padding-top: 14px; font-weight: 700; color: var(--green-700); display: inline-flex; align-items: center; gap: 6px; }

/* Local Impact section (neat stat cards + real photos, replaces heavy dark stat band) */
.impact-section { padding-top: 60px; padding-bottom: 60px; }
.impact-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 30px; }
@media (max-width: 900px) { .impact-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .impact-stats { grid-template-columns: repeat(2, 1fr); } }
.stat-item {
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px 14px;
  text-align: center; box-shadow: var(--shadow);
}
.stat-item strong { font-family: var(--font-head); font-size: 24px; display: block; color: var(--green-700); }
.stat-item span { font-size: 11.5px; color: var(--ink-soft); font-weight: 600; }

.impact-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 700px) { .impact-photos { grid-template-columns: 1fr 1fr; } }
.impact-photo { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; }
.impact-photo img { width: 100%; height: 100%; object-fit: cover; }
.impact-photo .cap {
  position: absolute; bottom: 12px; left: 12px; background: rgba(11,61,46,.85); color: #fff;
  font-size: 11.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
}

/* Report cards (Impact & Reports page) */
.report-card { padding: 34px 28px; text-align: center; }
.report-card .report-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--blue-100); color: var(--blue-700); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.report-card .report-logo { width: 36px; height: 36px; object-fit: contain; margin: 0 auto 10px; }
.report-card h3 { font-size: 17px; margin-bottom: 10px; }

/* Project cards */
.project-card .thumb { height: 200px; overflow: hidden; }
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.project-card:hover .thumb img { transform: scale(1.08); }
.project-card .body { padding: 24px; }
.project-card h3 { font-size: 18px; margin: 8px 0 8px; }

/* Product cards */
.product-card { position: relative; }
.product-card .thumb { height: 240px; overflow: hidden; position: relative; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .thumb img { transform: scale(1.08); }
.product-card .badge-cat {
  position: absolute; top: 14px; left: 14px; background: var(--blue-600); color: #fff;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: 6px 12px; border-radius: 999px;
}
.product-card .badge-featured {
  position: absolute; top: 14px; right: 14px; background: var(--green-500); color: #fff;
  font-size: 11px; font-weight: 700; padding: 6px 12px; border-radius: 999px;
}
.product-card .body { padding: 22px; }
.product-card h3 { font-size: 19px; margin-bottom: 6px; }
.product-card .price { color: var(--green-700); font-weight: 800; font-size: 17px; margin: 10px 0; }
.product-card .price small { color: var(--ink-soft); font-weight: 500; font-size: 12px; }
.product-card .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }

/* Team cards */
.team-card { text-align: center; padding: 30px 20px; }
.team-card .avatar { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; margin: 0 auto 18px; border: 4px solid var(--green-100); }
.team-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h4 { margin-bottom: 4px; font-size: 17px; }
.team-card .role { color: var(--blue-600); font-weight: 600; font-size: 13px; margin-bottom: 12px; }
.team-card .social { display: flex; justify-content: center; gap: 10px; }
.team-card .social a { width: 32px; height: 32px; border-radius: 50%; background: var(--green-100); color: var(--green-700); display: flex; align-items: center; justify-content: center; transition: .2s; }
.team-card .social a:hover { background: var(--green-600); color: #fff; }

.board-card { display: flex; gap: 20px; padding: 24px; align-items: flex-start; }
.board-card .avatar { width: 90px; height: 90px; border-radius: 16px; overflow: hidden; flex-shrink: 0; }
.board-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.board-card h4 { margin-bottom: 2px; }
.board-card .role { color: var(--blue-600); font-weight: 600; font-size: 13px; margin-bottom: 10px; display: block; }
.board-card p { font-size: 14px; color: var(--ink-soft); margin: 0 0 10px; }

/* Clickable team/board cards -> bio modal */
.js-open-bio { cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.js-open-bio:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.js-open-bio:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 3px; }
.read-bio-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  font-size: 12.5px; font-weight: 700; color: var(--green-700);
}
.board-card .read-bio-link { margin-top: 2px; }

.member-modal { position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center; padding: 24px; }
.member-modal.open { display: flex; }
.member-modal-backdrop { position: absolute; inset: 0; background: rgba(11, 36, 29, .55); backdrop-filter: blur(2px); }
.member-modal-card {
  position: relative; background: #fff; border-radius: var(--radius-lg); padding: 40px;
  max-width: 520px; width: 100%; max-height: 85vh; overflow-y: auto; text-align: center;
  box-shadow: var(--shadow-lg); animation: memberModalIn .25s ease;
}
@keyframes memberModalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.member-modal-close {
  position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--cream); border: none; color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.member-modal-close:hover { background: var(--green-100); color: var(--green-800); }
.member-modal-card img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; border: 4px solid var(--green-100); }
.member-modal-card h3 { margin-bottom: 4px; }
.member-modal-card .role { display: block; color: var(--blue-600); font-weight: 700; font-size: 13.5px; margin-bottom: 18px; }
.member-modal-card p { font-size: 14.5px; color: var(--ink-soft); text-align: left; margin: 0; }
@media (max-width: 560px) { .member-modal-card { padding: 30px 22px; } }

.pill-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.pill-tabs a { padding: 10px 22px; border-radius: 999px; border: 2px solid var(--border); font-weight: 700; font-size: 14px; color: var(--ink-soft); }
.pill-tabs a.active, .pill-tabs a:hover { background: var(--green-600); border-color: var(--green-600); color: #fff; }

/* Journey (Our Journey timeline, paired with a photo) */
.journey-list { margin-top: 10px; }
.journey-row { display: flex; gap: 18px; align-items: flex-start; padding: 14px 0; border-bottom: 1px dashed var(--border); }
.journey-row:last-child { border-bottom: none; }
.journey-row .year { font-family: var(--font-head); font-size: 18px; font-weight: 800; color: var(--blue-600); flex-shrink: 0; width: 54px; }
.journey-row p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* Values */
.value-card { padding: 30px 26px; }
.value-card .num { font-family: var(--font-head); font-size: 15px; color: var(--blue-500); font-weight: 800; margin-bottom: 12px; letter-spacing: .06em; }
.value-card h4 { font-size: 19px; margin-bottom: 10px; }
.value-card p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* Testimonials */
.testimonial-card { padding: 34px; position: relative; }
.testimonial-card .quote-mark { font-family: Georgia, serif; font-size: 60px; color: var(--green-100); line-height: .5; position: absolute; top: 22px; right: 26px; }
.testimonial-card p.quote { font-size: 16px; color: var(--ink); font-style: italic; margin-bottom: 22px; }
.testimonial-card .who { display: flex; align-items: center; gap: 12px; }
.testimonial-card .who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial-card .who strong { display: block; font-size: 14px; }
.testimonial-card .who span { font-size: 12px; color: var(--ink-soft); }

/* Blog */
.post-card .thumb { height: 210px; overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .thumb img { transform: scale(1.07); }
.post-card .body { padding: 22px; }
.post-card .meta { font-size: 12px; color: var(--ink-soft); display: flex; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.post-card .meta span { display: inline-flex; align-items: center; gap: 5px; }
.post-card .cat-badge { display: inline-block; background: var(--blue-100); color: var(--blue-700); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }
.post-card h3 { font-size: 19px; margin-bottom: 10px; }
.post-card h3 a:hover { color: var(--green-700); }
.post-card .excerpt { font-size: 14px; color: var(--ink-soft); margin-bottom: 14px; }
.post-card .readmore { font-weight: 700; color: var(--green-700); font-size: 14px; }

.blog-featured { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; background: var(--cream); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 60px; }
.blog-featured .img { height: 100%; min-height: 340px; }
.blog-featured .img img { width: 100%; height: 100%; object-fit: cover; }
.blog-featured .content { padding: 30px 40px 30px 0; }
@media (max-width: 900px) { .blog-featured { grid-template-columns: 1fr; } .blog-featured .content { padding: 0 28px 32px; } .blog-featured .img { min-height: 240px; } }

.blog-layout { display: grid; grid-template-columns: 2.1fr 1fr; gap: 50px; }
@media (max-width: 900px) { .blog-layout { grid-template-columns: 1fr; } }
.sidebar-widget { background: var(--cream); border-radius: var(--radius); padding: 26px; margin-bottom: 26px; }
.sidebar-widget h4 { font-size: 16px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }
.sidebar-post { display: flex; gap: 14px; margin-bottom: 16px; }
.sidebar-post img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.sidebar-post .t { font-size: 13.5px; font-weight: 700; line-height: 1.4; }
.sidebar-post .d { font-size: 11px; color: var(--ink-soft); margin-top: 4px; }
.cat-list a { display: flex; justify-content: space-between; padding: 9px 0; font-size: 14px; font-weight: 600; border-bottom: 1px dashed var(--border); }
.cat-list a:hover { color: var(--green-700); }
.cat-list a span.count { color: var(--ink-soft); font-weight: 400; }

.post-single .featured-image { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 34px; max-height: 460px; }
.post-single .featured-image img { width: 100%; object-fit: cover; }
.post-single .post-title { font-size: clamp(24px, 3vw, 34px); }
.post-single .post-meta { display: flex; gap: 20px; flex-wrap: wrap; color: var(--ink-soft); font-size: 14px; margin-bottom: 26px; }
.post-single .post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-content { font-size: 17px; color: #2c3a32; }
.post-content p { margin-bottom: 1.3em; }
.share-box { display: flex; align-items: center; gap: 12px; margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.share-box strong { font-size: 14px; display: inline-flex; align-items: center; gap: 7px; color: var(--green-800); }
.share-box a { width: 38px; height: 38px; border-radius: 50%; background: var(--cream); color: var(--green-800); display: flex; align-items: center; justify-content: center; transition: .2s; }
.share-box a:hover { background: var(--green-600); color: #fff; transform: translateY(-3px); }

/* Search box */
.search-box { display: flex; border-radius: 999px; overflow: hidden; border: 2px solid var(--border); }
.search-box input { border: none; outline: none; padding: 12px 18px; flex: 1; font-size: 14px; }
.search-box button { border: none; background: var(--green-600); color: #fff; padding: 0 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, var(--blue-700), var(--green-700));
  border-radius: var(--radius-lg);
  color: #fff;
  padding: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-banner h3 { color: #fff; font-size: 22px; margin-bottom: 8px; }
.cta-banner p { color: #e2f0e9; margin: 0; }
@media (max-width: 700px) { .cta-banner { padding: 40px 28px; text-align: center; justify-content: center; } }

/* About split sections */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 34px; } }
.split .img-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  padding: 12px; background: var(--green-100); max-width: 440px; margin: 0 auto;
}
.split .img-frame.bg-blue { background: var(--blue-100); }
.split .img-frame img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: calc(var(--radius-lg) - 7px); display: block;
}
.split .float-card {
  position: absolute; bottom: -20px; right: -20px; background: #fff; border-radius: var(--radius);
  padding: 14px 18px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px;
}
.split .float-card strong { display: block; font-family: var(--font-head); font-size: 20px; color: var(--green-700); }
.split .float-card span { font-size: 11px; color: var(--ink-soft); }
.check-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; font-size: 15px; }
.check-list li .tick { width: 22px; height: 22px; border-radius: 50%; background: var(--green-100); color: var(--green-700); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }

.qty-stepper { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: 999px; overflow: hidden; }
.qty-stepper .qty-btn { background: var(--cream); border: none; width: 38px; height: 44px; font-size: 18px; cursor: pointer; color: var(--green-800); }
.qty-stepper .qty-btn:hover { background: var(--green-100); }
.qty-stepper input[type=number] { width: 52px; border: none; text-align: center; padding: 0; -moz-appearance: textfield; }
.qty-stepper input[type=number]::-webkit-outer-spin-button, .qty-stepper input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Invoice / Receipt */
.invoice-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; max-width: 720px; margin: 0 auto; box-shadow: var(--shadow); }
.invoice-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 24px; border-bottom: 2px solid var(--border); margin-bottom: 24px; flex-wrap: wrap; }
.invoice-brand { display: flex; align-items: center; gap: 12px; }
.invoice-brand img { height: 42px; }
.invoice-brand strong { display: block; font-family: var(--font-head); color: var(--green-900); }
.invoice-brand span { font-size: 12px; color: var(--ink-soft); }
.invoice-meta { text-align: right; font-size: 13px; color: var(--ink-soft); }
.invoice-meta h3 { margin-bottom: 6px; }
.badge-invoice { display: inline-block; margin-top: 8px; padding: 5px 14px; border-radius: 999px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.badge-invoice.paid { background: var(--green-100); color: var(--green-800); }
.badge-invoice.pending { background: #fff3da; color: #93670a; }
.badge-invoice.failed { background: #fdeaea; color: #9b2c2c; }
.invoice-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 26px; }
.invoice-parties .label { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--blue-600); font-weight: 700; }
.invoice-parties p { font-size: 14px; margin: 4px 0 12px; }
.invoice-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.invoice-table th { text-align: left; font-size: 11px; text-transform: uppercase; color: var(--ink-soft); padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.invoice-table td { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.invoice-totals { margin-left: auto; max-width: 260px; }
.invoice-totals div { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; }
.invoice-totals .grand { border-top: 2px solid var(--border); margin-top: 6px; padding-top: 12px; font-size: 18px; }
.invoice-totals .grand strong { color: var(--green-700); }
.invoice-footer { text-align: center; margin-top: 30px; padding-top: 20px; border-top: 1px dashed var(--border); font-size: 12.5px; color: var(--ink-soft); }
@media print {
  .site-header, .site-footer, .back-to-top, .page-header, .btn { display: none !important; }
  .invoice-box { box-shadow: none; border: none; }
}
@media (max-width: 600px) { .invoice-box { padding: 24px; } .invoice-parties { grid-template-columns: 1fr; } .invoice-meta { text-align: left; } }

/* Cart */
.cart-table { display: flex; flex-direction: column; gap: 14px; margin-bottom: 30px; }
.cart-row {
  display: grid; grid-template-columns: 70px 1fr auto auto auto; gap: 18px; align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px;
}
.cart-row img { width: 70px; height: 70px; object-fit: cover; border-radius: 10px; }
.cart-row-info h4 { font-size: 15px; margin-bottom: 4px; }
.cart-qty-form { display: flex; gap: 8px; align-items: center; }
.cart-qty-form input[type=number] { width: 64px; padding: 8px; text-align: center; }
.cart-row-total { font-weight: 800; color: var(--green-700); white-space: nowrap; }
.cart-remove { background: none; border: none; color: var(--ink-soft); cursor: pointer; padding: 6px; }
.cart-remove:hover { color: #c0392b; }
@media (max-width: 700px) { .cart-row { grid-template-columns: 60px 1fr; grid-template-areas: "img info" "qty qty" "total remove"; } .cart-row img { grid-area: img; } .cart-row-info { grid-area: info; } .cart-qty-form { grid-area: qty; } .cart-row-total { grid-area: total; } .cart-remove { grid-area: remove; justify-self: end; } }
.cart-summary { background: var(--cream); border-radius: var(--radius); padding: 26px; max-width: 420px; margin-left: auto; }
.cart-summary-row { display: flex; justify-content: space-between; font-size: 18px; margin-bottom: 10px; }
.cart-summary-row strong { color: var(--green-700); }

/* Forms */
.form-control {
  width: 100%; padding: 14px 16px; border-radius: 10px; border: 1.5px solid var(--border);
  font-family: inherit; font-size: 15px; background: #fff; transition: border .2s;
}
.form-control:focus { outline: none; border-color: var(--green-500); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 8px; color: var(--green-900); }
textarea.form-control { resize: vertical; min-height: 130px; }

.contact-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 44px; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 26px; }
.contact-info-item .icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-item h4 { color: #fff; font-size: 15px; margin-bottom: 4px; }
.contact-info-item p { color: #cfe3d8; margin: 0; font-size: 14px; }

.alert { padding: 16px 20px; border-radius: 10px; margin-bottom: 24px; font-size: 14px; font-weight: 600; }
.alert-success { background: var(--green-100); color: var(--green-800); border: 1px solid var(--green-500); }
.alert-error { background: #fde8e8; color: #9b2c2c; border: 1px solid #e37b7b; }

/* Footer */
.site-footer { background: var(--green-900); color: #cfe3d8; padding-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.85fr 1.1fr 0.85fr 1fr; gap: 32px; padding-bottom: 50px; }
@media (max-width: 1080px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-links li.ico-text { align-items: flex-start; }
.footer-links li.ico-text svg { margin-top: 2px; flex-shrink: 0; }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 20px; text-transform: uppercase; letter-spacing: .05em; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.footer-brand img { height: 40px; }
.footer-brand span { font-family: var(--font-head); font-weight: 800; color: #fff; font-size: 18px; }
.footer-links li { margin-bottom: 12px; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--blue-500); }
.footer-newsletter { display: flex; margin-top: 10px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.08); }
.footer-newsletter input { flex: 1; background: transparent; border: none; padding: 12px 16px; color: #fff; font-size: 13px; }
.footer-newsletter input::placeholder { color: #a9c4b7; }
.footer-newsletter button { border: none; background: var(--blue-600); color: #fff; padding: 0 18px; cursor: pointer; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom a:hover { color: #fff; }

.icon { display: inline-flex; }
.icon svg { width: 1em; height: 1em; }
.ico { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ico-text { display: inline-flex; align-items: center; gap: 7px; }

.back-to-top {
  position: fixed; bottom: 26px; right: 26px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--green-600); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; z-index: 150;
}
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--blue-600); transform: translateY(-4px); }
.back-to-top svg { transform: rotate(-90deg); }

.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.in { opacity: 1; transform: translateY(0); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-soft); }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.pagination a, .pagination span { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 10px; border: 1.5px solid var(--border); font-weight: 700; font-size: 14px; }
.pagination a:hover { background: var(--green-600); color: #fff; border-color: var(--green-600); }
.pagination .current { background: var(--green-900); color: #fff; border-color: var(--green-900); }
