/* ==========================================================================
   Rivera Auto Group - Main Stylesheet
   Modern, Responsive, Production-Ready
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Open+Sans:wght@400;500;600&display=swap');

/* ==========================================================================
   CSS Custom Properties (Variables)
   ========================================================================== */
:root {
  /* Colors */
  --primary-blue: #1a365d;
  --primary-blue-dark: #0f2442;
  --primary-blue-light: #2c5282;
  --silver: #718096;
  --silver-light: #a0aec0;
  --silver-dark: #4a5568;
  --white: #ffffff;
  --off-white: #f7fafc;
  --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;
  --accent-gold: #d97706;
  --accent-gold-light: #fbbf24;
  --success: #059669;
  --success-light: #10b981;
  --error: #dc2626;
  --error-light: #ef4444;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 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;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition: 200ms ease;
  --transition-slow: 300ms ease;

  /* Typography */
  --font-heading: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-body: 'Open Sans', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --header-height: 80px;
  --header-height-mobile: 70px;

  /* Container */
  --container-max: 1200px;
  --container-padding: 1.5rem;
}

/* ==========================================================================
   Base Reset & Global Styles
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary-blue);
  margin-bottom: 0.75em;
}

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

p {
  margin-bottom: 1rem;
  color: var(--gray-600);
}

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

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

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

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

ul, ol {
  list-style: none;
}

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

button:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

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

.container-sm {
  max-width: 800px;
}

.container-lg {
  max-width: 1400px;
}

.section {
  padding: 4rem 0;
}

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

.section-title h2 {
  display: inline-block;
  position: relative;
  padding-bottom: 0.75rem;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent-gold);
  border-radius: var(--radius-full);
}

.section-title p {
  color: var(--gray-500);
  max-width: 600px;
  margin: 1rem auto 0;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.logo h1 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin: 0;
  line-height: 1.2;
}

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

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  display: block;
  padding: 0.625rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--radius);
  transition: all var(--transition);
}

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

.nav-menu a.active {
  font-weight: 600;
}

/* Nav Toggle (Mobile) */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.nav-toggle:hover {
  background: var(--gray-100);
}

.hamburger {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  border-radius: var(--radius-full);
  transition: all var(--transition);
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  border-radius: var(--radius-full);
  transition: all var(--transition);
}

.hamburger::before {
  top: -6px;
}

.hamburger::after {
  bottom: -6px;
}

.nav-toggle.active .hamburger {
  background: transparent;
}

.nav-toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
  bottom: 0;
  transform: rotate(-45deg);
}

/* ==========================================================================
   Hero Sections
   ========================================================================== */
.hero,
.page-hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  margin-top: var(--header-height);
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  overflow: hidden;
}

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

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

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
  width: 100%;
}

.hero-content h2 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.hero-content p,
.hero-content .hero-subtitle {
  color: var(--silver-light);
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 600px;
  margin-bottom: 2rem;
}

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

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

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

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

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

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

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

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

.btn-accept {
  background: var(--success);
  color: var(--white);
  border-color: var(--success);
}

.btn-accept:hover {
  background: var(--success-light);
  border-color: var(--success-light);
}

.btn-decline {
  background: transparent;
  color: var(--gray-600);
  border-color: var(--gray-300);
}

.btn-decline:hover {
  background: var(--gray-100);
  border-color: var(--gray-400);
}

.btn-settings {
  background: transparent;
  color: var(--primary-blue);
  border-color: transparent;
  text-decoration: underline;
}

.btn-settings:hover {
  color: var(--primary-blue-light);
}

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

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

/* ==========================================================================
   Content Sections
   ========================================================================== */
.intro {
  padding: 5rem 0;
  background: var(--gray-50);
}

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

.intro-content h2 {
  margin-bottom: 1.5rem;
}

.intro-content p {
  font-size: 1.0625rem;
  line-height: 1.75;
}

/* Problem-Solution Section */
.problem-solution {
  padding: 4rem 0;
  background: var(--white);
}

.problem-solution .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.problem,
.solution {
  padding: 2rem;
  border-radius: var(--radius-lg);
}

.problem {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-left: 4px solid var(--error);
}

.solution {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-left: 4px solid var(--success);
}

.problem h3,
.solution h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.problem h3::before {
  content: '!';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--error);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
}

.solution h3::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--success);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
}

/* Features Section */
.features {
  padding: 5rem 0;
  background: var(--gray-50);
}

.features h2 {
  text-align: center;
  margin-bottom: 3rem;
}

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

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.feature-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.feature-card h3 {
  padding: 1.25rem 1.25rem 0.5rem;
  font-size: 1.125rem;
}

.feature-card p {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--gray-500);
}

/* CTA Section */
.cta-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cta-section p {
  color: var(--silver-light);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

/* ==========================================================================
   Forms
   ========================================================================== */
.lead-form-section {
  padding: 5rem 0;
  background: var(--gray-50);
}

.form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-wrapper h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.form-intro {
  text-align: center;
  color: var(--gray-500);
  margin-bottom: 2rem;
}

.lead-form,
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
}

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

.form-group label[for="consent"]::after {
  content: '';
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--gray-800);
  background: var(--white);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

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

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}

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

/* Consent Checkbox */
.form-consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
}

.form-consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--primary-blue);
  cursor: pointer;
}

.form-consent label {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--gray-600);
  cursor: pointer;
}

.form-consent label::after {
  content: '';
}

.form-consent a {
  text-decoration: underline;
}

/* Error States */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: var(--error);
}

.error-message {
  font-size: 0.8125rem;
  color: var(--error);
  margin-top: 0.25rem;
}

/* Success/Error Messages */
.form-message {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.form-message.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.form-message.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* ==========================================================================
   About Page
   ========================================================================== */
.about-intro {
  padding: 4rem 0;
  background: var(--white);
}

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

.about-content h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.about-content p {
  font-size: 1.0625rem;
  line-height: 1.8;
  text-align: center;
}

/* Values Section */
.values-section {
  padding: 5rem 0;
  background: var(--gray-50);
}

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

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

.value-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.value-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--gray-100);
}

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

.value-card h3 {
  margin-bottom: 1rem;
}

.value-card p {
  font-size: 0.9375rem;
  color: var(--gray-500);
}

/* What We Do */
.what-we-do {
  padding: 5rem 0;
  background: var(--white);
}

.what-we-do h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.do-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.do-content ul {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.do-content li {
  position: relative;
  margin-bottom: 0.75rem;
  color: var(--gray-600);
}

.do-content li::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background: var(--accent-gold);
  border-radius: var(--radius-full);
}

.do-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Community Section */
.community {
  padding: 4rem 0;
  background: var(--gray-50);
  text-align: center;
}

.community h2 {
  margin-bottom: 1.5rem;
}

.community p {
  max-width: 700px;
  margin: 0 auto 1rem;
}

/* ==========================================================================
   Services Page
   ========================================================================== */
.services-intro {
  padding: 4rem 0;
  background: var(--white);
  text-align: center;
}

.services-intro h2 {
  margin-bottom: 1rem;
}

.services-intro p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.0625rem;
}

/* Services Grid */
.services-grid {
  padding: 4rem 0;
  background: var(--gray-50);
}

.service-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.service-card:last-child {
  margin-bottom: 0;
}

.service-image {
  height: 100%;
  min-height: 250px;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-content {
  padding: 2rem 2rem 2rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-content h3 {
  margin-bottom: 1rem;
}

.service-content p {
  margin-bottom: 1rem;
}

.service-content ul {
  margin-top: 0.5rem;
}

.service-content li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--gray-600);
  font-size: 0.9375rem;
}

.service-content li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 600;
}

/* Examples Section */
.examples-section {
  padding: 5rem 0;
  background: var(--white);
}

.examples-section h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.examples-intro {
  text-align: center;
  color: var(--gray-500);
  margin-bottom: 3rem;
}

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

.example-card {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.example-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.example-content {
  padding: 1.5rem;
}

.example-content h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.example-content p {
  font-size: 0.9375rem;
  color: var(--gray-500);
}

/* Process Section */
.process-section {
  padding: 5rem 0;
  background: var(--gray-50);
}

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

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.process-step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.step-number {
  width: 50px;
  height: 50px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-blue);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: var(--radius-full);
}

.process-step h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.process-step p {
  font-size: 0.9375rem;
  color: var(--gray-500);
}

/* ==========================================================================
   Contact Page
   ========================================================================== */
.contact-info {
  padding: 5rem 0 3rem;
  background: var(--white);
  text-align: center;
}

.contact-info h1 {
  margin-bottom: 2rem;
}

.contact-info address {
  font-style: normal;
  line-height: 2;
}

.contact-info address p {
  font-size: 1.0625rem;
}

.contact-info a {
  color: var(--primary-blue);
  font-weight: 500;
}

/* Business Hours */
.business-hours {
  padding: 3rem 0;
  background: var(--gray-50);
  text-align: center;
}

.business-hours h2 {
  margin-bottom: 1.5rem;
}

.business-hours table {
  margin: 0 auto;
  border-collapse: collapse;
}

.business-hours td {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.business-hours td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--gray-700);
}

.business-hours td:last-child {
  text-align: right;
  color: var(--gray-600);
}

/* Map */
.map {
  padding: 3rem 0;
  background: var(--white);
}

.map h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.map iframe {
  width: 100%;
  max-width: 100%;
  height: 400px;
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* Contact Form */
.contact-form {
  padding: 4rem 0;
  background: var(--gray-50);
}

.contact-form h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-form form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-form .consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-form .consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--primary-blue);
}

.contact-form .consent label {
  font-size: 0.875rem;
  color: var(--gray-600);
  cursor: pointer;
}

.contact-form button[type="submit"] {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--primary-blue-dark);
  color: var(--white);
  padding: 3rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  padding-bottom: 2rem;
}

.footer-section h3 {
  color: var(--white);
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.footer-section p {
  color: var(--silver-light);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.footer-section address {
  font-style: normal;
  line-height: 2;
}

.footer-section address a {
  color: var(--silver-light);
}

.footer-section address a:hover {
  color: var(--white);
}

.footer-section ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-section ul a {
  display: block;
  padding: 0.375rem 0;
  color: var(--silver-light);
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.footer-section ul a:hover {
  color: var(--white);
}

/* Footer Disclaimer */
.footer-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  margin-top: 1rem;
}

.footer-disclaimer p {
  font-size: 0.8125rem;
  color: var(--silver);
  line-height: 1.7;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--silver-light);
  margin: 0;
}

/* ==========================================================================
   Cookie Consent Banner
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--white);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  padding: 1.25rem;
  display: none;
}

.cookie-banner.active {
  display: block;
}

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

.cookie-content p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--gray-600);
}

.cookie-content a {
  text-decoration: underline;
}

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

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookie-modal.active {
  display: flex;
}

.cookie-modal-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 550px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}

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

.cookie-modal-header h2 {
  font-size: 1.25rem;
  margin: 0;
}

.cookie-modal-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border-radius: var(--radius);
  font-size: 1.5rem;
  color: var(--gray-600);
  cursor: pointer;
  transition: background var(--transition);
}

.cookie-modal-close:hover {
  background: var(--gray-200);
}

.cookie-modal-body {
  padding: 1.5rem;
}

.cookie-category {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
}

.cookie-category-header {
  padding: 1rem 1.25rem;
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-category-header h3 {
  font-size: 1rem;
  margin: 0;
}

.cookie-category-header span {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 500;
}

.cookie-always-on {
  background: var(--gray-200);
  color: var(--gray-600);
}

.cookie-optional {
  background: var(--primary-blue);
  color: var(--white);
}

/* Toggle Switch */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--gray-300);
  border-radius: var(--radius-full);
  transition: background var(--transition);
}

.cookie-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: var(--white);
  border-radius: var(--radius-full);
  transition: transform var(--transition);
}

.cookie-switch input:checked + .cookie-slider {
  background: var(--success);
}

.cookie-switch input:checked + .cookie-slider::before {
  transform: translateX(22px);
}

.cookie-category p {
  padding: 1rem 1.25rem;
  margin: 0;
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.6;
}

.cookie-modal-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Cookie Buttons */
.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.cookie-btn-accept {
  background: var(--success);
  color: var(--white);
  border-color: var(--success);
}

.cookie-btn-accept:hover {
  background: var(--success-light);
  border-color: var(--success-light);
}

.cookie-btn-reject {
  background: transparent;
  color: var(--gray-600);
  border-color: var(--gray-300);
}

.cookie-btn-reject:hover {
  background: var(--gray-100);
}

.cookie-btn-save {
  background: var(--primary-blue);
  color: var(--white);
  border-color: var(--primary-blue);
}

.cookie-btn-save:hover {
  background: var(--primary-blue-dark);
}

.cookie-btn-customize {
  background: transparent;
  color: var(--primary-blue);
  text-decoration: underline;
  padding: 0.625rem 0.75rem;
}

.cookie-btn-customize:hover {
  color: var(--primary-blue-light);
}

/* ==========================================================================
   Legal Pages
   ========================================================================== */
.legal-page {
  padding-top: var(--header-height);
}

.page-header {
  padding: 3rem 0;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  text-align: center;
}

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

.page-header .last-updated {
  color: var(--silver-light);
  font-size: 0.9375rem;
}

.page-content {
  padding: 3rem 0 5rem;
  background: var(--white);
}

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

.legal-content h2 {
  font-size: 1.375rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gray-200);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.125rem;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.legal-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.legal-content ul {
  margin: 1rem 0 1.5rem 1.5rem;
}

.legal-content li {
  position: relative;
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  color: var(--gray-600);
}

.legal-content li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-blue);
}

.legal-content .contact-info,
.legal-content .contact-block {
  background: var(--gray-50);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-top: 1rem;
}

.legal-content .contact-info p,
.legal-content .contact-block p {
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Business Model Page
   ========================================================================== */
.business-model {
  padding: calc(var(--header-height) + 3rem) 0 5rem;
  background: var(--white);
}

.business-model h1 {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--gray-200);
}

.business-model article {
  max-width: 800px;
  margin: 0 auto 3rem;
  padding: 2rem;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
}

.business-model article h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.business-model article p {
  line-height: 1.8;
}

.business-model article ul {
  margin: 1rem 0 0 1.5rem;
}

.business-model article li {
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
  color: var(--gray-600);
}

.business-model article h3 {
  font-size: 1.125rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

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

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

/* Large Screens */
@media (max-width: 1200px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --header-height: var(--header-height-mobile);
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    padding: 1.5rem;
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    overflow-y: auto;
    z-index: 999;
  }

  .main-nav.active {
    transform: translateX(0);
  }

  .nav-menu {
    flex-direction: column;
    gap: 0;
  }

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid var(--gray-200);
  }

  .nav-menu a {
    padding: 1rem 0;
    width: 100%;
    border-radius: 0;
  }

  .nav-menu a:hover,
  .nav-menu a.active {
    background: transparent;
  }

  .service-card {
    grid-template-columns: 1fr;
  }

  .service-image {
    height: 220px;
  }

  .service-content {
    padding: 0 1.5rem 1.5rem;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .examples-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .do-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .do-image {
    order: -1;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .section {
    padding: 3rem 0;
  }

  .hero,
  .page-hero {
    min-height: auto;
  }

  .hero-content {
    padding: 3rem 0;
  }

  .problem-solution .container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature-card {
    display: grid;
    grid-template-columns: 120px 1fr;
  }

  .feature-card img {
    height: 100%;
    min-height: 150px;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .examples-grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-wrapper {
    padding: 1.5rem;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .cookie-buttons {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .cookie-buttons .btn {
    flex: 1 1 auto;
    min-width: 100px;
  }
}

/* Mobile Small */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .logo h1 {
    font-size: 1.125rem;
  }

  .feature-card {
    grid-template-columns: 1fr;
  }

  .feature-card img {
    height: 160px;
  }

  .service-image {
    height: 180px;
  }

  .business-hours td {
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
  }

  .cookie-modal-footer {
    flex-direction: column;
  }

  .cookie-modal-footer .cookie-btn {
    width: 100%;
  }
}

/* Print Styles */
@media print {
  .site-header,
  .site-footer,
  .cookie-banner,
  .cookie-modal,
  .nav-toggle,
  .btn {
    display: none !important;
  }

  .hero,
  .page-hero,
  .legal-page,
  .business-model {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  a {
    text-decoration: underline;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }
}
