/**
 * MWANGI Invoice Generator Stylesheet
 * Reusing design tokens from public_html/assets/css/main.css
 */
 @import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700&display=swap');

 :root {
   /* Design Tokens aligned with mwangi.co.ke */
   --color-primary: #29B5ED;
   --color-primary-hover: #4EC8F7;
   --color-primary-dark: #1A8FC9;
   
   --color-bg-page: #0A0A0A;
   --color-bg-card: #151515;
   --color-bg-input: #1F1F1F;
   --color-bg-elevated: #2A2A2A;
   
   --color-text-primary: #e1dede;
   --color-text-secondary: #B4B4B4;
   --color-text-muted: #808080;
   
   --color-border: #333333;
   --color-border-focus: var(--color-primary);
   
   /* Font assignments (default is Lexend) */
   --font-sans: 'Lexend', system-ui, -apple-system, sans-serif;
   --font-invoice: var(--font-sans);
   
   --border-radius: 10px;
   --border-radius-sm: 6px;
   --transition: 200ms ease;
 }
 
 * {
   box-sizing: border-box;
   margin: 0;
   padding: 0;
 }

 /* Screen reader only - visually hidden for SEO */
 .sr-only {
   position: absolute;
   width: 1px;
   height: 1px;
   padding: 0;
   margin: -1px;
   overflow: hidden;
   clip: rect(0, 0, 0, 0);
   white-space: nowrap;
   border-width: 0;
 }
 
 @keyframes spin {
   from { transform: rotate(0deg); }
   to { transform: rotate(360deg); }
 }
 
 body {
   font-family: var(--font-sans);
   background-color: var(--color-bg-page);
   color: var(--color-text-primary);
   line-height: 1.6;
   -webkit-font-smoothing: antialiased;
 }
 
 /* Layout */
 .app-container {
   display: flex;
   gap: 2rem;
   max-width: 1400px;
   margin: 0 auto;
   padding: 1rem 2rem 2rem;
 }
 
 .main-content {
   flex: 1;
   min-width: 0;
 }

 .page-header {
   max-width: 1400px;
   margin: 0 auto;
   padding: 1rem 2rem;
   text-align: center;
 }

 .page-header h1 {
   font-size: 2rem;
   color: var(--color-primary);
   margin-bottom: 0.5rem;
 }

 .page-header p {
   color: var(--color-text-secondary);
   font-size: 1.1rem;
 }

 /* Warning Banner */
 .warning-banner {
   background-color: rgba(239, 68, 68, 0.1); /* Soft red background */
   border-bottom: 1px solid rgba(239, 68, 68, 0.3);
   color: #fca5a5; /* Light red text */
   padding: 0.75rem 2rem;
   display: flex;
   justify-content: space-between;
   align-items: center;
   font-size: 0.9rem;
   z-index: 50;
 }

 .warning-content {
   display: flex;
   align-items: center;
   gap: 0.75rem;
   max-width: 1400px;
   margin: 0 auto;
   width: 100%;
 }

 .warning-icon {
   color: #ef4444; /* Bright red icon */
   flex-shrink: 0;
 }

 .warning-banner p {
   margin: 0;
 }

 .warning-banner strong {
   color: #f87171;
 }

 .btn-close-warning {
   color: #ef4444;
   opacity: 0.7;
   padding: 0.25rem;
   margin-left: 1rem;
 }

 .btn-close-warning:hover {
   opacity: 1;
   background: rgba(239, 68, 68, 0.15);
 }
 
 .sidebar {
   width: 320px;
   flex-shrink: 0;
   display: flex;
   flex-direction: column;
   gap: 1.5rem;
 }
 
 .logo {
   font-size: 1.5rem;
   font-weight: 700;
   color: var(--color-primary);
   text-decoration: none;
   display: flex;
   align-items: center;
   gap: 0.5rem;
 }

 /* Site Navigation (full-width, matching mwangi.co.ke) */
 .site-nav {
   width: 100%;
   background: var(--color-bg-card);
   border-bottom: 1px solid var(--color-border);
   padding: 0.75rem 0;
 }

 .nav-inner {
   display: flex;
   justify-content: space-between;
   align-items: center;
   max-width: 1400px;
   margin: 0 auto;
   padding: 0 2rem;
 }

 .nav-brand .logo strong {
   color: var(--color-text-primary);
   font-size: 1.1rem;
 }

 .nav-links {
   display: flex;
   list-style: none;
   gap: 0.25rem;
   margin: 0;
   padding: 0;
 }

 .nav-links li a {
   color: var(--color-text-secondary);
   text-decoration: none;
   font-size: 0.95rem;
   font-weight: 500;
   padding: 0.5rem 0.85rem;
   border-radius: var(--border-radius-sm);
   transition: all var(--transition);
 }

 .nav-links li a:hover {
   color: var(--color-primary);
   background: rgba(41, 181, 237, 0.08);
 }

 /* Full-width Leaderboard Ad (728x90 IAB standard) */
 .ad-leaderboard-wrapper {
   width: 100%;
   display: flex;
   justify-content: center;
   padding: 1rem 0;
   background: var(--color-bg-page);
 }

 .ad-leaderboard {
   width: 728px;
   max-width: 100%;
   height: 90px;
   display: flex;
   align-items: center;
   justify-content: center;
   border-radius: var(--border-radius);
 }

 .ad-leaderboard img {
   max-width: 100%;
   height: auto;
   border-radius: var(--border-radius);
 }
 
 /* Invoice Paper (The Card) */
 .invoice-paper {
   background: var(--color-bg-card);
   border-radius: var(--border-radius);
   padding: 2rem; /* Reduced from 3rem for better fit */
   box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
   border: 1px solid var(--color-border);
   font-family: var(--font-invoice); /* Apply dynamic font */
   transition: all 0.3s ease;
 }
 
 /* Grid Layouts inside Invoice */
 .invoice-header {
   display: flex;
   justify-content: space-between;
   align-items: flex-start;
   margin-bottom: 2rem;
   gap: 2rem;
 }
 
 .invoice-details-grid {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 2rem;
   margin-bottom: 1.5rem; /* Reduced from 3rem */
 }
 
 /* Logo Upload Container */
 .logo-upload-container {
   width: 200px;
   min-height: 100px;
   border: 2px dashed var(--color-border);
   border-radius: var(--border-radius-sm);
   display: flex;
   align-items: center;
   justify-content: center;
   cursor: pointer;
   overflow: hidden;
   position: relative;
   transition: border-color var(--transition);
 }
 
 .logo-upload-container:hover {
   border-color: var(--color-primary);
 }
 
 .logo-placeholder {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 0.5rem;
   color: var(--color-text-secondary);
   font-size: 0.85rem;
 }
 
 .logo-placeholder svg {
   color: var(--color-text-muted);
 }
 
 #company-logo {
   max-width: 100%;
   max-height: 120px;
   object-fit: contain;
 }
 
 /* Typography */
 h1, h2, h3, h4 { color: var(--color-text-primary); font-weight: 600; }
 h2 { margin-bottom: 1rem; font-size: 1.2rem; color: var(--color-primary); }
 
 /* Form Elements */
 .form-group {
   margin-bottom: 1rem;
 }
 
 .form-group label {
   display: block;
   font-size: 0.85rem;
   margin-bottom: 0.25rem;
   color: var(--color-text-secondary);
   font-weight: 500;
 }
 
 input, textarea, select {
   width: 100%;
   background: var(--color-bg-input);
   border: 1px solid var(--color-border);
   color: var(--color-text-primary);
   padding: 0.75rem 1rem;
   border-radius: var(--border-radius-sm);
   font-family: var(--font-sans);
   font-size: 0.95rem;
   transition: border-color var(--transition);
 }
 
 input:focus, textarea:focus, select:focus {
   outline: none;
   border-color: var(--color-primary);
 }
 
 input.invalid-input, textarea.invalid-input {
   border-color: #EF4444 !important;
 }
 
 .validation-msg {
   display: block;
   color: #EF4444;
   font-size: 0.75rem;
   margin-top: 0.25rem;
   min-height: 1rem;
 }
 
 textarea { resize: vertical; min-height: 80px; }
 
 /* Tables for Items */
 .items-table {
   width: 100%;
   border-collapse: collapse;
   margin-bottom: 2rem;
 }
 
 .items-table th {
   text-align: left;
   padding: 1rem;
   background: var(--color-bg-elevated);
   color: var(--color-text-secondary);
   font-weight: 500;
   font-size: 0.9rem;
   border-bottom: 2px solid var(--color-border);
 }
 
 .items-table td {
   padding: 1rem 0.5rem;
   border-bottom: 1px solid var(--color-border);
   vertical-align: top;
 }
 
 .col-desc { width: 50%; }
 .col-qty { width: 15%; text-align: center; }
 .col-rate { width: 20%; text-align: right; }
 .col-amt { width: 15%; text-align: right; }
 .col-action { width: 5%; text-align: center; }
 
 /* Totals Section */
 .totals-section {
   display: flex;
   justify-content: flex-end;
   margin-bottom: 3rem;
 }
 
 .totals-box {
   width: 350px;
   background: var(--color-bg-elevated);
   padding: 1.5rem;
   border-radius: var(--border-radius);
 }
 
 .total-line {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-bottom: 0.75rem;
   font-size: 0.95rem;
 }
 
 .total-line.grand-total {
   border-top: 1px solid var(--color-border);
   padding-top: 1rem;
   margin-top: 0.5rem;
   font-size: 1.25rem;
   font-weight: 700;
   color: var(--color-primary);
 }
 
 .total-line input {
   width: 80px;
   text-align: right;
   padding: 0.5rem;
 }
 
 /* Discount Toggle */
 .discount-label-group {
   display: flex;
   align-items: center;
   gap: 0.5rem;
 }
 
 .discount-toggle {
   display: inline-flex;
   border: 1px solid var(--color-border);
   border-radius: 4px;
   overflow: hidden;
 }
 
 .discount-toggle .toggle-btn {
   background: transparent;
   border: none;
   color: var(--color-text-muted);
   padding: 0.15rem 0.5rem;
   font-size: 0.75rem;
   font-weight: 600;
   cursor: pointer;
   font-family: inherit;
   transition: all var(--transition);
 }
 
 .discount-toggle .toggle-btn.active {
   background: var(--color-primary);
   color: #000;
 }
 
 .discount-toggle .toggle-btn:hover:not(.active) {
   background: var(--color-bg-elevated);
   color: var(--color-text-primary);
 }
 
 /* Buttons */
 .btn {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   gap: 0.5rem;
   padding: 0.75rem 1.5rem;
   border: none;
   border-radius: var(--border-radius-sm);
   font-family: inherit;
   font-weight: 600;
   cursor: pointer;
   transition: all var(--transition);
   text-decoration: none;
 }
 
 .btn-primary {
   background: var(--color-primary);
   color: #000;
   width: 100%;
   padding: 1rem;
   font-size: 1.1rem;
 }
 
 .btn-primary:hover {
   background: var(--color-primary-hover);
   transform: translateY(-2px);
 }
 
 .btn-secondary {
   background: var(--color-bg-elevated);
   color: var(--color-text-primary);
   border: 1px solid var(--color-border);
 }
 
 .btn-secondary:hover {
   border-color: var(--color-primary);
 }
 
 .btn-icon {
   padding: 0.5rem;
   background: transparent;
   color: #EF4444; 
   border: none;
   cursor: pointer;
   border-radius: 4px;
 }
 
 .btn-icon:hover {
   background: rgba(239, 68, 68, 0.1);
 }
 
 /* Sidebar Cards */
 .sidebar-card {
   background: var(--color-bg-card);
   padding: 1.5rem;
   border-radius: var(--border-radius);
   border: 1px solid var(--color-border);
 }
 
 /* Ad Containers */
 .ad-container {
   background: var(--color-bg-elevated);
   border: 1px dashed var(--color-border);
   border-radius: var(--border-radius);
   display: flex;
   align-items: center;
   justify-content: center;
   overflow: hidden;
   text-align: center;
   color: var(--color-text-muted);
   font-size: 0.85rem;
 }
 
 .ad-container img {
   max-width: 100%;
   height: auto;
   display: block;
 }

 .ad-text-wrapper {
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   width: 100%;
   height: 100%;
   text-decoration: none;
   padding: 1.5rem;
   background: linear-gradient(135deg, var(--color-bg-card), var(--color-bg-elevated));
   border-radius: var(--border-radius);
   transition: transform var(--transition);
 }

 .ad-text-wrapper:hover {
   transform: scale(1.02);
 }

 .ad-text-wrapper h4 {
   color: var(--color-primary);
   font-size: 1.1rem;
   margin-bottom: 0.5rem;
 }

 .ad-text-wrapper p {
   color: var(--color-text-primary);
   font-size: 0.9rem;
   margin-bottom: 0px;
 }
 
 .ad-vertical { min-height: 600px; padding: 1rem; }
 .ad-horizontal { min-height: 250px; margin-top: 2rem;}
 
 .ad-top-banner {
   width: 100%;
   min-height: 90px;
   margin-bottom: 1.5rem;
   border-radius: var(--border-radius);
 }
 
 .ad-top-banner img {
   width: 100%;
   height: auto;
   border-radius: var(--border-radius);
 }

 /* Auto-hide empty ad containers */
 .ad-container:not(:has(img, iframe, ins)),
 .ad-leaderboard-wrapper:not(:has(img, iframe, ins)),
 .ad-container:has(ins.adsbygoogle[data-ad-status="unfilled"]),
 .ad-leaderboard-wrapper:has(ins.adsbygoogle[data-ad-status="unfilled"]) {
   display: none !important;
 }
 
 /* Invoice Meta — Right aligned */
 .invoice-meta {
   text-align: right;
 }
 
 .invoice-meta .form-group.flex {
   display: flex;
   align-items: center;
   justify-content: flex-end;
   gap: 0.75rem;
 }
 
 .invoice-meta input {
   max-width: 200px;
   text-align: right;
 }
 
 /* =========================================
    TEMPLATE STYLES
    ========================================= */
 
 /* 1. Template Modern (Default) */
 /* Uses the base styles defined above (var(--color-primary) accents, standard borders) */
 
 /* 2. Template Classic (Monochrome, Grayscale, Formal) */
 .template-classic {
   background: #ffffff;
   color: #333333;
   border-radius: 0; /* Sharp corners */
   border: 1px solid #cccccc;
 }
 
 .template-classic h1, .template-classic h2, .template-classic h3, .template-classic h4 {
   color: #111111;
   font-family: inherit; /* Inherits the selected google font */
 }
 
 .template-classic .items-table th {
   background: #f0f0f0;
   color: #333333;
   border-bottom: 2px solid #999999;
   border-top: 2px solid #999999;
   text-transform: uppercase;
   letter-spacing: 0.05em;
   font-size: 0.8rem;
   font-weight: 700;
 }
 
 .template-classic .items-table td {
   border-bottom: 1px solid #eeeeee;
 }
 
 .template-classic .total-line.grand-total {
   border-top: 2px solid #999999;
   color: #111111;
 }
 
 .template-classic .form-group label {
   color: #666666;
   text-transform: uppercase;
   font-size: 0.75rem;
   letter-spacing: 0.05em;
 }
 
 .template-classic input, .template-classic textarea, .template-classic select {
   background: transparent;
   border: 1px solid #dddddd;
   color: #333333;
   border-radius: 0;
 }
 
 /* 3. Template Bold (Heavy Headers, Solid Colors) */
 .template-bold {
   background: #ffffff;
   color: #000000;
   border-top: 12px solid var(--color-primary);
 }
 
 .template-bold h1.editable-title {
   font-size: 3rem;
   font-weight: 900;
   color: var(--color-primary);
   letter-spacing: -0.02em;
   margin-bottom: 0.5rem; /* Tighter layout */
 }
 
 .template-bold h2 {
   font-weight: 800;
   border-bottom: 2px solid #ebebeb;
   padding-bottom: 0.5rem;
   margin-bottom: 1.5rem;
   color: #000000;
 }
 
 .template-bold .items-table th {
   background: var(--color-primary);
   color: #000000;
   border: none;
   font-weight: 800;
 }
 
 .template-bold .items-table td {
   border-bottom: 1px solid #ebebeb;
   font-weight: 500;
 }
 
 .template-bold .totals-box {
   background: #f8f9fa;
   border: 1px solid #ebebeb;
   border-radius: 0;
 }
 
 .template-bold .total-line.grand-total {
   border-top: none;
   background: var(--color-primary);
   color: #000000;
   padding: 1rem;
   margin-top: 1rem;
   font-weight: 800;
 }
 
 .template-bold input, .template-bold textarea, .template-bold select {
   background: #f8f9fa;
   border: 1px solid #ebebeb;
   color: #000000;
   border-radius: 4px;
 }
 
 .template-bold .form-group label {
   color: #000000;
   font-weight: 700;
 }
 
 
 /* =========================================
    PRINT & PDF GENERATOR STYLES
    ========================================= */
 
 /* PDF Output Mode hides standard UI components */
 body.pdf-mode {
   background: white;
   color: black;
 }
 
 body.pdf-mode .sidebar,
 body.pdf-mode .app-header,
 body.pdf-mode .btn,
 body.pdf-mode .btn-icon,
 body.pdf-mode .ad-container,
 body.pdf-mode .logo-placeholder,
 body.pdf-mode .no-print {
   display: none !important;
 }
 
 body.pdf-mode .invoice-paper {
   box-shadow: none !important;
   border: none !important;
   padding: 1cm;
   margin: 0;
   width: 100%;
   max-width: none;
 }
 
 body.pdf-mode .logo-upload-container {
   border: none !important;
   min-height: auto !important;
   width: auto !important;
   display: block !important;
 }
 
 @media print {
   @page { size: A4; margin: 0; }
   
   body {
     background: white;
     color: black;
     margin: 0;
     print-color-adjust: exact;
     -webkit-print-color-adjust: exact;
   }
   
   .app-container {
     padding: 0;
   }
   
   .main-content {
     padding: 0;
   }
   
   .sidebar,
   .app-header,
   .btn,
   .btn-icon,
   .ad-container,
   .logo-placeholder,
   .no-print {
     display: none !important;
   }
   
   .logo-upload-container {
     border: none !important;
     min-height: auto !important;
     width: auto !important;
     display: block !important;
   }
   
   .invoice-paper {
     box-shadow: none !important;
     border: none !important;
     padding: 1cm !important;
     background: white;
     width: 100%;
     max-width: none;
   }
 }
 
 /* Combined Print & PDF Mode Cleanups */
 @media print {
    input, textarea, select {
      background: transparent !important;
      border: none !important;
      color: inherit !important;
      padding: 0 !important;
      resize: none;
      overflow: hidden;
      font-size: 10pt;
    }
    label { display: none !important; }
 }
 
 body.pdf-mode input, 
 body.pdf-mode textarea, 
 body.pdf-mode select {
    background: transparent !important;
    border: none !important;
    color: inherit !important;
    padding: 0 !important;
    resize: none;
    overflow: hidden;
    font-size: 10pt;
 }
 
 body.pdf-mode label { 
    display: none !important; 
 }
 
 /* Hide native calendar icons and dropdown arrows */
 body.pdf-mode input[type="date"]::-webkit-inner-spin-button,
 body.pdf-mode input[type="date"]::-webkit-calendar-picker-indicator,
 body.pdf-mode select {
   -webkit-appearance: none;
   -moz-appearance: none;
   appearance: none;
   background-image: none !important;
   display: none !important;
 }
 
 body.pdf-mode input[type="date"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
 }
 
 body.pdf-mode ::placeholder {
    color: transparent !important;
 }
 
 @media print {
   input[type="date"]::-webkit-inner-spin-button,
   input[type="date"]::-webkit-calendar-picker-indicator,
   select {
     -webkit-appearance: none;
     -moz-appearance: none;
     appearance: none;
     background-image: none !important;
     display: none !important;
   }
   input[type="date"] {
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
   }
   ::placeholder { color: transparent !important; }
 
   .template-bold .items-table th { background: var(--color-primary) !important; color: black !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
   .template-bold .total-line.grand-total { background: var(--color-primary) !important; color: black !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
   .template-modern .items-table th, .template-classic .items-table th { background: #f3f4f6 !important; color: black !important; border-bottom-color: #d1d5db !important; }
   .items-table td { border-bottom-color: #e5e7eb !important; }
   .template-modern .totals-box, .template-classic .totals-box { background: #f9fafb !important; border: 1px solid #e5e7eb; }
   h1, h2, h3, h4, .logo { color: black !important; }
   .template-bold h1.editable-title { color: var(--color-primary) !important; }
 }
 
 body.pdf-mode .template-bold .items-table th { background: var(--color-primary) !important; color: black !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
 body.pdf-mode .template-bold .total-line.grand-total { background: var(--color-primary) !important; color: black !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
 body.pdf-mode .template-modern .items-table th, body.pdf-mode .template-classic .items-table th { background: #f3f4f6 !important; color: black !important; border-bottom-color: #d1d5db !important; }
 body.pdf-mode .items-table td { border-bottom-color: #e5e7eb !important; }
 body.pdf-mode .template-modern .totals-box, body.pdf-mode .template-classic .totals-box { background: #f9fafb !important; border: 1px solid #e5e7eb; }
 body.pdf-mode h1, body.pdf-mode h2, body.pdf-mode h3, body.pdf-mode h4, body.pdf-mode .logo { color: black !important; }
 body.pdf-mode .template-bold h1.editable-title { color: var(--color-primary) !important; }
 
 /* Responsive */
 @media (max-width: 1024px) {
   .app-container { flex-direction: column; }
   .sidebar { width: 100%; }
   .ad-vertical { min-height: 250px; }
 }
 
 @media (max-width: 768px) {
   .invoice-header, .invoice-details-grid {
     grid-template-columns: 1fr;
     gap: 1.5rem;
   }
   .items-table, .items-table tbody, .items-table tr, .items-table td {
     display: block;
     width: 100%;
   }
   .items-table thead { display: none; }
   .items-table tr { margin-bottom: 2rem; border-bottom: 2px solid var(--color-border); padding-bottom: 1rem; }
   .items-table td { text-align: right; padding-left: 50%; position: relative; border-bottom: none; }
   .items-table td::before { 
     content: attr(data-label); 
     position: absolute; 
     left: 0; 
     width: 45%; 
     text-align: left; 
     font-weight: 500; 
     color: var(--text-secondary);
   }
   .col-desc, .col-qty, .col-rate, .col-amt, .col-action { width: 100%; text-align: right;}
 }

 /* =========================================
    SEO CONTENT SECTION
    ========================================= */
 .seo-content {
   max-width: 1400px;
   margin: 4rem auto 0;
   padding: 0 2rem;
 }

 .seo-inner {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 4rem;
   background: var(--color-bg-card);
   padding: 3rem;
   border-radius: var(--border-radius);
   border: 1px solid var(--color-border);
 }

 .seo-column h2 {
   font-size: 1.8rem;
   margin-bottom: 1.5rem;
 }

 .seo-column h3 {
   font-size: 1.3rem;
   color: var(--color-primary);
   margin: 2rem 0 1rem;
 }

 .seo-column p {
   color: var(--color-text-secondary);
   line-height: 1.8;
   margin-bottom: 1rem;
 }

 .seo-column ol {
   padding-left: 1.5rem;
   color: var(--color-text-secondary);
 }

 .seo-column ol li {
   margin-bottom: 0.75rem;
   line-height: 1.6;
 }

 .seo-column ol li strong {
   color: var(--color-text-primary);
 }

 .faq-item {
   margin-bottom: 1.5rem;
 }

 .faq-item h4 {
   font-size: 1.1rem;
   color: var(--color-text-primary);
   margin-bottom: 0.5rem;
 }

 .faq-item p {
   margin-bottom: 0;
 }

 @media (max-width: 900px) {
   .seo-inner {
     grid-template-columns: 1fr;
     gap: 2rem;
     padding: 2rem;
   }
 }

 /* =========================================
    SITE FOOTER (matching mwangi.co.ke)
    ========================================= */
 .site-footer {
   max-width: 1400px;
   margin: 3rem auto 0;
   padding: 0 2rem 2rem;
 }

 .site-footer hr {
   border: none;
   border-top: 1px solid var(--color-border);
   margin-bottom: 1.5rem;
 }

 .footer-content {
   display: flex;
   justify-content: space-between;
   align-items: center;
   flex-wrap: wrap;
   gap: 1rem;
 }

 .footer-content small {
   color: var(--color-text-muted);
   font-size: 0.8rem;
 }

 .footer-content a {
   color: var(--color-text-secondary);
   text-decoration: none;
   transition: color var(--transition);
 }

 .footer-content a:hover {
   color: var(--color-primary);
 }
