:root {
  --primary: #0d47a1;
  --primary-dark: #0a3d8a;
  --primary-light: #1565c0;
  --accent: #00796b;
  --accent-dark: #00695c;
  --accent-light: #26a69a;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #eeeeee;
  --gray-300: #e0e0e0;
  --gray-400: #bdbdbd;
  --gray-500: #9e9e9e;
  --gray-600: #757575;
  --gray-700: #616161;
  --gray-800: #424242;
  --gray-900: #212121;
  --text-primary: #212121;
  --text-secondary: #616161;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --max-width: 1200px;
  --header-height: 70px;
}

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

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

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a:hover, a:focus {
  color: var(--accent);
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
  margin-bottom: 1rem;
}

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

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

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.logo svg {
  width: 40px;
  height: 40px;
}

nav {
  display: none;
}

nav.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
}

nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

nav a {
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-weight: 500;
  border-radius: 4px;
  display: block;
}

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

.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

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

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

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

main {
  flex: 1;
  margin-top: var(--header-height);
}

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

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

.hero h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.125rem;
  opacity: 0.95;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

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

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

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

.btn-secondary:hover {
  background: var(--gray-100);
  color: var(--primary);
}

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

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

.section {
  padding: 3rem 1rem;
}

.section-alt {
  background: var(--gray-50);
}

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

.section-title h2 {
  color: var(--primary);
}

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

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

.card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
}

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

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

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.card-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

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

.form-title {
  text-align: center;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

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

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  transition: var(--transition);
  background: var(--white);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
}

.form-control::placeholder {
  color: var(--gray-500);
}

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

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

.form-checkbox input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
}

.form-checkbox label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.form-checkbox a {
  color: var(--primary);
}

.form-submit {
  width: 100%;
  margin-top: 1rem;
}

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

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header p {
  opacity: 0.9;
}

.content-section {
  padding: 3rem 1rem;
}

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

.content-section h3 {
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

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

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

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

.content-section li {
  margin-bottom: 0.5rem;
}

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

.contact-info {
  padding: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

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

.contact-details h4 {
  color: var(--primary);
  margin-bottom: 0.25rem;
}

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

.map-container {
  height: 300px;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 1.5rem;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

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

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

.service-card {
  display: flex;
  flex-direction: column;
}

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

.feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

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

.feature-content h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.feature-content p {
  color: var(--text-secondary);
  margin: 0;
}

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

.value-card {
  padding: 2rem;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.value-card h4 {
  color: var(--accent);
  margin-bottom: 0.75rem;
}

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

footer {
  background: var(--gray-900);
  color: var(--white);
  padding: 3rem 1rem 1.5rem;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--accent-light);
  margin-bottom: 1rem;
}

.footer-section p, .footer-section li {
  color: var(--gray-400);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--gray-400);
}

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

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

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-bottom: 1rem;
  line-height: 1.5;
}

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

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
  padding: 1.5rem;
  z-index: 9999;
  display: none;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.show {
  display: block;
  transform: translateY(0);
}

.cookie-content {
  max-width: var(--max-width);
  margin: 0 auto;
}

.cookie-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  max-width: 600px;
}

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

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

.cookie-buttons .btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.9rem;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.show {
  display: flex;
}

.modal {
  background: var(--white);
  border-radius: 8px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

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

.modal-header h3 {
  color: var(--primary);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-500);
  padding: 0;
  line-height: 1;
}

.modal-close:hover {
  color: var(--gray-700);
}

.modal-body {
  padding: 1.5rem;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.cookie-option-text h4 {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.cookie-option-text p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0;
}

.cookie-option-toggle {
  position: relative;
  width: 50px;
  height: 26px;
}

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

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--gray-300);
  transition: var(--transition);
  border-radius: 26px;
}

.cookie-toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: var(--white);
  transition: var(--transition);
  border-radius: 50%;
}

.cookie-option-toggle input:checked + .cookie-toggle-slider {
  background-color: var(--accent);
}

.cookie-option-toggle input:checked + .cookie-toggle-slider:before {
  transform: translateX(24px);
}

.cookie-option-toggle input:disabled + .cookie-toggle-slider {
  background-color: var(--gray-400);
  cursor: not-allowed;
}

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

.alert {
  padding: 1rem 1.25rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 10001;
  transition: var(--transition);
}

.skip-link:focus {
  top: 0;
}

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

@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  
  .hero {
    padding: 5rem 2rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-cta {
    flex-direction: row;
    justify-content: center;
  }
  
  .section {
    padding: 4rem 2rem;
  }
  
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .feature-list {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .mobile-menu-toggle {
    display: none;
  }
  
  nav {
    display: block;
  }
  
  nav ul {
    flex-direction: row;
    gap: 0.25rem;
  }
  
  nav a {
    padding: 0.5rem 0.75rem;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 6rem 2rem;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .feature-list {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .value-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  nav a {
    padding: 0.5rem 1rem;
  }
}

@media print {
  header, footer, .cookie-banner, .modal-overlay {
    display: none;
  }
  
  main {
    margin-top: 0;
  }
  
  body {
    font-size: 12pt;
  }
}

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

@media (prefers-color-scheme: dark) {
  :root {
    --white: #121212;
    --gray-50: #1e1e1e;
    --gray-100: #2d2d2d;
    --gray-200: #3d3d3d;
    --gray-300: #4d4d4d;
    --gray-400: #6d6d6d;
    --gray-500: #8d8d8d;
    --gray-600: #adadad;
    --gray-700: #cdcdcd;
    --gray-800: #e0e0e0;
    --gray-900: #f5f5f5;
    --text-primary: #f5f5f5;
    --text-secondary: #adadad;
  }
  
  header {
    background: var(--gray-50);
  }
  
  nav.active {
    background: var(--gray-50);
  }
  
  nav a:hover, nav a.active {
    background: var(--gray-100);
  }
  
  .card {
    background: var(--gray-100);
  }
  
  .lead-form {
    background: var(--gray-100);
  }
  
  .form-control {
    background: var(--gray-50);
    border-color: var(--gray-400);
    color: var(--text-primary);
  }
  
  .cookie-banner {
    background: var(--gray-50);
  }
  
  .modal {
    background: var(--gray-50);
  }
  
  .modal-header {
    border-color: var(--gray-300);
  }
  
  .cookie-option {
    background: var(--gray-100);
    border-color: var(--gray-400);
  }
  
  .modal-footer {
    border-color: var(--gray-300);
  }
}
