@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  --bg-primary: #FFFAFA;
  --maroon: #7B1C1C;
  --maroon-dark: #5C1111;
  --cream: #FFFAFA;
  --text-dark: #333333;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Lora', serif;
  --transition: all 0.3s ease;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-dark);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--maroon);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--cream);
  background-image: url('../assets/icons/finn.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  box-shadow: var(--box-shadow);
  z-index: 1000;
  padding: 8px 0;
}

.kolam-bg {
  background-color: var(--bg-primary);
  background-image: url('../assets/icons/about_bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--maroon);
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  position: relative;
  font-weight: 500;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--maroon);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-heading {
  text-align: center;
  font-size: 36px;
  margin-bottom: 20px;
}

.section-subheading {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 18px;
}

.decorative-line {
  width: 100%;
  height: 20px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20" preserveAspectRatio="none"><path d="M0,10 L10,0 L20,10 L30,0 L40,10 L50,0 L60,10 L70,0 L80,10 L90,0 L100,10 L100,20 L0,20 Z" fill="%237B1C1C" opacity="0.1"/></svg>') repeat-x;
  margin: 20px 0;
}

/* Button */
.btn {
  display: inline-block;
  background-color: var(--maroon);
  color: var(--cream);
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

.btn:hover {
  transform: scale(1.04);
  box-shadow: var(--box-shadow-hover);
  background-color: var(--maroon-dark);
}

/* Hero Slider */
.hero-slider {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  margin-top: 60px; /* Offset for fixed navbar */
}

.slider-track {
  display: flex;
  width: 400%; /* 4 slides */
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.slide {
  width: 100%; /* each slide takes 25% of the flex track implicitly, wait width is relative to parent, so we need flex-basis */
  flex: 0 0 100%; /* Better to calculate track width and flex basis appropriately */
  height: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
}

/* Actually, let's use flex for slider-track */
.hero-slider .slider-track {
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.5s ease;
}

.hero-slider .slide {
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--maroon);
  color: var(--cream);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
}

.slider-btn:hover {
  transform: translateY(-50%) scale(1.1);
  opacity: 1;
}

.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }

.banana-leaf-decorate {
  position: absolute;
  bottom: 0;
  width: 150px;
  height: auto;
  opacity: 0.7;
  pointer-events: none;
}
.banana-leaf-left { left: 0; transform: scaleX(-1); }
.banana-leaf-right { right: 0; }

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Service Card */
.service-card {
  background-color: var(--cream);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
  border-top: 8px solid var(--maroon);
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
}

/* Saree Border SVG for card top */
.service-card::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  width: 100%;
  height: 8px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="8" viewBox="0 0 20 8"><path d="M0,4 L10,0 L20,4 L10,8 Z" fill="%237B1C1C"/></svg>') repeat-x;
}

.service-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card-content {
  padding: 20px;
  text-align: center;
  flex-grow: 1;
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
}

.service-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: var(--box-shadow-hover);
  border-color: var(--maroon-dark);
}

/* Footer */
footer {
  position: relative;
  background-color: var(--maroon);
  color: var(--cream);
  padding: 60px 0 18px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--cream);
  font-size: 20px;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-whatsapp {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
}

.footer-bottom {
  display: flex;
  justify-content: flex-end;
  margin-top: -20px;
  pointer-events: none;
}

.footer-bottom-img {
  width: 280px;
  height: auto;
}

.footer-credit {
  border-top: 1px solid rgba(255, 250, 250, 0.85);
  margin-top: 18px;
  padding-top: 10px;
  text-align: left;
  font-size: 14px;
  line-height: 1.45;
}

.footer-credit p {
  margin: 0;
}

.footer-credit a {
  color: var(--cream);
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.footer-mahal-img {
  width: 120px;
  height: auto;
  border-radius: 4px;
  opacity: 0.85;
  margin: 20px 0 0 0;
  object-fit: cover;
  position: relative;
  left: -300px;
}

.wedding-mahal-decor {
  width: 190px;
  height: auto;
  margin: -390px 0 24px 0;
  border-radius: 4px;
  opacity: 0.85;
}

.all-services-container {
  grid-column: 1 / -1;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
    line-height: 1.55;
  }

  .container {
    padding: 0 16px;
  }

  .logo-container img {
    height: 60px !important;
    width: auto;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--cream);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }
  .nav-links.active {
    display: flex;
  }
  .hamburger {
    display: block;
  }
  .section {
    padding: 56px 0;
  }
  .section-heading {
    font-size: 28px;
    line-height: 1.2;
  }
  .section-subheading {
    font-size: 15px;
    margin-bottom: 28px;
  }
  .hero-slider {
    height: 320px;
    margin-top: 78px;
  }
  .slider-btn {
    width: 34px;
    height: 34px;
  }
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .service-card-img {
    height: 180px;
  }
  .service-card-content {
    padding: 16px;
  }
  .service-card h3 {
    font-size: 18px;
  }
  .service-card p {
    font-size: 13px;
  }
  .service-hero {
    height: 260px !important;
    margin-top: 28px !important;
  }
  .service-desc {
    font-size: 15px !important;
    line-height: 1.65 !important;
    margin: 28px auto !important;
  }
  .gallery-row {
    justify-content: flex-start !important;
    gap: 12px !important;
  }
  .gallery-thumb {
    width: 118px !important;
    height: 118px !important;
    flex: 0 0 118px;
  }
  .btn {
    padding: 11px 24px;
    max-width: 100%;
  }
  .btn-large {
    font-size: 16px !important;
    padding: 12px 24px !important;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-whatsapp {
    justify-content: center;
  }
  .footer-bottom {
    justify-content: center;
    margin-top: 18px;
  }
  .footer-bottom-img {
    width: 180px;
  }
  .footer-mahal-img {
    width: 100px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .section {
    padding: 44px 0;
  }

  .section-heading {
    font-size: 24px;
  }

  .hero-slider {
    height: 260px;
  }

  .service-hero {
    height: 220px !important;
  }

  .service-desc {
    font-size: 14px !important;
  }
}

/* Floating Action Buttons */
.floating-buttons {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}

.float-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  overflow: hidden;
  background-color: var(--cream);
  border: 2px solid var(--maroon);
}

.float-btn img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

.float-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--box-shadow-hover);
}

@media (max-width: 768px) {
  .floating-buttons {
    bottom: 20px;
    right: 20px;
  }
}

.image-viewer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 2000;
}

.image-viewer-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.image-viewer-overlay .image-viewer-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  object-fit: contain;
}

.image-viewer-overlay .image-viewer-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  color: var(--maroon);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--box-shadow);
}

.image-viewer-overlay .image-viewer-close:hover {
  transform: scale(1.05);
}

