/* =============================================
   MEGA TEA — Modern & Polished UI
   ============================================= */

/* ---- CSS Variables ---- */
:root {
  --green-dark: #1a3c2e;
  --green-main: #2e7d32;
  --green-light: #f1f8e9;
  --green-accent: #3d9e42;
  --green-hover: #2e7d32;
  --text-dark: #1a1a2e;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.14);
  --radius: 12px;
  --transition: 0.28s ease;
}

/* ---- Reset / Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Open Sans", sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
}

/* ---- Scroll-reveal utility ---- */
[data-aos] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
[data-aos].visible {
  opacity: 1;
  transform: none;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
.section-cursive {
  font-family: "Kaushan Script", sans-serif;
  color: var(--green-accent);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.15;
}
.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--green-accent);
}

/* =============================================
   PAGE-WIDE BANNER
   ============================================= */
.page-banner {
  position: relative;
  min-height: 280px;
  background: url("../images/hero-bg.jpeg") center 40% / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 60, 46, 0.72) 0%,
    rgba(0, 0, 0, 0.38) 100%
  );
}
.page-banner-content {
  position: relative;
  z-index: 1;
}
.page-banner-title {
  font-family: "Kaushan Script", sans-serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  font-style: italic;
  color: #fff;
  text-shadow: 1px 3px 10px rgba(0, 0, 0, 0.5);
}

/* =============================================
   CONTACT BANNER
   ============================================= */
.contact-banner {
  position: relative;
  min-height: 280px;
  background: url("../images/hero-bg.jpeg") center 40% / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 60, 46, 0.72) 0%,
    rgba(0, 0, 0, 0.38) 100%
  );
}
.contact-banner-content {
  position: relative;
  z-index: 1;
}
.contact-banner-title {
  font-family: "Kaushan Script", sans-serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  font-style: italic;
  color: #fff;
  text-shadow: 1px 3px 10px rgba(0, 0, 0, 0.5);
}
.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}
.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.contact-card-icon {
  font-size: 1.8rem;
  color: var(--green-accent);
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  padding: 0.5rem 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}
.brand-logo {
  width: 140px;
  height: auto;
  display: block;
  transition: opacity var(--transition);
}
.brand-logo:hover {
  opacity: 0.88;
}
.footer-logo {
  width: 140px;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.88) !important;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.4px;
  padding: 0.5rem 1.2rem !important;
  position: relative;
  transition: color var(--transition);
}
.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 1.2rem;
  right: 1.2rem;
  height: 2px;
  background: var(--green-accent);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #fff !important;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

/* Phone pill button */
.navbar-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 20px;
  border: 2px solid var(--green-accent);
  border-radius: 50px;
  color: #fff !important;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition:
    background var(--transition),
    box-shadow var(--transition);
  white-space: nowrap;
}
.navbar-phone:hover {
  background: var(--green-accent);
  box-shadow: 0 0 12px rgba(61, 158, 66, 0.45);
}

/* Animated mobile navbar toggle */
.navbar-toggler {
  width: 46px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  border-radius: 12px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  transition:
    border-color var(--transition),
    background var(--transition),
    transform var(--transition);
}
.navbar-toggler:hover {
  background: rgba(61, 158, 66, 0.18);
  border-color: rgba(61, 158, 66, 0.7) !important;
}
.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(61, 158, 66, 0.28) !important;
}
.navbar-toggler-icon {
  display: none;
}
.toggler-icon {
  width: 22px;
  height: 16px;
  position: relative;
  display: block;
}
.toggler-icon .line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transform-origin: center;
  transition:
    transform 0.28s ease,
    opacity 0.2s ease,
    background var(--transition);
}
.toggler-icon .line-1 {
  top: 0;
}
.toggler-icon .line-2 {
  top: 7px;
}
.toggler-icon .line-3 {
  top: 14px;
}
.navbar-toggler.is-open .line-1 {
  transform: translateY(7px) rotate(45deg);
}
.navbar-toggler.is-open .line-2 {
  opacity: 0;
  transform: scaleX(0.2);
}
.navbar-toggler.is-open .line-3 {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: 0.75rem;
    padding: 0.8rem;
    border-radius: 12px;
    background: rgba(18, 34, 26, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
}

/* =============================================
   HERO
   ============================================= */
.hero-section {
  position: relative;
  min-height: 65vh;
  background: url("../images/hero-bg.jpeg") center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(26, 60, 46, 0.65) 0%,
    rgba(0, 0, 0, 0.28) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
}
.hero-title {
  font-family: "Kaushan Script", sans-serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  font-style: italic;
  margin-bottom: 0.3rem;
  text-shadow: 1px 3px 12px rgba(0, 0, 0, 0.45);
  animation: fadeDown 0.9s ease both;
}
.hero-subtitle {
  font-family: "Kaushan Script", sans-serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  font-style: italic;
  text-shadow: 1px 3px 12px rgba(0, 0, 0, 0.45);
  animation: fadeDown 1.1s ease both;
}
.hero-cta {
  margin-top: 2rem;
  animation: fadeDown 1.3s ease both;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.btn-hero {
  padding: 13px 38px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 50px;
  background: var(--green-accent);
  color: #fff;
  border: none;
  text-decoration: none;
  transition:
    background var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
  display: inline-block;
  min-width: 180px;
  text-align: center;
}
@media (max-width: 480px) {
  .btn-hero {
    width: 100%;
    max-width: 280px;
  }
}
.btn-hero:hover {
  background: var(--green-hover);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(61, 158, 66, 0.45);
}
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* =============================================
   WELCOME / FEATURES
   ============================================= */
#welcome {
  background: #fff;
  padding-top: 5rem !important;
  padding-bottom: 4rem !important;
}
.section-divider {
  width: 50px;
  height: 3px;
  background: var(--green-accent);
  border-radius: 2px;
  margin: 0.6rem auto 0;
}
.feature-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 1.8rem !important;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}
.feature-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-accent);
}
.feature-icon {
  display: block;
  width: auto;
  height: auto;
  background: transparent;
}
.feature-leaf-img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

/* =============================================
   ABOUT
   ============================================= */
.about-section {
  padding-top: 3.5rem !important;
  padding-bottom: 5rem !important;
}
.about-box {
  width: 100%;
  background: #edf7e4;
  border-radius: 18px;
  padding: 3rem !important;
  box-shadow: var(--shadow-sm);
}
.about-img {
  border-radius: 14px;
  width: 100%;
  object-fit: cover;
  min-height: 300px;
  max-height: 360px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition);
}
.about-img:hover {
  transform: scale(1.012);
}

/* =============================================
   PRODUCTS
   ============================================= */
#products {
  background: #fff;
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}
#products .col-6.col-md-3 {
  background: inherit;
}

.product-card-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
  cursor: pointer;
}
.product-card-wrap:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.product-img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  border: 0;
  padding: 14px;
  display: block;
  transition: transform var(--transition);
}
.product-card-wrap:hover .product-img {
  transform: scale(1.05);
}
.product-info {
  padding: 10px 12px 14px;
  border-top: 1px solid var(--border);
}
.product-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
  text-align: center;
}
.product-price {
  font-size: 0.8rem;
  color: var(--green-accent);
  font-weight: 700;
  margin-bottom: 0;
  text-align: center;
}

/* =============================================
   MAP
   ============================================= */
.map-section iframe {
  width: 100%;
  min-height: 300px;
  border: 0;
  display: block;
}

.map-section .ratio {
  --bs-aspect-ratio: 30%;
}

@media (max-width: 767.98px) {
  .map-section .ratio {
    --bs-aspect-ratio: 42%;
  }

  .map-section iframe {
    min-height: 220px;
  }
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: #0f1f17;
  color: #fff;
  border-top: 3px solid var(--green-accent);
}
.site-footer p,
.site-footer .text-muted,
.site-footer h6,
.site-footer li,
.site-footer i,
.site-footer a {
  color: #fff !important;
}
.footer-links li {
  margin-bottom: 8px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.75) !important;
  text-decoration: none;
  transition:
    color var(--transition),
    padding-left var(--transition);
}
.footer-links a:hover {
  color: #fff !important;
  padding-left: 5px;
}
.footer-contact li {
  font-size: 0.88rem;
}
.footer-contact i {
  color: var(--green-accent) !important;
}
.footer-divider {
  border-color: rgba(255, 255, 255, 0.12);
  margin: 1.5rem 0 1rem;
}
.footer-copy {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45) !important;
  text-align: center;
}

@media (max-width: 767.98px) {
  .site-footer .footer-quick-col {
    margin-top: 1.6rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .site-footer .footer-contact-col {
    margin-top: 1.2rem;
  }

  .site-footer .footer-links {
    margin-top: 0.4rem;
  }
}

/* =============================================
   SCROLL PROGRESS BAR
   ============================================= */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--green-accent);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* =============================================
   BACK TO TOP
   ============================================= */
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-accent);
  color: #fff;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 1000;
  transition:
    background var(--transition),
    transform var(--transition);
}
#back-to-top:hover {
  background: var(--green-hover);
  transform: translateY(-3px);
}
