/* ==========================================
   A1 Windows & Doors - Main Stylesheet
   Modern, Responsive, Production-Ready
   ========================================== */

/* CSS Custom Properties (Variables) */
:root {
  /* Colors */
  --primary: #1e4a8d;
  --primary-dark: #153569;
  --primary-light: #3a6db5;
  --secondary: #2d7dd2;
  --accent: #4a90e2;
  --success: #28a745;
  --error: #dc3545;
  --warning: #ffc107;
  
  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Text Colors */
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  
  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-dark: #1f2937;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  
  /* Transitions */
  --transition: 0.2s ease;
  --transition-slow: 0.3s ease;
  
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-heading: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Layout */
  --container-max: 1280px;
  --header-height: 80px;
}

/* ==========================================
   Base Styles & Reset
   ========================================== */

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

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--primary-dark);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

address {
  font-style: normal;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.125rem, 2.5vw, 1.25rem); }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
  margin-bottom: 1rem;
}

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

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

/* ==========================================
   Layout Components
   ========================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 3rem;
  }
}

.section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 6rem 0;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Grid System */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid-2, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
  border: 2px solid transparent;
}

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

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

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

.btn-secondary {
  background-color: var(--secondary);
  color: var(--white);
}

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

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

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
}

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

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

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

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

.btn-block {
  width: 100%;
}

/* ==========================================
   Header & Navigation
   ========================================== */

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

/* Support both class names for backwards compatibility */
.header-inner,
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.logo:hover {
  color: var(--primary);
}

.logo img,
.logo svg {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
}

/* Mobile Menu Toggle - Support both class names */
.nav-toggle,
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span,
.mobile-menu-toggle span,
.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1),
.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2),
.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3),
.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Navigation */
.nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--white);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
}

.nav.active {
  display: block;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-link {
  display: block;
  padding: 0.75rem 1rem;
  font-weight: 500;
  color: var(--text-primary);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
  background-color: var(--gray-100);
  color: var(--primary);
}

@media (min-width: 1024px) {
  .nav-toggle,
  .mobile-menu-toggle {
    display: none;
  }
  
  .nav {
    display: block;
    position: static;
    box-shadow: none;
    padding: 0;
    background: none;
  }
  
  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
  }
  
  .nav-link {
    padding: 0.5rem 1rem;
  }
}

/* Header CTA */
.header-cta {
  display: none;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .header-cta {
    display: flex;
  }
}

.header-phone {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
}

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

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 4rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  overflow: hidden;
}

.hero-container {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.9;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-contact {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 1rem;
}

.hero-contact p {
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.hero-contact a {
  color: var(--white);
  text-decoration: underline;
}

.hero-contact a:hover {
  color: var(--gray-200);
}

.hero-image {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
}

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

.services {
  padding: 5rem 0;
}

.services-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Service Card - Support both class naming conventions */
.service-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all var(--transition-slow);
}

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

.service-card-image,
.service-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.service-card-image img,
.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-card:hover .service-card-image img,
.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-card-content,
.service-content {
  padding: 1.5rem;
}

.service-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-card-text {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--primary);
}

.service-card-link:hover {
  gap: 0.75rem;
}

.service-card-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

/* ==========================================
   Features / Why Choose Us
   ========================================== */

.why-choose-us {
  padding: 5rem 0;
  background-color: var(--bg-secondary);
}

.features-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  text-align: center;
  padding: 2rem;
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature h3 {
  margin-bottom: 1rem;
}

.feature p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================
   Contact Section & Forms
   ========================================== */

.contact-section {
  padding: 5rem 0;
  background-color: var(--bg-secondary);
}

.contact-wrapper {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .contact-wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.contact-info h2 {
  margin-bottom: 1.5rem;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-details .contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-details .contact-item strong {
  color: var(--text-primary);
}

.contact-details .contact-item address,
.contact-details .contact-item a {
  color: var(--text-secondary);
}

/* Form Container */
.contact-form-container {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
  .contact-form-container {
    padding: 2.5rem;
  }
}

.contact-form-container h3 {
  margin-bottom: 1.5rem;
  text-align: center;
}

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

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-label.required::after {
  content: ' *';
  color: var(--error);
}

.required {
  color: var(--error);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: var(--text-primary);
  background-color: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 74, 141, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-400);
}

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

.form-input.input-error,
.form-textarea.input-error,
.form-select.input-error {
  border-color: var(--error);
}

.form-error {
  display: none;
  color: var(--error);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.form-group.has-error .form-error {
  display: block;
}

/* Form Row */
.form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-row-2 { grid-template-columns: repeat(2, 1fr); }
  .form-row-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Checkbox Group */
.form-checkbox,
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.checkbox-input {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.checkbox-input input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 1;
}

.checkbox-input .checkmark {
  position: absolute;
  inset: 0;
  background-color: var(--white);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.checkbox-input input:checked + .checkmark {
  background-color: var(--primary);
  border-color: var(--primary);
}

.checkbox-input .checkmark::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity var(--transition);
}

.checkbox-input input:checked + .checkmark::after {
  opacity: 1;
}

.checkbox-input input:focus + .checkmark {
  box-shadow: 0 0 0 3px rgba(30, 74, 141, 0.2);
}

.checkbox-label {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.checkbox-label a {
  color: var(--primary);
  text-decoration: underline;
}

.has-error .checkbox-input .checkmark {
  border-color: var(--error);
}

/* Form Disclaimer */
.form-disclaimer {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1rem;
}

.form-disclaimer a {
  color: var(--primary);
  text-decoration: underline;
}

/* Submit Button */
.btn-submit {
  margin-top: 1rem;
}

/* Form Success Message */
.form-success {
  background-color: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  text-align: center;
}

/* ==========================================
   Contact Info Grid (used on contact page)
   ========================================== */

.contact-info-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .contact-info-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.contact-info-item:hover {
  background-color: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.contact-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  margin-bottom: 1rem;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

.contact-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ==========================================
   Business Hours Table
   ========================================== */

.hours-section {
  background-color: var(--bg-secondary);
}

.hours-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 768px) {
  .hours-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

.hours-table th,
.hours-table td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.hours-table th {
  background-color: var(--gray-50);
  font-weight: 600;
  color: var(--text-primary);
}

.hours-table tr:last-child td {
  border-bottom: none;
}

.hours-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.hours-status.open {
  background-color: #d4edda;
  color: #155724;
}

.hours-status.closed {
  background-color: #f8d7da;
  color: #721c24;
}

.hours-status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: currentColor;
}

/* ==========================================
   Google Maps
   ========================================== */

.map-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================
   Gallery
   ========================================== */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover::after {
  opacity: 1;
}

/* ==========================================
   CTA Section
   ========================================== */

.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 5rem 0;
}

.cta-title {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-text {
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ==========================================
   Page Header (for legal/internal pages)
   ========================================== */

.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: calc(var(--header-height) + 3rem) 0 3rem;
  margin-top: var(--header-height);
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.page-subtitle {
  opacity: 0.9;
  font-size: 1.125rem;
}

/* ==========================================
   Content Section (for legal pages)
   ========================================== */

.content-section {
  padding: 4rem 0;
}

.content-section:nth-child(even) {
  background-color: var(--bg-secondary);
}

.policy-content {
  max-width: 900px;
  margin: 0 auto;
}

.policy-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.policy-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.policy-content p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.policy-content ul,
.policy-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.policy-content ul {
  list-style: disc;
}

.policy-content ol {
  list-style: decimal;
}

.policy-content li {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.policy-content a {
  color: var(--primary);
  text-decoration: underline;
}

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

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

.footer {
  background-color: var(--bg-dark);
  color: var(--gray-300);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* Support multiple footer class naming conventions */
.footer-brand,
.footer-company,
.footer-section {
  margin-bottom: 1rem;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-desc {
  color: var(--gray-400);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.footer-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-nav,
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  color: var(--gray-400);
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.footer-link:hover {
  color: var(--white);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}

.footer-contact-item svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--primary-light);
  margin-top: 2px;
}

.footer-contact-item a,
.footer-contact-item span {
  color: var(--gray-400);
}

.footer-contact-item a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.disclaimer {
  font-size: 0.8125rem;
  color: var(--gray-500);
  line-height: 1.6;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-legal {
    justify-content: flex-end;
  }
}

.footer-legal-link {
  font-size: 0.875rem;
  color: var(--gray-400);
}

.footer-legal-link:hover {
  color: var(--white);
}

/* ==========================================
   Cookie Banner (fallback - JS injects its own)
   ========================================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: var(--bg-dark);
  color: var(--gray-200);
  padding: 1rem;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform var(--transition-slow);
}

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

.cookie-content {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .cookie-content {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }
}

.cookie-text {
  font-size: 0.875rem;
  line-height: 1.5;
}

.cookie-text a {
  color: var(--primary-light);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* ==========================================
   Responsive Tables
   ========================================== */

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

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

.table th,
.table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.table th {
  background-color: var(--primary);
  color: var(--white);
  font-weight: 600;
}

.table tbody tr:hover {
  background-color: var(--gray-50);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

@media (max-width: 640px) {
  .table th,
  .table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
  }
}

/* ==========================================
   Utility Classes
   ========================================== */

.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;
}

@media (max-width: 767px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .hide-desktop {
    display: none !important;
  }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

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

.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.8);
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================
   Business Model Page Styles
   ========================================== */

.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: calc(var(--header-height) + 3rem) 0 3rem;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.page-hero p {
  opacity: 0.9;
  font-size: 1.125rem;
}

.business-section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.business-section:last-of-type {
  border-bottom: none;
}

.business-section:nth-child(even) {
  background-color: var(--bg-secondary);
}

.business-section h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.business-section h2 svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--primary);
}

/* Service list with icons */
.service-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

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

.service-item-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  flex-shrink: 0;
}

.service-item-icon svg {
  width: 24px;
  height: 24px;
}

.service-item-content h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.service-item-content p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin: 0;
  line-height: 1.6;
}

/* Audience grid */
.audience-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.audience-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}

.audience-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.audience-card p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.7;
}

/* Data section styling */
.data-section {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-top: 1.5rem;
}

.data-category {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.data-category:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.data-category h4 {
  font-size: 1.125rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.data-category ul {
  padding-left: 1.25rem;
}

.data-category li {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  line-height: 1.6;
  list-style: disc;
}

/* Purpose grid */
.purpose-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .purpose-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.purpose-card {
  text-align: center;
  padding: 2rem;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.purpose-card svg {
  width: 48px;
  height: 48px;
  color: var(--primary);
  margin-bottom: 1rem;
}

.purpose-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.purpose-card p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* Revenue table specific */
.revenue-table {
  margin-top: 1.5rem;
}

.revenue-table .table th {
  width: 35%;
}

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

@media print {
  .header,
  .footer,
  .cookie-banner,
  .btn {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }
  
  a {
    text-decoration: underline;
  }
}
