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

:root {
  --color-primary: #1a365d;
  --color-secondary: #2c5282;
  --color-accent: #e2b55a;
  --color-text: #2d3748;
  --color-text-light: #718096;
  --color-bg: #ffffff;
  --color-bg-alt: #f7fafc;
  --color-border: #e2e8f0;
  --font-main: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

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

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

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

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

/* Header */
.header {
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
  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.4rem;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 36px;
  height: 36px;
}

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

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

.nav-link {
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}

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

.nav-link:hover::after,
.nav-link:focus::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.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: var(--color-primary);
  border-radius: 2px;
  transition: var(--transition);
}

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

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

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

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

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

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

.mobile-nav-link {
  display: block;
  padding: 12px 15px;
  font-weight: 500;
  border-radius: 6px;
  transition: background var(--transition);
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
  background: var(--color-bg-alt);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 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;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 30px;
}

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

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

.btn-primary:hover,
.btn-primary:focus {
  background: #d4a34a;
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

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

.btn-light:hover,
.btn-light:focus {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}

/* Sections */
.section {
  padding: 60px 20px;
}

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

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

.section-subtitle {
  color: var(--color-text-light);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
}

/* Features/Services Cards */
.cards {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
}

.card {
  background: var(--color-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

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

.card-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
}

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

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

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

/* Testimonials */
.testimonials {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 900px;
  margin: 0 auto;
}

.testimonial {
  background: var(--color-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--color-accent);
  opacity: 0.3;
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
  padding-left: 30px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1.2rem;
}

.testimonial-info strong {
  display: block;
  color: var(--color-primary);
}

.testimonial-info span {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* About Content */
.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content p {
  margin-bottom: 20px;
}

.values-list {
  list-style: none;
  margin-top: 30px;
}

.values-list li {
  padding: 15px 0;
  padding-left: 35px;
  position: relative;
  border-bottom: 1px solid var(--color-border);
}

.values-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: var(--color-accent);
  border-radius: 50%;
}

/* Contact Section */
.contact-info {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--color-bg-alt);
  border-radius: 10px;
}

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

/* Thank You Page */
.thank-you {
  text-align: center;
  padding: 80px 20px;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

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

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

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

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

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

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

.legal-content p {
  margin-bottom: 15px;
}

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

.legal-content li {
  margin-bottom: 8px;
}

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

/* Footer */
.footer {
  background: var(--color-primary);
  color: white;
  padding: 50px 20px 25px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 35px;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: white;
}

.footer-brand p {
  opacity: 0.8;
  font-size: 0.95rem;
}

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

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

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

.footer-links a {
  color: rgba(255,255,255,0.8);
  transition: color var(--transition);
}

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

.footer-bottom {
  padding-top: 25px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

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

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

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

.cookie-banner p {
  font-size: 0.95rem;
  line-height: 1.5;
}

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

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

.cookie-btn {
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-size: 0.9rem;
  transition: all var(--transition);
}

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

.cookie-btn-accept:hover {
  background: #d4a34a;
}

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

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

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

.cookie-btn-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: white;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.cookie-modal-header {
  padding: 25px;
  border-bottom: 1px solid var(--color-border);
}

.cookie-modal-header h3 {
  color: var(--color-primary);
  font-size: 1.3rem;
}

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

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

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

.cookie-option-info {
  flex: 1;
  padding-right: 20px;
}

.cookie-option-info strong {
  display: block;
  margin-bottom: 5px;
  color: var(--color-primary);
}

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

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

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

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

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

.toggle input:checked + .toggle-slider {
  background: var(--color-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(--color-border);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

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

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

/* Focus Styles */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* Media Queries */
@media (min-width: 640px) {
  .hero {
    padding: 80px 20px;
  }

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

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

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

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

  .cookie-banner p {
    flex: 1;
  }

  .footer-content {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .footer-brand {
    flex: 1 1 100%;
  }

  .footer-links {
    flex: 1 1 auto;
  }
}

@media (min-width: 900px) {
  .nav {
    display: block;
  }

  .menu-toggle {
    display: none;
  }

  .hero {
    padding: 100px 20px;
  }

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

  .section {
    padding: 80px 20px;
  }

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

  .cards {
    flex-wrap: nowrap;
  }

  .card {
    flex: 1;
  }

  .testimonials {
    flex-direction: row;
  }

  .testimonial {
    flex: 1;
  }

  .footer-brand {
    flex: 1 1 auto;
  }
}

@media (min-width: 1100px) {
  .hero h1 {
    font-size: 3.2rem;
  }
}
