/* cumparlegume-fixes.css - Style fruitsauvage.co 2027 */
:root {
  --green:#1a3d2e;        /* verde principal - text/links, familie cu #1a4a1a */
  --green-dark:#2c8a3e;   /* verde-rezistent - accente secundare (OPțional) */
  --yellow:#fafafa;       /* fundal light - nu galben accent #f9a825 */
  --bg:#ffffff;           /* fundal pagina - alb curat */
  --white:#ffffff;        /* alb pentru text pe fundale colorate */
  --radius:16px;          /* breedți corner-uri coherente */
  --shadow-sm:0 2px 8px rgba(34,39,29,.06); /* shadow consistent */
  --shadow:0 8px 28px rgba(34,39,29,.10);
  --shadow-lg:0 18px 48px rgba(34,39,29,.14);
}

/* Basic body styling */
body {
  margin:0;
  font-family:'Lato',system-ui,-apple-system,'Segoe UI',sans-serif;
  color:var(--green);
  background:var(--bg);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}

/* Headings */
h1,h2,h3,h4{
  font-family:'Poppins',sans-serif;
  line-height:1.2;
  margin:0 0 .5em;
  color:var(--green-dark);
}
h1{font-size:clamp(2rem,5vw,3.5rem);font-weight:800;letter-spacing:-.02em}
h2{font-size:clamp(1.5rem,3.4vw,2.35rem);font-weight:700;letter-spacing:-.01em}
h3{font-size:1.15rem;font-weight:600}

/* Links - culoare verde fruitsauvage */
a{
  color:var(--green);
  text-decoration:none;
}
a:hover{
  color:var(--green-dark);
}

/* Container */
.wrap{
  width:min(1160px,92vw);
  margin-inline:auto;
}

/* Section padding */
section{
  padding:clamp(3rem,7vw,5.5rem) 0;
}
.center{text-align:center}
.eyebrow{
  display:inline-block;
  font-family:'Poppins',sans-serif;
  font-weight:600;
  font-size:.78rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--green);
  background:var(--bg);
  padding:.4rem .9rem;
  border-radius:999px;
  margin-bottom:1rem;
}
/* Sub-text */
.section-sub{
  color:var(--green-dark);
  max-width:62ch;
  font-size:1.05rem;
}
.center .section-sub{margin-inline:auto}

/* Buttons - simplu, fără gradient-uri elaborate */
.wp-element-button,
button,
input[type="submit"]{
  cursor:pointer;
  background:var(--bg);
  border:1px solid var(--green);
  color:var(--green);
  font-family:inherit;
  padding:.6rem 1.2rem;
  border-radius:var(--radius);
  font-size:1rem;
  transition:all .2s ease;
}
.wp-element-button:hover,
button:hover,
input[type="submit"]:hover{
  background:var(--green);
  color:#fff;
  border-color:var(--green);
}

/* Focus visible - outline portocale ca la fruitsauvage (dacă e cazul) */
*:focus-visible{
  outline:2px solid var(--green);
  outline-offset:2px;
}

/* Skip link styling */
.skip-link{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left:0;
  top:0;
  width:auto;
  height:auto;
  background:var(--bg);
  padding:.5rem 1rem;
  color:var(--green);
  z-index:1000;
}

/* Form styling - simplu, fara prea multe culori */
form .form-row{
  margin-bottom:1rem;
}
form label{
  display:block;
  margin-bottom:.3rem;
  color:var(--green);
  font-size:.9rem;
}
form input,
form select,
form textarea{
  width:100%;
  padding:.6rem .8rem;
  border:1px solid var(--bg);
  background:var(--bg);
  color:var(--green);
  font-size:1rem;
  transition:border-color .2s;
}
form input:focus,
form select:focus,
form textarea:focus{
  outline:none;
  border-color:var(--green);
}

/* Footer - simplu */
footer{
  margin-top:4rem;
  padding-top:2rem;
  border-top:1px solid var(--bg);
  color:var(--green-dark);
  font-size:.9rem;
  text-align:center;
}
footer span{
  color:var(--green);
  font-weight:700;
}

/* Reducem referența la galbenul #f9a825 - fruitsauvage.co nu folosește acel accent */

/* ============================================================
   2027.1 — unificare paleta peste tema (Franklin static + Astra)
   Scop: eliminam verdele teal #20b2aa, navy #2d3642, #333,
   #2e7d32, #1b5e20, albastrul din sidebar/nav.
   ============================================================ */

/* --- Bara de sus + banda header (homepage static) --- */
#top-bar { background:#143025 !important; }
#top-bar p, #top-bar a { color:#dce9df !important; }
#top-bar a:hover { color:#ffffff !important; }
header > #bot-bar { background:#1a3d2e !important; }
header #bot-bar .navbar-toggle .icon-bar { background:#ffffff !important; }

/* --- Titluri in continut --- */
#post-title,
#content h1, #content h2, #content h3, #content h4,
.entry-title,
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 {
  color:#1a3d2e !important;
}

/* --- Link-uri in continut: se vad ca link-uri --- */
#content a, .entry-content a { color:#1a3d2e !important; }
#content p a, #content li a,
.entry-content p a, .entry-content li a {
  text-decoration:underline !important;
  text-underline-offset:2px;
  text-decoration-thickness:1px;
}
#content a:hover, .entry-content a:hover { color:#2c8a3e !important; }

/* --- Sidebar: titluri + link-uri --- */
#sidebar a, .widget-area a, .widget a,
.wp-block-latest-posts__post-title { color:#1a3d2e !important; }
#sidebar a:hover, .widget a:hover { color:#2c8a3e !important; }

/* --- Astra: navigatie --- */
.main-header-menu a, .ast-builder-menu a, .site-navigation a,
.ast-header-break-point .main-header-menu a { color:#1a3d2e !important; }
.main-header-menu a:hover, .site-navigation a:hover { color:#2c8a3e !important; }
.ast-primary-header-bar { border-bottom:1px solid #e2ece3; }

/* --- Butoane: un singur stil, flat --- */
.ast-button, .wp-block-button__link,
button[type="submit"], input[type="submit"],
.wp-element-button {
  background:#1a3d2e !important;
  color:#ffffff !important;
  border:0 !important;
  border-radius:12px !important;
}
.ast-button:hover, .wp-block-button__link:hover,
button[type="submit"]:hover, input[type="submit"]:hover,
.wp-element-button:hover {
  background:#2c8a3e !important;
  color:#ffffff !important;
}

/* --- Formular contact (mu-plugin) --- */
.clcf__btn { background:#1a3d2e !important; border-radius:12px !important; }
.clcf__btn:hover { background:#2c8a3e !important; }
.clcf__titlu { color:#1a3d2e !important; }

/* --- Focus vizibil consistent --- */
*:focus-visible { outline:2px solid #2c8a3e; outline-offset:2px; }

/* --- Fix 2027.2: benzi teal pe margini + text buton CTA + search --- */
header[role="banner"]:not(.site-header):not(#masthead) { background:#1a3d2e !important; }
/* header-ul Astra ramane alb; nu fortam fundalul lui */

/* Link-urile-buton cu fundal inline pastreaza text alb */
#content a[style*="background"] { color:#ffffff !important; }
#content a[style*="background"]:hover { color:#ffffff !important; }

/* Cautare in bara de sus */
#header-search .search-field {
  background:#ffffff !important;
  border:1px solid #cfe0cf !important;
  border-radius:10px !important;
  padding:8px 10px !important;
  color:#1a3d2e !important;
}
#header-search button {
  background:#2c8a3e !important;
  border:0 !important;
  border-radius:10px !important;
  color:#ffffff !important;
  padding:8px 11px !important;
}
#header-search button .glyphicon { color:#ffffff !important; }

/* --- Fix 2027.3: glyphicon de search nu se randeaza -> text --- */
#header-search button .glyphicon { display:none !important; }
#header-search button::after { content:"Caută"; font-size:14px; font-weight:600; letter-spacing:.01em; }

/* ============================================================
   2027.4 — unificare header Astra cu homepage + finisaje
   ============================================================ */

/* --- Header WordPress (Astra) pe aceeasi banda verde ca homepage --- */
#masthead .ast-primary-header-bar,
#masthead .main-header-bar-wrap,
#masthead .ast-main-header-wrap {
  background:#1a3d2e !important;
  border-bottom:1px solid #143025 !important;
}
#masthead .site-title,
#masthead .site-title a,
#masthead .site-description { color:#ffffff !important; }
#masthead .custom-logo {
  background:#ffffff;
  padding:7px 9px;
  border-radius:10px;
  max-height:64px;
  width:auto;
}
#masthead .main-header-menu > .menu-item > .menu-link,
#masthead .ast-builder-menu a,
#masthead .main-header-menu a { color:#ffffff !important; }
#masthead .main-header-menu > .menu-item > .menu-link:hover,
#masthead .main-header-menu a:hover { color:#a8dcb2 !important; }
#masthead .main-header-menu .current-menu-item > .menu-link { color:#a8dcb2 !important; }

/* burger / mobil */
#masthead .ast-menu-toggle,
#masthead .ast-mobile-menu-trigger-minimal,
#masthead .main-header-menu-toggle { color:#ffffff !important; }
#masthead .ast-menu-toggle .ast-arrow-svg,
#masthead .ast-mobile-svg,
#masthead .ast-menu-toggle svg { fill:#ffffff !important; }
#masthead .ast-mobile-header-wrap,
#masthead .ast-mobile-header-content,
#masthead .ast-mobile-popup-content { background:#ffffff; }
#masthead .ast-mobile-header-content a,
#masthead .ast-mobile-popup-content a { color:#1a3d2e !important; }

@media (max-width: 921px) {
  #masthead .site-title { display:none !important; }
  #masthead .custom-logo { max-height:52px; }
  #masthead .ast-primary-header-bar { min-height:0; }
}

/* --- Bara de sus: text lizibil --- */
#top-bar p { font-size:13.5px !important; line-height:1.55 !important; max-width:640px; }
#top-bar a { font-size:12.5px !important; letter-spacing:.03em; }

/* --- Bara de cookie in paleta --- */
#cookie-law-info-bar, .cli-bar-container, #cliSettingsPopup { background:#143025 !important; }
#cookie-law-info-bar p, #cookie-law-info-bar span, .cli-bar-message { color:#dce9df !important; }
.cli-plugin-main-link, #cookie-law-info-bar a { color:#a8dcb2 !important; }
.cli-plugin-button, .cli-plugin-main-button, #cookie-law-info-bar .cli-plugin-button {
  background:#2c8a3e !important; color:#ffffff !important; border-radius:10px !important;
}

/* --- Bara GDPR proprie (inline styles, de aceea !important) --- */
#gdpr-b { background:#143025 !important; font-family:Inter,Lato,sans-serif !important; }
#gdpr-b a { color:#a8dcb2 !important; }
#gdpr-b button { background:#2c8a3e !important; border-radius:10px !important; font-weight:600 !important; }
