/*
Theme Name: Easy Green Company
Theme URI: https://www.easygreencompany.com
Author: Easy Green Company
Description: Custom WordPress theme for Easy Green Company — renewable energy and sustainable agriculture in Indonesia. Built on an Underscores-style starter structure with the Easy Green design system (deep forest green, cream, organic curved shapes).
Version: 1.1.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: easy-green
Tags: business, custom-menu, one-column, translation-ready
*/

/* ---------- Base ---------- */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body {
  margin: 0;
  background: #f4f1e4;
  color: #143026;
  font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: #4a7c46; text-decoration: none; }
a:hover { color: #143026; }
input, select, textarea, button { font-family: inherit; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Hover states carried over from the design ---------- */
.eg-h1:hover { background: #0d221a !important; }
.eg-h2:hover { border-color: #143026 !important; background: rgba(20,48,38,0.05) !important; }
.eg-h3:hover { color: #cfe3bd !important; }
.eg-h4:hover { transform: translateY(-4px) !important; box-shadow: 0 18px 34px rgba(0,0,0,0.28) !important; }
.eg-h5:hover { background: #fff !important; }
.eg-btn-dark:hover { background: #0d221a; }
.eg-btn-light:hover { background: #fff; }
.eg-btn-outline:hover { border-color: #143026; background: rgba(20,48,38,0.05); }
.eg-card { transition: transform .25s, box-shadow .25s; }
.eg-card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px rgba(0,0,0,0.28); }
.eg-footer-link:hover { color: #fff !important; }
.eg-social:hover { background: rgba(255,255,255,0.1); color: #fff !important; }
.eg-step-btn:hover { background: rgba(20,48,38,0.08); }
.eg-method:hover { border-color: #4a7c46 !important; }

/* ---------- Primary navigation ---------- */
.eg-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
  white-space: nowrap;
}
.eg-nav a {
  color: #143026;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.eg-nav a:hover,
.eg-nav .current-menu-item > a,
.eg-nav .current_page_item > a { color: #4a7c46; }

/* ---------- Forms ---------- */
.eg-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4a7c46;
}
.eg-field input,
.eg-field select,
.eg-field textarea {
  border: 1px solid rgba(20,48,38,0.18);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 400;
  color: #143026;
  background: #fff;
  letter-spacing: normal;
  text-transform: none;
}
.eg-field textarea { resize: vertical; }
.eg-hidden { display: none !important; }

/* ---------- Editor / blog fallback content ---------- */
.eg-content { max-width: 1440px; margin: 0 auto; padding: 56px 48px 96px; }
.eg-content h1, .eg-content h2, .eg-content h3 { letter-spacing: -0.01em; }
.eg-content p { font-size: 16px; line-height: 1.7; color: #5c6b5f; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .eg-grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  .eg-grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  .eg-split { grid-template-columns: minmax(0,1fr) !important; }
}
@media (max-width: 880px) {
  .eg-nav { display: none !important; }
  .eg-grid-4, .eg-grid-3 { grid-template-columns: minmax(0,1fr) !important; }
  .eg-hero-image { display: none !important; }
  .eg-hero-copy { max-width: 100% !important; }
  h1 { font-size: 46px !important; }
  h2 { font-size: 32px !important; }
}

/* ---------- Responsive fallbacks for the inline-styled page markup ---------- */
@media (max-width: 1180px) {
  [style*="grid-template-columns:repeat(8"],
  [style*="grid-template-columns:repeat(4,minmax(0,1fr))"],
  [style*="grid-template-columns:repeat(3,minmax(0,1fr))"] { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  [style*="minmax(0,1.35fr)"],
  [style*="minmax(0,1.4fr)"],
  [style*="minmax(0,1.25fr)"],
  [style*="minmax(0,1.05fr)"],
  [style*="grid-template-columns:minmax(0,34%)"],
  [style*="minmax(0,1.3fr) minmax(0,0.8fr)"] { grid-template-columns: minmax(0,1fr) !important; }
}
@media (max-width: 880px) {
  [style*="grid-template-columns:repeat(8"],
  [style*="grid-template-columns:repeat(4,minmax(0,1fr))"],
  [style*="grid-template-columns:repeat(3,minmax(0,1fr))"],
  [style*="grid-template-columns:repeat(2,minmax(0,1fr))"] { grid-template-columns: minmax(0,1fr) !important; }
  /* organic hero photos sit behind the copy on desktop; drop them on phones */
  [style*="border-radius:0 0 0 240px"],
  [style*="border-radius:0 0 0 260px"] { display: none !important; }
  [style*="max-width:600px"], [style*="max-width:640px"], [style*="max-width:720px"] { max-width: 100% !important; }
  [style*="padding:0 48px"] { padding-left: 22px !important; padding-right: 22px !important; }
  [style*="padding:40px 48px 0"], [style*="padding:48px 48px 0"] { padding-left: 22px !important; padding-right: 22px !important; }
  [style*="padding:24px 48px"] { padding-left: 22px !important; padding-right: 22px !important; }
  [style*="padding:64px 48px 28px"], [style*="padding:20px 48px 28px"] { padding-left: 22px !important; padding-right: 22px !important; }
  [style*="border-radius:200px 24px 24px 200px"] { border-radius: 24px !important; height: 320px !important; }
  h1 { font-size: 44px !important; }
  h2 { font-size: 30px !important; }
}

/* ---------- Language selector (EN | ID) ---------- */
.eg-lang { display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid rgba(20,48,38,0.18); border-radius: 999px; flex: none; }
.eg-lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 32px; padding: 0 10px; border-radius: 999px; color: #5c6b5f; font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-decoration: none; transition: background .2s, color .2s; }
.eg-lang a:hover { color: #143026; background: rgba(20,48,38,0.06); }
.eg-lang a.is-active { background: #143026; color: #cfe3bd; }
.eg-lang-sep { color: rgba(20,48,38,0.3); font-size: 11px; }
.eg-lang a:focus-visible,
.eg-easylite:focus-visible { outline: 2px solid #4a7c46; outline-offset: 2px; }

/* ---------- Easy Lite product image (homepage card 05) ---------- */
.eg-easylite { display: block; margin-top: auto; border-radius: 9px; overflow: hidden; background: #efe8dc; }
.eg-easylite img { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: contain; border-radius: 9px; transition: transform .35s ease; }
.eg-easylite:hover img { transform: scale(1.04); }
.eg-easylite--service { margin-top: 0; border-radius: 10px; }
.eg-easylite--service img { aspect-ratio: 16/11; border-radius: 10px; }

@media (max-width: 880px) {
  .eg-lang { margin-left: auto; }
}
@media (max-width: 560px) {
  #masthead { padding: 18px 20px !important; gap: 14px !important; }
  #masthead img { height: 36px !important; }
  .eg-header-cta { padding: 9px !important; }
  .eg-cta-label { display: none; }
}
