/* -----------------------------
   CSS RESET & BASE
------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--brown);
  background-color: var(--sand);
}

/* -----------------------------
   COLOR SYSTEM
------------------------------ */

:root {
  --sand: #f4efe6;
  --brown: #4a3b2f;
  --olive: #6b7b3e;
  --white: #ffffff;
  --light-brown: #7a6654;
}

/* -----------------------------
   GLOBAL ELEMENTS
------------------------------ */

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

section {
  padding: 3rem 1.5rem;
}

h1,
h2,
h3 {
  line-height: 1.3;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

p {
  max-width: 60ch;
}

/* -----------------------------
   BUTTONS & LINKS
------------------------------ */

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  margin-right: 0.5rem;
}

.btn.primary {
  background-color: var(--olive);
  color: var(--white);
}

.btn.secondary {
  border: 2px solid var(--olive);
  color: var(--olive);
}

.text-link {
  color: var(--olive);
  font-weight: 600;
}

/* -----------------------------
   HEADER & NAVIGATION
------------------------------ */

header {
  background-color: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.logo img {
  height: 50px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: none;
}

.nav-links li {
  margin-left: 1.5rem;
}

.nav-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* -----------------------------
   HERO SECTION
------------------------------ */

.hero {
  background-color: var(--sand);
  text-align: left;
}

.hero p {
  margin: 1rem 0 1.5rem;
}

/* -----------------------------
   ABOUT PREVIEW
------------------------------ */

.about-preview {
  display: grid;
  gap: 2rem;
}

.about-image img {
  border-radius: 6px;
  /* NEW: Limit the width to 350px (or any size you prefer) */
  max-width: 350px; 
  /* NEW: Center the image if the screen is wider than the image */
  margin: 0 auto; 
  /* NEW: Ensure it respects the max-width but stays responsive */
  width: 100%; 
}

/* -----------------------------
   PILLARS
------------------------------ */

.pillars {
  background-color: var(--white);
}

.pillar-grid {
  display: grid;
  gap: 1.5rem;
}

.pillar p {
  color: var(--light-brown);
}

/* -----------------------------
   FEATURED TOURS
------------------------------ */

.tour-grid {
  display: grid;
  gap: 2rem;
}

.tour-card {
  background-color: var(--white);
  padding: 1rem;
  border-radius: 6px;
}

.tour-card img {
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

/* -----------------------------
   CTA
------------------------------ */

.cta {
  background-color: var(--olive);
  color: var(--white);
  text-align: center;
}

.cta p {
  margin: 1rem auto 1.5rem;
}

.cta .btn.primary {
  background-color: var(--white);
  color: var(--olive);
}

/* -----------------------------
   FOOTER
------------------------------ */

footer {
  background-color: var(--brown);
  color: var(--white);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
}

/* -----------------------------
   DESKTOP ENHANCEMENTS
------------------------------ */

@media (min-width: 768px) {

  .nav-links {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .hero {
    padding: 5rem 4rem;
  }

  .about-preview {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .pillar-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tour-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.nav-links.open {
  display: block;
  position: absolute;
  top: 60px;
  right: 1.5rem;
  background-color: var(--white);
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
/* Add this to main.css */

.hero {
  /* 1. Set the background image */
  background-image: 
    /* This creates a dark, transparent overlay so the text is readable */
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    /* Replace 'your-image-file.jpg' with your actual image path */
    url('../images/main/Aradamilolabg.jpeg');

  /* 2. Ensure the image covers the whole area and is centered */
  background-size: cover;
  background-position: center;

  /* 3. Make the text white so it stands out on the dark background */
  color: #ffffff;

  /* 4. Align text to the middle (vertically and horizontally) */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  /* Ensure it has height to show the background */
  min-height: 100vh; /* Adjust this value as needed */
}
/* -----------------------------
   ABOUT PAGE CENTERING
------------------------------ */

/* 1. Target all sections in the About page */
.about-intro,
.about-philosophy,
.about-practice,
.about-experience,
.about-closing {
  /* Aligns text to the center */
  text-align: center; 
}

/* 2. Center the paragraph blocks */
.about-intro p,
.about-philosophy p,
.about-practice p,
.about-experience p,
.about-closing p {
  /* "auto" margins automatically push the block to the center */
  margin-left: auto;
  margin-right: auto;
  
  /* Optional: Keep the gap below paragraphs */
  margin-bottom: 1.5rem; 
}

/* -----------------------------
   GALLERY PAGE
------------------------------ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.02);
}

.gallery-section {
  padding-top: 5rem; /* Offset for fixed header if needed, or just specific spacing */
  margin-top: -3rem; /* Counteract padding for anchor linking */
}

/* -----------------------------
   LIGHTBOX MODAL
------------------------------ */

#lightbox {
  display: none; /* Hidden by default */
  position: fixed; 
  z-index: 1000; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
  justify-content: center;
  align-items: center;
}

#lightbox.active {
  display: flex;
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90vh;
  border-radius: 4px;
  animation-name: zoom;
  animation-duration: 0.3s;
}

@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}

.close-lightbox {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close-lightbox:hover,
.close-lightbox:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* -----------------------------
   HERO SLIDER
------------------------------ */

#hero-slider {
  position: relative;
  /* New: limit width and center to create side white space */
  width: calc(100% - 3rem); 
  max-width: 1400px; /* Optional: prevent it from getting too wide on huge screens */
  margin: 1rem auto 0; /* Top margin for spacing from header, then centered */
  height: 90vh; /* Adjusted to 90vh to fit better with margins, or keep 100vh? Let's try 90vh to see "white space" all around properly */
  
  overflow: hidden;
  border-radius: 20px; /* Rounded corners for the "floating card" look */
  
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 0; 
}

/* Make sure header doesn't cover it awkwardly or vice versa. 
   If header is sticky/fixed, this works. If static, 100vh-header height might be needed.
   For now, strictly 100vh and ensuring it looks good */

.slider-overlay {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.4); /* Darken text area slightly */
  padding: 2rem;
  border-radius: 8px;
  max-width: 800px;
}

.slider-overlay h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.slider-overlay p {
  font-size: 1.25rem;
  margin: 0 auto;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  max-width: 60ch;
  color: #f1f1f1;
}

.slider-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transition: opacity 1.5s ease-in-out;
}

.slider-bg.current {
  opacity: 1;
}

.slider-bg.next {
  opacity: 0;
}
/* -----------------------------
   BOOKING FORM STYLING
------------------------------ */

/* 1. Wrapper: Limits width on big screens so lines aren't too long */
.booking-form form {
  max-width: 600px;
  margin: 0 auto; /* Centers the form on the page */
  text-align: left;
}

/* 2. The Container (Label): Separates each question */
.booking-form label {
  display: block;       /* Forces each question onto a new line */
  margin-bottom: 1.5rem; /* Adds space between questions */
  font-weight: 600;     /* Makes the question text bold */
  color: var(--brown);
}

/* 3. The Inputs: Forces the box to sit UNDER the text */
.booking-form input,
.booking-form select,
.booking-form textarea {
  display: block;       /* Forces the input to its own line (under the text) */
  width: 100%;          /* Makes the box fill the whole space */
  padding: 0.8rem;      /* Adds comfortable space inside the box */
  margin-top: 0.5rem;   /* Adds a small gap between "Email" text and the box */
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  font-family: inherit; /* Ensures font matches the rest of the site */
  font-size: 1rem;
}

/* 4. The Button: Make it full width and clickable */
.booking-form button {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  cursor: pointer;
  margin-top: 0.5rem;
}

/* Footer logo sizing */
.footer-logo img {
  max-width: 180px;
  height: auto;
}