/* Main CSS Styles for mitiju-nuyuhi Tea Website */

:root {
  /* Color palette */
  --primary: #006f52;     /* deep emerald */
  --accent: #ffb100;      /* amber */
  --accent-light: #ffd600; /* lighter amber for gradient */
  --background: #eaf4e2;  /* light olive */
  --text-dark: #3a3a3a;   /* dark gray */
  --text-light: #ffffff;  /* white */
  --shadow: rgba(0, 0, 0, 0.1);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  color: var(--text-dark);
  background-color: var(--background);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  line-height: 1.2;
  color: var(--primary);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background-color: var(--accent);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent);
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(to right, var(--accent), var(--accent-light));
  color: var(--text-dark);
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px var(--shadow);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background-color: var(--accent);
  color: var(--text-light);
}

/* Header & Navigation */
header {
  background-color: var(--text-light);
  box-shadow: 0 2px 10px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  height: 50px;
}

.logo img {
  height: 100%;
}

nav ul {
  display: flex;
  list-style: none;
}

nav li {
  margin-left: 2rem;
}

nav a {
  color: var(--primary);
  font-weight: 500;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--primary);
}

/* Hero Section */
.hero {
  padding: 6rem 0;
  background-color: var(--primary);
  color: var(--text-light);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* About Section */
.about {
  padding: 5rem 0;
}

.about-content {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 20px var(--shadow);
}

.about-image img {
  width: 100%;
  height: auto;
  transform: scale(1);
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

/* Products Section */
.products {
  padding: 5rem 0;
  background-color: var(--text-light);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.product-card {
  background-color: var(--background);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow);
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-10px);
}

.product-image {
  height: 200px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-content {
  padding: 1.5rem;
}

.product-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.product-description {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.product-price {
  font-weight: bold;
  color: var(--primary);
  font-size: 1.2rem;
}

/* Services Section */
.services {
  padding: 5rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  padding: 2rem;
  background-color: var(--text-light);
  border-radius: 8px;
  box-shadow: 0 5px 15px var(--shadow);
  text-align: center;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background-color: var(--background);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg {
  width: 30px;
  height: 30px;
  fill: var(--primary);
}

/* Testimonials Section */
.testimonials {
  padding: 5rem 0;
  background-color: var(--primary);
  color: var(--text-light);
}

.testimonials h2 {
  color: var(--text-light);
  text-align: center;
}

.testimonials h2::after {
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  padding: 2rem;
  background-color: var(--text-light);
  color: var(--text-dark);
  border-radius: 8px;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -15px;
  left: 20px;
  font-size: 4rem;
  color: var(--accent);
  line-height: 1;
}

.testimonial-content {
  margin-bottom: 1rem;
  font-style: italic;
}

.testimonial-author {
  font-weight: bold;
}

/* FAQ Section */
.faq {
  padding: 5rem 0;
  background-color: var(--background);
}

.faq h2 {
  text-align: center;
}

.faq h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.faq-list {
  margin-top: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  background-color: var(--text-light);
  font-weight: bold;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: var(--accent);
  color: var(--text-light);
}

.faq-answer {
  padding: 1.5rem;
  background-color: var(--text-light);
  border-top: 1px solid var(--background);
}

/* Order Form Section */
.order-form {
  padding: 5rem 0;
  background-color: var(--text-light);
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 111, 82, 0.2);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-checkbox input {
  margin-top: 5px;
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background-color: var(--text-light);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-text {
  flex: 1;
  margin-right: 1rem;
  color: var(--text-dark);
}

.cookie-actions {
  display: flex;
  gap: 1rem;
}

/* Footer */
footer {
  background-color: var(--primary);
  color: var(--text-light);
  padding: 3rem 0 1rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent);
}

.contact-info {
  list-style: none;
}

.contact-info li {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.contact-info i {
  color: var(--accent);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-light);
}

.footer-links a:hover {
  color: var(--accent);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Legal Pages */
.page-content {
  padding: 5rem 0;
  background-color: var(--text-light);
}

.policy-content {
  max-width: 900px;
  margin: 2rem auto;
}

.policy-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.policy-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.policy-content ul {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.policy-content ul li {
  margin-bottom: 0.5rem;
}

/* Thank You Page */
.thank-you {
  padding: 5rem 0;
  text-align: center;
  background-color: var(--text-light);
}

.thank-you h1 {
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.thank-you .btn {
  margin-top: 2rem;
}

/* Error Messages */
.error-message {
  background-color: #ffe0e0;
  border-left: 4px solid #ff5252;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
}

.error-message p {
  margin-bottom: 0.5rem;
  color: #d32f2f;
}

.error-message p:last-child {
  margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .nav-toggle {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
  }
  
  nav ul {
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
    display: none;
  }
  
  nav li {
    margin: 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .cookie-popup {
    flex-direction: column;
  }
  
  .cookie-text {
    margin-right: 0;
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 4rem 0;
  }
  
  .about, .products, .services, .testimonials, .faq, .order-form {
    padding: 3rem 0;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 1s ease forwards;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Accessibility */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
} 