/* ============================================
   Thundola Tea Estate - Main Stylesheet
   Modern, Elegant, Nature-Inspired Design
   ============================================ */

:root {
  --primary-green: #2d5016;
  --accent-gold: #d4af37;
  --light-green: #6b8e23;
  --cream: #f5f3ed;
  --dark-brown: #3d2817;
  --text-dark: #1a1a1a;
  --text-light: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  background-color: #fafbf9;
  line-height: 1.6;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
  background: #ffffff;
  color: var(--text-dark);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: var(--accent-gold);
  transition: var(--transition);
}

.logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.logo:hover {
  transform: scale(1.05);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent-gold);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  color: var(--accent-gold);
}

.contact-btn {
  background-color: var(--primary-green);
  color: var(--text-light);
  padding: 0.7rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  transition: var(--transition);
}

.contact-btn:hover {
  background-color: #f0ad24;
  transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-dark);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--primary-green);
    padding: 1rem 0;
  }

  nav ul.active {
    display: flex;
  }

  nav li {
    padding: 0.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .menu-toggle {
    display: block;
  }

  .header-container {
    padding: 1rem 1.5rem;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  background: #1f3a0f;
  color: var(--text-light);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Inner pages hero (not the home slider) */
.page-hero {
  --hero-bg: url("../images/Web Banners .png");
  position: relative;
  color: var(--text-light);
  padding: 6rem 2rem;
  text-align: center;
  background-color: #1f3a0f;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55));
  z-index: 0;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
  isolation: isolate;
}

.hero-slide {
  --kb-x: -2%;
  --kb-y: -2%;
  --kb-x2: -1%;
  --kb-y2: -1%;
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  transform: scale(1.08) translate(var(--kb-x), var(--kb-y));
  transition: opacity 1.2s ease-in-out;
  z-index: 0;
  will-change: opacity, transform;
}

.hero-slide:first-child {
  opacity: 1;
  z-index: 1;
}

.hero-slide:first-child:not(.is-active) {
  opacity: 0;
  z-index: 0;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 2;
  animation: heroKenBurns var(--kb-duration, 6s) ease-in-out both;
}

.hero-slide.is-exiting {
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 700px;
  animation: fadeInUp 1s ease;
  text-align: left;
  margin-right: auto;
  margin-left: clamp(1.25rem, 6vw, 5rem);
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  padding: 2.5rem 2.25rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.hero .tagline {
  font-size: 1.8rem;
  color: #ffe7a3;
  margin-bottom: 2rem;
  font-weight: 300;
  font-style: italic;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.8;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: var(--primary-green);
}

.btn-primary:hover {
  background-color: #f0ad24;
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-green);
  border: 2px solid var(--primary-green);
}

.btn-secondary:hover {
  background-color: var(--primary-green);
  color: var(--text-light);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(45, 80, 22, 0.3);
}

.hero .btn-secondary {
  color: var(--text-light);
  border-color: var(--text-light);
}

.hero .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--text-light);
  border-color: var(--text-light);
}

.cta-dark .btn-secondary {
  color: var(--text-light);
  border-color: var(--text-light);
}

.cta-dark .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--text-light);
  border-color: var(--text-light);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes kenburns {
  0% {
    transform: scale(1.05);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1.05);
  }
}

@keyframes heroKenBurns {
  from {
    transform: scale(1.08) translate(var(--kb-x), var(--kb-y));
  }
  to {
    transform: scale(1.18) translate(var(--kb-x2), var(--kb-y2));
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
    transform: none;
  }

  .hero-slide.is-active {
    animation: none;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 80vh;
  }

  .hero-content {
    padding: 1.75rem 1.4rem;
    border-radius: 18px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero .tagline {
    font-size: 1.3rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
  }

  .btn {
    width: 100%;
  }
}

/* ============================================
   SECTIONS & GENERAL STYLES
   ============================================ */

section {
  padding: 4rem 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: var(--primary-green);
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.section-subtitle {
  text-align: center;
  color: var(--light-green);
  font-size: 1.2rem;
  margin-bottom: 3rem;
  font-style: italic;
}

/* ============================================
   INTRO SECTION
   ============================================ */

.intro {
  background: linear-gradient(135deg, #f5f3ed 0%, #ffffff 100%);
}

.intro-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.intro-text h2 {
  color: var(--primary-green);
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.intro-text p {
  margin-bottom: 1rem;
  color: #555;
  font-size: 1.05rem;
  line-height: 1.8;
}

.intro-image {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.intro-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.intro-image:hover img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .intro-content {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.product-card {
  background: var(--text-light);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.product-image {
  position: relative;
  overflow: hidden;
  height: 280px;
  background: var(--cream);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-info {
  padding: 2rem;
}

.product-name {
  color: var(--primary-green);
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.product-description {
  color: #666;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.product-benefits {
  background: var(--cream);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--accent-gold);
}

.product-benefits h4 {
  color: var(--primary-green);
  margin-bottom: 0.5rem;
}

.product-benefits ul {
  list-style: none;
  font-size: 0.95rem;
  color: #666;
}

.product-benefits li {
  padding: 0.3rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.product-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-gold);
  font-weight: bold;
}

.product-footer {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.product-footer .btn {
  flex: 1;
  padding: 0.8rem 1.5rem;
  font-size: 0.9rem;
}

/* ============================================
   GALLERY SECTION
   ============================================ */

.gallery {
  background: linear-gradient(135deg, #f5f3ed 0%, #ffffff 100%);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-content {
  text-align: center;
  color: var(--text-light);
}

.gallery-overlay-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
  background: var(--cream);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h2 {
  color: var(--primary-green);
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: #555;
  line-height: 1.8;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature {
  background: var(--text-light);
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 4px solid var(--accent-gold);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature h4 {
  color: var(--primary-green);
  margin-bottom: 0.8rem;
}

.feature p {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
}

.owners-section {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--text-light);
  border-radius: 10px;
}

.owners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.owner-card {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--cream), var(--text-light));
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.owner-photo {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(212, 175, 55, 0.9);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  margin: 0 auto 1rem;
  display: block;
}

.owner-card h4 {
  color: var(--primary-green);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.owner-card p {
  color: #666;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
  }

  .about-features {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
  background: linear-gradient(135deg, var(--primary-green), #1f3a0f);
  color: var(--text-light);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-form-wrapper h3 {
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-radius: 5px;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group button {
  width: 100%;
  padding: 1rem;
  background-color: var(--accent-gold);
  color: var(--primary-green);
  border: none;
  border-radius: 5px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.form-group button:hover {
  background-color: #f0ad24;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.contact-info {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.contact-info h3 {
  color: var(--accent-gold);
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.contact-item {
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--accent-gold);
  color: var(--primary-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-details h4 {
  color: var(--text-light);
  margin-bottom: 0.3rem;
}

.contact-details p {
  color: rgba(255, 255, 255, 0.9);
}

.contact-details a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: var(--transition);
}

.contact-details a:hover {
  text-decoration: underline;
}

.map-container {
  margin-top: 2rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: none;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: var(--accent-gold);
  color: var(--primary-green);
  border-radius: 50%;
  text-decoration: none;
  font-weight: bold;
  transition: var(--transition);
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
  }

  .map-container iframe {
    height: 300px;
  }
}

/* ============================================
   FLOATING WHATSAPP BUTTON
   ============================================ */

.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 2rem;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  z-index: 999;
}

.whatsapp-btn svg {
  display: block;
}

.whatsapp-btn i {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
}

@media (max-width: 768px) {
  .whatsapp-btn {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
  }
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: linear-gradient(135deg, var(--primary-green), #1f3a0f);
  color: var(--text-light);
  padding: 3rem 2rem 1.5rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--accent-gold);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.8rem;
}

.footer-section li i {
  margin-right: 0.6rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom p {
  margin-bottom: 0.5rem;
}

/* ============================================
   RESPONSIVE IMAGES
   ============================================ */

img {
  max-width: 100%;
  height: auto;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.hidden {
  display: none;
}

.visible {
  display: block;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  header,
  footer,
  .whatsapp-btn {
    display: none;
  }

  section {
    page-break-inside: avoid;
  }
}
