/* ... existing :root and body ... */
:root {
  --brown: #6b3f1d;
  --light: #f6efe8;
  --green: #4b6f44;
  --gold: #d4a017;
}

html {
  /* scroll-behavior: smooth;  <-- REMOVED TO PREVENT LENIS CONFLICT */
  scroll-padding-top: 80px;
  /* Offset for fixed header */
}

/* SCROLL TO TOP BTN */
#scrollTopBtn {
  display: none;
  /* Hidden by default */
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  /* Top of everything */
  border: none;
  outline: none;
  background-color: var(--green);
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 50%;
  /* Circle */
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s, transform 0.3s;
}

#scrollTopBtn:hover {
  background-color: var(--brown);
  transform: translateY(-5px);
}

body {
  margin: 0;
  font-family:"Cinzel","Trajan Pro","Times New Roman",serif;
  /* font-family: 'Inter', sans-serif; */
  color: #3b2a1a;
  line-height: 1.6;

  /* GLOBAL RESPONSIVE BACKGROUND */
  background: linear-gradient(rgba(255, 255, 255, 0.4), rgba(227, 153, 107, 0.4)), url('../images/background/namma-sakkarai-desktop-background.png') center/cover no-repeat fixed;
}

@media (max-width: 768px) {
  body {
    background: linear-gradient(rgba(255, 255, 255, 0.4), rgba(227, 153, 107, 0.4)), url('../images/background/namma-sakkarai-mobile-background.png') center/cover no-repeat fixed;
  }
}

h1,
h2 {
  font-family:"Cinzel","Trajan Pro","Times New Roman",serif;
  /* font-family: 'Playfair Display', serif; */
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* HEADER */
/* HEADER */
.header {
  background: #efe4d7;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  height: 70px;
  /* Slimmer fixed height */
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  /* Fill header height */
  padding: 0;
  /* Remove padding */
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  /* Context for absolute image */
  height: 100%;
}

.logo img {
  position: absolute;
  top: -30px;
  /* Slight overflow top */
  left: -40px;
  width: 300px;
  /* slightly smaller than 150 but still large */
  height: 150px;
  max-width: none;
  z-index: 1001;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.logo-text {
  margin-left: 140px;
  /* Push text clear of the absolute image */
  font-size: 18px !important;
  /* Slightly smaller text for balance */
}

.nav a {
  margin-left: 25px;
  text-decoration: none;
  font-weight: 500;
  color: var(--brown);
  transition: color 0.3s;
  font-size: 0.95rem;
  /* Better scale */
}

.nav a:hover {
  color: var(--green);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--brown);
  transition: 0.3s;
}

/* HERO */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../images/hero-bg.png') center/cover no-repeat;
  padding: 150px 0;
  text-align: center;
  color: white;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero h1 span {
  color: #fff;
  /* Changed from brown for better visibility on dark overlay */
  font-style: italic;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* BUTTONS */
.btn {
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.primary {
  background: var(--green);
  color: white;
}

.secondary {
  background: white;
  color: var(--brown);
}

/* Enhanced contrast */

.hero-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 40px;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  font-weight: 500;
}

/* SECTIONS */
.section {
  padding: 90px 0;
  text-align: center;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.grid-2 img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* PACKS */
.pack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 20px 0;
}

.pack {
  background: rgb(255, 255, 255);
  padding: 10px;
  text-align: center;
  font-weight: 60;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
  cursor: pointer;
}

.pack:hover {
  transform: translateY(-5px);
}

.pack.highlight {
  background: var(--brown);
  color: white;
  transform: scale(1.05);
}

.pack-benefits,
.partner-points,
.why-list {
  text-align: left;
  list-style: none;
  padding: 0;
}

.pack-benefits li,
.partner-points li,
.why-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.pack-benefits li::before,
.partner-points li::before,
.why-list li::before {
  content: '☑️';
  position: relative;
  left: 0;
  color: var(--green);
}

/* PARTNERS */
.partners {
  background: url('../images/background/namma-sakkarai-trusted-partner-aceoss-india-IN-background.jpeg') center/100% 120% no-repeat;
  /* background: white; */
}

.partners .text-content {
  background: rgba(255, 255, 255, 0.002);
  padding: 30px;
  border-radius: 12px;
  backdrop-filter: blur(5px);
  /* Optional: Adds a slight blur to the background for better readability */
}

/* CONTACT GRID */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.contact-card {
  background: white;
  padding: 35px 20px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-card .icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.contact-card h3 {
  font-family:"Cinzel","Trajan Pro","Times New Roman",serif;
  /* font-family: 'Playfair Display', serif; */
  font-size: 1.5rem;
  margin: 10px 0;
  color: var(--brown);
}

.contact-card p {
  color: #666;
  font-size: 0.95rem;
  margin: 0;
}

/* Specific Card Hovers */
.contact-card.whatsapp:hover {
  border-bottom: 4px solid #25D366;
}

.contact-card.email:hover {
  border-bottom: 4px solid var(--brown);
}

.contact-card.call:hover {
  border-bottom: 4px solid #333;
}


/* FOOTER */
.footer {
  background: #3b2a1a;
  color: #efe4d7;
  text-align: center;
  padding: 30px 0;
}

/* MEDIA QUERIES */

/* Tablet & Mobile */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  /* Default grid-2 behavior override only if not using overlay logic yet */
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #efe4d7;
    flex-direction: column;
    padding: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    margin: 0;
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 80%;
    text-align: center;
  }

  /* OVERLAY LOGIC FOR MOBILE */
  .mobile-overlay-section .container.grid-2 {
    display: block;
    /* Stack container */
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    min-height: 400px;
    /* Ensure height for bg */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }

  .mobile-overlay-section .image-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
  }

  .mobile-overlay-section .image-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    /* Full cover */
  }

  .mobile-overlay-section .text-content {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.002);
    /* More transparent */
    backdrop-filter: blur(0px);
    /* Frosted glass effect */
    -webkit-backdrop-filter: blur(0px);
    /* Safari support */
    padding: 30px 20px;
    margin: 150px 20px 20px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* Subtle border for definition */
  }
}

@media (max-width: 480px) {

  /* Adjust logo for mobile */
  .logo img {
    width: 150px;
    height: 90px;
    top: -10px;
  }

  .header {
    height: 60px;
    /* Even slimmer on mobile */
  }

  /* Ensure text is visible but scaled */
  .logo-text {
    font-size: 14px !important;
    /* Smaller to fit */
    margin-left: 100px;
    /* Adjust for smaller logo */
    line-height: 1.2;
    display: block;
    /* Force show */
  }

  .pack-grid {
    display: flex;
    flex-direction: column;
  }

  .mobile-overlay-section .text-content {
    margin: 100px 10px 10px 10px;
  }
}

/* SCROLL ANIMATION */
.reveal {
  position: relative;
  transform: translateY(50px);
  opacity: 0;
  transition: all 0.8s ease-out;
}

.reveal.active {
  transform: translateY(0);
  opacity: 1;
}

/* SCROLL TO TOP ANIMATION */
@keyframes flyUp {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(-50px);
    opacity: 0;
  }
}

.fly-up {
  animation: flyUp 0.5s ease-in forwards;
  pointer-events: none;
  /* Prevent double clicking */
}

/* WHY CHOOSE US - FEATURES */
.why-choose-us {
  margin-top: 30px;
}

.why-choose-us h3 {
  font-family:"Cinzel","Trajan Pro","Times New Roman",serif;
  /* font-family: 'Playfair Display', serif; */
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--brown);
  border-bottom: 1px solid rgba(139, 69, 19, 0.2);
  display: inline-block;
  padding-bottom: 5px;
}

.feature-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: flex-start;
  text-align: left;
}

.feature-item .icon {
  font-size: 1.5rem;
  padding-top: 2px;
  min-width: 30px;
  /* Prevent shrinking */
}

.feature-item .content h4 {
  margin: 0 0 5px 0;
  font-family:"Cinzel","Trajan Pro","Times New Roman",serif;
  /* font-family: 'Playfair Display', serif; */
  font-size: 1.1rem;
  color: #333;
  font-weight: 700;
}

.feature-item .content p {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

.quote {
  font-family:"Cinzel","Trajan Pro","Times New Roman",serif;
  /* font-family: 'Playfair Display', serif; */
  font-style: italic;
  font-size: 1.2rem;
  color: var(--brown);
  margin-top: 30px;
  text-align: center;
  font-weight: 600;
}
