/* -------------------------------------------------------------------------- */
/*  IESCO ONLINE BILL 2026 - MASTER STYLESHEET                                */
/* -------------------------------------------------------------------------- */

:root {
  /* Official IESCO Color Palette */
  --primary-navy: #0b1329;
  --primary-navy-light: #1e293b;
  --brand-blue: #1e3a8a;
  --accent-cyan: #0284c7;
  --accent-cyan-light: #38bdf8;
  --accent-cyan-glow: rgba(56, 189, 248, 0.35);
  --emerald-green: #059669;
  --emerald-light: #10b981;
  --alert-gold: #f59e0b;
  --alert-red: #ef4444;
  
  /* Neutral Backgrounds */
  --bg-slate: #f8fafc;
  --bg-card: #ffffff;
  --border-slate: #e2e8f0;
  --border-highlight: #cbd5e1;
  
  /* Text Colors */
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --text-white: #ffffff;

  /* Typography */
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  
  /* Shadows & Effects */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px -10px rgba(15, 23, 42, 0.15);
  --shadow-glow: 0 0 35px rgba(2, 132, 199, 0.3);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-slate);
  color: var(--text-main);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* -------------------------------------------------------------------------- */
/* HEADER & NAVIGATION BAR                                                    */
/* -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 19, 41, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px 0;
  transition: var(--transition-fast);
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-white);
}

.logo-badge {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #0284c7 0%, #1e3a8a 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(2, 132, 199, 0.5);
}

.logo-badge svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.2;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-white);
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--accent-cyan-light);
  font-weight: 600;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 600;
  transition: var(--transition-fast);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.1);
}

.nav-cta {
  background: linear-gradient(135deg, var(--accent-cyan), #0284c7);
  color: var(--text-white);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
  transition: var(--transition-fast);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.6);
}

/* HAMBURGER MENU BUTTON (MOBILE) */
.hamburger-btn {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 6px;
}

.hamburger-btn svg {
  width: 28px;
  height: 28px;
  stroke: #ffffff;
  stroke-width: 2.2;
}

/* -------------------------------------------------------------------------- */
/* BANNER IMAGES STYLING                                                      */
/* -------------------------------------------------------------------------- */
.banner-container {
  margin: 30px 0;
  width: 100%;
}

.banner-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-slate);
  display: block;
  object-fit: cover;
  transition: var(--transition-fast);
}

.banner-img:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* -------------------------------------------------------------------------- */
/* HERO SECTION WITH H1 TITLE AT THE VERY TOP                                */
/* -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  background: linear-gradient(180deg, var(--primary-navy) 0%, #172554 60%, #0f172a 100%);
  color: var(--text-white);
  padding: 40px 0 60px;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.25) 0%, rgba(11, 19, 41, 0) 70%);
  pointer-events: none;
}

.hero-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* H1 TITLE AT THE VERY TOP OF HERO SECTION */
.hero-h1-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.5px;
  text-align: center;
  margin-bottom: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* INNER PAGE HERO / HEADER */
.page-hero {
  background: linear-gradient(180deg, var(--primary-navy) 0%, #172554 100%);
  color: var(--text-white);
  padding: 48px 0;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 12px;
}

.page-hero p {
  color: #94a3b8;
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto;
}

/* TOOL CARD STYLING */
.tool-card-container {
  background: rgba(15, 23, 42, 0.85);
  border: 2px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), var(--shadow-glow);
  position: relative;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

.tool-header-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-badge-official {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #34d399;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 600;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.tool-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 20px;
  text-align: center;
  letter-spacing: -0.3px;
}

/* Tool Tab Selector */
.tool-tabs {
  display: flex;
  background: rgba(11, 19, 41, 0.9);
  padding: 5px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 24px;
}

.tab-btn {
  flex: 1;
  padding: 12px 18px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #0284c7 100%);
  color: var(--text-white);
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.4);
}

.tool-input-group {
  position: relative;
  margin-bottom: 20px;
}

.tool-input-group label {
  display: block;
  font-size: 0.9rem;
  color: #e2e8f0;
  margin-bottom: 10px;
  font-weight: 600;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 18px;
  width: 22px;
  height: 22px;
  stroke: var(--accent-cyan-light);
  pointer-events: none;
}

.bill-input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  background: #090d16;
  border: 2px solid #334155;
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 1px;
  outline: none;
  transition: var(--transition-fast);
}

.bill-input:focus {
  border-color: var(--accent-cyan-light);
  box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.25);
  background: #0f172a;
}

.bill-input::placeholder {
  color: #475569;
  font-weight: 400;
  letter-spacing: normal;
}

.input-clear-btn {
  position: absolute;
  right: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #94a3b8;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.input-clear-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
}

.tool-submit-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
  transition: var(--transition-fast);
}

.tool-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.55);
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.tool-submit-btn svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
  stroke-width: 2.5;
}

.tool-helper-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  font-size: 0.85rem;
}

.helper-link-btn {
  background: transparent;
  border: none;
  color: var(--accent-cyan-light);
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.875rem;
  font-weight: 600;
}

.helper-link-btn:hover {
  color: #ffffff;
}

/* Recent History Chips */
.recent-searches-box {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  display: none;
}

.recent-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.chips-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #cbd5e1;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.chip-btn:hover {
  background: rgba(2, 132, 199, 0.35);
  border-color: var(--accent-cyan-light);
  color: #ffffff;
}

/* HERO INTRO TEXT BELOW TOOL CARD */
.hero-text-content {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.hero-text-content p {
  color: #94a3b8;
  font-size: 1.05rem;
  margin-bottom: 16px;
  line-height: 1.7;
}

/* -------------------------------------------------------------------------- */
/* MAIN CONTENT STYLING                                                       */
/* -------------------------------------------------------------------------- */
.main-content {
  padding: 60px 0 80px;
}

/* TABLE OF CONTENTS TOGGLE CARD (ACCORDION STYLE) */
.toc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-md);
  padding: 0;
  margin-bottom: 45px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition-fast);
}

.toc-toggle-btn {
  width: 100%;
  padding: 22px 28px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  transition: var(--transition-fast);
}

.toc-toggle-btn:hover {
  background: var(--bg-slate);
}

.toc-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toc-header-left h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin: 0;
}

.toc-icon {
  width: 24px;
  height: 24px;
  stroke: var(--accent-cyan);
  transition: transform 0.3s ease;
}

.toc-card.collapsed .toc-icon {
  transform: rotate(-90deg);
}

.toc-content {
  max-height: 1000px;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 28px 24px;
}

.toc-card.collapsed .toc-content {
  max-height: 0;
  padding-bottom: 0;
}

.toc-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px 28px;
  list-style: none;
}

.toc-item a {
  color: var(--accent-cyan);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.toc-item a:hover {
  color: var(--brand-blue);
  transform: translateX(4px);
}

/* Article & Content Layout */
.content-article {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.content-section {
  background: var(--bg-card);
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.content-section:hover {
  box-shadow: var(--shadow-md);
}

.section-h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 24px;
  line-height: 1.3;
  position: relative;
  padding-bottom: 14px;
  border-bottom: 3px solid #e2e8f0;
}

.section-h2::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--brand-blue));
  border-radius: 3px;
}

.section-h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1e293b;
  margin: 28px 0 14px;
}

p {
  color: var(--text-muted);
  font-size: 1.025rem;
  margin-bottom: 18px;
  line-height: 1.75;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
  color: var(--brand-blue);
}

/* Styled Lists for Instructions */
.steps-list {
  list-style: none;
  margin: 24px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-card-item {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--bg-slate);
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  transition: var(--transition-fast);
}

.step-card-item:hover {
  border-color: var(--accent-cyan-light);
  transform: translateX(4px);
}

.step-number {
  min-width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--brand-blue), var(--accent-cyan));
  color: var(--text-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}

.step-content {
  flex: 1;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 600;
}

/* Bento Grid for Bill Information Breakdown */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.info-card {
  background: var(--bg-slate);
  border: 1px solid var(--border-slate);
  border-left: 5px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition-fast);
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.info-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 10px;
}

.info-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Areas Grid Badge Layout */
.areas-badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 20px 0;
}

.area-badge {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  border: 1px solid var(--border-highlight);
  color: var(--primary-navy);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.area-badge:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.area-badge svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent-cyan);
}

/* CONTACT FORM STYLING */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border-slate);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: var(--font-family);
  outline: none;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), #0284c7);
  color: var(--text-white);
  border: none;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35);
  transition: var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.5);
}

/* -------------------------------------------------------------------------- */
/* ACCORDION FAQ SECTION (STRICT H3 HEADINGS)                                 */
/* -------------------------------------------------------------------------- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.faq-item {
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-question-h3 {
  margin: 0;
  padding: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-navy);
}

.faq-question-btn {
  width: 100%;
  padding: 20px 26px;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
}

.faq-question-btn:hover {
  background: var(--bg-slate);
  color: var(--accent-cyan);
}

.faq-icon {
  min-width: 24px;
  height: 24px;
  stroke: var(--accent-cyan);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--bg-slate);
}

.faq-answer-inner {
  padding: 0 26px 22px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* -------------------------------------------------------------------------- */
/* FOOTER SECTION                                                             */
/* -------------------------------------------------------------------------- */
.site-footer {
  background: var(--primary-navy);
  color: #94a3b8;
  padding: 60px 0 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: #64748b;
  font-size: 0.925rem;
  margin-top: 14px;
}

.footer-col-title {
  color: var(--text-white);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-cyan-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 26px;
  text-align: center;
  font-size: 0.875rem;
  color: #64748b;
}

/* Reference Modal Diagram */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 19, 41, 0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--bg-slate);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-muted);
}

/* -------------------------------------------------------------------------- */
/* RESPONSIVE MEDIA QUERIES & MOBILE NAVIGATION                               */
/* -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  /* MOBILE HEADER: NON-STICKY (RELATIVELY POSITIONED FOR NATURAL SCROLL) */
  .site-header {
    position: relative;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .hamburger-btn {
    display: block;
  }

  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #0b1329;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  }

  .header-nav.mobile-active {
    display: flex;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 1rem;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
  }

  .hero-h1-title {
    font-size: 1.6rem;
  }

  .tool-card-container {
    padding: 24px 18px;
  }

  .tool-title {
    font-size: 1.35rem;
  }

  .hero-text-content {
    padding: 24px 20px;
  }
  
  .section-h2 {
    font-size: 1.45rem;
  }
  
  .content-section {
    padding: 24px 18px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
