/*
Theme Name:  Custom Starter Pro
Theme URI:   https://yourwebsite.com
Author:      Your Name
Author URI:  https://yourwebsite.com
Description: A clean, modern, lightweight WordPress starter theme fully compatible with Elementor. Perfect for building fast, professional websites.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: custom-starter-pro
Tags:        elementor, responsive, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ====================================================
   TABLE OF CONTENTS
   1. CSS Variables (Design System)
   2. Reset & Base Styles
   3. Typography
   4. Layout & Container
   5. Buttons
   6. Header
   7. Navigation / Mobile Menu
   8. Hero Section
   9. Services Section
   10. About Section
   11. Blog Section
   12. Contact Section
   13. Footer
   14. Sidebar & Widgets
   15. Single Post / Page
   16. Archive
   17. 404 Page
   18. Pagination
   19. Utility Classes
   20. Responsive Breakpoints
==================================================== */

/* ===========================
   1. CSS VARIABLES (DESIGN SYSTEM)
=========================== */
:root {
  /* Colors */
  --color-primary:       #4F46E5;
  --color-primary-dark:  #3730A3;
  --color-primary-light: #818CF8;
  --color-secondary:     #06B6D4;
  --color-secondary-dark:#0891B2;
  --color-text:          #333333;
  --color-text-light:    #6B7280;
  --color-heading:       #111827;
  --color-bg:            #ffffff;
  --color-bg-light:      #F9FAFB;
  --color-bg-dark:       #111827;
  --color-border:        #E5E7EB;
  --color-white:         #ffffff;

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body:    'Open Sans', sans-serif;
  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;    /* 16px */
  --font-size-md: 1.125rem;  /* 18px */
  --font-size-lg: 1.25rem;   /* 20px */
  --font-size-xl: 1.5rem;    /* 24px */
  --font-size-2xl: 2rem;     /* 32px */
  --font-size-3xl: 2.5rem;   /* 40px */
  --font-size-4xl: 3rem;     /* 48px */

  /* Spacing */
  --space-xs:  0.5rem;   /* 8px  */
  --space-sm:  0.75rem;  /* 12px */
  --space-md:  1rem;     /* 16px */
  --space-lg:  1.5rem;   /* 24px */
  --space-xl:  2rem;     /* 32px */
  --space-2xl: 3rem;     /* 48px */
  --space-3xl: 4rem;     /* 64px */
  --space-4xl: 5rem;     /* 80px */
  --space-5xl: 6rem;     /* 96px */

  /* Layout */
  --container-width: 1200px;
  --container-padding: 1.5rem;

  /* Border Radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:  0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-lg:  0 10px 15px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.04);
  --shadow-xl:  0 20px 25px rgba(0,0,0,0.08), 0 10px 10px rgba(0,0,0,0.03);

  /* Transitions */
  --transition-fast:   0.15s ease;
  --transition-base:   0.25s ease;
  --transition-slow:   0.4s ease;

  /* Header */
  --header-height: 72px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Remove default list styles */
ul, ol { list-style: none; }

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

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Tables */
table { width: 100%; border-collapse: collapse; }

/* Horizontal rule */
hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-xl) 0;
}

/* Focus styles (accessibility) */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ===========================
   3. TYPOGRAPHY
=========================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--space-md);
}

h1 { font-size: var(--font-size-4xl); font-weight: 700; }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-md); }

p {
  margin-bottom: var(--space-md);
  color: var(--color-text);
  line-height: 1.8;
}
p:last-child { margin-bottom: 0; }

strong, b { font-weight: 600; }
em, i { font-style: italic; }

blockquote {
  border-left: 4px solid var(--color-primary);
  padding: var(--space-md) var(--space-xl);
  margin: var(--space-xl) 0;
  background: var(--color-bg-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--color-text-light);
}

code {
  font-family: 'Courier New', monospace;
  background: var(--color-bg-light);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
  color: var(--color-primary);
}

pre {
  background: var(--color-bg-dark);
  color: #e5e7eb;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: var(--space-xl);
}
pre code { background: none; color: inherit; padding: 0; }

/* ===========================
   4. LAYOUT & CONTAINER
=========================== */
/* Main wrapper — always present */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-content { flex: 1; }

/* Container — center content with max-width */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* Wide container (e.g. full-bleed sections) */
.container-wide {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* Section spacing */
.section {
  padding: var(--space-5xl) 0;
}
.section-sm { padding: var(--space-3xl) 0; }

/* Grid helpers */
.grid { display: grid; gap: var(--space-xl); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Flex helpers */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col     { display: flex; flex-direction: column; }
.gap-sm  { gap: var(--space-sm); }
.gap-md  { gap: var(--space-md); }
.gap-lg  { gap: var(--space-lg); }
.gap-xl  { gap: var(--space-xl); }

/* Text alignment */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* Section header (title + subtitle block) */
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}
.section-header .section-tag {
  display: inline-block;
  font-size: var(--font-size-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  background: rgba(79, 70, 229, 0.08);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}
.section-header h2 { margin-bottom: var(--space-md); }
.section-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--color-text-light);
  font-size: var(--font-size-md);
}

/* ===========================
   5. BUTTONS
=========================== */
/* Base button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-heading);
  font-size: var(--font-size-base);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-base);
  white-space: nowrap;
  line-height: 1.4;
}
.btn:focus { outline: 2px solid var(--color-primary); outline-offset: 3px; }

/* Primary button */
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79,70,229,0.3);
}

/* Secondary button */
.btn-secondary {
  background: var(--color-secondary);
  color: var(--color-white);
  border-color: var(--color-secondary);
}
.btn-secondary:hover {
  background: var(--color-secondary-dark);
  border-color: var(--color-secondary-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(6,182,212,0.3);
}

/* Outline button */
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* White button (for dark backgrounds) */
.btn-white {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}
.btn-white:hover {
  background: transparent;
  color: var(--color-white);
  transform: translateY(-2px);
}

/* Ghost button */
.btn-ghost {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.5);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--color-white);
  color: var(--color-white);
}

/* Button sizes */
.btn-sm { padding: 0.5rem 1.25rem; font-size: var(--font-size-sm); }
.btn-lg { padding: 1rem 2.25rem;   font-size: var(--font-size-lg); }

/* ===========================
   6. HEADER
=========================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: box-shadow var(--transition-base), background var(--transition-base);
}

/* Add shadow when scrolled (via JS) */
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  width: 100%;
}

/* --- Logo --- */
.site-logo a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-heading);
}
.site-logo img {
  max-height: 44px;
  width: auto;
}
.site-logo .logo-text {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-heading);
  letter-spacing: -0.02em;
}
.site-logo .logo-text span { color: var(--color-primary); }

/* --- Header CTA --- */
.header-cta { flex-shrink: 0; }

/* --- Mobile menu toggle button --- */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}
.menu-toggle:hover { background: var(--color-bg-light); }
.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-heading);
  border-radius: 2px;
  transition: all var(--transition-base);
}
/* Animate toggle to "X" when active */
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================
   7. NAVIGATION
=========================== */
.main-navigation { flex: 1; display: flex; justify-content: center; }

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation ul li { position: relative; }

.main-navigation ul li a {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current-page-ancestor > a {
  color: var(--color-primary);
  background: rgba(79,70,229,0.07);
}

/* Dropdown sub-menu */
.main-navigation ul li ul {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
  padding: var(--space-xs) 0;
  flex-direction: column;
  gap: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-base);
  z-index: 100;
}
.main-navigation ul li:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.main-navigation ul li ul li a {
  padding: var(--space-xs) var(--space-lg);
  border-radius: 0;
  font-size: var(--font-size-sm);
}

/* Mobile nav overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 998;
}
.mobile-nav-overlay.active { display: block; }

/* ===========================
   8. HERO SECTION
=========================== */
.hero-section {
  background: linear-gradient(135deg, #f0f0ff 0%, #e0f7fa 100%);
  padding: var(--space-5xl) 0;
  position: relative;
  overflow: hidden;
}

/* Subtle background shapes */
.hero-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(79,70,229,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6,182,212,0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: rgba(79,70,229,0.1);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: var(--font-size-sm);
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, var(--font-size-4xl));
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-heading);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.03em;
}
.hero-content h1 span { color: var(--color-primary); }
.hero-content p {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  max-width: 580px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.8;
}
.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-border);
}
.hero-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.2;
}
.hero-stat span {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
}

/* ===========================
   9. SERVICES SECTION
=========================== */
.services-section { background: var(--color-white); }

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(79,70,229,0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  font-size: 1.6rem;
}
.service-card h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
  font-weight: 600;
}
.service-card p {
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}
.service-link {
  font-family: var(--font-heading);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition-fast);
}
.service-link:hover { gap: 8px; color: var(--color-primary-dark); }

/* ===========================
   10. ABOUT SECTION
=========================== */
.about-section { background: var(--color-bg-light); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}
.about-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}
.about-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}
.about-badge {
  position: absolute;
  bottom: var(--space-xl);
  left: var(--space-xl);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.about-badge strong {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-primary);
}
.about-badge span { font-size: var(--font-size-sm); color: var(--color-text-light); }
.about-text .section-tag {
  display: inline-block;
  font-size: var(--font-size-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  background: rgba(79, 70, 229, 0.08);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}
.about-text h2 { margin-bottom: var(--space-md); }
.about-text p { color: var(--color-text-light); margin-bottom: var(--space-lg); }

.about-features { margin: var(--space-xl) 0; }
.about-feature {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}
.about-feature-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: rgba(79,70,229,0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.about-feature-text h4 {
  font-size: var(--font-size-base);
  margin-bottom: 4px;
}
.about-feature-text p { margin: 0; font-size: var(--font-size-sm); }

/* ===========================
   11. BLOG SECTION
=========================== */
.blog-section { background: var(--color-white); }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}
.post-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.post-card .post-thumbnail {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--color-bg-light);
}
.post-card .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.post-card:hover .post-thumbnail img { transform: scale(1.05); }
.post-thumbnail-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, rgba(79,70,229,0.08), rgba(6,182,212,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.post-card-body { padding: var(--space-xl); }
.post-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}
.post-category {
  font-family: var(--font-heading);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  background: rgba(79,70,229,0.08);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.post-date {
  font-size: var(--font-size-xs);
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}
.post-card h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}
.post-card h3 a { color: var(--color-heading); }
.post-card h3 a:hover { color: var(--color-primary); }
.post-card p {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}
.post-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
}
.post-author img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

/* ===========================
   12. CONTACT SECTION
=========================== */
.contact-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  text-align: center;
}
.contact-inner {
  max-width: 640px;
  margin: 0 auto;
}
.contact-section h2 { color: var(--color-white); }
.contact-section p { color: rgba(255,255,255,0.8); font-size: var(--font-size-md); }
.contact-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-xl);
}

/* ===========================
   13. FOOTER
=========================== */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,0.7);
}

.footer-top {
  padding: var(--space-5xl) 0 var(--space-3xl);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-widgets {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
}
.footer-widget {}
.footer-logo {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-md);
  display: block;
}
.footer-logo span { color: var(--color-primary-light); }
.footer-widget p {
  font-size: var(--font-size-sm);
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-lg);
}
.footer-widget h4 {
  font-family: var(--font-heading);
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-lg);
}
.footer-widget ul { list-style: none; margin: 0; padding: 0; }
.footer-widget ul li { margin-bottom: var(--space-sm); }
.footer-widget ul li a {
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,0.6);
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-widget ul li a:hover { color: var(--color-white); }

/* Social links */
.social-links {
  display: flex;
  gap: var(--space-sm);
}
.social-link {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  text-decoration: none;
}
.social-link:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Footer bottom bar */
.footer-bottom {
  padding: var(--space-lg) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.footer-bottom p {
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,0.5);
  margin: 0;
}
.footer-bottom a { color: rgba(255,255,255,0.7); }
.footer-bottom a:hover { color: var(--color-white); }
.footer-bottom-links {
  display: flex;
  gap: var(--space-lg);
}
.footer-bottom-links a {
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,0.5);
  transition: color var(--transition-fast);
}
.footer-bottom-links a:hover { color: var(--color-white); }

/* ===========================
   14. SIDEBAR & WIDGETS
=========================== */
.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-3xl);
  align-items: start;
}
.primary-content {}
.sidebar {}

.widget {
  background: var(--color-bg-light);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
}
.widget-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--color-primary);
  color: var(--color-heading);
}
.widget ul { list-style: none; }
.widget ul li {
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--font-size-sm);
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--color-text); }
.widget ul li a:hover { color: var(--color-primary); }

/* ===========================
   15. SINGLE POST / PAGE
=========================== */
.post-header { margin-bottom: var(--space-2xl); }
.post-header .post-meta { margin-bottom: var(--space-lg); }
.post-header h1 { font-size: clamp(1.8rem, 3.5vw, var(--font-size-3xl)); margin-bottom: var(--space-md); }
.post-featured-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-2xl);
}
.post-featured-image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

/* Article content styles (WordPress-generated content) */
.entry-content h2,
.entry-content h3,
.entry-content h4 { margin-top: var(--space-2xl); margin-bottom: var(--space-md); }
.entry-content p    { margin-bottom: var(--space-lg); }
.entry-content ul,
.entry-content ol   { margin: 0 0 var(--space-lg) var(--space-xl); }
.entry-content ul   { list-style: disc; }
.entry-content ol   { list-style: decimal; }
.entry-content li   { margin-bottom: var(--space-xs); }
.entry-content img  { border-radius: var(--radius-md); margin: var(--space-lg) 0; }

.post-tags { margin-top: var(--space-xl); }
.post-tags span { font-weight: 600; }
.post-tags a {
  display: inline-block;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 4px 14px;
  font-size: var(--font-size-sm);
  margin: 4px;
  color: var(--color-text);
  transition: all var(--transition-fast);
}
.post-tags a:hover { background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); }

/* Post navigation (prev/next) */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-border);
}
.nav-previous, .nav-next { }
.nav-next { text-align: right; }
.nav-label {
  display: block;
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--color-text-light);
  margin-bottom: 4px;
}
.nav-title {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-heading);
  transition: color var(--transition-fast);
}
.nav-previous a:hover .nav-title,
.nav-next a:hover .nav-title { color: var(--color-primary); }

/* Comments */
.comments-area { margin-top: var(--space-3xl); padding-top: var(--space-2xl); border-top: 1px solid var(--color-border); }
.comments-title { font-size: var(--font-size-xl); margin-bottom: var(--space-xl); }
.comment-list { list-style: none; }
.comment { padding: var(--space-xl) 0; border-bottom: 1px solid var(--color-border); }
.comment-author { font-weight: 600; }
.comment-meta { font-size: var(--font-size-sm); color: var(--color-text-light); margin-bottom: var(--space-md); }
.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition-fast);
  margin-bottom: var(--space-md);
}
.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form .submit {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
}
.comment-form .submit:hover { background: var(--color-primary-dark); transform: translateY(-2px); }

/* ===========================
   16. ARCHIVE
=========================== */
.archive-header { margin-bottom: var(--space-3xl); }
.archive-header h1 { font-size: var(--font-size-2xl); }
.archive-description { color: var(--color-text-light); }

/* ===========================
   17. 404 PAGE
=========================== */
.error-404 {
  text-align: center;
  padding: var(--space-5xl) 0;
}
.error-404 .error-code {
  font-family: var(--font-heading);
  font-size: 10rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 3px var(--color-primary);
  margin-bottom: var(--space-lg);
  opacity: 0.2;
}
.error-404 h2 { font-size: var(--font-size-2xl); margin-bottom: var(--space-md); }
.error-404 p { color: var(--color-text-light); margin-bottom: var(--space-xl); }

/* ===========================
   18. PAGINATION
=========================== */
.pagination, .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-3xl);
  flex-wrap: wrap;
}
.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
  text-decoration: none;
}
.page-numbers:hover,
.page-numbers.current {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.page-numbers.dots {
  border-color: transparent;
  background: none;
  cursor: default;
}

/* ===========================
   19. UTILITY CLASSES
=========================== */
/* Margin/Padding helpers */
.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mt-xl  { margin-top: var(--space-xl); }
.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }
.mb-xl  { margin-bottom: var(--space-xl); }
.pt-sm  { padding-top: var(--space-sm); }
.pb-sm  { padding-bottom: var(--space-sm); }

/* Color helpers */
.text-primary    { color: var(--color-primary); }
.text-secondary  { color: var(--color-secondary); }
.text-light      { color: var(--color-text-light); }
.text-white      { color: var(--color-white); }
.text-heading    { color: var(--color-heading); }
.bg-light        { background: var(--color-bg-light); }
.bg-dark         { background: var(--color-bg-dark); }
.bg-primary      { background: var(--color-primary); }

/* Display */
.hidden          { display: none; }
.sr-only         { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Rounded */
.rounded-sm  { border-radius: var(--radius-sm); }
.rounded-md  { border-radius: var(--radius-md); }
.rounded-lg  { border-radius: var(--radius-lg); }
.rounded-xl  { border-radius: var(--radius-xl); }
.rounded-full{ border-radius: var(--radius-full); }

/* Shadow */
.shadow-sm   { box-shadow: var(--shadow-sm); }
.shadow-md   { box-shadow: var(--shadow-md); }
.shadow-lg   { box-shadow: var(--shadow-lg); }

/* Elementor full-width support */
.elementor-full-width .site-content { padding: 0; }
body.elementor-page .site-main { margin: 0; padding: 0; }

/* Screen reader text (accessibility) */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute;
  height: 1px;
  width: 1px;
  overflow: hidden;
  white-space: nowrap;
}

/* ===========================
   20. RESPONSIVE BREAKPOINTS
=========================== */

/* ---- Tablet: 1024px ---- */
@media (max-width: 1024px) {
  :root { --container-padding: 1.25rem; }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }

  .footer-widgets { grid-template-columns: 1fr 1fr; gap: var(--space-2xl); }
  .about-inner    { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .about-image img { height: 360px; }
  .content-sidebar-wrap { grid-template-columns: 1fr; }
  .sidebar { display: none; } /* Hide sidebar on tablet; show as needed */
}

/* ---- Large mobile: 768px ---- */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
    --container-padding: 1rem;
  }

  /* Header — show toggle, hide nav inline */
  .menu-toggle { display: flex; }
  .header-cta  { display: none; }

  .main-navigation {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-white);
    z-index: 999;
    padding: var(--space-lg);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform var(--transition-base);
    justify-content: flex-start;
    align-items: flex-start;
  }
  .main-navigation.open { transform: translateX(0); }
  .main-navigation ul {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-xs);
    width: 100%;
  }
  .main-navigation ul li a {
    padding: var(--space-md);
    font-size: var(--font-size-base);
    border-radius: var(--radius-md);
  }
  .main-navigation ul li ul {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0;
    padding-left: var(--space-md);
    background: var(--color-bg-light);
    margin-top: var(--space-xs);
  }

  /* Sections */
  .section    { padding: var(--space-3xl) 0; }
  .section-sm { padding: var(--space-2xl) 0; }

  /* Grids become single column */
  .grid-2, .grid-3, .grid-4  { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: var(--space-lg); flex-wrap: wrap; }
  .post-navigation { grid-template-columns: 1fr; }

  .footer-widgets { grid-template-columns: 1fr; }
  .footer-bottom  { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; }
}

/* ---- Small mobile: 480px ---- */
@media (max-width: 480px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.65rem; }
  .hero-buttons   { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { text-align: center; justify-content: center; }
  .contact-buttons { flex-direction: column; align-items: stretch; }
  .error-404 .error-code { font-size: 6rem; }
}
