/* =========================================================
   KAPIRI COUNCIL EXECUTIVE LODGE – OFFICIAL THEME
   ---------------------------------------------------------
   Professional government lodge design with Zambian colors
   ======================================================= */

/* ---------- 1. Design Tokens (Executive Theme) ---------- */
:root {
  --clr-primary:       #168f16;    /* updated green */
  --clr-secondary:     #f9d71c;    /* official yellow */
  --clr-accent:        #e6b422;    /* golden yellow */
  --clr-light:         #f8f9fa;    /* off-white */
  --clr-dark:          #0d260d;    /* dark green */
  --clr-bg-gradient:   linear-gradient(135deg, #168f16 0%, #0d260d 100%);

  --radius-lg:         1rem;
  --radius-md:         .75rem;
  --radius-sm:         .5rem;

  --shadow-lg: 0 20px 30px -10px rgba(0,0,0,.35);
  --shadow-md: 0 12px 18px -8px rgba(0,0,0,.28);
  --shadow-sm: 0 4px 6px -1px rgba(0,0,0,.1);

  --transition: all 0.3s ease-in-out;

  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  --header-h: 80px;
}


@media (max-width: 768px) {
  :root { --header-h: 70px; }
}

/* ---------- 2. Global Reset ----------------------------- */
*,*::before,*::after { 
  box-sizing: border-box; 
  margin:0; 
  padding:0; 
}
html { 
  scroll-behavior: smooth; 
}
body {
  font-family: var(--font-body);
  color: var(--clr-dark);
  background: var(--clr-light);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Utility Classes */
.container { 
  width: min(92%, 1200px); 
  margin-inline: auto; 
}
.section { 
  padding: 4rem 0; 
  position: relative;
}
.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50%;
  height: 4px;
  background: var(--clr-secondary);
}

/* ---------- Typography ---------- */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--clr-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}
h1 { 
  font-size: clamp(2.5rem, 5vw, 3.5rem); 
  color: var(--clr-light);
}
h2 { 
  font-size: clamp(2rem, 4vw, 2.75rem); 
}
h3 { 
  font-size: clamp(1.5rem, 3vw, 2rem); 
}
p {
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  color: var(--clr-dark);
  margin-bottom: 1rem;
}
a {
  color: var(--clr-primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--clr-accent);
}

/* ---------- 3. Executive Navbar ------------------------- */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  display: flex;
  align-items: center;
  z-index: 9999;
  background: var(--clr-primary);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(26, 77, 26, 0.95);
  backdrop-filter: blur(10px);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
}

/* Logo */
.logo {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--clr-light);
  display: flex;
  align-items: center;
}
.logo i {
  margin-right: 0.5rem;
  color: var(--clr-secondary);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}
.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--clr-light);
  transition: all 0.3s ease;
}

/* Navigation Menu */
.nav-menu {
  display: flex;
}
.nav-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.nav-list a {
  font-weight: 600;
  font-size: 1rem;
  color: var(--clr-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 0;
  position: relative;
}
.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-secondary);
  transition: width 0.3s ease;
}
.nav-list a:hover::after {
  width: 100%;
}
.nav-list a:hover {
  color: var(--clr-secondary);
}

/* Mobile Styles */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--clr-primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.5s ease;
    z-index: 1000;
    padding: 2rem;
  }
  .nav-menu.active {
    right: 0;
  }
  .nav-list {
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    text-align: center;
  }
  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* ---------- 4. Hero Slider ------------------------------ */
.hero-slider {
  position: relative;
  height: clamp(60vh, 75vh, 90vh);
  margin-top: var(--header-h);
  overflow: hidden;
  background: var(--clr-bg-gradient);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease, transform 1s ease;
}
.slide.active {
  opacity: 1;
  z-index: 1;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}
.caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 90%;
  max-width: 800px;
  z-index: 2;
}

.caption h2,
.caption p {
  color: #ffffff !important; /* Force white caption */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.caption h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

.caption p {
  font-size: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}


/* Slider Controls */
.controls {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  transform: translateY(-50%);
  z-index: 3;
}
.controls span {
  cursor: pointer;
  font-size: 2rem;
  color: var(--clr-light);
  background: rgba(0,0,0,0.3);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.controls span:hover {
  background: rgba(0,0,0,0.5);
  color: var(--clr-secondary);
}

/* ---------- 5. About Section ---------------------------- */
.about-section {
  background: var(--clr-light);
}
.about-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  align-items: center;
}
.about-text h2 {
  color: var(--clr-primary);
}
.about-text p {
  color: var(--clr-dark);
}
.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}
.about-image:hover img {
  transform: scale(1.03);
}

/* ---------- 6. Featured Rooms --------------------------- */
.rooms-section {
  background: #f5f5f5;
}
.featured-cards {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 2rem;
}
.card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}
.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.card-content {
  padding: 1.5rem;
}
.card-content h3 {
  color: var(--clr-primary);
  margin-bottom: 0.5rem;
}
.card-content p {
  color: var(--clr-dark);
  margin-bottom: 1rem;
}
.price {
  font-weight: 700;
  color: var(--clr-primary);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--clr-primary);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition);
}
.btn-primary:hover {
  background: var(--clr-secondary);
  color: var(--clr-dark);
}

/* ---------- 7. Facilities Section ----------------------- */
.facilities-section {
  background: var(--clr-primary);
  color: white;
}
.facilities-section h2,
.facilities-section p {
  color: white;
}
.facilities-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 2rem;
}
.facility-card {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(5px);
}
.facility-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.15);
}
.facility-card i {
  font-size: 2.5rem;
  color: var(--clr-secondary);
  margin-bottom: 1rem;
}
.facility-card h4 {
  color: white;
  margin-bottom: 0.5rem;
}
.facility-card p {
  color: rgba(255,255,255,0.8);
}

/* ---------- 8. Testimonials ----------------------------- */
.testimonials-section {
  background: #f5f5f5;
}
.testimonial-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  margin: 1rem;
}
.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--clr-dark);
}
.testimonial-author {
  font-weight: 700;
  color: var(--clr-primary);
}

/* ---------- 9. Contact Section -------------------------- */
.contact-section {
  background: white;
}
.contact-info {
  margin-bottom: 2rem;
}
.contact-info li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.contact-info i {
  color: var(--clr-secondary);
}

/* ---------- 10. Footer ---------------------------------- */
.footer {
  background: var(--clr-dark);
  color: white;
  padding: 3rem 0 1.5rem;
}
.footer-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}
.footer-links h4 {
  color: var(--clr-secondary);
  margin-bottom: 1rem;
}
.footer-links ul {
  list-style: none;
}
.footer-links a {
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--clr-secondary);
  padding-left: 5px;
}
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: white;
  transition: var(--transition);
}
.social-links a:hover {
  background: var(--clr-secondary);
  color: var(--clr-dark);
}
.copyright {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

/* ---------- 11. Buttons --------------------------------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}
.btn-primary {
  background: var(--clr-primary);
  color: white;
  border: 2px solid var(--clr-primary);
}
.btn-primary:hover {
  background: transparent;
  color: var(--clr-primary);
}
.btn-secondary {
  background: var(--clr-secondary);
  color: var(--clr-dark);
  border: 2px solid var(--clr-secondary);
}
.btn-secondary:hover {
  background: transparent;
  color: var(--clr-secondary);
}

/* ---------- 12. Animations ----------------------------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.fade-in {
  animation: fadeIn 1s ease-in;
}

/* ---------- 13. Responsive Adjustments ------------------ */
@media (max-width: 480px) {
  .hero-slider {
    height: 70vh;
  }
  .caption h2 {
    font-size: 2rem;
  }
  .caption p {
    font-size: 1rem;
  }
  .section {
    padding: 2rem 0;
  }
}