/* 
   Trazzr - Main Stylesheet 
   Theme: Ayurvedic / Natural / Health (White + Greens + Earthy)
*/

:root {
  /* Colors */
  --color-primary: #128c7e; /* WhatsApp Teal-Greenish */
  --color-primary-dark: #075e54;
  --color-accent: #c5a059; /* Gold/Earth tone */
  --color-text-dark: #1f2937;
  --color-text-light: #4b5563;
  --color-bg-light: #f9fafb;
  --color-bg-white: #ffffff;
  --color-bg-soft-green: #ecfdf5;

  /* Typography */
  --font-heading: "Playfair Display", serif;
  --font-body: "Inter", sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem; /* 8px */
  --spacing-sm: 1rem; /* 16px */
  --spacing-md: 2rem; /* 32px */
  --spacing-lg: 4rem; /* 64px */
  --spacing-xl: 8rem; /* 128px */

  /* Shadows & Radius */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;

  /* Transition */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  line-height: 1.6;
  background-color: var(--color-bg-white);
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--color-primary-dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.section {
  padding: var(--spacing-lg) 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: var(--spacing-lg);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--color-accent);
  margin: var(--spacing-xs) auto 0;
  border-radius: var(--radius-full);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  transition:
    background-color var(--transition-medium),
    box-shadow var(--transition-medium);
  padding: var(--spacing-md) 0;
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-sm) 0;
}

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

.logo img {
  height: 40px;
  width: auto;
}

.nav-list {
  display: none; /* Mobile first */
}

@media (min-width: 768px) {
  .nav-list {
    display: flex;
    gap: var(--spacing-md);
  }
}

.nav-link {
  font-weight: 500;
  color: var(--color-text-dark);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-fast);
}

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

/* Mobile Menu */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--color-primary-dark);
  transition: var(--transition-medium);
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: var(--color-bg-white);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: right var(--transition-medium);
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav-list {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.mobile-nav-link {
  font-size: 1.5rem;
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
}

/* Hero Section */
.hero {
  height: 100vh;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-bg-white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
  z-index: -1;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  animation: fadeIn Up 1s ease-out;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  color: #f5fffe;
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  opacity: 0.9;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4.5rem;
  }
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Products Section */
.products-section {
  background-color: var(--color-bg-light);
}

.products-grid {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium);
}

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

.product-image {
  padding: var(--spacing-md);
  background-color: var(--color-bg-soft-green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  max-height: 300px;
  width: auto;
  transition: transform var(--transition-medium);
}

.product-card:hover .product-image img {
  transform: scale(1.05); /* Subtle zoom */
}

.product-info {
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-name {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-xs);
  color: var(--color-primary-dark);
}

.product-desc {
  color: var(--color-text-light);
}

@media (min-width: 768px) {
  .product-card {
    flex-direction: row;
    align-items: stretch;
  }

  .product-image,
  .product-info {
    width: 50%;
  }

  .product-card.reverse-layout {
    flex-direction: row-reverse;
  }
}

/* Testimonials Section */
.testimonials-section {
  background-color: var(--color-bg-white);
  overflow: hidden;
}

.carousel-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  padding: var(--spacing-sm);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.testimonial-card {
  min-width: 100%;
  padding: var(--spacing-md);
  background-color: var(--color-bg-light);
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: var(--spacing-xs);
  border: 3px solid var(--color-bg-soft-green);
}

.testimonial-name {
  font-size: 1.25rem;
  color: var(--color-text-dark);
}

.testimonial-role {
  font-size: 0.9rem;
  color: var(--color-primary);
  font-weight: 500;
}

.testimonial-text {
  font-style: italic;
  color: var(--color-text-light);
  font-size: 1.1rem;
}

/* About Section */
.about-section {
  background-color: var(--color-bg-soft-green);
}

.about-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto var(--spacing-lg);
  font-size: 1.05rem;
}

.about-content p {
  margin-bottom: var(--spacing-sm);
}

.subsection-title {
  text-align: center;
  margin-bottom: var(--spacing-md);
  font-size: 2rem;
}

.founders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

.founder-card {
  background: var(--color-bg-white);
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.founder-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto var(--spacing-sm);
  object-fit: cover;
  border: 3px solid var(--color-bg-soft-green);
}

.founder-name {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.founder-role {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* Footer */
.footer {
  background-color: #0d2e28;
  color: #e2e8f0;
  padding-top: var(--spacing-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
}

.footer-logo {
  /* filter: brightness(0) invert(1); */
  height: 50px;
  margin-bottom: var(--spacing-sm);
  border-radius: 100%;
}

.company-tagline {
  opacity: 0.8;
  margin-bottom: var(--spacing-sm);
}

.social-links {
  display: flex;
  gap: var(--spacing-sm);
}

.social-icon {
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition-fast);
}

.social-icon:hover {
  background-color: var(--color-primary);
}

.footer-heading {
  color: var(--color-bg-white);
  margin-bottom: var(--spacing-sm);
  font-size: 1.2rem;
}

.footer-list li {
  margin-bottom: 0.5rem;
}

.footer-list a:hover {
  color: var(--color-primary);
}

.footer-address p {
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--spacing-sm) 0;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1.5fr;
  }
}
