/* =========================
   GLOBAL RESET + BASE
========================= */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #2c2c2c;
  background: #fafafa;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================
   NAV
========================= */
nav {
  background: #fff;
  padding: 12px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
nav a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  transition: 0.2s ease;
}
nav a:hover {
  color: #b8005f;
  background: rgba(255, 110, 196, 0.1);
}

/* Logo link in nav — exclude it from the pill hover effect */
nav a.nav-logo-link {
  padding: 0;
  margin-right: 6px;
  border-radius: 50%;
}
nav a.nav-logo-link:hover {
  background: none;
}
nav a.nav-logo-link img {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  display: block;
}

/* =========================
   HERO HEADER
========================= */
.page-header {
  position: relative;
  color: white;
  text-align: center;
  padding: 110px 20px;
  background-image: url("painting-pixie-background-v2.png");
  background-size: cover;
  background-position: center;
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.page-header h1,
.page-header p,
.page-header a {
  position: relative;
  z-index: 1;
}
.page-header h1 {
  margin: 0;
  font-size: 48px;
  letter-spacing: -0.5px;
}
.page-header p {
  font-size: 18px;
  max-width: 700px;
  margin: 18px auto;
  opacity: 0.95;
}

/* =========================
   SECTIONS
========================= */
section {
  max-width: 1050px;
  margin: auto;
  padding: 55px 20px;
}

/* =========================
   BUTTONS (IMPROVED)
========================= */
.btn,
.whatsapp-btn,
.package-btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.2s ease;
}
.btn {
  background: linear-gradient(135deg, #ff9800, #ff6ec4);
  color: #2c2c2c;
  font-weight: 800;
}
.btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}
.whatsapp-btn {
  background: #25D366;
  color: #1a1a1a;
  font-weight: 800;
}
.whatsapp-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* =========================
   ABOUT
========================= */
.about {
  display: flex;
  gap: 40px;
  align-items: center;
}
.about img {
  width: 320px;
  border-radius: 18px;
}

/* =========================
   ABOUT CONTAINER
========================= */
.about-container {
  display: flex;
  gap: 50px;
  align-items: center;
}
.about-image {
  flex: 1 1 420px;
}
.about-image img {
  width: 100%;
  max-width: 600px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
.about-text {
  flex: 1 1 420px;
}
.about-text h1 {
  font-size: 36px;
}

/* =========================
   TRUST BOX
========================= */
.trust {
  margin-top: 20px;
  padding: 15px;
  background: #f2f2f2;
  border-radius: 12px;
  font-size: 14px;
}

/* =========================
   GALLERY
========================= */
.insta-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  grid-auto-rows: 8px;
  gap: 14px;
}
/* Fallback for plain <img> tags used directly inside .insta-gallery
   (e.g. the homepage "Popular Designs" preview grid), which aren't
   wrapped in .gallery-item and have no JS measuring their height.
   Without this, they'd collapse to the 8px auto-row and overflow
   into whatever section comes after. */
.insta-gallery > img {
  grid-row: span 30;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  transition: transform 0.2s ease;
}
.insta-gallery > img:hover {
  transform: scale(1.04);
}
.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.2s ease;
  margin-bottom: 0;
}
.gallery-item:hover img {
  transform: scale(1.06);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.zoom-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  background: rgba(0,0,0,0);
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
  pointer-events: none;
}
.gallery-item:hover .zoom-hint {
  opacity: 1;
  background: rgba(0,0,0,0.25);
}

@media (max-width: 768px) {
  .insta-gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

/* zoom hint on thumbnails */

/* =========================
   MINI GALLERY (Recent Designs strips on location pages)
========================= */
.mini-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 460px;
  margin: 0 auto;
}
.mini-gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  transition: transform 0.2s ease;
}
.mini-gallery img:hover {
  transform: scale(1.04);
}

@media (max-width: 768px) {
  .mini-gallery {
    max-width: 320px;
  }
}

/* =========================
   LIGHTBOX
========================= */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.lightbox-overlay.active {
  display: flex;
}
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 36px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 28px;
  cursor: pointer;
  padding: 14px 18px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  user-select: none;
  transition: background 0.2s ease;
}
.lightbox-nav:hover {
  background: rgba(255,255,255,0.25);
}
.lightbox-prev {
  left: 20px;
}
.lightbox-next {
  right: 20px;
}
.lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  color: white;
  font-size: 15px;
}
.lightbox-counter {
  display: block;
  opacity: 0.6;
  font-size: 13px;
  margin-top: 4px;
}

/* =========================
   TESTIMONIALS
========================= */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.testimonial {
  background: #fff;
  padding: 22px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

/* =========================
   CONTACT BOX
========================= */
.contact-box {
  background: white;
  padding: 30px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* =========================
   PACKAGES
========================= */
.packages-section {
  background: #f8f8f8;
  text-align: center;
}
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  max-width: 1100px;
  margin: auto;
}
.package-card {
  background: white;
  border-radius: 14px;
  padding: 28px;
  border: 1px solid #eee;
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: 0.2s ease;
}
.package-card:hover {
  transform: translateY(-4px);
}
.package-price {
  font-size: 1.8rem;
  font-weight: bold;
}

/* =========================
   FOOTER
========================= */
footer {
  text-align: center;
  padding: 20px;
  background: #2c3e50;
  color: white;
}

/* =========================
   WHATSAPP FLOAT
========================= */
.whatsapp-float {
  position: fixed;
  bottom: 18px;
  right: 18px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: white;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* =========================
   BOOKING GRID
========================= */
.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.card {
  background: white;
  padding: 22px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* =========================
   FORMS
========================= */
form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
input,
textarea,
select {
  width: 100%;
  padding: 11px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
  header h1 {
    font-size: 34px;
  }
  .about,
  .about-container {
    flex-direction: column;
    text-align: center;
  }
  .packages-grid {
    grid-template-columns: 1fr;
  }
  .booking-grid {
    grid-template-columns: 1fr;
  }
}
