/*
Theme Name: Jela Theme
Theme URI: https://jela.com.hr
Author: Jela komerc d.o.o.
Author URI: https://jela.com.hr
Description: Moderna tema za Drvene kuće Jela s podrškom za HR, EN, SI jezike, Instagram integracijom i Gutenberg blok editorom.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jela-theme
Tags: custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, block-patterns, wide-blocks
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #292524;
  background: #fafaf9;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

ul { list-style: none; }

/* ===== UTILITY CLASSES ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .container { padding: 0 24px; }
}

@media (min-width: 1024px) {
  .container { padding: 0 32px; }
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

@media (min-width: 768px) {
  .nav-inner { height: 80px; }
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.nav-logo-icon {
  width: 40px;
  height: 40px;
  background: #047857;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
}

.nav-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #065f46;
  letter-spacing: -0.02em;
}

.nav-logo-sub {
  display: none;
  font-size: 11px;
  color: #737373;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-left: 8px;
}

@media (min-width: 640px) {
  .nav-logo-sub { display: inline; }
}

.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #525252;
  transition: all 0.2s;
}

.nav-link:hover {
  background: #ecfdf5;
  color: #047857;
}

.nav-link.active {
  background: #047857;
  color: white;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f5f5f4;
  padding: 4px;
  border-radius: 8px;
}

.lang-btn {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #737373;
  transition: all 0.2s;
}

.lang-btn.active {
  background: white;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  color: #047857;
}

.lang-btn:hover:not(.active) {
  color: #404040;
}

.lang-flag {
  margin-right: 4px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex;
  padding: 8px;
  border-radius: 8px;
  color: #525252;
}

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

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  background: white;
  border-top: 1px solid #f5f5f4;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.mobile-menu.open { display: block; }

.mobile-menu .container {
  padding: 12px 16px;
}

.mobile-menu-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #525252;
  transition: all 0.2s;
}

.mobile-menu-link.active {
  background: #047857;
  color: white;
}

.mobile-menu-link:hover:not(.active) {
  background: #ecfdf5;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.4), rgba(0,0,0,0.7));
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 16px;
  max-width: 896px;
  margin: 0 auto;
  padding-top: 80px;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 24px;
  padding: 8px 24px;
  background: rgba(4, 120, 87, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 9999px;
}

.hero-badge span {
  color: white;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-title {
  font-size: 40px;
  font-weight: 700;
  color: white;
  margin-bottom: 24px;
  line-height: 1.1;
}

@media (min-width: 640px) {
  .hero-title { font-size: 48px; }
}

@media (min-width: 768px) {
  .hero-title { font-size: 72px; }
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 32px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .hero-subtitle { font-size: 22px; }
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

@media (min-width: 640px) {
  .hero-actions { flex-direction: row; }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background: #059669;
  color: white;
  border-radius: 12px;
  font-weight: 600;
  font-size: 18px;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.3);
}

.btn-primary:hover {
  background: #047857;
  box-shadow: 0 8px 20px rgba(4, 120, 87, 0.4);
  transform: translateY(-2px);
}

.hero-price {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 16px 24px;
  border: 1px solid rgba(255,255,255,0.2);
}

.hero-price span {
  font-size: 30px;
  font-weight: 700;
  color: white;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

.hero-scroll svg {
  width: 24px;
  height: 24px;
  color: rgba(255,255,255,0.7);
}

/* ===== SECTION COMMON ===== */
.section {
  padding: 80px 0;
}

@media (min-width: 768px) {
  .section { padding: 112px 0; }
}

.section-white { background: white; }
.section-stone { background: #fafaf9; }
.section-emerald { background: #047857; }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  font-size: 14px;
  font-weight: 600;
  color: #059669;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.section-title {
  font-size: 30px;
  font-weight: 700;
  color: #292524;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .section-title { font-size: 48px; }
}

.section-desc {
  font-size: 18px;
  color: #737373;
  max-width: 640px;
  margin: 0 auto;
}

/* ===== WHY SECTION - CARDS GRID ===== */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .why-grid { grid-template-columns: repeat(4, 1fr); }
}

.why-card {
  padding: 24px;
  border-radius: 16px;
  background: #fafaf9;
  border: 1px solid #f5f5f4;
  transition: all 0.3s;
}

.why-card:hover {
  background: #ecfdf5;
  border-color: #a7f3d0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.why-card-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.why-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #292524;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.why-card:hover h3 { color: #047857; }

.why-card p {
  font-size: 14px;
  color: #737373;
  line-height: 1.6;
}

/* ===== PRODUCTS SECTION ===== */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

.product-card {
  display: flex;
  gap: 24px;
  padding: 32px;
  border-radius: 16px;
  background: white;
  border: 1px solid #f5f5f4;
  transition: all 0.3s;
}

.product-card:hover {
  border-color: #a7f3d0;
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.product-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: #ecfdf5;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  transition: all 0.3s;
}

.product-card:hover .product-icon {
  background: #047857;
}

.product-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #292524;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.product-card:hover h3 { color: #047857; }

.product-card p {
  color: #737373;
  line-height: 1.6;
}

/* ===== PRICE SECTION ===== */
.price-section {
  padding: 80px 0;
  background: #047857;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .price-section { padding: 112px 0; }
}

.price-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.price-content {
  position: relative;
  max-width: 896px;
  margin: 0 auto;
  text-align: center;
  padding: 0 16px;
}

.price-label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(167, 243, 208, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.price-amount {
  font-size: 48px;
  font-weight: 700;
  color: white;
  margin: 16px 0 8px;
}

@media (min-width: 768px) {
  .price-amount { font-size: 72px; }
}

.price-unit {
  font-size: 20px;
  color: #a7f3d0;
  margin-bottom: 16px;
}

.price-subtitle {
  color: rgba(167, 243, 208, 0.6);
  max-width: 480px;
  margin: 0 auto;
}

/* ===== PRICE BREAKDOWN SECTION ===== */
.price-breakdown-section {
  padding: 80px 0;
  background: #fafaf9;
}

@media (min-width: 768px) {
  .price-breakdown-section { padding: 100px 0; }
}

.price-breakdown-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.price-breakdown-title {
  font-size: 30px;
  font-weight: 700;
  color: #292524;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .price-breakdown-title { font-size: 42px; }
}

.price-breakdown-intro {
  font-size: 17px;
  color: #525252;
  line-height: 1.7;
}

.price-breakdown-intro strong {
  color: #047857;
  font-weight: 700;
}

.price-breakdown-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.price-breakdown-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: white;
  border: 1px solid #e7e5e4;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.price-breakdown-card:hover {
  border-color: #a7f3d0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.price-breakdown-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: #ecfdf5;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.price-breakdown-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: #292524;
  margin-bottom: 4px;
}

.price-breakdown-spec {
  font-size: 13px;
  font-weight: 600;
  color: #047857;
  margin-bottom: 8px;
}

.price-breakdown-body p:last-child {
  font-size: 14px;
  color: #737373;
  line-height: 1.65;
}

.price-breakdown-footer {
  text-align: center;
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.price-breakdown-guarantee {
  font-size: 16px;
  font-weight: 500;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 14px;
  padding: 20px 28px;
  max-width: 680px;
  line-height: 1.6;
}

/* Dark mode — Price Breakdown */
body.dark-mode .price-breakdown-section { background: #1c1917; }
body.dark-mode .price-breakdown-title { color: #fafaf9; }
body.dark-mode .price-breakdown-intro { color: #a8a29e; }
body.dark-mode .price-breakdown-card {
  background: #292524;
  border-color: #44403c;
}

body.dark-mode .price-breakdown-card:hover {
  border-color: #047857;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

body.dark-mode .price-breakdown-icon { background: #064e3b; }
body.dark-mode .price-breakdown-body h3 { color: #fafaf9; }
body.dark-mode .price-breakdown-body p:last-child { color: #a8a29e; }
body.dark-mode .price-breakdown-guarantee {
  background: #064e3b;
  border-color: #047857;
  color: #6ee7b7;
}

/* ===== PRODUCTION SECTION ===== */
.production-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .production-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .production-grid { grid-template-columns: repeat(4, 1fr); }
}

.production-card {
  padding: 24px;
  background: #ecfdf5;
  border: 1px solid #d1fae5;
  border-radius: 16px;
  text-align: center;
}

.production-card:nth-child(n+2) {
  background: #fafaf9;
  border-color: #f5f5f4;
}

.production-card-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.production-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #065f46;
  margin-bottom: 8px;
}

.production-card:nth-child(n+2) h3 { color: #292524; }

.production-card p {
  font-size: 14px;
  color: #525252;
}

/* ===== GALLERY SECTION ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
}

.gallery-item.featured {
  grid-column: span 1;
}

@media (min-width: 640px) {
  .gallery-item.featured {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.gallery-item img {
  width: 100%;
  height: 256px;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-item.featured img {
  height: 256px;
}

@media (min-width: 640px) {
  .gallery-item.featured img { height: 100%; }
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent, transparent);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay span {
  color: white;
  font-weight: 500;
}

/* ===== ABOUT SECTION ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid { grid-template-columns: repeat(2, 1fr); }
}

.about-title {
  font-size: 30px;
  font-weight: 700;
  color: #292524;
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .about-title { font-size: 48px; }
}

.about-subtitle {
  font-size: 20px;
  color: #047857;
  font-weight: 500;
  margin-bottom: 24px;
}

.about-text {
  color: #737373;
  line-height: 1.7;
  margin-bottom: 32px;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: white;
  border-radius: 12px;
  border: 1px solid #f5f5f4;
}

.about-feature-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.about-feature h4 {
  font-size: 14px;
  font-weight: 700;
  color: #292524;
}

.about-feature p {
  font-size: 12px;
  color: #737373;
  margin-top: 4px;
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap img {
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
  width: 100%;
}

.about-badge {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: #047857;
  color: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.about-badge-number {
  font-size: 36px;
  font-weight: 700;
}

.about-badge-text {
  font-size: 14px;
  color: #a7f3d0;
}

/* ===== INSTAGRAM SECTION ===== */
.instagram-section {
  padding: 64px 0;
  background: linear-gradient(to bottom, #047857, #065f46);
}

@media (min-width: 768px) {
  .instagram-section { padding: 80px 0; }
}

.instagram-content {
  max-width: 896px;
  margin: 0 auto;
  text-align: center;
  padding: 0 16px;
}

.instagram-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border-radius: 9999px;
  padding: 8px 20px;
  margin-bottom: 24px;
}

.instagram-badge svg {
  width: 20px;
  height: 20px;
  color: white;
}

.instagram-badge span {
  color: white;
  font-weight: 500;
  font-size: 14px;
}

.instagram-title {
  font-size: 30px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .instagram-title { font-size: 36px; }
}

.instagram-subtitle {
  color: #a7f3d0;
  font-size: 18px;
  margin-bottom: 32px;
}

.btn-instagram {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: white;
  color: #047857;
  border-radius: 12px;
  font-weight: 600;
  font-size: 18px;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-instagram:hover {
  background: #ecfdf5;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

.btn-instagram svg {
  width: 20px;
  height: 20px;
}

/* ===== FACEBOOK BUTTON (ispod Instagrama) ===== */
.btn-facebook {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #1877F2;
  color: white;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
  margin-top: 12px;
}

.btn-facebook:hover {
  background: #166fe5;
  box-shadow: 0 8px 24px rgba(24, 119, 242, 0.4);
  transform: translateY(-2px);
}

.btn-facebook svg {
  width: 18px;
  height: 18px;
}

/* ===== CONTACT SECTION ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr 2fr; }
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: #fafaf9;
  border-radius: 16px;
}

.contact-info-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: #ecfdf5;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-icon svg {
  width: 24px;
  height: 24px;
  color: #047857;
}

.contact-info-item h4 {
  font-weight: 700;
  color: #292524;
}

.contact-info-item p {
  color: #737373;
  margin-top: 4px;
}

.contact-form {
  background: #fafaf9;
  padding: 32px;
  border-radius: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .form-row { grid-template-columns: repeat(2, 1fr); }
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #404040;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #e7e5e4;
  background: white;
  font-family: inherit;
  font-size: 16px;
  color: #292524;
  outline: none;
  transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.form-group textarea {
  resize: none;
  min-height: 120px;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background: #059669;
  color: white;
  border-radius: 12px;
  font-weight: 600;
  font-size: 18px;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(167, 243, 208, 0.3);
  width: 100%;
}

@media (min-width: 640px) {
  .btn-submit { width: auto; }
}

.btn-submit:hover {
  background: #047857;
  box-shadow: 0 8px 20px rgba(167, 243, 208, 0.4);
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer {
  background: #1c1917;
  color: #a8a29e;
  padding: 48px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo-icon {
  width: 40px;
  height: 40px;
  background: #047857;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
}

.footer-company {
  font-size: 18px;
  font-weight: 700;
  color: white;
}

.footer-tradition {
  font-size: 14px;
  color: #a8a29e;
  line-height: 1.6;
}

.footer-since {
  font-size: 14px;
  color: #737373;
  margin-top: 8px;
}

.footer h4 {
  color: white;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link {
  font-size: 14px;
  color: #a8a29e;
  transition: color 0.2s;
  text-align: left;
}

.footer-link:hover { color: white; }

.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #a8a29e;
  transition: color 0.2s;
}

.footer-social:hover { color: white; }

.footer-social svg {
  width: 24px;
  height: 24px;
}

.footer-bottom {
  border-top: 1px solid #292524;
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; }
}

.footer-copy {
  font-size: 14px;
  color: #737373;
}

.footer-iso {
  font-size: 12px;
  color: #525252;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
  padding: 16px;
  cursor: pointer;
}

.lightbox.active { display: flex; }

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  color: rgba(255,255,255,0.8);
  padding: 8px;
}

.lightbox-close:hover { color: white; }

.lightbox-close svg {
  width: 32px;
  height: 32px;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

/* ===== RESPONSIVE HELPERS ===== */
.hidden { display: none; }
.block { display: block; }

@media (max-width: 767px) {
  .nav-links { display: none; }
}

/* spacing between sections */
.space-before { margin-top: 0; }

/* ===== PAGE CONTENT (Gutenberg blocks on front-end) ===== */
.jela-content-wrapper {
  background: #fafaf9;
}

.jela-page-content {
  padding-top: 80px;
  padding-bottom: 80px;
}

.jela-page-content h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #292524;
  margin-bottom: 16px;
  text-align: center;
}

.jela-page-content h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #292524;
  margin-top: 48px;
  margin-bottom: 16px;
}

.jela-page-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #292524;
  margin-top: 32px;
  margin-bottom: 12px;
}

.jela-page-content p {
  color: #525252;
  line-height: 1.7;
  margin-bottom: 16px;
}

.jela-page-content strong {
  color: #292524;
}

.jela-page-content ul,
.jela-page-content ol {
  padding-left: 1.5rem;
  margin-bottom: 16px;
}

.jela-page-content li {
  color: #525252;
  margin-bottom: 8px;
  line-height: 1.6;
}

.jela-page-content a {
  color: #059669;
  text-decoration: underline;
}

.jela-page-content a:hover {
  color: #047857;
}

.jela-page-content img {
  border-radius: 16px;
  margin: 24px 0;
}

.jela-page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.jela-page-content td,
.jela-page-content th {
  padding: 12px 16px;
  border-bottom: 1px solid #e7e5e4;
  text-align: left;
}

.jela-page-content th {
  font-weight: 600;
  background: #fafaf9;
}

.jela-page-content .wp-block-columns {
  margin-top: 32px;
}

.jela-page-content .wp-block-column {
  padding: 24px;
  border-radius: 16px;
}

.jela-page-content .wp-block-button__link {
  background: #059669;
  color: white;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}

.jela-page-content .wp-block-button__link:hover {
  background: #047857;
}

.jela-page-content blockquote {
  border-left: 4px solid #059669;
  padding: 16px 24px;
  background: #ecfdf5;
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
  color: #525252;
  font-style: italic;
}

/* Dark mode — page content */
body.dark-mode .jela-content-wrapper {
  background: #1c1917;
}

body.dark-mode .jela-page-content h1,
body.dark-mode .jela-page-content h2,
body.dark-mode .jela-page-content h3 {
  color: #fafaf9;
}

body.dark-mode .jela-page-content p,
body.dark-mode .jela-page-content li {
  color: #a8a29e;
}

body.dark-mode .jela-page-content strong {
  color: #e7e5e4;
}

body.dark-mode .jela-page-content td,
body.dark-mode .jela-page-content th {
  border-color: #44403c;
}

body.dark-mode .jela-page-content th {
  background: #292524;
}

body.dark-mode .jela-page-content blockquote {
  background: #064e3b;
  border-color: #047857;
  color: #6ee7b7;
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  transition: all 0.2s;
  color: #525252;
}

.theme-toggle:hover {
  background: #f5f5f4;
}

.theme-icon {
  width: 20px;
  height: 20px;
}

/* ===== DARK MODE ===== */
body.dark-mode {
  background: #1c1917;
  color: #e7e5e4;
}

body.dark-mode .nav {
  background: rgba(28, 25, 23, 0.95);
}

body.dark-mode .nav-logo-text { color: #34d399; }
body.dark-mode .nav-logo-sub { color: #a8a29e; }

body.dark-mode .nav-link {
  color: #a8a29e;
}

body.dark-mode .nav-link:hover {
  background: #292524;
  color: #34d399;
}

body.dark-mode .nav-link.active {
  background: #047857;
  color: white;
}

body.dark-mode .lang-switcher {
  background: #292524;
}

body.dark-mode .lang-btn { color: #a8a29e; }
body.dark-mode .lang-btn.active {
  background: #44403c;
  color: #34d399;
}

body.dark-mode .theme-toggle { color: #fbbf24; }
body.dark-mode .theme-toggle:hover { background: #292524; }

body.dark-mode .mobile-menu-btn { color: #a8a29e; }
body.dark-mode .mobile-menu-btn:hover { background: #292524; }

body.dark-mode .mobile-menu {
  background: #1c1917;
  border-color: #292524;
}

body.dark-mode .mobile-menu-link { color: #a8a29e; }
body.dark-mode .mobile-menu-link:hover:not(.active) { background: #292524; }

/* Dark mode - sections */
body.dark-mode .section-white { background: #292524; }
body.dark-mode .section-stone { background: #1c1917; }

/* Dark mode - specific section headers inside dark sections */
body.dark-mode .section-label { color: #34d399; }
body.dark-mode .section-header .section-title { color: #fafaf9; }
body.dark-mode .section-header .section-desc { color: #a8a29e; }

body.dark-mode .section-title { color: #fafaf9; }
body.dark-mode .section-desc { color: #a8a29e; }

/* Dark mode - why cards */
body.dark-mode .why-card {
  background: #44403c;
  border-color: #57534e;
}

body.dark-mode .why-card:hover {
  background: #292524;
  border-color: #047857;
}

body.dark-mode .why-card h3 { color: #fafaf9; }
body.dark-mode .why-card p { color: #a8a29e; }

/* Dark mode - product cards */
body.dark-mode .product-card {
  background: #292524;
  border-color: #44403c;
}

body.dark-mode .product-card h3 { color: #fafaf9; }
body.dark-mode .product-card p { color: #a8a29e; }
body.dark-mode .product-icon { background: #292524; }

/* Dark mode - production cards */
body.dark-mode .production-card {
  background: #292524;
  border-color: #44403c;
}

body.dark-mode .production-card:first-child {
  background: #064e3b;
  border-color: #047857;
}

body.dark-mode .production-card h3 { color: #fafaf9; }
body.dark-mode .production-card p { color: #a8a29e; }

/* Dark mode - about */
body.dark-mode .about-title { color: #fafaf9; }
body.dark-mode .about-subtitle { color: #34d399; }
body.dark-mode .about-text { color: #a8a29e; }

body.dark-mode .about-feature {
  background: #292524;
  border-color: #44403c;
}

body.dark-mode .about-feature h4 { color: #fafaf9; }
body.dark-mode .about-feature p { color: #a8a29e; }

/* Dark mode - contact */
body.dark-mode .contact-info-item { background: #44403c; }
body.dark-mode .contact-info-item h4 { color: #fafaf9; }
body.dark-mode .contact-info-item p { color: #a8a29e; }

body.dark-mode .contact-form { background: #292524; }
body.dark-mode .contact-form label { color: #d6d3d1; }

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
  background: #44403c;
  border-color: #57534e;
  color: #fafaf9;
}

body.dark-mode .contact-form input:focus,
body.dark-mode .contact-form textarea:focus {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
}

/* Dark mode - Instagram feed */
body.dark-mode .instagram-feed-item { border-color: #44403c; }

/* Dark mode - Instagram section */
body.dark-mode .instagram-section {
  background: linear-gradient(to bottom, #064e3b, #022c22);
}

body.dark-mode .instagram-title { color: #fafaf9; }
body.dark-mode .instagram-subtitle { color: #6ee7b7; }
body.dark-mode .instagram-badge {
  background: rgba(255,255,255,0.08);
}

body.dark-mode .btn-instagram {
  background: #065f46;
  color: #6ee7b7;
}

body.dark-mode .btn-instagram:hover {
  background: #047857;
  color: white;
}

body.dark-mode .btn-facebook {
  background: #1d4ed8;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
}

body.dark-mode .btn-facebook:hover {
  background: #1e40af;
  box-shadow: 0 8px 24px rgba(29, 78, 216, 0.4);
}

/* Dark mode - footer (always dark, but adjust if needed) */
body.dark-mode .footer { background: #0c0a09; }

/* Animation for cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-card {
  animation: fadeInUp 0.5s ease forwards;
}

/* ===== INSTAGRAM FEED ===== */
.instagram-feed-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .instagram-feed-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .instagram-feed-grid { grid-template-columns: repeat(4, 1fr); }
}

.instagram-feed-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 1;
  display: block;
  cursor: pointer;
}

.instagram-feed-item.featured {
  grid-column: span 2;
  grid-row: span 2;
}

.instagram-feed-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.instagram-feed-item:hover img {
  transform: scale(1.08);
}

.instagram-feed-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}

.instagram-feed-item:hover .instagram-feed-overlay {
  opacity: 1;
}

.instagram-feed-date {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
}

.instagram-feed-caption {
  font-size: 13px;
  color: white;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.instagram-feed-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: white;
  font-weight: 500;
}

.instagram-video-badge,
.instagram-carousel-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  border-radius: 6px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.instagram-embed-wrap {
  max-width: 540px;
  margin: 0 auto;
}

.instagram-no-posts {
  text-align: center;
  color: #737373;
  padding: 40px;
}

.instagram-fallback {
  text-align: center;
  padding: 20px;
}

/* Instagram feed loading state */
.instagram-feed.loading .instagram-feed-grid {
  opacity: 0.5;
  pointer-events: none;
}

/* Instagram feed mobile adjustments */
@media (max-width: 639px) {
  .instagram-feed-item.featured {
    grid-column: span 2;
    grid-row: span 1;
  }

  .instagram-feed-caption {
    -webkit-line-clamp: 2;
  }
}
