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

:root {
  --primary: #1a365d;
  --secondary: #e2a52e;
  --text: #2d3748;
  --text-light: #718096;
  --bg: #ffffff;
  --bg-alt: #f7fafc;
  --border: #e2e8f0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a:hover {
  color: var(--secondary);
}

main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
header {
  background: var(--primary);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  color: var(--secondary);
  font-size: 1.25rem;
  font-weight: 700;
}

.logo:hover {
  color: #fff;
}

/* Navigation */
nav {
  display: none;
}

nav.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--primary);
  padding: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

nav a {
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 4px;
}

nav a:hover,
nav a:focus {
  background: rgba(255,255,255,0.1);
  color: var(--secondary);
}

/* Mobile menu button */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #2c5282 100%);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.hero p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background: #d49520;
  color: var(--primary);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

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

/* Sections */
section {
  padding: 3rem 0;
}

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

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

/* Services */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: box-shadow 0.2s ease;
}

.service-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.service-card h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

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

.service-price {
  font-weight: 700;
  color: var(--secondary);
  font-size: 1.25rem;
}

/* Features */
.features {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.feature {
  text-align: center;
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
}

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

.feature p {
  color: var(--text-light);
  font-size: 0.9375rem;
}

/* Testimonials */
.testimonials {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.testimonial {
  background: var(--bg);
  border-radius: 8px;
  padding: 1.5rem;
  border-left: 4px solid var(--secondary);
}

.testimonial p {
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--text);
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary);
}

.testimonial-location {
  color: var(--text-light);
  font-size: 0.875rem;
}

/* About */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-text h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--text);
}

/* Contact */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.contact-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.contact-item h3 {
  color: var(--primary);
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.contact-item p {
  color: var(--text-light);
  font-size: 0.9375rem;
}

/* Legal pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}

.legal-content h2 {
  color: var(--primary);
  margin: 2rem 0 1rem;
  font-size: 1.25rem;
}

.legal-content p {
  margin-bottom: 1rem;
  color: var(--text);
}

.legal-content ul {
  margin: 1rem 0 1rem 1.5rem;
  color: var(--text);
}

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

/* Thank you page */
.thank-you {
  text-align: center;
  padding: 4rem 0;
}

.thank-you h1 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.thank-you p {
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
footer {
  background: var(--primary);
  color: #fff;
  padding: 2rem 0 1rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-section h4 {
  color: var(--secondary);
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.footer-section p {
  font-size: 0.875rem;
  opacity: 0.9;
}

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

.footer-links a {
  color: #fff;
  opacity: 0.9;
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--secondary);
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 1.5rem;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.8125rem;
  opacity: 0.8;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  color: #fff;
  padding: 1rem;
  z-index: 1000;
  display: none;
}

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

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

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

.cookie-btn {
  padding: 0.625rem 1.25rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.cookie-accept {
  background: var(--secondary);
  color: var(--primary);
}

.cookie-accept:hover {
  background: #d49520;
}

.cookie-settings {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}

.cookie-settings:hover {
  background: rgba(255,255,255,0.1);
}

.cookie-decline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
}

.cookie-decline:hover {
  background: rgba(255,255,255,0.1);
}

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

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

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.modal-header h2 {
  color: var(--primary);
  font-size: 1.25rem;
}

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

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

.cookie-option {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.cookie-option:last-of-type {
  border-bottom: none;
}

.cookie-option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.cookie-option h3 {
  font-size: 1rem;
  color: var(--primary);
}

.cookie-option p {
  font-size: 0.875rem;
  color: var(--text-light);
}

.toggle {
  position: relative;
  width: 48px;
  height: 26px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 26px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.2s ease;
}

.toggle input:checked + .toggle-slider {
  background: var(--secondary);
}

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

.toggle input:disabled + .toggle-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.modal-footer {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Utilities */
.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

/* Desktop styles */
@media (min-width: 768px) {
  .hero {
    padding: 5rem 0;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

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

  section {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  nav {
    display: flex;
    position: static;
    flex-direction: row;
    gap: 0.5rem;
  }

  .menu-toggle {
    display: none;
  }

  .services-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .service-card {
    flex: 1 1 calc(50% - 0.75rem);
    min-width: 280px;
  }

  .features {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .feature {
    flex: 1 1 calc(33.333% - 1.5rem);
    min-width: 200px;
  }

  .testimonials {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .testimonial {
    flex: 1 1 calc(50% - 0.75rem);
    min-width: 280px;
  }

  .about-content {
    flex-direction: row;
    align-items: flex-start;
  }

  .about-text {
    flex: 2;
  }

  .contact-info {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .contact-item {
    flex: 1 1 calc(50% - 0.75rem);
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer-section {
    flex: 1;
  }

  .cookie-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .cookie-content p {
    flex: 1;
  }

  .cookie-buttons {
    flex-shrink: 0;
  }

  .legal-content h1 {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .service-card {
    flex: 1 1 calc(33.333% - 1rem);
  }

  .contact-item {
    flex: 1 1 calc(25% - 1.125rem);
  }
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--secondary);
  color: var(--primary);
  padding: 0.5rem 1rem;
  z-index: 200;
}

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