/* Modern styling for Pacset Kenya Website */
:root {
  /* Brand Colors - aligned with styles.css */
  --primary-color: #facc15;    /* Yellow from logo */
  --secondary-color: #4b5563;  /* Dark Grey from logo */
  --accent-color: #ff7700;     /* Orange accent */
  --light-bg: #f8f9fa;
  --dark-bg: #343a40;
  --text-color: #333333;
  --text-light: #ffffff;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  
  /* Accessibility */
  --focus-ring-color: #4d90fe;
  --focus-ring-width: 3px;
  --focus-ring-offset: 2px;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only-focusable:active,
.sr-only-focusable:focus {
  position: fixed;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
  padding: 1rem;
  margin: 1rem;
  background-color: var(--primary-color);
  color: var(--text-color);
  z-index: 9999;
}

*:focus {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}

*:focus:not(:focus-visible) {
  outline: none;
}

*:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}

body {
  color: var(--text-color);
  font-family: 'Poppins', sans-serif;
  line-height: 1.7;
}

/* About page styling */
.about-feature {
  padding: 2rem;
  background: white;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  margin-bottom: 1.5rem;
}

.about-feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.about-feature i {
  color: var(--primary-color);
  transition: var(--transition);
}

.about-feature:hover i {
  color: var(--accent-color);
}

.about-feature h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Value proposition and features list */
.list-unstyled i {
  color: var(--primary-color);
  transition: var(--transition);
}

.list-unstyled li:hover i {
  color: var(--accent-color);
  transform: scale(1.1);
}

/* Footer styling */
footer {
  background-color: #0F1B24;
  color: white;
  padding: 3rem 0 1rem;
}

footer h5 {
  color: white;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

footer ul li {
  margin-bottom: 0.5rem;
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

footer a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

footer i {
  color: var(--accent-color);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
}

/* Hero Section Styling */
.hero-section {
  position: relative;
  height: 80vh;
  min-height: 500px;
  background-color: var(--dark-bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  color: white;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-btn {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: none;
  padding: 0.8rem 2rem;
  font-weight: 600;
  border-radius: 5px;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.hero-btn:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: var(--text-light);
}

/* Contact section styling */
.contact-section {
  background-color: var(--light-bg);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: "";
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(26, 77, 140, 0.05);
  z-index: 0;
}

.contact-info {
  padding: 2rem;
  background-color: white;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border-left: 4px solid var(--primary-color);
}

.contact-info:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.contact-info h4 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-weight: 600;
  position: relative;
  padding-bottom: 10px;
}

.contact-info h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--accent-color);
}

.contact-info i {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-right: 15px;
}

.contact-info a {
  color: var(--text-color);
  transition: var(--transition);
}

.contact-info a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

/* Form styling */
.contact-form {
  padding: 2rem;
  background-color: white;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border-top: 4px solid var(--primary-color);
}

.contact-form:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.form-control {
  border: 2px solid #767676;
  padding: 0.8rem 1rem;
  height: auto;
  border-radius: 5px;
  transition: var(--transition);
  background-color: #ffffff;
  color: var(--text-color);
}

.form-control:focus {
  border-color: var(--focus-ring-color);
  box-shadow: 0 0 0 var(--focus-ring-width) rgba(77, 144, 254, 0.3);
  background-color: #ffffff;
}

.form-control::placeholder {
  color: #767676;
  opacity: 1;
}

.form-control:disabled {
  background-color: #e9ecef;
  opacity: 1;
}

/* High contrast mode support */
@media (forced-colors: active) {
  .form-control {
    border: 2px solid ButtonText;
  }
  
  .form-control:focus {
    outline: 2px solid ButtonText;
    outline-offset: 2px;
  }
}

.form-label {
  color: var(--primary-color);
  font-weight: 500;
}

/* Button styling */
.btn-submit, .btn-primary {
  background-color: var(--primary-color);
  border: 2px solid var(--secondary-color);
  padding: 0.8rem 2rem;
  border-radius: 5px;
  transition: var(--transition);
  font-weight: 600;
  color: var(--secondary-color);
  position: relative;
}

.btn-submit:hover, .btn-primary:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--text-light);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-submit:focus, .btn-primary:focus {
  box-shadow: 0 0 0 var(--focus-ring-width) rgba(77, 144, 254, 0.3);
}

.btn-submit:disabled, .btn-primary:disabled {
  background-color: #e9ecef;
  border-color: #6c757d;
  color: #6c757d;
  cursor: not-allowed;
  transform: none;
}

/* Loading state */
.btn-submit.loading, .btn-primary.loading {
  position: relative;
  padding-right: 3.5rem;
}

.btn-submit.loading::after, .btn-primary.loading::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--secondary-color);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

/* Map styling */
.map-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  border: 4px solid white;
  transition: var(--transition);
}

.map-container:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Animation classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Section styling */
.section-padding {
  padding: 5rem 0;
}

.section-bg {
  background-color: var(--light-bg);
  position: relative;
  overflow: hidden;
}

.section-bg::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(0, 86, 179, 0.05);
  z-index: 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--primary-color);
}

.section-title h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--accent-color);
}

.section-title p {
  color: var(--text-color);
  font-size: 1.1rem;
}

/* Project Cards */
.project-card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100%;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.project-card .card-img-top {
  height: 250px;
  object-fit: cover;
}

.project-card .card-body {
  padding: 1.5rem;
  background: white;
}

.project-card .card-title {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.project-card .card-text {
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

.project-card .btn {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: none;
  padding: 0.8rem 2rem;
  font-weight: 600;
  border-radius: 5px;
  transition: var(--transition);
}

.project-card .btn:hover {
  background-color: var(--accent-color);
  color: var(--text-light);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .section-padding {
    padding: 4rem 0;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 3rem 0;
  }
  .contact-info, .contact-form {
    margin-bottom: 2rem;
  }
  .project-card .card-img-top {
    height: 200px;
  }
}
