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

:root {
  --primary: #1a5f7a;
  --primary-dark: #134a5f;
  --accent: #f5a623;
  --accent-hover: #e09000;
  --text: #333333;
  --text-light: #666666;
  --bg: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #1a1a1a;
  --border: #e0e0e0;
  --shadow: rgba(0, 0, 0, 0.1);
}

html {
  scroll-behavior: smooth;
}

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

main {
  flex: 1;
}

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

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

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

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

/* Header */
header {
  background: var(--bg);
  box-shadow: 0 2px 10px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.logo span {
  color: var(--accent);
}

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

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  color: var(--text);
  font-weight: 500;
  padding: 5px 0;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

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

/* Mobile Menu Button */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

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

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

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  box-shadow: 0 5px 20px var(--shadow);
  padding: 20px;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mobile-nav a {
  display: block;
  padding: 10px 15px;
  color: var(--text);
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  background: var(--bg-light);
  color: var(--primary);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  line-height: 1.3;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(245, 166, 35, 0.4);
}

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

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

/* Sections */
section {
  padding: 50px 20px;
}

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

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Services */
.services-grid {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px;
  transition: all 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 10px 30px var(--shadow);
  transform: translateY(-5px);
}

.service-card h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.25rem;
}

.service-card p {
  color: var(--text-light);
  margin-bottom: 15px;
}

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

/* Features */
.features {
  background: var(--bg-light);
}

.features-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.feature-item {
  text-align: center;
  padding: 20px;
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-item h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.feature-item p {
  color: var(--text-light);
}

/* Testimonials */
.testimonials {
  background: var(--primary);
  color: white;
}

.testimonials .section-title {
  color: white;
}

.testimonials-grid {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.7;
}

.testimonial-author {
  font-weight: 600;
}

.testimonial-location {
  opacity: 0.8;
  font-size: 0.9rem;
}

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

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

.about-text p {
  margin-bottom: 15px;
  color: var(--text-light);
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 25px;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.value-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--accent);
}

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

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

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

.contact-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.contact-details h3 {
  color: var(--primary);
  margin-bottom: 5px;
}

.contact-details p {
  color: var(--text-light);
}

/* Thank You Page */
.thank-you {
  text-align: center;
  padding: 80px 20px;
}

.thank-you-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 30px;
  color: var(--accent);
}

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

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

/* Legal Pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.legal-content h1 {
  color: var(--primary);
  margin-bottom: 30px;
  font-size: 2rem;
}

.legal-content h2 {
  color: var(--primary);
  margin-top: 35px;
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.legal-content h3 {
  color: var(--primary-dark);
  margin-top: 25px;
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.legal-content p {
  margin-bottom: 15px;
  color: var(--text-light);
}

.legal-content ul {
  margin-bottom: 20px;
  padding-left: 25px;
}

.legal-content li {
  margin-bottom: 8px;
  color: var(--text-light);
}

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

.legal-content a:hover {
  color: var(--accent);
}

.last-updated {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 30px;
}

/* Footer */
footer {
  background: var(--bg-dark);
  color: white;
  padding: 50px 20px 30px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section h4 {
  color: var(--accent);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
}

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

.footer-section li {
  margin-bottom: 10px;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

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

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-dark);
  color: white;
  padding: 20px;
  z-index: 9999;
  box-shadow: 0 -5px 20px var(--shadow);
  display: none;
}

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

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

.cookie-text {
  flex: 1;
}

.cookie-text h3 {
  margin-bottom: 10px;
  color: var(--accent);
}

.cookie-text p {
  font-size: 0.95rem;
  opacity: 0.9;
}

.cookie-text a {
  color: var(--accent);
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-buttons .btn {
  padding: 10px 20px;
  font-size: 0.9rem;
}

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

.btn-cookie-accept:hover {
  background: var(--accent-hover);
  color: white;
}

.btn-cookie-settings {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-cookie-settings:hover {
  border-color: white;
  color: white;
}

.btn-cookie-decline {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: none;
}

.btn-cookie-decline:hover {
  color: white;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.cookie-modal-content {
  background: var(--bg);
  border-radius: 12px;
  max-width: 550px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

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

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

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

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

.cookie-modal-body {
  padding: 25px;
}

.cookie-category {
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--border);
}

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

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cookie-category-header h4 {
  color: var(--primary);
}

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

/* Toggle Switch */
.toggle {
  position: relative;
  width: 50px;
  height: 26px;
}

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

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

.toggle-slider::before {
  position: absolute;
  content: '';
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

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

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

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

.cookie-modal-footer {
  padding: 20px 25px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.cookie-modal-footer .btn {
  padding: 10px 20px;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: white;
  text-align: center;
  padding: 60px 20px;
}

.cta-section h2 {
  margin-bottom: 15px;
}

.cta-section p {
  margin-bottom: 25px;
  opacity: 0.95;
}

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

.cta-section .btn:hover {
  background: var(--bg-light);
  color: var(--accent-hover);
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 10px 20px;
  border-radius: 0 0 8px 8px;
  z-index: 10001;
  transition: top 0.3s ease;
}

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

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

/* Desktop styles */
@media (min-width: 768px) {
  nav {
    display: block;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }

  .hero {
    padding: 100px 20px;
  }

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

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

  section {
    padding: 80px 20px;
  }

  .section-title {
    font-size: 2.25rem;
  }

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

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

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

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

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

  .testimonial-card {
    flex: 1;
  }

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

  .about-text {
    flex: 1;
  }

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

  .contact-item {
    flex: 1 1 calc(50% - 15px);
  }

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

  .footer-section {
    flex: 1;
  }

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

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

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

  .contact-item {
    flex: 1 1 calc(33.333% - 20px);
  }
}
