/* style.css */
/* Place in project root beside index.php */
/* Images referenced (relative to index.php): 
   - assets/images/bg.jpg           (background tile)
   - assets/images/section-photo.jpg (about section image)
*/

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html,body { height: 100%; }

/* ---------- Base ---------- */
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #fff;
  background: #000; /* fallback while bg-grid renders */
  line-height: 1.5;
}

/* Ensure main content is above the background grid */
main, header, footer { position: relative; z-index: 1; }

/* ---------- Background grid (fixed behind everything) ---------- */
.bg-grid-wrapper {
  position: fixed;
  inset: 0; /* top/right/bottom/left:0 */
  z-index: 0;
  display: grid;
  /* 3 columns across view width and 3 rows across view height */
  grid-template-columns: repeat(3, 33.3333vw);
  grid-template-rows: repeat(3, 33.3333vh);
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* Base tile style: same image for each tile */
.bg-grid-wrapper .tile {
  width: 100%;
  height: 100%;
  background-image: url("assets/images/ass.jpeg");
  background-repeat: no-repeat;
  background-size: cover; /* overridden per tile below for cropping behavior */
  background-color: #000;
}

/* ----------------------------
   Tile cropping rules (exactly as you described)
   Row 1 (tiles 1-3): show LOWER half vertically.
     - tile1: right half (only), lower half vertically
     - tile2: full width, lower half vertically
     - tile3: left half (only), lower half vertically
   Row 2 (tiles 4-6): center vertically (full height shown)
     - tile4: right side visible
     - tile5: full center
     - tile6: left side visible
   Row 3 (tiles 7-9): TOP half vertically (mirror of row 1)
     - tile7: right half, top half vertically
     - tile8: full width, top half vertically
     - tile9: left half, top half vertically
   ----------------------------*/

/* ROW 1 (lower half) */
.bg-grid-wrapper .t1 { background-position: right bottom; background-size: 200% 200%; }
.bg-grid-wrapper .t2 { background-position: center bottom; background-size: 100% 200%; }
.bg-grid-wrapper .t3 { background-position: left bottom; background-size: 200% 200%; }

/* ROW 2 (full height) */
/* use "auto 100%" to emphasize full height while preserving horizontal cropping via position */
.bg-grid-wrapper .t4 { background-position: right center; background-size: auto 100%; }
.bg-grid-wrapper .t5 { background-position: center center; background-size: cover; }
.bg-grid-wrapper .t6 { background-position: left center; background-size: auto 100%; }

/* ROW 3 (top half) */
.bg-grid-wrapper .t7 { background-position: right top; background-size: 200% 200%; }
.bg-grid-wrapper .t8 { background-position: center top; background-size: 100% 200%; }
.bg-grid-wrapper .t9 { background-position: left top; background-size: 200% 200%; }

/* Note:
   - background-size values above are chosen to make the visible portion behave like
     "show half horizontally" (200% width) and "show half vertically" (200% height).
   - Adjust these values if your image aspect ratio requires finer tuning.
*/

/* ---------- Header + Navbar ---------- */
.site-header {
  background: #000; /* solid black header */
  color: #fff;
  /* header scrolls with page (not fixed) so it will reveal background rows when scrolling */
}

.navbar {
  /* horizontal almost-full width, small side margins:
     half-thumb approximated as 12px left/right (adjust if you prefer) */
  margin: 3px 12px 18px 12px; /* top 3px, bottom bigger (18px) */
  display: flex;
  align-items: center;
  justify-content: space-around; /* "feel" like justify: space-around */
  gap: 16px;
  /* allow navbar items to wrap neatly on small screens */
  flex-wrap: wrap;
  padding: 2rem;
}

/* site name */
.site-name {
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: 0.6px;
}

/* nav links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.95;
  transition: opacity .12s ease;
}
.nav-links a:hover { opacity: 0.8; }

/* CTA button */
.cta {
  background: #fff;
  color: #000;
  padding: 10px 16px;
  border-radius: 18px;
  font-weight: 700;
  text-decoration: none;
}

/* ---------- Hero (see-through) ---------- */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;   /* centers whole block vertically */
  align-items: center;       /* centers whole block horizontally */
  text-align: center;
  color: white;
}

.hero h1, 
.hero p {
  margin: 0;  /* remove browser default margins */
}

.hero-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 15px; /* better breathing space */
}

.hero-sub {
  font-size: 1.2rem;
  max-width: 600px;
}



/* ---------- About (black section with two containers) ---------- */
.about {
  background: rgba(10, 8, 8, 0.96);
  padding: 4rem 1rem;
  color: #fff;
}

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* left image */
.about-image {
  flex: 1 1 380px;
  max-width: 540px;
  overflow: hidden;
  border-radius: 12px;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* right text block */
.about-text {
  flex: 1 1 360px;
  max-width: 560px;
}
.about-text h2 {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
  font-weight: 800;
}
.about-text .lead {
  opacity: 0.9;
  margin-bottom: 1rem;
  font-weight: 400;
}
/* .features {
  list-style: disc;
  margin-left: 1rem;
  margin-bottom: 1.25rem;
}
.features li { margin-bottom: 0.5rem; color: #ddd; } */

/* Join button */
.btn-join {
  display: inline-block;
  background: #fff;
  color: #000;
  padding: 10px 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 18px 1rem;
  text-align: center;
  background: rgba(0,0,0,0.95);
}



/* ---------- Section 3: Booking ---------- */
.booking-section {
  background-color: black;
  padding: 4rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.booking-image-container {
  background: url("assets/images/images.jpeg") no-repeat center center/cover;
  margin: 4px;
  padding: 20rem;
  border-radius: 1rem;
  text-align: center;
  color: white;
}

.booking-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.booking-text {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.booking-btn {
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 25px;
  background-color: white;
  color: black;
  font-weight: bold;
  cursor: pointer;
}

/* ---------- Section 4: Split Section ---------- */
.split-section {
  display: flex;
  gap: 2rem;
  padding: 4rem;
  background-color: #111010;
  font-size: 2rem;
}

.split-left, .split-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.split-left-text, .split-right-text {
  margin-bottom: 1rem;
}

.split-img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.price-btn {
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 20px;
  background-color: rgb(243, 234, 234);
  color: rgb(15, 14, 14);
  font-weight: bold;
  cursor: pointer;
}


/* last set of styles for the index */
/* ---------- Services Section ---------- */
.services {
  padding: 4rem 2rem;
  text-align: center;
  background: #1f1e1e;
}

.services-intro-one {
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size:2rem;
  font-weight: 1000;
  color: #f8f5f5;
  
}
.services-intro {
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1.6rem;
  font-weight: 500;
  color: #f8f5f5;
  /* text-align: left; */
  text-decoration: underline;
}

.services-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  font-size: medium;
}

.services-list li {
  font-size: 1rem;
  margin-bottom: 0.8rem;
  color: #f2efef;
}

.btn-btn-primary {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 2rem;
  cursor: pointer;
  background-color: orange;
  transition: background 0.3s ease;
}

.btn-primary {
  background: #222;
  color: #fff;
}

.btn-primary:hover {
  background: #444;
}

/* ---------- Contact Section ---------- */
.contact {
  padding: 3rem 2rem;
  text-align: center;
  background: #fff;
  color: #333;
}

.contact-text {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.contact-email {
  font-size: 1.1rem;
  font-weight: bold;
  color: #000;
}

/* ---------- Footer ---------- */
.footer {
  background: #111;
  color: #eee;
  padding: 2rem;
  text-align: center;
}

.footer-company {
  margin-bottom: 1rem;
  font-weight: bold;
}

.footer-socials a {
  margin: 0 0.5rem;
  font-size: 1.5rem;
  text-decoration: none;
  color: #eee;
  transition: color 0.3s ease;
}

.footer-socials a:hover {
  color: #aaa;
}


/* ----------------- MOBILE RESPONSIVENESS (REPLACE EXISTING MOBILE BLOCK) ----------------- */
@media (max-width: 768px) {

  /* Prevent horizontal scrolling */
  html, body {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    height: auto;
  }

  /* Hide the 3x3 tiled grid on mobile and use a single full-screen background */
  .bg-grid-wrapper {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body {
    /* single background image that covers the screen */
    background-image: url('assets/images/ass.jpeg') !important; /* adjust only if file name differs */
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: cover !important;
    background-attachment: scroll !important;
    color: #fff;
    font-size: 16px;
    line-height: 1.45;
  }

  /* NAVBAR: compact + stacked links if needed */
  .navbar {
    padding: 12px 14px !important;
    margin: 6px !important;
    gap: 10px;
    justify-content: space-between !important;
    align-items: center;
  }

  .site-name {
    font-size: 1.1rem !important;
    font-weight: 800;
  }

  .nav-links {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    margin-top: 8px;
    padding: 0;
  }
  .nav-links li { list-style: none !important; }
  .nav-links a {
    font-size: 0.95rem !important;
    padding: 6px 10px;
    display: inline-block;
  }

  /* CTA button in navbar becomes full width under nav links */
  .cta {
    width: 100% !important;
    max-width: none !important;
    padding: 10px 14px !important;
    margin-top: 8px !important;
    text-align: center !important;
    display: block !important;
  }

  /* HERO: scale down and avoid forcing full viewport height */
  .hero {
    height: auto !important;
    min-height: 55vh !important;
    padding: 2rem 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .hero-title {
    font-size: 1.9rem !important;
    line-height: 1.1 !important;
    margin-bottom: 0.5rem !important;
    padding: 0 0.5rem !important;
  }

  .hero-sub {
    font-size: 1rem !important;
    max-width: 92% !important;
    margin: 0 auto !important;
  }

  /* ABOUT section: stack image above text */
  .about {
    padding: 2rem 0.75rem !important;
  }

  .about-inner {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    align-items: stretch !important;
    max-width: 100% !important;
    padding: 0 0.5rem !important;
    margin: 0 auto !important;
  }

  .about-image,
  .about-text {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
  }

  .about-image img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 10px !important;
  }

  .about-text h2 {
    font-size: 1.25rem !important;
  }
  .about-text .lead {
    font-size: 0.95rem !important;
    line-height: 1.45 !important;
  }

  /* Booking: reduce huge padding and show content clearly */
  .booking-section {
    padding: 1.25rem 0.75rem !important;
  }

  .booking-image-container {
    margin: 0.5rem auto !important;
    padding: 1.25rem !important;
    min-height: auto !important;
    border-radius: 12px !important;
    max-width: 100% !important;
    background-size: cover !important;
    background-position: center center !important;
    text-align: center !important;
  }

  .booking-title {
    font-size: 1.25rem !important;
  }
  .booking-text {
    font-size: 0.95rem !important;
    margin-bottom: 0.75rem !important;
  }

  .booking-btn {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0.5rem 0 !important;
    padding: 0.8rem !important;
    box-sizing: border-box !important;
  }

  /* SPLIT SECTION: stack left/right vertically so users see one at a time */
  .split-section {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
    padding: 1.25rem !important;
    font-size: 1rem !important;
  }

  .split-left, .split-right {
    width: 100% !important;
    text-align: left !important;
    align-items: stretch !important;
    padding: 0 !important;
  }

  .split-left-text, .split-right-text {
    padding: 0.5rem 0.25rem !important;
  }

  .split-img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    margin-bottom: 0.6rem !important;
    border-radius: 8px !important;
  }

  /* Price and CTA buttons: full width */
  .price-btn, .btn-join, .btn-btn-primary, .price-btn, .booking-btn {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0.6rem 0 !important;
    padding: 0.75rem !important;
    box-sizing: border-box !important;
  }

  /* SERVICES section */
  .services {
    padding: 1.75rem 0.75rem !important;
  }
  .services-intro-one {
    font-size: 1.25rem !important;
    margin-bottom: 1rem !important;
  }
  .services-intro {
    font-size: 1.05rem !important;
    margin-bottom: 1rem !important;
  }
  .services-list li {
    font-size: 0.95rem !important;
  }

  /* CONTACT + FOOTER */
  .contact {
    padding: 1.25rem 0.75rem !important;
    text-align: center !important;
  }
  .contact-email { font-size: 1rem !important; }

  .footer {
    padding: 1.25rem 0.75rem !important;
  }

  /* Global images and containers */
  img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .container, .about-inner, .split-section, main {
    box-sizing: border-box !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  /* Typography tweaks for readability */
  h1, h2, h3, h4, p, li {
    word-break: break-word !important;
  }
  p, li {
    font-size: 0.95rem !important;
    line-height: 1.45 !important;
  }
}

