/* ===================================================
   FreelanceTaxTools – Main Stylesheet
   =================================================== */

/* ===== CSS VARIABLES ===== */
:root {
  --primary:       #2563EB;
  --primary-dark:  #1D4ED8;
  --primary-light: #EFF6FF;
  --accent:        #0EA5E9;
  --success:       #10B981;
  --warning:       #F59E0B;
  --danger:        #EF4444;

  --gray-50:  #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --white:    #FFFFFF;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow:    0 1px 3px rgba(0,0,0,0.10), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.10), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.10), 0 10px 10px rgba(0,0,0,0.04);

  --radius:    8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --max-width: 1120px;
  --transition: 0.2s ease;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img  { max-width: 100%; height: auto; display: block; }
ul   { list-style: none; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--primary-dark); }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--gray-900);
}

h1 { font-size: clamp(2rem,   4vw, 3rem);    }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { color: var(--gray-600); }

.lead { font-size: 1.125rem; line-height: 1.75; }

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section    { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2  { margin-bottom: 0.75rem; }
.section-header p   { max-width: 600px; margin: 0 auto; font-size: 1.0625rem; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
}

.navbar-brand:hover { color: var(--gray-900); }

.brand-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  font-weight: 800;
  flex-shrink: 0;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.navbar-nav a {
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: all var(--transition);
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.navbar-nav a.nav-cta {
  background: var(--primary);
  color: white !important;
  padding: 0.5rem 1.125rem;
}
.navbar-nav a.nav-cta:hover {
  background: var(--primary-dark);
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}
.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-1px);
}

.btn-white {
  background: white;
  color: var(--primary);
  border-color: white;
}
.btn-white:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-color: var(--primary-light);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
  border-color: var(--gray-300);
}
.btn-ghost:hover { background: var(--gray-100); color: var(--gray-800); }

.btn-lg { padding: 0.875rem 2.25rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1.125rem; font-size: 0.875rem; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #0ea5e9 100%);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}

/* subtle dot pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}

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

.hero-text h1    { color: white; margin-bottom: 1.25rem; line-height: 1.15; }
.hero-text .lead { color: rgba(255,255,255,0.85); margin-bottom: 2rem; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.stat-value {
  display: block;
  font-size: 1.875rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.3rem;
}

/* Hero preview card */
.hero-visual { display: flex; justify-content: flex-end; }

.hero-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-xl);
  padding: 2rem 2.25rem;
  color: white;
  width: 100%;
  max-width: 360px;
}

.hero-card-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.5rem;
}

.hero-calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 0;
  font-size: 0.9375rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.hero-calc-row:last-of-type { border-bottom: none; }
.hero-calc-row .lbl  { color: rgba(255,255,255,0.72); }
.hero-calc-row .val  { font-weight: 600; }
.hero-calc-row.total { padding-top: 1rem; margin-top: 0.25rem; font-size: 1rem; border-top: 1px solid rgba(255,255,255,0.25); }
.hero-calc-row.total .val { font-size: 1.125rem; color: #4ade80; }

.hero-card-footer {
  margin-top: 1.5rem;
  text-align: center;
}
.hero-card-footer a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-card-footer a:hover { color: white; }

/* ===== BADGE ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(255,255,255,0.18);
  color: white;
  padding: 0.375rem 0.875rem;
  border-radius: 99px;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.25);
}

.badge-blue {
  background: var(--primary-light);
  color: var(--primary);
  border: none;
}

/* ===== FEATURE CARDS ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  margin-bottom: 1.25rem;
}

.feature-card h3 { margin-bottom: 0.625rem; font-size: 1.125rem; }

/* ===== CALCULATORS ===== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.calculator-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition);
}
.calculator-card:hover { box-shadow: var(--shadow-xl); }

.calc-header {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 1.5rem 2rem;
  color: white;
}
.calc-header h3    { color: white; font-size: 1.125rem; margin-bottom: 0.25rem; }
.calc-header p     { color: rgba(255,255,255,0.82); font-size: 0.875rem; margin: 0; }

.calc-body { padding: 1.75rem 2rem 2rem; }

/* Form controls */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.6875rem 1rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: var(--font-sans);
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

/* Remove spinners on number inputs */
.form-group input[type="number"] { -moz-appearance: textfield; }
.form-group input[type="number"]::-webkit-outer-spin-button,
.form-group input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Dollar prefix wrapper */
.input-wrap { position: relative; }
.input-wrap::before {
  content: '$';
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-weight: 500;
  pointer-events: none;
  z-index: 1;
}
.input-wrap input { padding-left: 1.75rem; }

.calc-btn {
  width: 100%;
  padding: 0.8125rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
  margin-top: 0.5rem;
}
.calc-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.calc-btn:active { transform: none; }

/* Results panel */
.calc-result {
  margin-top: 1.25rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: none;
}
.calc-result.show { display: block; animation: fadeSlideIn 0.3s ease; }

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5625rem 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.9375rem;
}
.result-row:last-child { border-bottom: none; }

.r-label { color: var(--gray-600); }
.r-value { font-weight: 700; color: var(--gray-900); }

.result-row.highlight .r-value { color: var(--primary); font-size: 1.0625rem; }
.result-row.is-success .r-value { color: var(--success); }
.result-row.is-danger  .r-value { color: var(--danger); }

.result-note {
  margin-top: 0.875rem;
  font-size: 0.8125rem;
  color: var(--gray-500);
  line-height: 1.55;
  font-style: italic;
}

/* ===== AD PLACEHOLDER ===== */
.ad-placeholder {
  background: transparent;
  border: none;
  border-radius: var(--radius);
  margin: 2.5rem 0;
  min-height: 90px;
  font-size: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== BLOG CARDS ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--gray-300);
}

.blog-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.25rem;
}

.blog-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.blog-card-body h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--gray-400);
  margin-bottom: 0.75rem;
}

.blog-card-body > p { font-size: 0.9375rem; flex: 1; margin-bottom: 1.25rem; }

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
}

/* ===== FEATURED ARTICLE CARD ===== */
.featured-article-card {
  background: var(--primary-light);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 3rem;
}

.featured-article-img {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  min-height: 260px;
}

.featured-article-body {
  padding: 2.5rem;
}

.featured-article-body h2 {
  font-size: 1.375rem;
  margin: 0.75rem 0 1rem;
  line-height: 1.35;
}

@media (max-width: 640px) {
  .featured-article-card { grid-template-columns: 1fr; }
  .featured-article-img  { min-height: 160px; font-size: 3rem; }
}

/* ===== BLOG FILTERS ===== */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1.125rem;
  border: 2px solid var(--gray-200);
  border-radius: 99px;
  background: var(--white);
  color: var(--gray-600);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.filter-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}

.filter-btn.active:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

/* ===== ARTICLE LAYOUT ===== */
.article-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3.5rem;
  align-items: start;
}

.article-content { max-width: 720px; }

.article-header { margin-bottom: 2rem; }
.article-header h1 { margin-bottom: 1rem; }

.article-body h2  { margin: 2rem 0 1rem; font-size: 1.375rem; }
.article-body h3  { margin: 1.5rem 0 0.75rem; font-size: 1.125rem; }
.article-body p   { margin-bottom: 1.25rem; line-height: 1.8; }
.article-body ul,
.article-body ol  { margin: 0.75rem 0 1.25rem 1.5rem; }
.article-body li  { margin-bottom: 0.5rem; line-height: 1.7; color: var(--gray-600); }
.article-body ul li { list-style: disc; }
.article-body ol li { list-style: decimal; }

.callout {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.125rem 1.5rem;
  margin: 1.5rem 0;
}
.callout p { color: var(--gray-700); margin: 0; }
.callout strong { color: var(--gray-900); }

/* Comparison table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}
.comparison-table th {
  background: var(--primary);
  color: white;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
}
.comparison-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-700);
  vertical-align: top;
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:nth-child(even) td { background: var(--gray-50); }

.article-sidebar { position: sticky; top: 80px; }

.sidebar-widget {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-widget h4 { margin-bottom: 1rem; font-size: 0.9375rem; }

.sidebar-links li { margin-bottom: 0.5rem; }
.sidebar-links a {
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-700);
}
.sidebar-links a::before { content: '→'; color: var(--primary); }
.sidebar-links a:hover { color: var(--primary); }

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
  padding: 3.5rem 0;
  text-align: center;
}
.page-header h1 { color: white; margin-bottom: 0.75rem; font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
.page-header p  { color: rgba(255,255,255,0.72); font-size: 1.0625rem; max-width: 580px; margin: 0 auto; }

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1rem;
}
.breadcrumb a    { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: white; }
.breadcrumb span { opacity: 0.4; }

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 { margin-bottom: 1rem; }
.contact-info > p { margin-bottom: 2rem; }

.info-items { display: flex; flex-direction: column; gap: 1.5rem; }

.info-item { display: flex; gap: 1rem; align-items: flex-start; }

.info-icon {
  width: 42px;
  height: 42px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}
.info-item h4 { margin-bottom: 0.2rem; font-size: 0.9375rem; }
.info-item p  { font-size: 0.9375rem; margin: 0; }

.contact-form-box {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.form-success {
  display: none;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: #065f46;
  font-weight: 500;
  margin-top: 1rem;
}

/* ===== ABOUT PAGE ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition);
}
.team-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.team-avatar {
  width: 76px;
  height: 76px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.875rem;
  color: white;
}

.team-card h4   { margin-bottom: 0.2rem; }
.team-card .role { color: var(--primary); font-size: 0.875rem; font-weight: 500; margin-bottom: 0.75rem; }
.team-card p     { font-size: 0.875rem; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.value-card {
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.5rem;
  background: var(--gray-50);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.value-card h4 { margin-bottom: 0.5rem; color: var(--primary); }
.value-card p  { font-size: 0.9375rem; margin: 0; }

/* ===== LEGAL CONTENT ===== */
.legal-content h2 { margin: 2.5rem 0 1rem; font-size: 1.375rem; }
.legal-content h3 { margin: 1.75rem 0 0.75rem; font-size: 1.125rem; }
.legal-content p  { margin-bottom: 1.125rem; line-height: 1.8; }
.legal-content ul { margin: 0.75rem 0 1.25rem 1.5rem; }
.legal-content ul li { list-style: disc; margin-bottom: 0.5rem; line-height: 1.7; color: var(--gray-600); }

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 5rem 0;
  text-align: center;
}
.cta-section h2   { color: white; margin-bottom: 1rem; }
.cta-section p    { color: rgba(255,255,255,0.85); max-width: 520px; margin: 0 auto 2rem; font-size: 1.0625rem; }
.cta-actions      { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.65);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand h3  { color: white; font-size: 1.125rem; margin-bottom: 0.75rem; }
.footer-brand p   { font-size: 0.9375rem; line-height: 1.65; max-width: 280px; }

.footer-col h4 {
  color: white;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.footer-col li     { margin-bottom: 0.625rem; }
.footer-col a      { color: rgba(255,255,255,0.55); font-size: 0.9375rem; transition: color var(--transition); }
.footer-col a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p   { font-size: 0.875rem; margin: 0; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { font-size: 0.875rem; color: rgba(255,255,255,0.45); }
.footer-bottom-links a:hover { color: white; }

.disclaimer {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.3);
  margin-top: 1rem;
  line-height: 1.6;
  text-align: center;
}

/* ===== UTILITY ===== */
.text-center  { text-align: center; }
.text-primary { color: var(--primary); }
.bg-gray      { background: var(--gray-50); }
.divider      { border: none; border-top: 1px solid var(--gray-200); margin: 2rem 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-grid .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: none; }
}

@media (max-width: 768px) {
  /* Mobile nav */
  .navbar-toggle { display: flex; }
  .navbar-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    gap: 0.2rem;
    z-index: 999;
  }
  .navbar-nav.open   { display: flex; }
  .navbar-nav a      { padding: 0.625rem 1rem; display: block; }

  /* Layout */
  .hero-content       { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
  .hero-actions       { justify-content: center; }
  .hero-stats         { justify-content: center; gap: 1.5rem; }
  .hero-visual        { display: none; }

  .tools-grid         { grid-template-columns: 1fr; }
  .blog-grid          { grid-template-columns: 1fr; }
  .contact-grid       { grid-template-columns: 1fr; gap: 2.5rem; }
  .article-wrap       { grid-template-columns: 1fr; }
  .article-sidebar    { display: none; }
  .form-row           { grid-template-columns: 1fr; }
  .features-grid      { grid-template-columns: 1fr; }

  .section  { padding: 3.5rem 0; }
  .hero     { padding: 4rem 0 3rem; }
  .cta-section { padding: 3.5rem 0; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-stats  { flex-direction: row; flex-wrap: wrap; gap: 1rem 2rem; justify-content: center; }
  .cta-actions { flex-direction: column; align-items: center; }
}
