/* ===================================
   CSS Custom Properties (Variables)
   =================================== */
:root {
  /* Colors */
  --color-primary: #1a4d2e;
  --color-primary-dark: #15401f;
  --color-bg-white: #ffffff;
  --color-bg-gray: #f8f9fa;
  --color-text-primary: #1a1a1a;
  --color-text-secondary: #5a5a5a;
  --color-border: #e0e0e0;
  --color-error: #d32f2f;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  /* Spacing */
  --section-padding: 80px;
  --section-padding-mobile: 60px;
  --container-max-width: 1200px;

  /* Transitions */
  --transition-standard: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Typography base */
h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  font-size: 32px;
  font-weight: 700;
}

h2 {
  font-size: 28px;
  font-weight: 700;
}

h3 {
  font-size: 24px;
  font-weight: 600;
}

a {
  text-decoration: none;
  color: inherit;
}

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

ul {
  list-style: none;
}

/* ===================================
   Utility Classes
   =================================== */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: var(--section-padding-mobile) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--color-text-secondary);
  margin-top: 15px;
}

/* Buttons */
.btn {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 40px;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-standard);
  text-align: center;
}

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

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

.btn-full {
  width: 100%;
}

/* ===================================
   Navigation
   =================================== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--color-bg-white);
  z-index: 1000;
  transition: box-shadow var(--transition-standard);
}

#header.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav {
  height: 70px;
}

.nav-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  font-size: 15px;
  color: var(--color-text-primary);
  transition: text-decoration var(--transition-standard);
}

.nav-links a:hover {
  text-decoration: underline;
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--color-text-primary);
  margin: 3px 0;
  transition: all var(--transition-standard);
}

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

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

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

/* ===================================
   Hero Section
   =================================== */
.hero-section {
  padding-top: 120px;
  padding-bottom: 80px;
  background: var(--color-bg-white);
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.hero-text {
  max-width: 600px;
}

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

.hero-subheadline {
  font-size: 20px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 30px;
}

.hero-visual {
  width: 100%;
  max-width: 400px;
}

.visual-placeholder {
  width: 100%;
  height: 300px;
  background: var(--color-bg-gray);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===================================
   Services Section
   =================================== */
.services-section {
  background: var(--color-bg-gray);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.service-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  padding: 40px;
  transition: border-color var(--transition-standard);
}

.service-card:hover {
  border-color: var(--color-primary);
}

.service-icon {
  width: 50px;
  height: 50px;
  background: var(--color-bg-gray);
  border: 1px solid var(--color-border);
  margin-bottom: 20px;
}

.service-card h3 {
  margin-bottom: 12px;
  color: var(--color-text-primary);
}

.service-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: 15px;
}

.service-features {
  list-style: none;
  padding-left: 0;
}

.service-features li {
  font-size: 15px;
  color: var(--color-text-secondary);
  padding-left: 20px;
  margin-bottom: 8px;
  position: relative;
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* ===================================
   Why Us Section
   =================================== */
.why-us-section {
  background: var(--color-bg-white);
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.benefit-block {
  background: var(--color-bg-gray);
  border: 1px solid var(--color-border);
  padding: 40px;
  display: flex;
  gap: 25px;
  flex-direction: column;
}

.benefit-icon {
  width: 60px;
  height: 60px;
  background: var(--color-primary);
  flex-shrink: 0;
}

.benefit-content h3 {
  margin-bottom: 12px;
  color: var(--color-text-primary);
}

.benefit-content p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* ===================================
   Process Section (How It Works)
   =================================== */
.process-section {
  background: var(--color-bg-gray);
}

.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.process-step {
  text-align: center;
  padding: 20px;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--color-primary);
  color: var(--color-bg-white);
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 20px auto;
}

.process-step h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 12px;
}

.process-step p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* ===================================
   Target Groups Section
   =================================== */
.target-groups-section {
  background: var(--color-bg-white);
}

.target-group-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.target-group-item {
  background: var(--color-bg-gray);
  border: 1px solid var(--color-border);
  padding: 30px;
  text-align: center;
}

.target-group-icon {
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  margin: 0 auto 15px auto;
}

.target-group-item h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
}

/* ===================================
   Trust Section
   =================================== */
.trust-section {
  background: var(--color-primary);
  color: var(--color-bg-white);
}

.trust-section .section-header h2 {
  color: var(--color-bg-white);
  margin-bottom: 40px;
}

.trust-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.trust-stat {
  text-align: center;
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-bg-white);
  margin-bottom: 10px;
}

.stat-description {
  font-size: 18px;
  color: var(--color-bg-white);
  opacity: 0.9;
}

/* ===================================
   Contact Section
   =================================== */
.contact-section {
  background: var(--color-bg-white);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-form-wrapper {
  background: var(--color-bg-gray);
  border: 1px solid var(--color-border);
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-white);
  font-size: 16px;
  font-family: var(--font-family);
  color: var(--color-text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-info {
  padding: 20px 0;
}

.contact-info-item {
  margin-bottom: 30px;
}

.contact-label {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 5px;
}

.contact-value {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.contact-link:hover {
  text-decoration: underline;
}

.contact-info-text {
  margin-top: 20px;
}

.contact-info-text p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* ===================================
   Footer
   =================================== */
.footer {
  background: var(--color-text-primary);
  color: #999999;
  padding: 40px 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}

.footer-logo {
  font-size: 16px;
  color: var(--color-bg-white);
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 14px;
  color: #999999;
  transition: color var(--transition-standard);
}

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

.footer-copyright {
  font-size: 14px;
  color: #666666;
}

/* ===================================
   Media Queries - Tablet
   =================================== */
@media (min-width: 768px) {
  body {
    font-size: 17px;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 36px;
  }

  .section {
    padding: var(--section-padding) 0;
  }

  /* Services Grid */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Benefits Grid */
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefit-block {
    flex-direction: row;
  }

  /* Process Steps */
  .process-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Target Groups */
  .target-group-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Trust Stats */
  .trust-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Contact Layout */
  .contact-layout {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===================================
   Media Queries - Desktop
   =================================== */
@media (min-width: 1024px) {
  /* Hero Section */
  .hero-content {
    flex-direction: row;
    gap: 60px;
    align-items: center;
  }

  .hero-text {
    flex: 0 0 60%;
  }

  .hero-visual {
    flex: 0 0 40%;
    max-width: none;
  }

  /* Target Groups */
  .target-group-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Footer */
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  .footer-right {
    display: flex;
    align-items: center;
    gap: 30px;
  }
}

/* ===================================
   Media Queries - Mobile Menu
   =================================== */
@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: 0;
    background: var(--color-bg-white);
    flex-direction: column;
    width: 250px;
    height: calc(100vh - 70px);
    padding: 30px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform var(--transition-standard);
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid var(--color-border);
  }
}
