/* LearnGreen Website Styles */
/* ========================= */

/* CSS Custom Properties */
:root {
  /* Colors */
  --primary: 142 71% 45%;        /* #2ecc71 */
  --primary-dark: 145 63% 42%;   /* #27ae60 */
  --secondary: 207 90% 54%;      /* #3498db */
  --accent: 14 100% 57%;         /* #e74c3c */
  --warning: 35 84% 62%;         /* #f39c12 */
  --purple: 283 39% 53%;         /* #9b59b6 */
  
  /* Neutrals */
  --background: 0 0% 100%;       /* #ffffff */
  --surface: 210 11% 98%;        /* #f8f9fa */
  --border: 210 13% 87%;         /* #e1e8ed */
  --muted: 210 9% 96%;           /* #ecf0f1 */
  
  /* Text Colors */
  --text-primary: 210 11% 15%;   /* #2c3e50 */
  --text-secondary: 210 13% 45%; /* #7f8c8d */
  --text-muted: 218 10% 53%;     /* #95a5a6 */
  --text-light: 0 0% 100%;       /* #ffffff */
  
  /* Shadows */
  --shadow-sm: 0 1px 3px hsla(210, 10%, 0%, 0.1);
  --shadow-md: 0 4px 6px hsla(210, 10%, 0%, 0.1);
  --shadow-lg: 0 10px 25px hsla(210, 10%, 0%, 0.15);
  --shadow-xl: 0 20px 40px hsla(210, 10%, 0%, 0.2);
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Typography */
  --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  
  /* Layout */
  --container-max-width: 1200px;
  --border-radius: 0.375rem;
  --border-radius-lg: 0.5rem;
  --border-radius-xl: 0.75rem;
  
  /* Transitions */
  --transition: all 0.3s ease;
  --transition-fast: all 0.15s ease;
}

/* Reset and Base Styles */
/* ===================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

/* Typography */
/* ========== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--space-md);
  color: hsl(var(--text-primary));
}

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-base);
}

p {
  margin-bottom: var(--space-md);
  color: hsl(var(--text-secondary));
}

.lead {
  font-size: var(--font-size-lg);
  font-weight: 400;
  color: hsl(var(--text-primary));
  margin-bottom: var(--space-xl);
}

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

a:hover {
  color: hsl(var(--primary-dark));
  text-decoration: underline;
}

/* Lists */
ul, ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

li {
  margin-bottom: var(--space-xs);
  color: hsl(var(--text-secondary));
}

/* Utilities */
/* ========= */

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Buttons */
/* ======= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--text-light));
  border-color: hsl(var(--primary));
}

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

.btn-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--text-light));
  border-color: hsl(var(--secondary));
}

.btn-secondary:hover {
  background-color: hsl(207 90% 49%);
  border-color: hsl(207 90% 49%);
  color: hsl(var(--text-light));
}

.btn-outline {
  background-color: transparent;
  color: hsl(var(--primary));
  border-color: hsl(var(--primary));
}

.btn-outline:hover {
  background-color: hsl(var(--primary));
  color: hsl(var(--text-light));
}

/* Header */
/* ====== */

.header {
  background-color: hsl(var(--background));
  box-shadow: var(--shadow-sm);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.navbar {
  padding: var(--space-md) 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: hsl(var(--text-primary));
}

.nav-brand a {
  display: flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.nav-brand svg {
  margin-right: var(--space-sm);
}

.brand-text {
  color: hsl(var(--primary));
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-xl);
}

.nav-menu a {
  color: hsl(var(--text-primary));
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-fast);
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: hsl(var(--primary));
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: hsl(var(--primary));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background-color: hsl(var(--text-primary));
  transition: var(--transition-fast);
}

/* Main Content */
/* ============ */

main {
  margin-top: 80px;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  font-size: var(--font-size-lg);
  color: hsl(var(--text-secondary));
  max-width: 600px;
  margin: 0 auto;
}

/* Hero Section */
/* ============ */

.hero {
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, hsl(var(--surface)) 0%, hsl(var(--background)) 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-text h1 {
  margin-bottom: var(--space-lg);
  color: hsl(var(--text-primary));
}

.hero-text p {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-xl);
  color: hsl(var(--text-secondary));
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual svg {
  max-width: 100%;
  height: auto;
}

/* Services Section */
/* =============== */

.services {
  padding: var(--space-3xl) 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.service-card {
  background: hsl(var(--background));
  padding: var(--space-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
  border: 1px solid hsl(var(--border));
}

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

.service-icon {
  margin-bottom: var(--space-lg);
  display: flex;
  justify-content: center;
}

.service-card h3 {
  color: hsl(var(--text-primary));
  margin-bottom: var(--space-md);
}

.service-card p {
  color: hsl(var(--text-secondary));
}

/* About Section */
/* ============= */

.about {
  padding: var(--space-3xl) 0;
  background-color: hsl(var(--surface));
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about-text h2 {
  color: hsl(var(--text-primary));
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.stat {
  text-align: center;
}

.stat h3 {
  font-size: var(--font-size-3xl);
  color: hsl(var(--primary));
  margin-bottom: var(--space-xs);
}

.stat p {
  color: hsl(var(--text-secondary));
  font-weight: 500;
  margin: 0;
}

/* Reviews Section */
/* =============== */

.reviews {
  padding: var(--space-3xl) 0;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.review-card {
  background: hsl(var(--background));
  padding: var(--space-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid hsl(var(--border));
}

.review-rating {
  margin-bottom: var(--space-md);
}

.review-rating i {
  color: hsl(35 100% 50%);
  margin-right: var(--space-xs);
}

.review-card p {
  font-style: italic;
  margin-bottom: var(--space-lg);
  color: hsl(var(--text-primary));
}

.review-author strong {
  color: hsl(var(--text-primary));
  display: block;
  margin-bottom: var(--space-xs);
}

.review-author span {
  color: hsl(var(--text-secondary));
  font-size: var(--font-size-sm);
}

/* Newsletter Section */
/* ================== */

.newsletter {
  padding: var(--space-3xl) 0;
  background-color: hsl(var(--surface));
}

.newsletter-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-text h2 {
  margin-bottom: var(--space-md);
  color: hsl(var(--text-primary));
}

.newsletter-text p {
  margin-bottom: var(--space-xl);
  color: hsl(var(--text-secondary));
}

.newsletter-form {
  margin-bottom: var(--space-md);
}

.newsletter-form .form-group {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.newsletter-form input {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid hsl(var(--border));
  border-radius: var(--border-radius);
  font-size: var(--font-size-base);
}

.form-disclaimer {
  font-size: var(--font-size-sm);
  color: hsl(var(--text-muted));
  margin: 0;
}

/* Contact Section */
/* =============== */

.contact {
  padding: var(--space-3xl) 0;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.contact-item {
  display: flex;
  gap: var(--space-md);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background-color: hsl(var(--primary));
  color: hsl(var(--text-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-details h3 {
  color: hsl(var(--text-primary));
  margin-bottom: var(--space-xs);
}

.contact-details p {
  color: hsl(var(--text-secondary));
  margin: 0;
}

/* Forms */
/* ===== */

.contact-form {
  background: hsl(var(--background));
  padding: var(--space-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid hsl(var(--border));
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
  color: hsl(var(--text-primary));
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid hsl(var(--border));
  border-radius: var(--border-radius);
  font-size: var(--font-size-base);
  font-family: inherit;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsla(var(--primary), 0.1);
}

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

/* Footer */
/* ====== */

.footer {
  background-color: hsl(var(--text-primary));
  color: hsl(var(--text-light));
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-brand {
  display: flex;
  align-items: center;
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.footer-brand svg {
  margin-right: var(--space-sm);
}

.footer-section h3 {
  color: hsl(var(--text-light));
  margin-bottom: var(--space-md);
}

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

.footer-section li {
  margin-bottom: var(--space-sm);
}

.footer-section a {
  color: hsl(var(--text-muted));
  transition: var(--transition-fast);
}

.footer-section a:hover {
  color: hsl(var(--text-light));
  text-decoration: none;
}

.social-links {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: hsla(var(--text-light), 0.1);
  color: hsl(var(--text-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: hsl(var(--primary));
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid hsla(var(--text-light), 0.1);
}

.footer-bottom p {
  color: hsl(var(--text-muted));
  margin: 0;
  font-size: var(--font-size-sm);
}

/* Cookie Banner & Modal */
/* ==================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: hsl(var(--text-primary));
  color: hsl(var(--text-light));
  padding: var(--space-lg);
  box-shadow: var(--shadow-xl);
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner:not(.hidden) {
  transform: translateY(0);
}

.cookie-content {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.cookie-text h3 {
  color: hsl(var(--text-light));
  margin-bottom: var(--space-xs);
}

.cookie-text p {
  color: hsl(var(--text-muted));
  margin: 0;
}

.cookie-buttons {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: hsla(0, 0%, 0%, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  padding: var(--space-md);
}

.cookie-modal-content {
  background-color: hsl(var(--background));
  border-radius: var(--border-radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}

.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  border-bottom: 1px solid hsl(var(--border));
}

.cookie-modal-header h2 {
  margin: 0;
  color: hsl(var(--text-primary));
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: hsl(var(--text-secondary));
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.close-btn:hover {
  background-color: hsl(var(--surface));
  color: hsl(var(--text-primary));
}

.cookie-modal-body {
  padding: var(--space-lg);
}

.cookie-category {
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  border: 1px solid hsl(var(--border));
  border-radius: var(--border-radius);
}

.cookie-toggle {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  cursor: pointer;
}

.cookie-toggle input[type="checkbox"] {
  position: relative;
  width: 48px;
  height: 24px;
  appearance: none;
  background-color: hsl(var(--border));
  border-radius: 12px;
  transition: var(--transition);
  flex-shrink: 0;
  margin-top: 2px;
}

.cookie-toggle input[type="checkbox"]:checked {
  background-color: hsl(var(--primary));
}

.cookie-toggle input[type="checkbox"]::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: var(--transition);
}

.cookie-toggle input[type="checkbox"]:checked::before {
  left: 26px;
}

.cookie-toggle input[type="checkbox"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-info strong {
  display: block;
  margin-bottom: var(--space-xs);
  color: hsl(var(--text-primary));
}

.cookie-info p {
  margin: 0;
  color: hsl(var(--text-secondary));
  font-size: var(--font-size-sm);
}

.cookie-modal-footer {
  padding: var(--space-lg);
  border-top: 1px solid hsl(var(--border));
  text-align: right;
}

/* Legal Pages */
/* =========== */

.legal-page {
  padding: var(--space-3xl) 0;
}

.legal-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.legal-header h1 {
  margin-bottom: var(--space-md);
  color: hsl(var(--text-primary));
}

.last-updated {
  color: hsl(var(--text-secondary));
  font-style: italic;
  margin: 0;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-section {
  margin-bottom: var(--space-2xl);
}

.legal-section h2 {
  color: hsl(var(--text-primary));
  border-bottom: 2px solid hsl(var(--primary));
  padding-bottom: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.legal-section h3 {
  color: hsl(var(--text-primary));
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.contact-details {
  background-color: hsl(var(--surface));
  padding: var(--space-lg);
  border-radius: var(--border-radius);
  margin: var(--space-lg) 0;
}

.cookie-table {
  overflow-x: auto;
  margin: var(--space-lg) 0;
}

.cookie-table table {
  width: 100%;
  border-collapse: collapse;
  background-color: hsl(var(--background));
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.cookie-table th,
.cookie-table td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  border-bottom: 1px solid hsl(var(--border));
}

.cookie-table th {
  background-color: hsl(var(--surface));
  font-weight: 600;
  color: hsl(var(--text-primary));
}

.cookie-table td {
  color: hsl(var(--text-secondary));
}

.cookie-preference-center {
  background-color: hsl(var(--surface));
  padding: var(--space-xl);
  border-radius: var(--border-radius-lg);
  text-align: center;
  margin-top: var(--space-2xl);
}

.cookie-preference-center h2 {
  margin-bottom: var(--space-md);
  color: hsl(var(--text-primary));
}

/* Thank You Page */
/* ============== */

.thank-you {
  padding: var(--space-3xl) 0;
  text-align: center;
}

.thank-you-content {
  max-width: 800px;
  margin: 0 auto;
}

.thank-you-icon {
  margin-bottom: var(--space-xl);
  display: flex;
  justify-content: center;
}

.thank-you h1 {
  color: hsl(var(--text-primary));
  margin-bottom: var(--space-lg);
}

.thank-you-message {
  font-size: var(--font-size-lg);
  color: hsl(var(--text-secondary));
  margin-bottom: var(--space-2xl);
}

.what-next {
  margin-bottom: var(--space-2xl);
}

.what-next h2 {
  color: hsl(var(--text-primary));
  margin-bottom: var(--space-xl);
}

.next-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.step {
  background: hsl(var(--background));
  padding: var(--space-lg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid hsl(var(--border));
}

.step-icon {
  width: 48px;
  height: 48px;
  background-color: hsl(var(--primary));
  color: hsl(var(--text-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

.step h3 {
  color: hsl(var(--text-primary));
  margin-bottom: var(--space-sm);
}

.step p {
  color: hsl(var(--text-secondary));
  margin: 0;
}

.cta-section {
  background-color: hsl(var(--surface));
  padding: var(--space-xl);
  border-radius: var(--border-radius-lg);
  margin-bottom: var(--space-2xl);
}

.cta-section h2 {
  color: hsl(var(--text-primary));
  margin-bottom: var(--space-md);
}

.cta-section p {
  color: hsl(var(--text-secondary));
  margin-bottom: var(--space-lg);
}

.cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.social-share h3 {
  color: hsl(var(--text-primary));
  margin-bottom: var(--space-sm);
}

.social-share p {
  color: hsl(var(--text-secondary));
  margin-bottom: var(--space-lg);
}

.share-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background-color: hsl(var(--background));
  color: hsl(var(--text-primary));
  text-decoration: none;
  border-radius: var(--border-radius);
  border: 1px solid hsl(var(--border));
  transition: var(--transition);
}

.share-btn:hover {
  background-color: hsl(var(--surface));
  text-decoration: none;
  transform: translateY(-1px);
}

.share-btn.facebook:hover {
  background-color: hsl(221 44% 41%);
  color: white;
  border-color: hsl(221 44% 41%);
}

.share-btn.twitter:hover {
  background-color: hsl(203 89% 53%);
  color: white;
  border-color: hsl(203 89% 53%);
}

.share-btn.linkedin:hover {
  background-color: hsl(201 100% 35%);
  color: white;
  border-color: hsl(201 100% 35%);
}

/* Blog Pages */
/* ========== */

.blog-header {
  padding: var(--space-3xl) 0;
  background-color: hsl(var(--surface));
  text-align: center;
}

.blog-header-content h1 {
  color: hsl(var(--text-primary));
  margin-bottom: var(--space-md);
}

.blog-header-content p {
  font-size: var(--font-size-lg);
  color: hsl(var(--text-secondary));
  max-width: 600px;
  margin: 0 auto;
}

.blog-articles {
  padding: var(--space-3xl) 0;
}

.articles-grid {
  display: grid;
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.article-card {
  background: hsl(var(--background));
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid hsl(var(--border));
  transition: var(--transition);
}

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

.article-card.featured {
  grid-column: 1 / -1;
}

.article-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.article-image svg {
  width: 100%;
  height: 100%;
}

.article-content {
  padding: var(--space-lg);
}

.article-meta {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  font-size: var(--font-size-sm);
  color: hsl(var(--text-muted));
}

.article-date,
.article-category {
  background-color: hsl(var(--surface));
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius);
}

.article-category {
  background-color: hsl(var(--primary));
  color: hsl(var(--text-light));
}

.article-card h2 {
  margin-bottom: var(--space-md);
}

.article-card h2 a {
  color: hsl(var(--text-primary));
  text-decoration: none;
}

.article-card h2 a:hover {
  color: hsl(var(--primary));
}

.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid hsl(var(--border));
}

.article-author {
  font-size: var(--font-size-sm);
  color: hsl(var(--text-secondary));
}

.article-stats {
  display: flex;
  gap: var(--space-md);
  font-size: var(--font-size-sm);
  color: hsl(var(--text-muted));
}

.article-stats i {
  margin-right: var(--space-xs);
}

/* Blog Newsletter */
.blog-newsletter {
  margin-bottom: var(--space-3xl);
}

.newsletter-card {
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--primary-dark)) 100%);
  color: hsl(var(--text-light));
  padding: var(--space-2xl);
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.newsletter-icon svg {
  opacity: 0.8;
}

.newsletter-content h3 {
  color: hsl(var(--text-light));
  margin-bottom: var(--space-sm);
}

.newsletter-content p {
  color: hsla(var(--text-light), 0.9);
  margin-bottom: var(--space-lg);
}

.newsletter-form-inline {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.newsletter-form-inline input {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  border: none;
  border-radius: var(--border-radius);
  font-size: var(--font-size-base);
}

.newsletter-disclaimer {
  font-size: var(--font-size-sm);
  color: hsla(var(--text-light), 0.8);
  margin: 0;
}

/* Blog Topics */
.blog-topics {
  margin-bottom: var(--space-3xl);
}

.blog-topics h2 {
  text-align: center;
  margin-bottom: var(--space-xl);
  color: hsl(var(--text-primary));
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.topic-card {
  background: hsl(var(--background));
  padding: var(--space-lg);
  border-radius: var(--border-radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid hsl(var(--border));
  transition: var(--transition);
}

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

.topic-icon {
  width: 48px;
  height: 48px;
  background-color: hsl(var(--primary));
  color: hsl(var(--text-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-size: var(--font-size-lg);
}

.topic-card h3 {
  color: hsl(var(--text-primary));
  margin-bottom: var(--space-sm);
}

.topic-card p {
  color: hsl(var(--text-secondary));
  margin-bottom: var(--space-md);
}

.topic-count {
  font-size: var(--font-size-sm);
  color: hsl(var(--text-muted));
  font-weight: 500;
}

/* Article Pages */
/* ============= */

.article-header {
  padding: var(--space-2xl) 0;
  background-color: hsl(var(--surface));
}

.breadcrumb {
  margin-bottom: var(--space-lg);
  font-size: var(--font-size-sm);
  color: hsl(var(--text-muted));
}

.breadcrumb a {
  color: hsl(var(--primary));
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.article-header .article-meta {
  margin-bottom: var(--space-lg);
}

.article-header h1 {
  color: hsl(var(--text-primary));
  margin-bottom: var(--space-md);
}

.article-subtitle {
  font-size: var(--font-size-lg);
  color: hsl(var(--text-secondary));
  margin-bottom: var(--space-xl);
}

.article-author-info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.author-details strong {
  display: block;
  color: hsl(var(--text-primary));
  margin-bottom: var(--space-xs);
}

.author-details span {
  color: hsl(var(--text-secondary));
  font-size: var(--font-size-sm);
}

.read-time {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.article-content {
  padding: var(--space-3xl) 0;
}

.article-content .container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-3xl);
}

.article-body {
  max-width: none;
}

.featured-image {
  width: 100%;
  margin-bottom: var(--space-2xl);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.featured-image svg {
  width: 100%;
  height: auto;
}

.article-body h2 {
  color: hsl(var(--text-primary));
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-lg);
}

.article-body h3 {
  color: hsl(var(--text-primary));
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.article-cta {
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--primary-dark)) 100%);
  color: hsl(var(--text-light));
  padding: var(--space-2xl);
  border-radius: var(--border-radius-lg);
  text-align: center;
  margin-top: var(--space-2xl);
}

.article-cta h3 {
  color: hsl(var(--text-light));
  margin-bottom: var(--space-md);
}

.article-cta p {
  color: hsla(var(--text-light), 0.9);
  margin-bottom: var(--space-lg);
}

/* Article Sidebar */
.article-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-section {
  background: hsl(var(--background));
  padding: var(--space-lg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid hsl(var(--border));
  margin-bottom: var(--space-lg);
}

.sidebar-section h3 {
  color: hsl(var(--text-primary));
  margin-bottom: var(--space-md);
  font-size: var(--font-size-lg);
}

.sidebar-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-section li {
  margin-bottom: var(--space-sm);
  color: hsl(var(--text-secondary));
}

.related-articles {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.related-article {
  padding: var(--space-md);
  background-color: hsl(var(--surface));
  border-radius: var(--border-radius);
  text-decoration: none;
  transition: var(--transition);
}

.related-article:hover {
  background-color: hsl(var(--border));
  text-decoration: none;
}

.related-article h4 {
  color: hsl(var(--text-primary));
  margin-bottom: var(--space-xs);
  font-size: var(--font-size-base);
}

.related-article span {
  color: hsl(var(--text-muted));
  font-size: var(--font-size-sm);
}

.share-buttons {
  display: flex;
  gap: var(--space-sm);
}

.share-buttons .share-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: hsl(var(--surface));
  color: hsl(var(--text-primary));
  border-radius: 50%;
  text-decoration: none;
  transition: var(--transition);
}

.share-buttons .share-btn:hover {
  transform: translateY(-2px);
}

.share-buttons .share-btn.linkedin:hover {
  background-color: hsl(201 100% 35%);
  color: white;
}

.share-buttons .share-btn.twitter:hover {
  background-color: hsl(203 89% 53%);
  color: white;
}

.share-buttons .share-btn.facebook:hover {
  background-color: hsl(221 44% 41%);
  color: white;
}

.share-buttons .share-btn.email:hover {
  background-color: hsl(var(--text-primary));
  color: white;
}

/* Sidebar specific styles */
.savings-stats,
.savings-potential {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.stat,
.savings-item {
  text-align: center;
  padding: var(--space-md);
  background-color: hsl(var(--surface));
  border-radius: var(--border-radius);
}

.stat h4,
.savings-item h4 {
  font-size: var(--font-size-xl);
  color: hsl(var(--primary));
  margin-bottom: var(--space-xs);
}

.stat p,
.savings-item p {
  color: hsl(var(--text-secondary));
  margin: 0;
  font-size: var(--font-size-sm);
}

.criteria-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.criterion {
  padding: var(--space-md);
  background-color: hsl(var(--surface));
  border-radius: var(--border-radius);
}

.criterion h4 {
  color: hsl(var(--text-primary));
  margin-bottom: var(--space-xs);
  font-size: var(--font-size-base);
}

.criterion p {
  color: hsl(var(--text-secondary));
  margin: 0;
  font-size: var(--font-size-sm);
}

.platform-quick-comparison {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.platform-item {
  padding: var(--space-sm);
  background-color: hsl(var(--surface));
  border-radius: var(--border-radius);
  font-size: var(--font-size-sm);
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.checklist label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: hsl(var(--text-secondary));
  cursor: pointer;
}

.checklist input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

/* Responsive Design */
/* ================ */

@media (max-width: 1024px) {
  .article-content .container {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .article-sidebar {
    position: static;
    order: -1;
  }
  
  .sidebar-section {
    margin-bottom: var(--space-md);
  }
}

@media (max-width: 768px) {
  :root {
    --font-size-4xl: 2rem;
    --font-size-3xl: 1.75rem;
    --font-size-2xl: 1.375rem;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: hsl(var(--background));
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: var(--space-2xl);
    transition: left 0.3s ease;
    box-shadow: var(--shadow-lg);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .about-visual {
    order: -1;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-buttons {
    justify-content: center;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .newsletter-card {
    flex-direction: column;
    text-align: center;
  }
  
  .newsletter-form-inline {
    flex-direction: column;
  }
  
  .next-steps {
    grid-template-columns: 1fr;
  }
  
  .share-buttons {
    flex-direction: column;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
  }
  
  .topics-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-sm);
  }
  
  .hero {
    padding: var(--space-2xl) 0;
  }
  
  .services,
  .about,
  .reviews,
  .newsletter,
  .contact {
    padding: var(--space-2xl) 0;
  }
  
  .section-header {
    margin-bottom: var(--space-2xl);
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  
  .newsletter-form .form-group {
    flex-direction: column;
  }
  
  .cookie-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .cookie-modal {
    padding: var(--space-sm);
  }
  
  .cookie-modal-content {
    max-height: 90vh;
  }
}

/* Print Styles */
/* ============ */

@media print {
  .header,
  .cookie-banner,
  .cookie-modal,
  .nav-toggle,
  .social-links,
  .share-buttons,
  .btn,
  .article-cta {
    display: none !important;
  }
  
  main {
    margin-top: 0;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1 {
    font-size: 18pt;
  }
  
  h2 {
    font-size: 16pt;
  }
  
  h3 {
    font-size: 14pt;
  }
  
  .container {
    max-width: none;
    padding: 0;
  }
  
  .article-content .container {
    grid-template-columns: 1fr;
  }
}

/* High Contrast Mode */
/* ================== */

@media (prefers-contrast: high) {
  :root {
    --border: 0 0% 0%;
    --shadow-sm: 0 1px 3px hsla(0, 0%, 0%, 0.5);
    --shadow-md: 0 4px 6px hsla(0, 0%, 0%, 0.5);
    --shadow-lg: 0 10px 25px hsla(0, 0%, 0%, 0.5);
  }
  
  .btn {
    border-width: 2px;
  }
  
  .service-card,
  .review-card,
  .article-card {
    border-width: 2px;
  }
}

/* Reduced Motion */
/* ============== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Focus Styles */
/* ============ */

:focus {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 2px;
}

.btn:focus {
  outline-offset: 4px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: hsl(var(--text-primary));
  color: hsl(var(--text-light));
  padding: 8px;
  text-decoration: none;
  border-radius: var(--border-radius);
  z-index: 10000;
}

.skip-link:focus {
  top: 6px;
}
