/* Typography and Component Styles */

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 16px;
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.lead-text {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
}

.small-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Header */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 9999;
  transition: all 0.3s ease;
}

.main-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}

.header-content {
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.main-navigation a {
  font-weight: 500;
  color: var(--text-primary);
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
}

.main-navigation a:hover {
  color: var(--primary);
}

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

.main-navigation a:hover::after,
.main-navigation a.active::after {
  width: 100%;
}

.header-contact-info {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  color: var(--primary);
}

.mobile-menu-toggle {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s ease;
}

/* Footer */
.main-footer {
  background: var(--primary);
  color: white;
  padding: 60px 0 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-section h4 {
  color: white;
  margin-bottom: 24px;
  font-size: 1.25rem;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

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

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

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

.footer-links a:hover {
  color: white;
}

.footer-contact-info {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

.footer-contact-info strong {
  color: white;
  display: block;
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 24px;
  text-center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

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

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

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

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

.btn-large {
  padding: 18px 36px;
  font-size: 1.1rem;
}

/* Cards */
.service-card-item,
.content-box {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
}

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

.card-icon {
  width: 64px;
  height: 64px;
  background: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.card-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Forms */
.contact-form-wrapper {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow-md);
}

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

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

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: white;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 71, 0.1);
}

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

/* Cookie Banner */
.gdpr-popup {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: white;
  border-radius: 12px;
  padding: 24px;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  z-index: 9998;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}

.gdpr-popup.show {
  transform: translateY(0);
  opacity: 1;
}

.gdpr-popup p {
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.gdpr-popup .btn {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .main-navigation {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9998;
  }
  
  .main-navigation.active {
    transform: translateY(0);
    opacity: 1;
  }
  
  .main-navigation ul {
    flex-direction: column;
    padding: 24px;
    gap: 16px;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .header-contact-info {
    display: none;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .contact-form-wrapper {
    padding: 24px;
  }
  
  .gdpr-popup {
    left: 16px;
    right: 16px;
    max-width: none;
  }
}