/* ══════════════════════════════════════
   Emerald Trust Bangladesh UI
   Design System CSS for bd666.my
   ══════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  --color-primary: #1a6b4a;
  --color-primary-dark: #0d4a30;
  --color-primary-soft: #e8f5ef;
  --color-secondary: #c8a951;
  --color-accent: #e67e22;
  --color-bg: #0a1628;
  --color-bg-soft: #0f1f36;
  --color-surface: #132640;
  --color-surface-strong: #1a3352;
  --color-card: #132640;
  --color-card-alt: #0f2438;
  --color-border: rgba(26,107,74,0.3);
  --color-border-strong: rgba(26,107,74,0.55);
  --color-text: #e8edf5;
  --color-text-soft: #b0bec5;
  --color-text-muted: #7b8fa3;
  --color-success: #2ecc71;
  --color-warning: #f39c12;
  --color-danger: #e74c3c;
  --color-footer-bg: #060e1a;
  --color-footer-text: #7b8fa3;

  --gradient-hero: linear-gradient(135deg, #0d4a30 0%, #0a1628 50%, #132640 100%);
  --gradient-button: linear-gradient(135deg, #1a6b4a, #c8a951);
  --gradient-button-hover: linear-gradient(135deg, #0d4a30, #b8972e);
  --gradient-cta: linear-gradient(135deg, #c8a951, #e67e22);
  --gradient-card-bg: linear-gradient(160deg, #132640, #0f1f36);

  --shadow-header: 0 2px 12px rgba(0,0,0,0.3);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.2);
  --shadow-card-hover: 0 8px 24px rgba(26,107,74,0.25);
  --shadow-button: 0 2px 8px rgba(26,107,74,0.3);
  --shadow-cta: 0 4px 16px rgba(200,169,81,0.3);
  --shadow-menu: 0 8px 32px rgba(0,0,0,0.4);

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 50px;
  --radius-card: 14px;
  --radius-image: 12px;

  --font-base: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
  --fs-h1: clamp(1.8rem, 4vw, 2.8rem);
  --fs-h2: clamp(1.4rem, 3vw, 2rem);
  --fs-h3: clamp(1.1rem, 2vw, 1.4rem);
  --fs-body: 1rem;
  --fs-small: 0.88rem;
  --fs-nav: clamp(13px, 0.84vw, 15px);
  --lh-heading: 1.35;
  --lh-body: 1.85;

  --container-max: 1200px;
  --container-narrow: 800px;
  --section-y: clamp(3rem, 6vw, 5rem);
  --header-h: 64px;
  --mobile-header-h: 56px;
  --card-padding: clamp(1.2rem, 2vw, 1.8rem);

  --motion-fast: 150ms;
  --motion-normal: 250ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-base);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-secondary); text-decoration: none; transition: color var(--motion-fast) var(--ease-soft); }
a:hover { color: var(--color-accent); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-base); line-height: var(--lh-heading); color: var(--color-text); }
h1 { font-size: var(--fs-h1); font-weight: 700; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 600; }

/* ── Layout ── */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 clamp(16px, 3vw, 24px); }
.container-narrow { max-width: var(--container-narrow); }
.section { padding: var(--section-y) 0; }
.section-alt { background: var(--color-surface); }
.section-alt2 { background: var(--color-bg-soft); }

/* ── Gradient Text ── */
.grad-text {
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.grad-gold {
  background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Section Titles ── */
.section-title { margin-bottom: 0.5rem; }
.section-sub { color: var(--color-text-muted); font-size: 1rem; margin-bottom: 2rem; }
.divider-accent { width: 60px; height: 3px; background: var(--gradient-button); border-radius: 2px; margin: 0.6rem 0 1.2rem; }
.divider-center { margin-left: auto; margin-right: auto; }

/* ══════════════════════════════════════
   HEADER
   ══════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10,22,40,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-header);
}
.site-header .header-inner {
  width: 100%;
  max-width: none;
  padding-left: clamp(10px, 1.2vw, 20px);
  padding-right: clamp(10px, 1.2vw, 20px);
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: clamp(10px, 1vw, 18px);
}
.brand-wrap {
  flex: 0 0 auto;
  margin-right: clamp(4px, 0.8vw, 14px);
  display: flex;
  align-items: center;
}
.site-logo {
  display: block;
  width: auto;
  height: clamp(32px, 3vw, 42px);
  max-width: clamp(118px, 10vw, 168px);
  object-fit: contain;
}
.primary-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(6px, 0.72vw, 14px);
  white-space: nowrap;
  overflow: visible;
}
.primary-nav a {
  flex: 0 1 auto;
  min-width: 0;
  padding: 9px clamp(6px, 0.65vw, 12px);
  font-size: var(--fs-nav);
  line-height: 1;
  white-space: nowrap;
  color: var(--color-text-soft);
  border-radius: var(--radius-sm);
  transition: color var(--motion-fast), background var(--motion-fast);
}
.primary-nav a:hover,
.primary-nav a.active {
  color: var(--color-secondary);
  background: rgba(26,107,74,0.1);
}
.header-actions {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(6px, 0.6vw, 10px);
  white-space: nowrap;
}
.nav-toggle {
  display: none;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 1.3rem;
  transition: background var(--motion-fast);
}
.nav-toggle:hover { background: rgba(26,107,74,0.15); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-base);
  border-radius: var(--radius-pill);
  transition: all var(--motion-normal) var(--ease-soft);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.2;
}
.btn-primary {
  background: var(--gradient-button);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-button);
}
.btn-primary:hover {
  background: var(--gradient-button-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-cta);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--color-text-soft);
  border: 1.5px solid var(--color-primary);
  padding: 0.55rem 1.5rem;
}
.btn-outline:hover {
  background: rgba(26,107,74,0.15);
  color: var(--color-text);
  border-color: var(--color-primary-dark);
}
.btn-cta {
  background: var(--gradient-cta);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-cta);
  font-size: 1.05rem;
  padding: 0.75rem 2rem;
}
.btn-cta:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  color: #fff;
}
.btn-sm { padding: 0.4rem 1.2rem; font-size: 0.85rem; }
.btn-lg { padding: 0.85rem 2.4rem; font-size: 1.05rem; }

/* ══════════════════════════════════════
   HERO SECTIONS (per-page variants)
   ══════════════════════════════════════ */
.hero-home {
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  padding: 5rem 0 3rem;
}
.hero-home::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 450px; height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,107,74,0.2), transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  background: rgba(26,107,74,0.2);
  border: 1px solid var(--color-primary);
  color: var(--color-secondary);
  border-radius: var(--radius-pill);
  padding: 0.3rem 1rem;
  font-size: 0.82rem;
  margin-bottom: 1.2rem;
  letter-spacing: 0.5px;
}
.hero-lead { color: var(--color-text-muted); font-size: 1.1rem; max-width: 520px; margin-bottom: 2rem; line-height: 1.8; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-img-wrap { position: relative; }
.hero-img-wrap img { border-radius: var(--radius-lg); box-shadow: 0 0 40px rgba(26,107,74,0.3); width: 100%; }
.hero-img-wrap::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-lg) + 2px);
  background: var(--gradient-button);
  z-index: -1;
  opacity: 0.4;
}

/* Inner page hero variants */
.hero-inner {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  background: linear-gradient(160deg, rgba(26,107,74,0.1), var(--color-bg) 60%);
  border-bottom: 1px solid var(--color-border);
}
.hero-game {
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
  background: radial-gradient(ellipse at 30% 50%, rgba(26,107,74,0.12) 0%, transparent 60%), var(--color-bg);
}
.hero-form {
  padding: clamp(2rem, 4vw, 3rem) 0;
  background: linear-gradient(180deg, rgba(26,107,74,0.08) 0%, var(--color-bg) 100%);
}
.hero-policy {
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
}

/* ── Grid Helpers ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-2-1 { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.text-center { text-align: center; }

/* ── Cards ── */
.card-dark {
  background: var(--gradient-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
  transition: transform var(--motion-normal) var(--ease-out), box-shadow var(--motion-normal);
  height: 100%;
}
.card-dark:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: rgba(26,107,74,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--color-secondary);
}
.card-dark h5 { font-weight: 600; margin-bottom: 0.5rem; }
.card-dark p { color: var(--color-text-muted); font-size: 0.93rem; margin: 0; }

/* ── Stats Strip ── */
.stats-strip {
  background: linear-gradient(90deg, rgba(26,107,74,0.1), rgba(200,169,81,0.08));
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 0;
}
.stat-item { text-align: center; padding: 0.5rem; }
.stat-num {
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--gradient-button);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { color: var(--color-text-muted); font-size: 0.85rem; }

/* ── Compare Table ── */
.compare-table { border-collapse: separate; border-spacing: 0; width: 100%; }
.compare-table th {
  background: var(--gradient-button);
  color: #fff;
  padding: 0.85rem 1rem;
  font-weight: 600;
  text-align: center;
  font-size: 0.95rem;
}
.compare-table th:first-child { border-radius: var(--radius-md) 0 0 0; text-align: left; }
.compare-table th:last-child { border-radius: 0 var(--radius-md) 0 0; }
.compare-table td {
  background: var(--color-card);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 1rem;
  color: var(--color-text-muted);
  text-align: center;
  font-size: 0.93rem;
}
.compare-table td:first-child { text-align: left; color: var(--color-text); font-weight: 500; }
.compare-table tr:last-child td:first-child { border-radius: 0 0 0 var(--radius-md); }
.compare-table tr:last-child td:last-child { border-radius: 0 0 var(--radius-md) 0; }
.check-yes { color: var(--color-success); font-size: 1.1rem; }
.check-no { color: var(--color-danger); font-size: 1.1rem; }

/* ── Hand Ranking Table (game pages) ── */
.hand-table { border-collapse: separate; border-spacing: 0; width: 100%; }
.hand-table th {
  background: var(--color-surface-strong);
  color: var(--color-secondary);
  padding: 0.8rem 1rem;
  font-weight: 600;
  text-align: left;
  border-bottom: 2px solid var(--color-primary);
}
.hand-table td {
  background: var(--color-card);
  border-bottom: 1px solid var(--color-border);
  padding: 0.7rem 1rem;
  color: var(--color-text-soft);
  font-size: 0.93rem;
}
.rank-badge {
  display: inline-block;
  background: rgba(26,107,74,0.2);
  color: var(--color-secondary);
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ── Pricing Cards ── */
.pricing-card {
  background: var(--gradient-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  transition: transform var(--motion-normal) var(--ease-out);
  height: 100%;
}
.pricing-card.featured {
  border-color: var(--color-primary);
  box-shadow: 0 0 30px rgba(26,107,74,0.3);
  background: linear-gradient(160deg, var(--color-surface-strong), var(--color-card));
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-button);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 0.25rem 1.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.pricing-card:hover { transform: translateY(-5px); }
.price-amount { font-size: 2.2rem; font-weight: 700; line-height: 1.1; }
.price-amount span { font-size: 1rem; font-weight: 400; color: var(--color-text-muted); }
.pricing-card ul { padding: 0; margin: 1rem 0; text-align: left; }
.pricing-card ul li { padding: 0.3rem 0; color: var(--color-text-muted); font-size: 0.92rem; }
.pricing-card ul li i { color: var(--color-success); margin-right: 0.5rem; }

/* ── Testimonials ── */
.testi-card {
  background: var(--gradient-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.8rem;
  position: relative;
  height: 100%;
}
.testi-card::before {
  content: '\201C';
  font-size: 3.5rem;
  color: var(--color-primary);
  opacity: 0.3;
  position: absolute;
  top: 0.5rem; left: 1rem;
  line-height: 1;
  font-family: Georgia, serif;
}
.testi-card p { color: var(--color-text-muted); font-size: 0.95rem; margin-bottom: 1rem; padding-top: 1.5rem; }
.testi-stars { color: var(--color-secondary); font-size: 0.9rem; margin-bottom: 0.5rem; }
.testi-name { font-weight: 600; color: var(--color-text); font-size: 0.95rem; }
.testi-city { color: var(--color-text-muted); font-size: 0.82rem; }

/* ── Notice Box ── */
.notice-box {
  background: linear-gradient(135deg, rgba(26,107,74,0.12), rgba(200,169,81,0.06));
  border: 1px solid var(--color-border-strong);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.8rem;
}
.notice-box h5 { color: var(--color-secondary); font-weight: 600; margin-bottom: 0.6rem; }
.notice-box p { color: var(--color-text-muted); font-size: 0.92rem; margin: 0; }

/* ── RG Cards ── */
.rg-card {
  background: linear-gradient(135deg, var(--color-surface-strong), var(--color-card));
  border: 1px solid rgba(200,169,81,0.2);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  height: 100%;
}
.rg-card i { font-size: 1.8rem; margin-bottom: 0.8rem; color: var(--color-secondary); display: block; }
.rg-card h6 { font-weight: 600; margin-bottom: 0.4rem; }
.rg-card p { color: var(--color-text-muted); font-size: 0.88rem; margin: 0; }

/* ── Breadcrumb ── */
.breadcrumb-wrap {
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
  padding: 0.6rem 0;
}
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; }
.breadcrumb a { color: var(--color-primary); font-size: 0.88rem; }
.breadcrumb a:hover { color: var(--color-secondary); }
.breadcrumb .sep { color: var(--color-text-muted); font-size: 0.75rem; margin: 0 0.2rem; }
.breadcrumb .current { color: var(--color-text-muted); font-size: 0.88rem; }

/* ── FAQ (details/summary) ── */
.faq-list { max-width: var(--container-narrow); }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  background: var(--color-card);
  overflow: hidden;
}
.faq-item summary {
  padding: 1rem 1.2rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background var(--motion-fast);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--color-secondary);
  flex-shrink: 0;
  transition: transform var(--motion-normal);
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { background: rgba(26,107,74,0.08); }
.faq-answer {
  padding: 0 1.2rem 1rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ── Form Elements ── */
.form-panel {
  background: linear-gradient(160deg, var(--color-surface-strong), var(--color-card));
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.form-group { margin-bottom: 1.2rem; }
.form-label {
  display: block;
  color: var(--color-text-soft);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}
.form-input {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text);
  font-family: var(--font-base);
  font-size: 0.95rem;
  transition: border-color var(--motion-fast);
}
.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26,107,74,0.15);
}

/* ── Content Image ── */
.content-img {
  border-radius: var(--radius-image);
  box-shadow: 0 4px 24px rgba(26,107,74,0.2);
  width: 100%;
  height: auto;
}

/* ── Policy / Article Content ── */
.readable-content {
  max-width: var(--container-narrow);
  margin: 0 auto;
}
.readable-content p {
  color: var(--color-text-muted);
  margin-bottom: 1.2rem;
  line-height: 2;
}
.readable-content h2 { margin: 2rem 0 0.8rem; }
.readable-content h3 { margin: 1.5rem 0 0.6rem; color: var(--color-secondary); }
.readable-content ul, .readable-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}
.readable-content li {
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  list-style: disc;
  font-size: 0.95rem;
}
.readable-content ol li { list-style: decimal; }

/* ── Tip Box ── */
.tip-box {
  background: rgba(26,107,74,0.1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
}
.tip-box h5 { color: var(--color-secondary); font-size: 1rem; margin-bottom: 0.4rem; }
.tip-box p { color: var(--color-text-muted); font-size: 0.93rem; margin: 0; }

/* ── Step Cards ── */
.step-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.2rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}
.step-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: var(--gradient-button);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}
.step-content h5 { font-size: 1rem; margin-bottom: 0.3rem; }
.step-content p { color: var(--color-text-muted); font-size: 0.9rem; margin: 0; }

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.site-footer {
  background: var(--color-footer-bg);
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 1.5rem;
}
.footer-brand { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.8rem; }
.footer-desc { color: var(--color-footer-text); font-size: 0.88rem; max-width: 280px; }
.footer-col h6 {
  color: var(--color-secondary);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
  color: var(--color-footer-text);
  font-size: 0.88rem;
  transition: color var(--motion-fast);
}
.footer-col ul li a:hover { color: var(--color-secondary); }
.footer-bottom {
  border-top: 1px solid var(--color-border);
  margin-top: 2rem;
  padding-top: 1.2rem;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.2fr;
  gap: 2rem;
}

/* ── Mobile Menu ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--mobile-header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 100%);
  z-index: 999;
  overflow-y: auto;
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform 300ms ease;
}
.mobile-menu.open {
  display: block;
  transform: translateX(0);
}
.mobile-menu a {
  display: block;
  padding: 0.8rem 0;
  color: var(--color-text-soft);
  font-size: 1rem;
  border-bottom: 1px solid var(--color-border);
  transition: color var(--motion-fast);
}
.mobile-menu a:hover,
.mobile-menu a.active { color: var(--color-secondary); }

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 1180px) {
  .site-header .header-inner {
    width: 100%;
    max-width: none;
    padding-left: clamp(8px, 2.4vw, 14px);
    padding-right: clamp(8px, 2.4vw, 14px);
    justify-content: flex-start;
    gap: clamp(6px, 1.8vw, 10px);
    height: var(--mobile-header-h);
  }
  .brand-wrap { flex: 0 1 auto; margin-right: 0; }
  .site-logo { height: clamp(30px, 8vw, 40px); max-width: clamp(104px, 27vw, 138px); }
  .primary-nav { display: none; }
  .header-actions { margin-left: auto; flex: 0 0 auto; }
  .nav-toggle {
    display: inline-flex;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    margin-left: 2px;
  }
  .mobile-menu { display: block; }
}

@media (max-width: 1023px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2-1 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-home { min-height: auto; padding: 3.5rem 0 2rem; }
}

@media (max-width: 767px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: clamp(2rem, 5vw, 3rem) 0; }
  .hero-home { padding: 2.5rem 0 1.5rem; }
}

@media (max-width: 375px) {
  .site-header .header-inner { padding-left: 8px; padding-right: 8px; gap: 6px; }
  .site-logo { max-width: 104px; }
  .header-actions .btn { min-height: 38px; padding-inline: 9px; font-size: 12px; }
  .nav-toggle { flex-basis: 38px; width: 38px; height: 38px; }
}

/* ── Print ── */
@media print {
  .site-header, .site-footer, .nav-toggle, .mobile-menu, .btn { display: none; }
  body { background: #fff; color: #000; }
  .section-alt, .section-alt2 { background: #f5f5f5; }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
