/*!
Theme Name: Elarafarm
Theme URI: https://elarafarm.com
Author: Elarafarm
Author URI: https://elarafarm.com
Description: A beautifully designed theme for Elarafarm - Aromatic and Medicinal Herbs Farm
Version: 1.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: elarafarm
Domain Path: /languages
*/

:root {
  --color-green-900: #1A3009;
  --color-green-700: #2D5016;
  --color-green-500: #4A7C2F;
  --color-green-100: #D4E8C2;
  --color-cream-100: #F5EDD6;
  --color-cream-200: #EAD9B8;
  --color-sienna: #C4622D;
  --color-sienna-dark: #9E4A1E;
  --color-gold: #B8960C;
  --color-text-dark: #1C1C1A;
  --color-text-mid: #4A4A42;
  --color-text-light: #8C8C7A;
  --color-white: #FFFFFF;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-cream-100);
  color: var(--color-text-dark);
  font-family: "Tahoma", Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: "Georgia", serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  font-weight: 900;
}

h2 {
  font-size: 2.5rem;
  color: var(--color-green-900);
}

h3 {
  font-size: 1.8rem;
  color: var(--color-green-700);
}

p {
  margin-bottom: 1.5rem;
  color: var(--color-text-mid);
}

a {
  color: var(--color-green-500);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-sienna);
}

.section-title-sub {
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-green-700);
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.container {
  width: min(1200px, calc(100% - 4rem));
  margin: 0 auto;
}

.page-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 48, 9, 0.82), rgba(26, 48, 9, 0.25) 35%, rgba(26, 48, 9, 0.82));
  z-index: 0;
}

.page-hero .page-hero-background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.page-hero .page-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  padding: 0 1rem;
}

.page-hero-title {
  font-size: clamp(3.5rem, 5vw, 5.5rem);
  line-height: 0.98;
  font-weight: 900;
  margin-bottom: 1rem;
}

.page-hero-subtitle {
  font-size: clamp(1.05rem, 1.2vw, 1.4rem);
  color: var(--color-cream-100);
  max-width: 720px;
  margin: 0 auto 2rem;
}

.hero-badge {
  display: inline-flex;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--color-cream-100);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.page-section {
  padding: 4rem 0;
}

.page-section--light {
  background: var(--color-cream-200);
}

.section-header {
  max-width: 900px;
  margin: 0 auto 2rem;
  text-align: center;
}

.section-header h2 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
  color: var(--color-green-900);
}

.section-header p {
  color: var(--color-text-mid);
  font-size: 1.05rem;
}

.page-content {
  max-width: 1100px;
  margin: 0 auto;
}

.page-grid {
  display: grid;
  gap: 2rem;
}

.page-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.page-card,
.info-card,
.team-card,
.event-card,
.feature-card,
.form-panel {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(26, 48, 9, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.page-card:hover,
.info-card:hover,
.team-card:hover,
.event-card:hover,
.feature-card:hover,
.form-panel:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(26, 48, 9, 0.12);
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.badge-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--color-gold);
  color: var(--color-green-700);
  font-weight: 700;
  background: var(--color-cream-100);
}

.form-field {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.form-field label {
  font-weight: 700;
  color: var(--color-green-900);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: 1px solid var(--color-cream-200);
  border-radius: 12px;
  padding: 1rem;
  font-size: 1rem;
  color: var(--color-text-dark);
  background: white;
}

.form-field textarea {
  min-height: 160px;
  resize: vertical;
}

.page-hero-strong {
  font-size: 4rem;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.page-hero-small {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.25rem;
}

.page-link-cards {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.page-link-cards a {
  display: block;
  padding: 2.25rem 1.75rem;
  border-radius: 16px;
  color: white;
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.page-link-cards a:hover {
  transform: translateY(-3px);
}

.page-link-cards .link-about { background: var(--color-green-700); }
.page-link-cards .link-practices { background: var(--color-sienna); }

@media (max-width: 1024px) {
  .page-grid--2,
  .page-grid--3 {
    grid-template-columns: 1fr;
  }
}

/* Header */
.site-header {
  background-color: var(--color-white);
  box-shadow: 0 2px 8px rgba(26, 48, 9, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.site-branding {
  flex-shrink: 0;
}
.site-branding h1 {
  margin: 1;
  font-size: 2rem;
  color: var(--color-green-900);
  min-width: 200px;
}

.site-branding a {
  color: inherit;
}
.site-branding .custom-logo {
    height: 60px;  /* adjust this value */
    width: auto;
}

.main-navigation {
  flex: 1;                /* takes all available space */
  display: flex;
  justify-content: center; /* centers nav items */
}

/* Navigation */
.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.main-navigation a {
  color: var(--color-text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-navigation a:hover {
  color: var(--color-green-500);
}

/* Language Switcher */

.language-switcher {
  flex-shrink: 0;          /* prevents it from shrinking */
  margin-left: 0;
  padding-left: 0;
}

.lang-toggle {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  background: var(--color-sienna);
  color: white !important;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

.lang-toggle:hover {
  background: var(--color-sienna-dark);
  transform: translateY(-2px);
  color: white !important;
}

.is-rtl .language-switcher {
  margin-left: 0;
  margin-right: auto;
  padding-left: 0;
  padding-right: 1.5rem;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 92vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-green-700) 0%, var(--color-green-900) 100%);
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 2rem;
  animation: fadeUp 0.8s ease-out;
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--color-cream-100);
  opacity: 0.9;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease-out;
  animation-delay: 0.2s;
  animation-fill-mode: both;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-sienna);
  color: white;
}

.btn-primary:hover {
  background-color: var(--color-sienna-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(196, 98, 45, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border-color: white;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* Featured Products */
.featured-products {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: var(--color-green-900);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.product-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(26, 48, 9, 0.08);
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(26, 48, 9, 0.16);
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.trust-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.trust-item {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(26, 48, 9, 0.08);
}

.trust-item h3 {
  margin-bottom: 0.5rem;
  color: var(--color-green-900);
}

.blog-posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.blog-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(26, 48, 9, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(26, 48, 9, 0.12);
}

.blog-image {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

.blog-content {
  padding: 1.75rem;
}

.blog-category {
  color: var(--color-green-700);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.blog-title {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.blog-excerpt {
  margin-bottom: 1rem;
  color: var(--color-text-mid);
}

.blog-meta {
  margin-bottom: 1.25rem;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.cta-section {
  background: var(--color-green-900);
  color: white;
  padding: 4rem 0;
}

.cta-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.85);
}

.seasonal-banner {
  background: linear-gradient(135deg, rgba(74, 124, 47, 0.08), rgba(234, 217, 184, 0.5));
}

.seasonal-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0;
}

.seasonal-inner p {
  margin: 0;
  font-weight: 600;
  color: var(--color-green-900);
}

.page-card img,
.product-card img,
.blog-card img {
  width: 100%;
  display: block;
}

@media (max-width: 1024px) {
  .page-grid--2,
  .page-grid--3,
  .page-grid--4 {
    grid-template-columns: 1fr;
  }
}

.product-content {
  padding: 1.5rem;
}

.product-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-green-900);
  margin-bottom: 0.5rem;
}

.product-category {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 0.75rem;
}

.product-description {
  font-size: 0.95rem;
  color: var(--color-text-mid);
  margin-bottom: 1rem;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-sienna);
}

/* Story Teaser */
.story-teaser {
  background-color: var(--color-cream-200);
  padding: 4rem 2rem;
  margin: 3rem 0;
}

.story-content {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.story-text h2 {
  color: var(--color-green-900);
  margin-bottom: 1.5rem;
}

.story-text p {
  color: var(--color-text-mid);
  margin-bottom: 1rem;
}

.story-image {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(26, 48, 9, 0.08);
}

/* Trust Bar */
.trust-bar {
  background-color: var(--color-green-900);
  color: white;
  padding: 2rem;
  margin: 2rem 0;
}

.trust-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: center;
}

.trust-item h3 {
  color: var(--color-gold);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.trust-item p {
  color: var(--color-cream-100);
  margin: 0;
}

/* Sustainability Pillars */
.sustainability-section {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.pillar-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(26, 48, 9, 0.08);
  text-align: center;
  transition: all 0.3s ease;
}

.pillar-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(26, 48, 9, 0.16);
}

.pillar-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.pillar-card h3 {
  color: var(--color-green-700);
  margin-bottom: 1rem;
}

.pillar-card p {
  color: var(--color-text-mid);
  font-size: 0.95rem;
}

/* Blog Section */
.blog-section {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.blog-posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(26, 48, 9, 0.08);
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(26, 48, 9, 0.16);
}

.blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.blog-content {
  padding: 1.5rem;
}

.blog-category {
  font-size: 0.8rem;
  color: var(--color-sienna);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.blog-title {
  font-size: 1.3rem;
  color: var(--color-green-900);
  margin-bottom: 0.75rem;
}

.blog-excerpt {
  font-size: 0.95rem;
  color: var(--color-text-mid);
  margin-bottom: 1rem;
}

.blog-meta {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* CTA Sections */
.cta-section {
  background: linear-gradient(135deg, var(--color-green-500) 0%, var(--color-green-700) 100%);
  color: white;
  padding: 3rem 2rem;
  text-align: center;
  margin: 3rem 0;
  border-radius: 8px;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-section h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--color-cream-100);
  margin-bottom: 2rem;
}

/* Footer */
.site-footer {
  background-color: var(--color-green-900);
  color: var(--color-cream-100);
  padding: 3rem 2rem 1rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

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

.footer-section a {
  color: var(--color-cream-100);
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  border-top: 1px solid var(--color-green-700);
  padding-top: 1rem;
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 1rem;
  }

  .story-content {
    grid-template-columns: 1fr;
  }

  .products-grid,
  .blog-posts,
  .pillars-grid {
    grid-template-columns: 1fr;
  }
}
