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

:root {
  --primary: #2C5F7C;
  --primary-dark: #1A3D4D;
  --primary-light: #4A90A4;
  --accent: #E8F4F8;
  --text: #333333;
  --text-light: #666666;
  --white: #FFFFFF;
  --gray-light: #F5F7F9;
  --gray: #E0E5E9;
  --shadow: 0 2px 8px rgba(44, 95, 124, 0.12);
  --shadow-lg: 0 4px 20px rgba(44, 95, 124, 0.15);
  --transition: 0.3s ease;
}

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

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

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

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

a:focus {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  color: var(--primary-dark);
  font-weight: 600;
}

h1 {
  font-size: 1.875rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 0.875rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
}

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

li {
  margin-bottom: 0.5rem;
}

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

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

/* Header */
header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

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

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

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

/* Navigation */
.nav-desktop {
  display: none;
}

.nav-desktop ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-desktop a {
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

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

/* Mobile Menu Button */
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 110;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: all var(--transition);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

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

/* Mobile Navigation */
.nav-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  padding: 5rem 1.5rem 2rem;
  transition: right var(--transition);
  z-index: 105;
  overflow-y: auto;
}

.nav-mobile.active {
  right: 0;
}

.nav-mobile ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-mobile li {
  margin-bottom: 0;
}

.nav-mobile a {
  display: block;
  padding: 1rem 0;
  font-size: 1.125rem;
  font-weight: 500;
  border-bottom: 1px solid var(--gray);
}

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

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 61, 77, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 100;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Main Content */
main {
  flex: 1;
}

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

.hero h1 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.125rem;
  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;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

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

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

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

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

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

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

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

/* Sections */
.section {
  padding: 3rem 1rem;
}

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

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

.section-title h2 {
  font-size: 1.75rem;
}

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

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

.feature-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

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

.feature-card h3 {
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-light);
  margin-bottom: 0;
}

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

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

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

.service-content {
  padding: 1.5rem;
}

.service-card h3 {
  margin-bottom: 0.75rem;
  color: var(--primary);
}

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

.service-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.service-price span {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-light);
}

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

.testimonial-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-size: 4rem;
  color: var(--accent);
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 1rem;
  padding-top: 1.5rem;
}

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

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

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

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

.about-values {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.value-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

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

.contact-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.contact-details h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

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

.contact-details a {
  color: var(--primary);
}

/* Thank You Page */
.thank-you {
  text-align: center;
  padding: 4rem 1rem;
}

.thank-you-icon {
  width: 80px;
  height: 80px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.thank-you-icon svg {
  width: 40px;
  height: 40px;
  color: var(--primary);
}

.thank-you h1 {
  color: var(--primary);
}

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

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

.legal-content h1 {
  text-align: center;
  margin-bottom: 2rem;
}

.legal-content h2 {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray);
}

.legal-content h2:first-of-type {
  border-top: none;
  margin-top: 0;
}

.legal-content ul {
  list-style-type: disc;
}

.legal-content li {
  color: var(--text-light);
}

.legal-date {
  text-align: center;
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

/* Footer */
footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 2rem 1rem;
}

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

.footer-brand {
  text-align: center;
}

.footer-brand .logo {
  color: var(--white);
  justify-content: center;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin-bottom: 0;
}

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

.footer-links-col h4 {
  color: var(--white);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.footer-links-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-col li {
  margin-bottom: 0.5rem;
}

.footer-links-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

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

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

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  margin-bottom: 0;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform var(--transition);
}

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

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

.cookie-banner p {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 0;
}

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

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

.cookie-buttons .btn {
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 61, 77, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.cookie-modal.active {
  opacity: 1;
  visibility: visible;
}

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

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

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

.cookie-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-light);
  transition: color var(--transition);
}

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

.cookie-modal-close:focus {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

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

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray);
}

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

.cookie-option-info h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

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

.cookie-toggle {
  position: relative;
  width: 48px;
  height: 24px;
  min-width: 48px;
}

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

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

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

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

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

.cookie-toggle input:focus + .cookie-toggle-slider {
  box-shadow: 0 0 0 2px var(--primary-light);
}

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

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

.cookie-modal-footer .btn {
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 200;
  transition: top var(--transition);
}

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

/* Screen reader only */
.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 Queries */
@media (min-width: 640px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero {
    padding: 4rem 1rem;
  }

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

  .section {
    padding: 4rem 1rem;
  }

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

  .feature-card {
    flex: 1 1 calc(50% - 0.75rem);
  }

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

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

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

  .testimonial-card {
    flex: 1 1 calc(50% - 0.75rem);
  }

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

  .cookie-buttons {
    flex-wrap: nowrap;
  }

  .footer-links {
    flex-direction: row;
    justify-content: center;
    gap: 3rem;
  }
}

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

  .header-inner {
    padding: 1rem 2rem;
  }

  .menu-toggle {
    display: none;
  }

  .nav-desktop {
    display: block;
  }

  .hero {
    padding: 5rem 2rem;
  }

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

  .section {
    padding: 5rem 2rem;
  }

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

  .feature-card {
    flex: 1 1 calc(33.333% - 1rem);
  }

  .service-card {
    flex: 1 1 calc(33.333% - 1rem);
  }

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

  .about-text {
    flex: 1;
  }

  .about-values {
    flex: 1;
  }

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

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

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer-brand {
    text-align: left;
  }

  .footer-brand .logo {
    justify-content: flex-start;
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 2.5rem;
  }

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

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

  .testimonial-card {
    flex: 1 1 calc(33.333% - 1rem);
  }
}
