/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Georgia", serif;
  line-height: 1.6;
  color: #333;
  padding-top: 100px; /* space for fixed header */
}

/* ===== HEADER (SINGLE VERSION) ===== */
header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: rgba(108, 117, 125, 0.95);
  padding: 1rem 2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.logo {
  width: 60px;
  height: 60px;
  background: white;
  padding: 5px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.brand-text h1 {
  font-size: 1.8rem;
  color: white;
  font-style: italic;
  font-weight: bold;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.brand-text p {
  font-size: 1rem;
  color: white;
  font-style: italic;
  transition: all 0.3s ease;
}

/* ===== MAIN NAVIGATION – SINGLE SOURCE OF TRUTH ===== */
nav ul {
  display: flex;
  list-style: none;
  gap: 2rem; /* ← ADJUST THIS VALUE (4rem = spacious, 5rem = wider) */
  margin: 0;
  padding: 0;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: nowrap;
}

nav a:hover {
  color: #4a7c7e;
}

/* ===== SHRINK HEADER ===== */
header.shrink {
  padding: 0.5rem 2rem;
  background: rgba(108, 117, 125, 0.98);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

header.shrink .logo {
  width: 40px;
  height: 40px;
}

header.shrink .brand-text h1 {
  font-size: 1.4rem;
}

header.shrink .brand-text p {
  font-size: 0.8rem;
}

header.shrink nav a {
  font-size: 1rem;
}

/* ===== SEARCH BAR (SINGLE) ===== */
.search-container {
  position: relative;
  margin: 0 2rem;
}

.search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 25px;
  padding: 0.5rem 1rem;
  min-width: 300px;
  transition: all 0.3s ease;
}

.search-box:focus-within {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#searchInput {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.9rem;
  color: #333;
  padding: 0.3rem;
}

#searchInput::placeholder {
  color: #666;
}

#searchButton {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  color: #4a7c7e;
  transition: color 0.3s ease;
}

#searchButton:hover {
  color: #2a3d4e;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  max-height: 300px;
  overflow-y: auto;
  display: none;
  z-index: 1001;
  margin-top: 0.5rem;
}

.search-results.active {
  display: block;
}

.search-result-item {
  padding: 1rem;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-result-item:hover {
  background: #f8f9fa;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item h4 {
  color: #2a3d4e;
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

.search-result-item p {
  color: #666;
  font-size: 0.8rem;
  margin: 0;
}

.search-result-item .result-type {
  background: #4a7c7e;
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-size: 0.7rem;
  display: inline-block;
  margin-top: 0.3rem;
}

header.shrink .search-box {
  min-width: 250px;
  padding: 0.3rem 0.8rem;
}

header.shrink #searchInput {
  font-size: 0.8rem;
}

header.shrink #searchButton svg {
  width: 16px;
  height: 16px;
}

/* ===== HERO SECTION ===== */
#home {
  height: 100vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url("/Asset/Kigali-City-2.jpeg");
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 2rem;
}

.hero-content h2 {
  font-size: 4rem;
  font-style: italic;
  font-weight: bold;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.hero-content h3 {
  font-size: 2.5rem;
  font-style: italic;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 3rem;
}

.cta-btn {
  background: rgba(139, 146, 166, 0.8);
  color: white;
  padding: 1rem 3rem;
  font-size: 1.2rem;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.cta-btn:hover {
  background: rgba(139, 146, 166, 1);
}

/* ===== EXPERTISE SECTION ===== */
#expertise {
  background: #3a3d4e;
  padding: 5rem 2rem;
  color: white;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.section-header h3 {
  font-size: 1.8rem;
  font-style: italic;
}

.section-header p {
  font-size: 1.2rem;
  margin-top: 1rem;
}

.expertise-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.expertise-card {
  background: #4a4d5e;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s;
}

.expertise-card:nth-child(7) {
  grid-column: 2;
}

.expertise-card:hover {
  transform: translateY(-5px);
}

.expertise-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 1rem;
}

.expertise-card h4 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.expertise-card a {
  text-decoration: none;
  color: inherit;
}

/* ===== ABOUT SECTION ===== */
#about {
  padding: 5rem 2rem;
  background: white;
}

.about-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.about-text {
  padding: 2rem;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.about-text h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.about-image {
  position: relative;
  height: 200px;
  border-radius: 20px;
  overflow: hidden;
}

.about-image.large {
  grid-column: span 2;
  height: 400px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.year-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* ===== TEAM SECTION ===== */
#team {
  background: #1a1a1a;
  padding: 5rem 2rem;
  color: white;
}

.team-header {
  text-align: center;
  margin-bottom: 3rem;
}

.team-header h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.team-header p {
  font-size: 1rem;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
}

.team-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.team-member {
  text-align: center;
  padding: 1rem;
  transition: transform 0.3s;
  cursor: pointer;
}

.team-member:hover {
  transform: translateY(-10px);
}

.team-member a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.member-photo {
  width: 200px;
  height: 250px;
  margin: 0 auto 1rem;
  border-radius: 10px;
  overflow: hidden;
  background: #333;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.member-info p {
  font-size: 0.9rem;
  color: #ccc;
}

/* ===== CONTACT SECTION ===== */
#contact {
  padding: 5rem 2rem;
  background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("images/contact-bg.jpg");
  color: white;
}

.contact-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-form h2 {
  font-size: 3rem;
  font-style: italic;
  margin-bottom: 1rem;
}

.contact-form p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  background: rgba(139, 146, 166, 0.8);
  color: white;
  padding: 1rem 3rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.submit-btn:hover {
  background: rgba(139, 146, 166, 1);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.contact-info {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 10px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.map-container {
  width: 100%;
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.map-container iframe {
  transition: transform 0.3s ease;
}

.map-container iframe:hover {
  transform: scale(1.01);
}

/* ===== FOOTER ===== */
footer {
  background: white;
  padding: 3rem 2rem 1rem;
  color: #333;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-section p {
  margin-bottom: 0.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: #6c757d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: background 0.3s;
}

.social-icon:hover {
  background: #4a7c7e;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #ddd;
}

/* ===== WHATSAPP FLOATING BUTTON (SINGLE) ===== */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1000;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.whatsapp-float.loaded {
  opacity: 1;
  transform: translateY(0);
}

.whatsapp-link {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: white;
  padding: 12px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-link:hover {
  background: #128c7e;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
  color: white;
}

.whatsapp-link svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.whatsapp-text {
  white-space: nowrap;
}

@keyframes pulse {
  0% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 25px rgba(37, 211, 102, 0.8);
  }
  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
}

.whatsapp-float.scroll-effect {
  transform: scale(0.95);
}

.whatsapp-float.hide {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

/* ===== FORM MESSAGE ===== */
.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 5px;
  font-weight: bold;
  display: none;
  text-align: center;
}

.form-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}

.form-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}

.form-message.sending {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
  display: block;
}

/* ===== RESPONSIVE DESIGN (SINGLE SET) ===== */
@media (max-width: 1200px) {
  nav ul {
    gap: 2.5rem;
  }
}

@media (max-width: 992px) {
  nav ul {
    gap: 1.8rem;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 120px;
  }

  .nav-container {
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem;
  }

  .logo-section {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  nav ul {
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  nav a {
    font-size: 1rem;
  }

  .search-container {
    order: 3;
    margin: 0;
    width: 100%;
  }

  .search-box {
    min-width: 100%;
    margin: 0.5rem 0;
  }

  .hero-content h2 {
    font-size: 2.5rem;
  }

  .hero-content h3 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1.2rem;
  }

  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-images {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-image.large {
    grid-column: span 1;
    height: 300px;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  header.shrink .search-container {
    display: none;
  }

  header.shrink .nav-container {
    flex-direction: row;
    flex-wrap: nowrap;
  }

  header.shrink nav {
    display: none;
  }

  .whatsapp-text {
    display: none;
  }

  .whatsapp-link {
    padding: 15px;
    border-radius: 50%;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .nav-container {
    gap: 0.8rem;
  }

  nav ul {
    gap: 1rem;
  }

  nav a {
    font-size: 0.9rem;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  .hero-content h3 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .team-member {
    padding: 0.8rem;
  }

  .member-photo {
    width: 150px;
    height: 180px;
  }

  .about-image {
    height: 200px;
  }

  .about-image.large {
    height: 250px;
  }

  .year-overlay {
    font-size: 2.5rem;
  }

  .contact-form h2 {
    font-size: 2rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .whatsapp-float {
    bottom: 15px;
    right: 15px;
  }

  .whatsapp-link {
    padding: 12px;
  }

  .whatsapp-link svg {
    width: 20px;
    height: 20px;
  }

  header.shrink .search-container {
    display: none;
  }
}

@media (max-width: 360px) {
  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  nav ul {
    gap: 0.8rem;
  }

  nav a {
    font-size: 0.8rem;
  }
}
