/* ==========================================================================
   COMPONENTS - COMPLETE WITH ALL FIXES
   Diabetes Reversal Clinic
   ========================================================================== */

/* ==========================================================================
   Skip to Main Content - PROPERLY FIXED
   ========================================================================== */

.skip-to-content {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 12px 24px;
  background: #2C2C2C;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
}

.skip-to-content:focus,
.skip-to-content:active {
  left: 20px;
  top: 20px;
  outline: 3px solid #4A5F7A;
  outline-offset: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Site Header with Logo
   ========================================================================== */

.site-header {
  background: #FFFFFF;
  border-bottom: 1px solid #E8E6E1;
  padding: 20px 40px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-logo img,
.site-logo svg {
  height: 50px;
  width: auto;
}

/* Text logo fallback */
.site-logo-text {
  font-size: 22px;
  font-weight: 700;
  color: #2C2C2C;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.5px;
}

.site-logo-text:hover {
  color: #4A5F7A;
}

/* ==========================================================================
   Navigation - IMPROVED
   ========================================================================== */

.site-nav {
  display: flex;
  gap: 40px;
  align-items: center;
}

.site-nav a {
  color: #2C2C2C;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: all 0.2s ease;
  position: relative;
  padding: 8px 0;
}

.site-nav a:hover {
  color: #4A5F7A;
}

.site-nav a:focus {
  outline: 2px solid #4A5F7A;
  outline-offset: 6px;
  border-radius: 2px;
}

.site-nav a.active {
  color: #4A5F7A;
  font-weight: 700;
}

.site-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #4A5F7A;
  border-radius: 2px 2px 0 0;
}

.site-nav a:not(.active)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #4A5F7A;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.site-nav a:not(.active):hover::after {
  transform: scaleX(1);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: #4A5F7A;
  color: #FFFFFF;
}

.btn-primary:hover {
  background: #3A4F6A;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background: transparent;
  color: #4A5F7A;
  border: 2px solid #4A5F7A;
}

.btn-secondary:hover {
  background: #4A5F7A;
  color: #FFFFFF;
}

/* WhatsApp Button */
.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
}

.btn-whatsapp:hover {
  background: #20BA5A;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   Contact Section & Form
   ========================================================================== */

.contact-section {
  background: #F5F3EF;
  padding: 120px 40px;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  max-width: 1200px;
  margin: 48px auto 0;
}

.contact-methods {
  background: #FFFFFF;
  padding: 40px;
  border-radius: 8px;
  border: 1px solid #E8E6E1;
}

.contact-methods h3 {
  font-size: 24px;
  margin-bottom: 32px;
  color: #2C2C2C;
  font-weight: 600;
}

.contact-method {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #E8E6E1;
}

.contact-method:last-of-type {
  border-bottom: none;
}

.contact-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F5F3EF;
  border-radius: 8px;
}

.contact-details h4 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #2C2C2C;
  font-weight: 600;
}

.contact-link {
  font-size: 18px;
  color: #4A5F7A;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: #2C2C2C;
  text-decoration: underline;
}

.whatsapp-link {
  color: #25D366;
}

.whatsapp-link:hover {
  color: #20BA5A;
}

.contact-info-note {
  background: #F5F3EF;
  padding: 24px;
  border-radius: 4px;
  margin-top: 32px;
}

.contact-info-note p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 8px;
  color: #5C6F5C;
}

/* Contact Form */
.contact-form-wrapper {
  background: #FFFFFF;
  padding: 40px;
  border-radius: 8px;
  border: 1px solid #E8E6E1;
}

.contact-form-wrapper h3 {
  font-size: 24px;
  margin-bottom: 32px;
  color: #2C2C2C;
  font-weight: 600;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #2C2C2C;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  border: 1px solid #E8E6E1;
  border-radius: 4px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #FFFFFF;
  color: #2C2C2C;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4A5F7A;
  box-shadow: 0 0 0 3px rgba(74, 95, 122, 0.1);
}

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

.form-disclaimer {
  background: #F5F3EF;
  padding: 16px;
  border-radius: 4px;
}

.form-disclaimer p {
  margin: 0;
  color: #5C6F5C;
  line-height: 1.5;
  font-size: 13px;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  background: #FFFFFF;
  border: 1px solid #E8E6E1;
  padding: 32px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: #4A5F7A;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: #2C2C2C;
  color: #E8E6E1;
  padding: 48px 40px 32px;
  margin-top: 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}

.footer-info p {
  font-size: 14px;
  line-height: 1.6;
  color: #E8E6E1;
  margin-bottom: 8px;
}

.footer-disclaimer {
  font-size: 12px;
  line-height: 1.5;
  color: #A89F91;
  border-top: 1px solid #4A4A4A;
  padding-top: 24px;
  margin-top: 24px;
}

/* ==========================================================================
   Scroll Animations
   ========================================================================== */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .site-nav {
    gap: 32px;
  }
  
  .site-nav a {
    font-size: 16px;
  }
}

@media (max-width: 900px) {
  .site-header {
    padding: 18px 24px;
  }
  
  .site-nav {
    gap: 24px;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contact-section {
    padding: 80px 24px;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 16px;
  }
  
  .header-content {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  
  .site-logo img,
  .site-logo svg {
    height: 40px;
  }
  
  .site-nav {
    width: 100%;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  
  .site-nav a {
    font-size: 16px;
  }
  
  .contact-methods,
  .contact-form-wrapper {
    padding: 24px;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
}
