/* Base Reset and Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #2d5a3d;
  --color-secondary: #8fbc8f;
  --color-accent: #c9a962;
  --color-dark: #1a3325;
  --color-light: #f5f9f5;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-white: #ffffff;
  --color-border: #e0e8e0;
  --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --shadow-soft: 0 4px 20px rgba(45, 90, 61, 0.1);
  --shadow-medium: 0 8px 30px rgba(45, 90, 61, 0.15);
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

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

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

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

p { margin-bottom: 1rem; }

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

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

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

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

/* Header and Navigation */
.header {
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

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

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

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

.nav-desktop {
  display: none;
}

.nav-desktop ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-desktop a {
  color: var(--color-text);
  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(--color-accent);
  transition: var(--transition);
}

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

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

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

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

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

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

.nav-mobile {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--color-white);
  box-shadow: var(--shadow-medium);
  padding: 1.5rem;
}

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

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

.nav-mobile li {
  border-bottom: 1px solid var(--color-border);
}

.nav-mobile li:last-child {
  border-bottom: none;
}

.nav-mobile a {
  display: block;
  padding: 1rem 0;
  color: var(--color-text);
  font-weight: 500;
}

/* Hero Section */
.hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, var(--color-light) 0%, var(--color-white) 100%);
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 2rem;
  color: var(--color-dark);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

.hero-graphic {
  max-width: 400px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

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

.btn-primary:hover {
  background: var(--color-dark);
  color: var(--color-white);
  transform: translateY(-2px);
}

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

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

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

.btn-accent:hover {
  background: #b8943f;
  transform: translateY(-2px);
}

/* Sections */
.section {
  padding: 4rem 0;
}

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

.section-dark {
  background: var(--color-dark);
  color: var(--color-white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--color-white);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--color-text-light);
  max-width: 700px;
  margin: 0 auto;
}

/* Service Cards */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.service-card {
  flex: 1 1 100%;
  background: var(--color-white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

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

.service-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  margin-bottom: 1rem;
}

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

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

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

.feature-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--color-white);
  border-radius: 12px;
  border-left: 4px solid var(--color-accent);
}

.feature-item h4 {
  color: var(--color-primary);
}

/* Statistics Section */
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.stat-item {
  flex: 1 1 calc(50% - 0.75rem);
  text-align: center;
  padding: 2rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent);
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  opacity: 0.9;
}

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

.testimonial-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  position: relative;
}

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

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: var(--color-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-avatar svg {
  width: 30px;
  height: 30px;
}

.author-info h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

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

/* Process Steps */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.process-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.step-content h4 {
  margin-bottom: 0.5rem;
}

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

/* FAQ Section */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--color-light);
}

.faq-question:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: var(--transition);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  color: var(--color-text-light);
}

.faq-item.active .faq-answer {
  display: block;
}

/* Values Section */
.values-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.value-card {
  flex: 1 1 100%;
  padding: 2rem;
  background: var(--color-white);
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.value-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
}

.value-card h4 {
  margin-bottom: 0.75rem;
}

/* Industries Section */
.industries-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.industry-tag {
  padding: 0.75rem 1.5rem;
  background: var(--color-white);
  border-radius: 30px;
  font-weight: 500;
  color: var(--color-primary);
  box-shadow: var(--shadow-soft);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark) 100%);
  padding: 4rem 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Contact Info */
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-block {
  background: var(--color-white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.contact-info-block h3 {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--color-border);
}

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

.contact-item:last-child {
  margin-bottom: 0;
}

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

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-details h4 {
  font-size: 0.875rem;
  color: var(--color-text-light);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.contact-details p {
  margin: 0;
  font-weight: 500;
}

/* Footer */
.footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .logo {
  color: var(--color-white);
  margin-bottom: 1rem;
}

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

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

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

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

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

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

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

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

.cookie-text h4 {
  margin-bottom: 0.5rem;
}

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

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

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

.cookie-buttons .btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
}

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

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

.cookie-modal {
  background: var(--color-white);
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
}

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

.cookie-modal-header h3 {
  margin: 0;
}

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

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

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

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

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

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

.cookie-toggle {
  position: relative;
  width: 50px;
  height: 26px;
  flex-shrink: 0;
  margin-left: 1rem;
}

.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-color: var(--color-border);
  border-radius: 26px;
  transition: var(--transition);
}

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

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

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

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

.cookie-modal-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Page Headers */
.page-header {
  padding: 8rem 0 3rem;
  background: linear-gradient(135deg, var(--color-light) 0%, var(--color-white) 100%);
  text-align: center;
}

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

.page-header p {
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Legal Pages */
.legal-content {
  padding: 4rem 0;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
}

.legal-content h3 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

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

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

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

/* Thank You Page */
.thank-you-section {
  padding: 8rem 0 4rem;
  text-align: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.thank-you-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 2rem;
}

.thank-you-section h1 {
  margin-bottom: 1rem;
}

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

/* Comparison Section */
.comparison-table {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.comparison-row {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--color-border);
}

.comparison-row:last-child {
  border-bottom: none;
}

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

.comparison-cell {
  padding: 1rem 1.5rem;
  flex: 1;
}

.comparison-header .comparison-cell {
  font-weight: 600;
}

/* Quote Section */
.quote-section {
  background: var(--color-secondary);
  padding: 4rem 2rem;
  text-align: center;
}

.quote-text {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--color-dark);
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

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

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

.milestone-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.milestone-year {
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent);
  min-width: 60px;
}

.milestone-content {
  padding-left: 1rem;
  border-left: 2px solid var(--color-secondary);
}

.milestone-content h4 {
  margin-bottom: 0.25rem;
}

.milestone-content p {
  color: var(--color-text-light);
  margin: 0;
}

/* About Page Specific */
.team-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.team-member {
  flex: 1 1 100%;
  text-align: center;
  padding: 2rem;
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.team-avatar {
  width: 100px;
  height: 100px;
  background: var(--color-secondary);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-member h4 {
  margin-bottom: 0.25rem;
}

.team-member .role {
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 1rem;
}

/* Alternating Content */
.alternate-block {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem 0;
}

.alternate-block:nth-child(even) {
  flex-direction: column-reverse;
}

.alternate-content {
  flex: 1;
}

.alternate-graphic {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Highlighted Panel */
.highlight-panel {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  padding: 3rem 2rem;
  border-radius: 16px;
  color: var(--color-white);
}

.highlight-panel h3 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.highlight-panel p {
  opacity: 0.95;
}

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

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

/* Desktop Styles */
@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }

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

  .nav-desktop {
    display: block;
  }

  .menu-toggle {
    display: none;
  }

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

  .hero-content {
    flex-direction: row;
    text-align: left;
    align-items: center;
  }

  .hero-graphic {
    max-width: 500px;
  }

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

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

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

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

  .testimonial-card {
    flex: 1;
  }

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

  .footer-brand {
    flex: 2;
  }

  .footer-links {
    flex: 1;
  }

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

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

  .cookie-modal-footer {
    flex-direction: row;
  }

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

  .contact-info-block {
    flex: 1;
  }

  .comparison-row {
    flex-direction: row;
  }

  .team-member {
    flex: 1 1 calc(33.333% - 1.333rem);
  }

  .alternate-block {
    flex-direction: row;
    align-items: center;
  }

  .alternate-block:nth-child(even) {
    flex-direction: row-reverse;
  }
}

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

  .value-card {
    flex: 1 1 calc(25% - 1.125rem);
  }

  .section {
    padding: 5rem 0;
  }
}
