/*
Theme Name: HSNCode Directory
Theme URI: https://hsncode.org
Author: HSNCode
Author URI: https://hsncode.org
Description: A professional HSN Code, SAC Code & GST Rate information directory theme for hsncode.org. Features a live search tool, categorized code browser, GST rate tables, and educational content — built for Indian businesses, accountants, and exporters.
Version: 3.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hsncode
Tags: one-page, directory, hsn, sac, gst, india, business, responsive, custom-colors
*/

/* =============================================
   FONTS
============================================= */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700;800&family=DM+Serif+Display:ital@0;1&display=swap');

/* =============================================
   DESIGN TOKENS
============================================= */
:root {
  --navy:        #0a1628;
  --navy-mid:    #112240;
  --blue:        #1a56db;
  --blue-light:  #3b82f6;
  --blue-soft:   #eff6ff;
  --teal:        #0891b2;
  --teal-soft:   #ecfeff;
  --green:       #059669;
  --green-soft:  #ecfdf5;
  --amber:       #d97706;
  --amber-soft:  #fffbeb;
  --red:         #dc2626;
  --red-soft:    #fef2f2;
  --orange:      #ea580c;
  --orange-soft: #fff7ed;
  --white:       #ffffff;
  --off-white:   #f8fafc;
  --grey-50:     #f1f5f9;
  --grey-100:    #e2e8f0;
  --grey-200:    #cbd5e1;
  --grey-400:    #94a3b8;
  --grey-600:    #475569;
  --grey-800:    #1e293b;
  --text:        #0f172a;

  --font-head: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-2xl: 32px;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(10,22,40,0.1), 0 4px 8px rgba(10,22,40,0.06);
  --shadow-xl: 0 24px 64px rgba(10,22,40,0.14);
  --shadow-blue: 0 6px 24px rgba(26,86,219,0.25);

  --t: 0.25s;
  --ease: cubic-bezier(0.4,0,0.2,1);
}

/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.7; overflow-x: hidden; }
a { color: var(--blue); text-decoration: none; transition: color var(--t) var(--ease); }
a:hover { color: var(--navy); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-body); font-weight: 700; color: var(--navy); line-height: 1.2; }

/* =============================================
   UTILITIES
============================================= */
.container { width: 92%; max-width: 1200px; margin: 0 auto; }

.pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.28rem 0.75rem; border-radius: 100px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
}
.pill-blue   { background: var(--blue-soft);   color: var(--blue); }
.pill-teal   { background: var(--teal-soft);   color: var(--teal); }
.pill-green  { background: var(--green-soft);  color: var(--green); }
.pill-amber  { background: var(--amber-soft);  color: var(--amber); }
.pill-red    { background: var(--red-soft);    color: var(--red); }
.pill-orange { background: var(--orange-soft); color: var(--orange); }
.pill-grey   { background: var(--grey-50);     color: var(--grey-600); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 0.75rem;
}
.eyebrow::before {
  content: ''; width: 16px; height: 2px;
  background: var(--blue); border-radius: 2px;
}

.section-heading {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: var(--navy); margin-bottom: 0.9rem;
  letter-spacing: -0.01em;
}

.section-sub {
  font-size: 1rem; color: var(--grey-600);
  max-width: 560px; line-height: 1.8;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.72rem 1.6rem; border-radius: var(--r-sm);
  font-family: var(--font-body); font-size: 0.9rem;
  font-weight: 600; cursor: pointer;
  transition: all var(--t) var(--ease); border: none;
}
.btn-primary  { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover  { background: #1447c0; color: #fff; transform: translateY(-1px); box-shadow: 0 10px 32px rgba(26,86,219,0.35); }
.btn-outline  { background: transparent; color: var(--navy); border: 1.5px solid var(--grey-100); }
.btn-outline:hover  { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.btn-navy     { background: var(--navy); color: #fff; }
.btn-navy:hover     { background: var(--navy-mid); color: #fff; transform: translateY(-1px); }
.btn-green    { background: var(--green); color: #fff; }
.btn-green:hover    { background: #047857; color: #fff; }
.btn-lg { padding: 0.9rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.48rem 1rem; font-size: 0.82rem; }

/* =============================================
   REVEAL ANIMATIONS
============================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.rv1 { transition-delay: 0.1s; }
.rv2 { transition-delay: 0.2s; }
.rv3 { transition-delay: 0.3s; }
.rv4 { transition-delay: 0.4s; }
.rv5 { transition-delay: 0.5s; }

/* =============================================
   ANNOUNCEMENT BAR
============================================= */
.ann-bar {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem; font-weight: 500;
  text-align: center; padding: 0.55rem 1rem;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.ann-bar a { color: #fbbf24; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.ann-bar-close { margin-left: auto; background: none; border: none; color: rgba(255,255,255,0.5); cursor: pointer; font-size: 1rem; padding: 0 0.5rem; }

/* =============================================
   HEADER
============================================= */
#site-header {
  position: sticky; top: 0; width: 100%; z-index: 900;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--grey-100);
  transition: box-shadow var(--t) var(--ease);
}
#site-header.scrolled { box-shadow: var(--shadow-md); }

.header-wrap {
  display: flex; align-items: center;
  justify-content: space-between; height: 66px; gap: 1.5rem;
}

/* Logo */
.site-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.logo-icon {
  width: 38px; height: 38px; border-radius: 9px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { width: 22px; height: 22px; }
.logo-wordmark { font-weight: 800; font-size: 1.05rem; color: var(--navy); letter-spacing: -0.03em; line-height: 1; }
.logo-wordmark span { color: var(--blue); }
.logo-tagline { font-size: 0.65rem; color: var(--grey-400); font-weight: 500; letter-spacing: 0.04em; }

/* Nav */
.nav-links { display: flex; align-items: center; gap: 0.15rem; flex: 1; justify-content: center; }
.nav-links a {
  font-size: 0.86rem; font-weight: 600; color: var(--grey-600);
  padding: 0.42rem 0.8rem; border-radius: var(--r-xs);
  transition: all var(--t) var(--ease);
}
.nav-links a:hover { color: var(--blue); background: var(--blue-soft); }
.nav-links a.active { color: var(--blue); background: var(--blue-soft); }

.nav-actions { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 4.5px; cursor: pointer; background: none; border: none; padding: 5px; }
.hamburger span { display: block; width: 21px; height: 2px; background: var(--navy); border-radius: 2px; transition: all var(--t) var(--ease); }

/* Mobile panel */
.mobile-nav {
  display: none; position: fixed; inset: 0; background: white;
  z-index: 999; flex-direction: column; align-items: center;
  justify-content: center; gap: 1.2rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 1.3rem; font-weight: 700; color: var(--navy); }
.mobile-nav a:hover { color: var(--blue); }
.mob-close { position: absolute; top: 1.25rem; right: 1.25rem; background: none; border: none; font-size: 1.8rem; cursor: pointer; color: var(--grey-600); }

/* =============================================
   HERO
============================================= */
#hero {
  background: var(--white);
  padding: 4.5rem 0 0;
  overflow: hidden; position: relative;
}

.hero-bg-pattern {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 70% 30%, rgba(26,86,219,0.06) 0%, transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(8,145,178,0.05) 0%, transparent 45%);
}

/* Grid dots */
.hero-bg-dots {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, var(--grey-200) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, black, transparent);
  opacity: 0.4;
}

.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center; position: relative; z-index: 2;
  padding-bottom: 4rem;
}

/* Hero badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--blue-soft); border: 1px solid rgba(26,86,219,0.18);
  border-radius: 100px; padding: 0.38rem 1rem 0.38rem 0.45rem;
  font-size: 0.77rem; font-weight: 600; color: var(--blue);
  margin-bottom: 1.4rem;
}
.hb-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.8)} }

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--navy); line-height: 1.1;
  letter-spacing: -0.02em; margin-bottom: 1.3rem;
}
.hero-title em { font-style: italic; color: var(--blue); }

.hero-sub {
  font-size: 1.05rem; color: var(--grey-600);
  line-height: 1.8; max-width: 480px; margin-bottom: 2rem;
}

/* SEARCH BAR - the hero element */
.search-bar-wrap {
  background: var(--white);
  border: 2px solid var(--grey-100);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden; margin-bottom: 1.5rem;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.search-bar-wrap:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(26,86,219,0.1), var(--shadow-lg);
}

.search-bar-top {
  display: flex; border-bottom: 1px solid var(--grey-100);
}

.search-type-btn {
  flex: 1; padding: 0.75rem 1rem; background: none; border: none;
  font-family: var(--font-body); font-size: 0.85rem;
  font-weight: 600; color: var(--grey-400); cursor: pointer;
  transition: all var(--t) var(--ease);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
}
.search-type-btn.active { color: var(--blue); border-bottom-color: var(--blue); background: var(--blue-soft); }
.search-type-btn:hover:not(.active) { color: var(--grey-800); background: var(--grey-50); }

.search-bar-input-row {
  display: flex; align-items: center; padding: 0.4rem 0.5rem;
}

.search-bar-input-row input {
  flex: 1; border: none; outline: none; padding: 0.6rem 1rem;
  font-family: var(--font-body); font-size: 1rem; color: var(--text);
  background: transparent;
}
.search-bar-input-row input::placeholder { color: var(--grey-400); }

.search-btn {
  background: var(--blue); color: white; border: none;
  border-radius: var(--r-sm); padding: 0.65rem 1.4rem;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 700;
  cursor: pointer; transition: all var(--t) var(--ease);
  display: flex; align-items: center; gap: 0.4rem;
}
.search-btn:hover { background: #1447c0; }

/* Popular searches */
.popular-searches {
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
  font-size: 0.8rem;
}
.ps-label { color: var(--grey-400); font-weight: 600; }
.ps-tag {
  background: var(--grey-50); border: 1px solid var(--grey-100);
  border-radius: 100px; padding: 0.25rem 0.75rem;
  font-size: 0.77rem; font-weight: 600; color: var(--grey-600);
  cursor: pointer; transition: all var(--t) var(--ease);
}
.ps-tag:hover { background: var(--blue-soft); color: var(--blue); border-color: rgba(26,86,219,0.2); }

/* Hero Right — Stats panel */
.hero-right { position: relative; }

.hero-panel {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.hp-header {
  background: var(--navy);
  padding: 1.2rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.hp-header-left { color: rgba(255,255,255,0.9); font-size: 0.85rem; font-weight: 600; }
.hp-header-left small { display: block; color: rgba(255,255,255,0.45); font-size: 0.7rem; font-weight: 400; margin-top: 1px; }
.hp-live { display: flex; align-items: center; gap: 0.4rem; font-size: 0.72rem; color: #34d399; font-weight: 700; }
.hp-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #34d399; animation: pulse 1.8s infinite; }

.hp-body { padding: 1.2rem 1.5rem; }

/* Quick stats */
.hp-stats-row {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 0.75rem;
  margin-bottom: 1.2rem;
}
.hp-stat {
  background: var(--off-white); border-radius: var(--r-md);
  padding: 0.9rem; text-align: center;
}
.hp-stat-num {
  font-size: 1.3rem; font-weight: 800; color: var(--navy);
  letter-spacing: -0.03em; line-height: 1;
}
.hp-stat-num.blue   { color: var(--blue); }
.hp-stat-num.green  { color: var(--green); }
.hp-stat-num.teal   { color: var(--teal); }
.hp-stat-label { font-size: 0.68rem; color: var(--grey-400); margin-top: 0.2rem; font-weight: 500; }

/* Recent lookups table */
.hp-table-label { font-size: 0.72rem; font-weight: 700; color: var(--grey-400); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.6rem; }
.hp-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.hp-table th { text-align: left; padding: 0.4rem 0.5rem; color: var(--grey-400); font-weight: 600; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; }
.hp-table td { padding: 0.55rem 0.5rem; color: var(--grey-800); border-top: 1px solid var(--grey-50); }
.hp-table tr:hover td { background: var(--off-white); }
.hp-code { font-family: monospace; font-weight: 700; color: var(--blue); font-size: 0.85rem; }
.hp-gst { font-weight: 700; }
.hp-gst.g0  { color: var(--grey-400); }
.hp-gst.g5  { color: var(--green); }
.hp-gst.g12 { color: var(--teal); }
.hp-gst.g18 { color: var(--amber); }
.hp-gst.g28 { color: var(--red); }

.hp-footer {
  padding: 0.9rem 1.5rem; border-top: 1px solid var(--grey-100);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.78rem; color: var(--grey-400);
}
.hp-footer strong { color: var(--navy); }

/* Floating badges */
.float-badge {
  position: absolute; background: white;
  border: 1px solid var(--grey-100); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); padding: 0.65rem 1rem;
  font-size: 0.78rem; font-weight: 600; color: var(--navy);
  display: flex; align-items: center; gap: 0.5rem;
  animation: floatIn 0.7s var(--ease) both; white-space: nowrap;
}
.fb-1 { top: -16px; left: -16px; animation-delay: 0.8s; }
.fb-2 { bottom: 20px; right: -16px; animation-delay: 1.1s; }
@keyframes floatIn { from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:translateY(0)} }

/* =============================================
   TRUST STRIP
============================================= */
#trust {
  background: var(--grey-50); border-top: 1px solid var(--grey-100);
  border-bottom: 1px solid var(--grey-100); padding: 1.8rem 0;
}
.trust-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 2.5rem; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 0.55rem;
  font-size: 0.82rem; font-weight: 600; color: var(--grey-600);
}
.trust-item-icon { font-size: 1.1rem; }

/* =============================================
   CATEGORIES SECTION
============================================= */
#categories {
  padding: 5rem 0;
  background: var(--white);
}

.cat-header { margin-bottom: 2.8rem; }

.categories-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 1.2rem;
}

.cat-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--r-lg);
  padding: 1.6rem 1.4rem;
  cursor: pointer; transition: all var(--t) var(--ease);
  position: relative; overflow: hidden;
  text-decoration: none; color: inherit; display: block;
}
.cat-card::before {
  content: ''; position: absolute; inset: 0; border-radius: var(--r-lg);
  border: 2px solid transparent;
  transition: border-color var(--t) var(--ease);
}
.cat-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.cat-card:hover::before { border-color: var(--blue); }

.cat-icon {
  width: 48px; height: 48px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 1rem;
}

.cat-card h3 { font-size: 0.95rem; margin-bottom: 0.3rem; color: var(--navy); }
.cat-card p  { font-size: 0.78rem; color: var(--grey-600); line-height: 1.6; margin-bottom: 0.8rem; }
.cat-count   { font-size: 0.72rem; font-weight: 700; color: var(--grey-400); }
.cat-count span { color: var(--blue); }

/* Chapters grid (21 HSN sections) */
.chapters-section { margin-top: 3rem; }
.chapters-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey-400); margin-bottom: 1rem; }
.chapters-grid {
  display: grid; grid-template-columns: repeat(7,1fr); gap: 0.6rem;
}
.chapter-chip {
  background: var(--grey-50); border: 1px solid var(--grey-100);
  border-radius: var(--r-sm); padding: 0.55rem 0.4rem;
  text-align: center; cursor: pointer;
  transition: all var(--t) var(--ease); text-decoration: none;
}
.chapter-chip:hover { background: var(--blue-soft); border-color: rgba(26,86,219,0.25); }
.chapter-chip .ch-num { font-size: 0.7rem; font-weight: 800; color: var(--blue); display: block; }
.chapter-chip .ch-lbl { font-size: 0.62rem; color: var(--grey-600); line-height: 1.3; display: block; margin-top: 1px; }

/* =============================================
   GST RATES TABLE SECTION
============================================= */
#gst-rates {
  padding: 5rem 0;
  background: var(--off-white);
}

.gst-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; }

.gst-rate-cards { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 2rem; }

.gst-rate-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--r-md);
  padding: 1.1rem 1.3rem;
  display: flex; align-items: center; gap: 1rem;
  transition: all var(--t) var(--ease);
}
.gst-rate-card:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }

.grc-badge {
  width: 52px; height: 52px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 800; flex-shrink: 0;
  letter-spacing: -0.03em;
}

.grc-0   { background: var(--grey-50);   color: var(--grey-600); }
.grc-5   { background: var(--green-soft); color: var(--green); }
.grc-12  { background: var(--teal-soft);  color: var(--teal); }
.grc-18  { background: var(--amber-soft); color: var(--amber); }
.grc-28  { background: var(--red-soft);   color: var(--red); }

.grc-info h4 { font-size: 0.9rem; margin-bottom: 0.2rem; color: var(--navy); }
.grc-info p  { font-size: 0.78rem; color: var(--grey-600); line-height: 1.55; }

/* Rate finder panel */
.rate-panel {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.rp-header {
  padding: 1.3rem 1.5rem; border-bottom: 1px solid var(--grey-100);
  display: flex; align-items: center; justify-content: space-between;
}
.rp-header h4 { font-size: 1rem; }
.rp-header small { font-size: 0.75rem; color: var(--grey-400); }

.rp-body { padding: 1.5rem; }

.rate-table { width: 100%; border-collapse: collapse; }
.rate-table thead th {
  padding: 0.6rem 0.75rem; text-align: left;
  font-size: 0.72rem; font-weight: 700; color: var(--grey-400);
  text-transform: uppercase; letter-spacing: 0.07em;
  background: var(--grey-50); border-radius: var(--r-xs);
}
.rate-table thead th:first-child { border-radius: var(--r-xs) 0 0 var(--r-xs); }
.rate-table thead th:last-child  { border-radius: 0 var(--r-xs) var(--r-xs) 0; }
.rate-table tbody td {
  padding: 0.75rem 0.75rem; font-size: 0.83rem; color: var(--grey-800);
  border-bottom: 1px solid var(--grey-50);
}
.rate-table tbody tr:last-child td { border-bottom: none; }
.rate-table tbody tr:hover td { background: var(--off-white); }

.rt-code { font-family: monospace; font-weight: 700; color: var(--blue); font-size: 0.88rem; }
.rt-rate { font-weight: 700; font-size: 0.82rem; padding: 0.2rem 0.6rem; border-radius: 100px; display: inline-block; }
.rt-0   { background: var(--grey-50);   color: var(--grey-600); }
.rt-5   { background: var(--green-soft); color: var(--green); }
.rt-12  { background: var(--teal-soft);  color: var(--teal); }
.rt-18  { background: var(--amber-soft); color: var(--amber); }
.rt-28  { background: var(--red-soft);   color: var(--red); }

.rp-footer {
  padding: 1rem 1.5rem; border-top: 1px solid var(--grey-100);
  text-align: center; font-size: 0.8rem; color: var(--grey-400);
}

/* =============================================
   SAC CODES SECTION
============================================= */
#sac-codes {
  padding: 5rem 0;
  background: var(--white);
}

.sac-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; margin-top: 2.5rem; }

.sac-card {
  background: var(--white); border: 1px solid var(--grey-100);
  border-radius: var(--r-lg); padding: 1.6rem;
  transition: all var(--t) var(--ease);
}
.sac-card:hover { box-shadow: var(--shadow-lg); border-color: var(--grey-200); transform: translateY(-2px); }

.sac-code-badge {
  font-family: monospace; font-size: 0.78rem; font-weight: 700;
  color: var(--teal); background: var(--teal-soft);
  padding: 0.22rem 0.6rem; border-radius: var(--r-xs);
  display: inline-block; margin-bottom: 0.75rem;
  letter-spacing: 0.08em;
}

.sac-card h4 { font-size: 0.95rem; margin-bottom: 0.4rem; color: var(--navy); }
.sac-card p  { font-size: 0.8rem; color: var(--grey-600); line-height: 1.65; margin-bottom: 0.8rem; }

.sac-rate-row { display: flex; align-items: center; justify-content: space-between; }
.sac-rate-label { font-size: 0.72rem; color: var(--grey-400); font-weight: 600; }

/* =============================================
   HOW TO USE
============================================= */
#how-to {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-mid) 100%);
  position: relative; overflow: hidden;
}

.how-bg-ring {
  position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,0.04);
}
.how-bg-ring-1 { width: 500px; height: 500px; top:50%; left:50%; transform:translate(-50%,-50%); }
.how-bg-ring-2 { width: 800px; height: 800px; top:50%; left:50%; transform:translate(-50%,-50%); }

.how-inner { position: relative; z-index: 2; }

.how-header { text-align: center; margin-bottom: 3.5rem; }
.how-header .eyebrow { color: #67e8f9; }
.how-header .eyebrow::before { background: #67e8f9; }
.how-header .section-heading { color: white; }
.how-header .section-sub { color: rgba(255,255,255,0.6); margin: 0 auto; }

.steps-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }

.step-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg); padding: 1.8rem 1.5rem;
  transition: all var(--t) var(--ease); position: relative;
}
.step-card:hover { background: rgba(255,255,255,0.09); transform: translateY(-3px); }

.step-num {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--blue); color: white; font-weight: 800;
  font-size: 0.88rem; display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem; box-shadow: var(--shadow-blue);
}

.step-card h4 { font-size: 0.95rem; color: white; margin-bottom: 0.5rem; }
.step-card p  { font-size: 0.82rem; color: rgba(255,255,255,0.55); line-height: 1.7; }

.step-arrow {
  position: absolute; right: -28px; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,0.2); font-size: 1.2rem; z-index: 3;
}
.step-card:last-child .step-arrow { display: none; }

/* =============================================
   TOOLS / CALCULATORS
============================================= */
#tools {
  padding: 5rem 0;
  background: var(--off-white);
}

.tools-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; margin-top: 2.5rem; }

.tool-card {
  background: var(--white); border: 1px solid var(--grey-100);
  border-radius: var(--r-lg); padding: 2rem 1.8rem;
  transition: all var(--t) var(--ease);
}
.tool-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: transparent; }

.tool-icon {
  width: 52px; height: 52px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1.2rem;
}

.tool-card h3 { font-size: 1rem; margin-bottom: 0.5rem; color: var(--navy); }
.tool-card p  { font-size: 0.83rem; color: var(--grey-600); line-height: 1.7; margin-bottom: 1.3rem; }

/* =============================================
   FAQ / KNOWLEDGE BASE
============================================= -->
============================================= */
#faq {
  padding: 5rem 0;
  background: var(--white);
}

.faq-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 5rem; align-items: start; }

.faq-list { margin-top: 0.5rem; }

.faq-item {
  border-bottom: 1px solid var(--grey-100);
}

.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 0; cursor: pointer;
  font-size: 0.92rem; font-weight: 600; color: var(--navy);
  transition: color var(--t) var(--ease); gap: 1rem;
  background: none; border: none; width: 100%; text-align: left;
  font-family: var(--font-body);
}
.faq-q:hover { color: var(--blue); }

.faq-chevron {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--grey-50); display: flex; align-items: center;
  justify-content: center; font-size: 0.7rem; color: var(--grey-600);
  transition: all var(--t) var(--ease);
}
.faq-item.open .faq-chevron { background: var(--blue); color: white; transform: rotate(180deg); }

.faq-a {
  font-size: 0.88rem; color: var(--grey-600); line-height: 1.8;
  padding-bottom: 1.1rem; display: none;
}
.faq-item.open .faq-a { display: block; }

/* Glossary quick-ref */
.glossary-panel {
  background: var(--grey-50); border: 1px solid var(--grey-100);
  border-radius: var(--r-xl); padding: 2rem;
}
.glossary-panel h4 { font-size: 1rem; margin-bottom: 1.2rem; color: var(--navy); }
.glossary-list { display: flex; flex-direction: column; gap: 0.8rem; }
.gl-item { display: flex; gap: 1rem; }
.gl-term { flex-shrink: 0; width: 60px; font-family: monospace; font-weight: 700; font-size: 0.82rem; color: var(--blue); }
.gl-def  { font-size: 0.82rem; color: var(--grey-600); line-height: 1.6; }

/* =============================================
   NEWSLETTER / CTA
============================================= */
#newsletter {
  padding: 4rem 0;
  background: var(--off-white);
}

.nl-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--r-2xl); padding: 3.5rem 4rem;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center;
  position: relative; overflow: hidden;
}

.nl-box::after {
  content: '';
  position: absolute; width: 350px; height: 350px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26,86,219,0.2) 0%, transparent 70%);
  right: -80px; top: -80px; pointer-events: none;
}

.nl-content { position: relative; z-index: 2; }
.nl-content .eyebrow { color: #67e8f9; }
.nl-content .eyebrow::before { background: #67e8f9; }
.nl-content h2 { font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2rem); color: white; margin-bottom: 0.6rem; }
.nl-content p  { color: rgba(255,255,255,0.6); font-size: 0.92rem; line-height: 1.75; }

.nl-form { position: relative; z-index: 2; }
.nl-input-row { display: flex; gap: 0.6rem; margin-bottom: 0.8rem; }
.nl-input-row input {
  flex: 1; border: none; outline: none;
  background: rgba(255,255,255,0.1); color: white;
  border-radius: var(--r-sm); padding: 0.8rem 1.1rem;
  font-family: var(--font-body); font-size: 0.92rem;
  border: 1px solid rgba(255,255,255,0.12);
  transition: border-color var(--t) var(--ease);
}
.nl-input-row input::placeholder { color: rgba(255,255,255,0.35); }
.nl-input-row input:focus { border-color: rgba(255,255,255,0.4); }
.nl-note { font-size: 0.75rem; color: rgba(255,255,255,0.35); }

/* =============================================
   FOOTER
============================================= */
#site-footer {
  background: var(--navy);
}

.footer-body {
  padding: 4rem 0 2rem;
}

.footer-cols {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1.2fr;
  gap: 3rem; padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 1.5rem;
}

.footer-brand-col .logo-wordmark { color: white; }
.footer-brand-col p {
  font-size: 0.85rem; color: rgba(255,255,255,0.45);
  line-height: 1.75; margin: 0.9rem 0 1.2rem; max-width: 270px;
}

.footer-socials { display: flex; gap: 0.5rem; }
.fsoc {
  width: 32px; height: 32px; border-radius: var(--r-xs);
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: rgba(255,255,255,0.4);
  transition: all var(--t) var(--ease);
}
.fsoc:hover { background: var(--blue); border-color: var(--blue); color: white; }

.footer-col h5 {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.85); margin-bottom: 1.1rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col ul a {
  font-size: 0.84rem; color: rgba(255,255,255,0.45);
  transition: color var(--t) var(--ease);
}
.footer-col ul a:hover { color: rgba(255,255,255,0.9); }

/* Newsletter mini in footer */
.footer-nl-note { font-size: 0.75rem; color: rgba(255,255,255,0.3); margin-top: 0.5rem; }
.footer-nl-row { display: flex; gap: 0.5rem; margin-top: 1rem; }
.footer-nl-input {
  flex: 1; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-xs); padding: 0.55rem 0.8rem;
  color: white; font-family: var(--font-body); font-size: 0.82rem; outline: none;
}
.footer-nl-input::placeholder { color: rgba(255,255,255,0.25); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.78rem; color: rgba(255,255,255,0.3);
}
.footer-bottom a { color: rgba(255,255,255,0.3); }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

.footer-disclaimer {
  padding: 1.2rem 0; border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.72rem; color: rgba(255,255,255,0.22); line-height: 1.6;
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1100px) {
  .categories-grid { grid-template-columns: repeat(3,1fr); }
  .chapters-grid   { grid-template-columns: repeat(5,1fr); }
  .footer-cols     { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 900px) {
  .hero-grid      { grid-template-columns: 1fr; }
  .hero-right     { max-width: 520px; }
  .gst-grid       { grid-template-columns: 1fr; }
  .faq-grid       { grid-template-columns: 1fr; }
  .nl-box         { grid-template-columns: 1fr; padding: 2.5rem; }
  .steps-grid     { grid-template-columns: repeat(2,1fr); }
  .step-arrow     { display: none; }
  .sac-grid       { grid-template-columns: repeat(2,1fr); }
  .tools-grid     { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .categories-grid { grid-template-columns: repeat(2,1fr); }
  .chapters-grid   { grid-template-columns: repeat(4,1fr); }
  .footer-cols     { grid-template-columns: 1fr; }
  .trust-inner     { gap: 1.2rem; }
}

@media (max-width: 560px) {
  .steps-grid     { grid-template-columns: 1fr; }
  .sac-grid       { grid-template-columns: 1fr; }
  .tools-grid     { grid-template-columns: 1fr; }
  .chapters-grid  { grid-template-columns: repeat(3,1fr); }
  .hp-stats-row   { grid-template-columns: repeat(3,1fr); }
  .nl-input-row   { flex-direction: column; }
  .footer-bottom  { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* =============================================
   CALCULATORS SECTION
   Append to the bottom of style.css
   Uses existing theme tokens — no new variables
============================================= */

/* ── Section wrapper ── */
#calculators {
  padding: 5rem 0;
  background: var(--off-white);
}

/* ── Calculator tab row ── */
.calc-tab-row {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin: 2.5rem 0 2rem;
}

.calc-tab-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 1rem; border-radius: 100px;
  border: 1.5px solid var(--grey-100);
  background: var(--white);
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 600;
  color: var(--grey-600); cursor: pointer;
  transition: all var(--t) var(--ease);
  white-space: nowrap;
}
.calc-tab-btn:hover {
  border-color: var(--blue); color: var(--blue); background: var(--blue-soft);
}
.calc-tab-btn.active {
  background: var(--blue); border-color: var(--blue);
  color: var(--white); box-shadow: var(--shadow-blue);
}

/* ── Panel switching ── */
.calc-panels-wrap { }

.calc-panel { display: none; }
.calc-panel.active { display: block; }

/* ── Two-column layout — same as .gst-grid / .faq-grid ── */
.calc-two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

/* ── Form fields ── */
.calc-form { }

.cf-group { margin-bottom: 1rem; }

.cf-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem;
  margin-bottom: 1rem;
}
.cf-row .cf-group { margin-bottom: 0; }

.cf-label {
  display: block;
  font-size: 0.8rem; font-weight: 600; color: var(--grey-800);
  margin-bottom: 0.35rem; letter-spacing: 0.01em;
}
.cf-hint { font-size: 0.72rem; color: var(--grey-400); font-weight: 400; margin-left: 0.3rem; }

/* Inputs — consistent with theme search bar inputs */
.cf-group input[type="number"],
.cf-group input[type="text"],
.cf-group select {
  width: 100%; padding: 0.6rem 0.85rem;
  border: 1.5px solid var(--grey-100); border-radius: var(--r-sm);
  font-family: var(--font-body); font-size: 0.88rem; color: var(--text);
  background: var(--white);
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
  -moz-appearance: textfield; appearance: none;
}
.cf-group input[type="number"]::-webkit-inner-spin-button,
.cf-group input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; }
.cf-group input:focus,
.cf-group select:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}

/* Prefix / Suffix inputs */
.cf-input-wrap { position: relative; }
.cf-affix {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 0.85rem; font-weight: 600; color: var(--grey-400);
  pointer-events: none;
}
.cf-prefix .cf-affix { left: 0.75rem; }
.cf-prefix input { padding-left: 1.85rem; }
.cf-suffix .cf-affix.cf-affix-right { right: 0.75rem; left: auto; }
.cf-suffix input { padding-right: 1.85rem; }

/* Range sliders */
.cf-range-wrap {
  display: flex; align-items: center; gap: 0.75rem;
}
.cf-range-wrap input[type="range"] {
  flex: 1; width: auto; height: 4px;
  border: none; box-shadow: none; padding: 0;
  accent-color: var(--blue); cursor: pointer;
  border-radius: 100px;
}
.cf-range-wrap input[type="range"]:focus { box-shadow: none; }
.cf-range-val {
  font-size: 0.82rem; font-weight: 700; color: var(--blue);
  min-width: 50px; text-align: right; flex-shrink: 0;
}

/* ── Result box ── */
.calc-result {
  margin-top: 1.25rem;
  animation: calcReveal 0.3s var(--ease);
}
@keyframes calcReveal {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Result stat grid — same concept as .hp-stats-row */
.calc-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.65rem; margin-bottom: 0.85rem;
}

.calc-stat {
  background: var(--white); border: 1px solid var(--grey-100);
  border-radius: var(--r-md); padding: 0.8rem;
  text-align: center;
}
.calc-stat .cs-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--grey-400); margin-bottom: 0.25rem;
}
.calc-stat .cs-val {
  font-size: 1rem; font-weight: 800; color: var(--navy);
  letter-spacing: -0.02em; line-height: 1.1;
}

/* Accent variants — matches theme pill palette */
.calc-stat.cs-highlight { background: var(--blue); border-color: var(--blue); }
.calc-stat.cs-highlight .cs-label { color: rgba(255,255,255,0.7); }
.calc-stat.cs-highlight .cs-val  { color: var(--white); font-size: 1.1rem; }

.calc-stat.cs-green { background: var(--green-soft); border-color: rgba(5,150,105,0.15); }
.calc-stat.cs-green .cs-val { color: var(--green); }

.calc-stat.cs-amber { background: var(--amber-soft); border-color: rgba(217,119,6,0.15); }
.calc-stat.cs-amber .cs-val { color: var(--amber); }

.calc-stat.cs-red { background: var(--red-soft); border-color: rgba(220,38,38,0.15); }
.calc-stat.cs-red .cs-val { color: var(--red); }

/* Bar breakdown — like custom progress indicators */
.calc-bar-list { margin-top: 0.5rem; }
.calc-bar-row {
  display: flex; align-items: center; gap: 0.65rem;
  margin-bottom: 0.55rem;
}
.calc-bar-label {
  font-size: 0.78rem; font-weight: 600; color: var(--grey-600);
  width: 85px; flex-shrink: 0;
}
.calc-bar-track {
  flex: 1; height: 7px; background: var(--grey-100);
  border-radius: 100px; overflow: hidden;
}
.calc-bar-fill {
  height: 100%; border-radius: 100px;
  transition: width 0.6s var(--ease);
}
.calc-bar-amount {
  font-size: 0.8rem; font-weight: 700; color: var(--navy);
  min-width: 88px; text-align: right; flex-shrink: 0;
}

/* Donut chart */
.calc-donut-row {
  display: flex; align-items: center; gap: 1.25rem;
  margin-top: 0.75rem; flex-wrap: wrap;
}
.calc-donut-svg { width: 90px; height: 90px; flex-shrink: 0; }
.calc-donut-legend { flex: 1; min-width: 110px; }
.calc-donut-legend-item {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.78rem; margin-bottom: 0.35rem;
}
.calc-donut-dot {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
}

/* Info panel tip — same feel as glossary-panel */
.calc-tip {
  background: var(--amber-soft);
  border: 1px solid rgba(217,119,6,0.18);
  border-radius: var(--r-md);
  padding: 0.85rem 1rem;
  font-size: 0.82rem; color: var(--grey-800); line-height: 1.65;
  margin-top: 1.25rem;
}
.calc-tip strong {
  display: block; font-size: 0.75rem; font-weight: 700;
  color: var(--amber); text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 0.25rem;
}

/* Info panel — extends .glossary-panel */
.calc-info-panel { position: sticky; top: 86px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .calc-two-col { grid-template-columns: 1fr; }
  .calc-info-panel { position: static; }
}
@media (max-width: 600px) {
  .calc-tab-row { gap: 0.35rem; }
  .calc-tab-btn { font-size: 0.76rem; padding: 0.42rem 0.75rem; }
  .cf-row { grid-template-columns: 1fr; }
  .calc-result-grid { grid-template-columns: repeat(2, 1fr); }
}
