/*
Theme Name: EarthFlame
Theme URI: 
Author: 
Author URI: 
Description: WordPress theme for EarthFlame Ltd - Premium Coconut Shell Charcoal Cubes
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: earthflame
*/

/* Modern Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Modern Typography & Colors */
:root {
  --primary-color: #2d5016;
  /* Deep Green - Keep for accents/brand */
  --primary-dark: #1e3a0f;
  --secondary-color: #f7f9fa;
  /* Light Gray instead of Green */
  --accent-color: #c1540c;
  /* Burnt Orange */
  --text-color: #333;
  --light-text: #f8f9fa;
  --border-color: #e0e0e0;
  --dark-bg: #1a1a1a;
  /* Charcoal Black */
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.1);
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #ffffff;
}

/* Header and Navigation */
header {
  background-color: white;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  height: 50px;
  width: auto;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition);
}

.nav-menu a:hover {
  color: var(--accent-color);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition);
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Mobile Navigation */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 3px 0;
  transition: var(--transition);
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  z-index: 1001;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d451e 100%);
  color: #ffffff;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.hero-image-container {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
}

.hero-logo-large {
  max-width: 100%;
  height: auto;
  max-height: 400px;
  filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
}

.hero h2 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
  color: #ffffff;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero h3 {
  font-size: 1.6rem;
  margin-bottom: 2rem;
  font-weight: 400;
  color: #e0e0e0;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  color: #f0f0f0;
}

.hero ul {
  list-style: none;
  margin: 2rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  text-align: left;
}

.hero li {
  padding: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  color: white;
}

.hero li::before {
  content: "✓";
  color: #66bb6a;
  font-weight: bold;
  font-size: 1.2rem;
}

.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(193, 84, 12, 0.4);
}

.btn:hover {
  background-color: #a0440a;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(193, 84, 12, 0.6);
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, #222222, #354a2a);
  color: white;
  padding: 5rem 2rem;
  text-align: center;
  margin-bottom: 3rem;
}

.page-header h1 {
  color: white;
  font-size: 3rem;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header p {
  font-size: 1.2rem;
  color: #e0e0e0;
  max-width: 600px;
  margin: 1rem auto 0;
}

/* General Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

h1,
h2,
h3 {
  color: var(--text-color);
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Feature Boxes */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.feature-box {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
  border: 1px solid #eee;
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--secondary-color);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  padding: 1rem;
  background: var(--secondary-color);
  border-radius: 50%;
  line-height: 1;
}

/* Products Grid */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

/* Cards (Products, Values, Contact) */
.product-card,
.value-card,
.contact-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.product-card:hover,
.value-card:hover,
.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.product-img {
  width: 100%;
  height: 400px;
  /* Large Product Images as requested */
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.product-img:hover {
  opacity: 0.9;
}

.product-info {
  padding: 2rem;
}

.product-features li::before {
  color: var(--accent-color);
  content: "✓";
  font-weight: bold;
  margin-right: 0.5rem;
}

.product-features li {
  padding: 0.3rem 0;
  display: flex;
  align-items: center;
}

.values-grid,
.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.contact-card,
.value-card {
  padding: 2.5rem 2rem;
  text-align: center;
}

.contact-card {
  border-top: 4px solid var(--accent-color);
}

.value-card {
  border-bottom: 4px solid var(--primary-color);
}

/* Terms Cards */
.terms-card {
  background: white;
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.terms-card h2 {
  font-size: 1.5rem;
  margin-top: 0;
  color: var(--primary-dark);
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.terms-card ul {
  list-style: none;
  /* Fix double bullet issue */
  padding: 0;
}

.terms-card ul li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed #eee;
}

.terms-card ul li:last-child {
  border-bottom: none;
}

.terms-card ul li::before {
  content: "•";
  color: var(--accent-color);
  margin-right: 0.5rem;
  font-weight: bold;
}

/* Process Section */
.process-section {
  background: #f8f9fa;
  padding: 3rem;
  border-radius: 12px;
  text-align: center;
  margin-top: 3rem;
}

/* Footer */
footer {
  background-color: var(--dark-bg);
  color: #aaa;
  text-align: center;
  padding: 3rem 2rem;
  margin-top: 5rem;
}

footer p {
  font-size: 0.9rem;
}

/* Utilities */
.text-center {
  text-align: center;
}

.mb-2 {
  margin-bottom: 2rem;
}

/* Product Box Img */
.product-box-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin: 2rem auto;
  display: block;
  cursor: pointer;
}

/* WhatsApp button */
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #25D366;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  margin-top: 1rem;
  box-shadow: var(--shadow);
}

.whatsapp-btn:hover {
  background-color: #128C7E;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.whatsapp-icon {
  font-size: 1.2rem;
}

/* WordPress Content Styles */
.entry-content {
  max-width: 1200px;
  margin: 0 auto;
}

.entry-content img {
  max-width: 100%;
  height: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    text-align: center;
    padding: 3rem 1rem;
  }

  .hero-container {
    flex-direction: column;
    /* Image is first in HTML, so it will be on top */
    gap: 2rem;
  }

  .hero-logo-large {
    max-height: 200px;
    /* Reduce size for mobile */
    width: auto;
    max-width: 80%;
    /* Prevent overflow */
  }

  .hero-text {
    text-align: center;
  }

  .hero h2 {
    font-size: 2.5rem;
  }

  .process-section {
    padding: 2rem 1rem !important;
  }

  .navbar {
    padding: 1rem;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    height: calc(100vh - 70px);
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow);
    padding: 2rem 0;
    justify-content: flex-start;
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .page-header h1 {
    font-size: 2.5rem;
  }
}

