/*
Theme Name: EcoSyria
Theme URI: https://ecosyria.net/
Author: EcoSyria
Description: Custom editorial WordPress theme for EcoSyria.
Version: 0.1.0
Text Domain: ecosyria
*/

:root {
  --eco-green: #087443;
  --eco-green-dark: #075b37;
  --eco-black: #111111;
  --eco-white: #ffffff;
  --eco-offwhite: #f5f4ef;
  --eco-border: #d8d8d3;

  --eco-water: #39758b;
  --eco-climate: #39704c;
  --eco-energy: #a77b2e;
  --eco-pollution: #665b50;
  --eco-biodiversity: #61743d;
  --eco-data: #435b69;

  --container: 1286px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--eco-white);
  color: var(--eco-black);
  font-family: Arial, Tahoma, sans-serif;
}

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

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

.eco-container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

/* ========================================
   SITE HEADER
======================================== */

.site-header {
  background: var(--eco-white);
  border-bottom: 1px solid var(--eco-border);
}

.header-primary {
  min-height: 148px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
}

.header-side {
  font-size: 14px;
  line-height: 1.5;
}

.header-side--right {
  text-align: right;
}

.header-side--left {
  text-align: left;
}

.site-branding {
  text-align: center;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -3px;
  color: var(--eco-green-dark);
}

.site-tagline {
  margin-top: 9px;
  font-size: 14px;
  font-weight: 500;
  color: #4d4d4d;
}

/* ========================================
   MAIN NAVIGATION
======================================== */

.header-navigation {
  border-top: 1px solid var(--eco-border);
  border-bottom: 1px solid var(--eco-border);
  background: var(--eco-white);
}

.navigation-inner {
  min-height: 52px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.nav-mini-brand {
  color: var(--eco-green-dark);
  font-weight: 700;
  font-size: 20px;
  direction: ltr;
}

.primary-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(16px, 2vw, 31px);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 700;
}

.primary-menu a {
  display: flex;
  min-height: 51px;
  align-items: center;
  position: relative;
  white-space: nowrap;
}

.primary-menu a::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  bottom: -1px;
  height: 3px;
  background: var(--eco-green);
  transform: scaleX(0);
  transition: transform .18s ease;
}

.primary-menu a:hover::after,
.primary-menu .current-menu-item > a::after {
  transform: scaleX(1);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-icon {
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.header-icon svg {
  width: 21px;
  height: 21px;
}

/* ========================================
   SOCIAL STRIP
======================================== */

.social-strip {
  min-height: 44px;
  background: var(--eco-black);
  color: var(--eco-white);
}

.social-strip-inner {
  min-height: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 18px;
  direction: ltr;
}

.social-links a {
  opacity: .86;
  transition: opacity .15s ease;
}

.social-links a:hover {
  opacity: 1;
}

.social-label {
  font-size: 13px;
}

/* ========================================
   FRONT PAGE PLACEHOLDER
======================================== */

.front-intro {
  padding: 80px 0 110px;
}

.front-intro-label {
  color: var(--eco-green);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 15px;
}

.front-intro h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 1.12;
  font-weight: 700;
}

.front-intro p {
  max-width: 680px;
  margin: 25px 0 0;
  font-size: 20px;
  line-height: 1.8;
}

/* ========================================
   MOBILE
======================================== */

.mobile-menu-toggle {
  display: none;
}

@media (max-width: 1050px) {
  .primary-menu {
    gap: 14px;
    font-size: 13px;
  }
}

@media (max-width: 850px) {
  .eco-container {
    width: min(calc(100% - 30px), var(--container));
  }

  .header-primary {
    min-height: 105px;
    grid-template-columns: 1fr auto;
  }

  .header-side {
    display: none;
  }

  .site-branding {
    text-align: right;
  }

  .site-logo {
    font-size: 43px;
  }

  .site-tagline {
    text-align: right;
  }

  .navigation-inner {
    grid-template-columns: 1fr auto;
  }

  .nav-mini-brand,
  .primary-menu {
    display: none;
  }

  .mobile-menu-toggle {
    display: grid;
  }

  .social-strip-inner {
    justify-content: center;
  }

  .social-label {
    display: none;
  }

  .front-intro {
    padding: 55px 0 80px;
  }
}


/* =========================================================
   ECOSYRIA HEADER — V1
   ========================================================= */

.header-brand-area {
    background: #fff;
    border-bottom: 1px solid #deded9;
}

.header-brand-grid {
    min-height: 154px;
    display: grid;
    grid-template-columns: 1fr minmax(360px, 520px) 1fr;
    align-items: center;
    gap: 35px;
}

.header-logo-wrap {
    text-align: center;
}

.header-main-logo {
    display: inline-block;
    line-height: 0;
}

.header-main-logo img {
    display: block;
    width: min(430px, 100%);
    max-height: 105px;
    object-fit: contain;
    margin: 0 auto;
}

.header-tagline {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.header-meta {
    font-size: 13px;
    line-height: 1.6;
}

.header-meta-right {
    display: flex;
    justify-content: flex-start;
}

.header-meta-left {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.header-contact {
    direction: ltr;
}

.header-search-trigger {
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: inherit;
    cursor: pointer;
    padding: 8px 0;
}

.header-search-trigger svg {
    width: 19px;
    height: 19px;
}


/* NAV */

.main-navigation-wrap {
    background: #fff;
    border-bottom: 1px solid #d8d8d3;
}

.main-navigation {
    min-height: 52px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: stretch;
    gap: 26px;
}

.nav-brand {
    direction: ltr;
    align-self: center;
    color: var(--eco-green-dark);
    font-weight: 800;
    font-size: 19px;
    letter-spacing: -.5px;
}

.desktop-navigation {
    min-width: 0;
}

.primary-menu {
    min-height: 51px;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: clamp(15px, 1.6vw, 29px);
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu > li {
    display: flex;
}

.primary-menu > li > a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 51px;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.primary-menu > li > a::after {
    content: "";
    position: absolute;
    right: 0;
    left: 0;
    bottom: -1px;
    height: 3px;
    background: var(--eco-green);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .18s ease;
}

.primary-menu > li > a:hover::after,
.primary-menu > .current-menu-item > a::after {
    transform: scaleX(1);
}

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

.nav-search,
.menu-toggle {
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 8px;
}

.nav-search svg {
    width: 21px;
    height: 21px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 21px;
    height: 1.5px;
    background: #111;
}


/* THIRD STRIP */

.header-third {
    min-height: 44px;
    background: #111;
    color: #fff;
}

.header-third-inner {
    min-height: 44px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.header-third-label {
    font-size: 13px;
}

.header-social {
    direction: ltr;
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
}

.header-social a {
    opacity: .82;
}

.header-social a:hover {
    opacity: 1;
}


/* TABLET */

@media (max-width: 1050px) {

    .header-brand-grid {
        grid-template-columns: 1fr minmax(320px, 440px) 1fr;
    }

    .primary-menu {
        gap: 13px;
    }

    .primary-menu > li > a {
        font-size: 13px;
    }

}


/* MOBILE */

@media (max-width: 850px) {

    .header-brand-grid {
        min-height: 110px;
        display: flex;
        justify-content: center;
    }

    .header-meta {
        display: none;
    }

    .header-main-logo img {
        width: min(310px, 78vw);
        max-height: 75px;
    }

    .header-tagline {
        font-size: 12px;
        margin-top: 5px;
    }

    .main-navigation {
        min-height: 50px;
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .desktop-navigation {
        display: none;
    }

    .nav-brand {
        font-size: 18px;
    }

    .nav-search {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .header-third {
        min-height: 40px;
    }

    .header-third-inner {
        min-height: 40px;
        justify-content: center;
    }

    .header-third-label {
        display: none;
    }

}


/* =========================================================
   ECOSYRIA HEADER V2
   Structural rebuild based on Aljumhuriya proportions
   ========================================================= */

.eco-header {
    width: 100%;
    background: #fff;
    color: #111;
    direction: rtl;
}

.eco-head-container {
    width: min(calc(100% - 48px), 1286px);
    margin-inline: auto;
}


/* ---------- ROW 1 : 150px ---------- */

.eco-head-row1 {
    height: 150px;
    background: #fff;
}

.eco-head-row1-inner {
    height: 150px;
    display: grid;
    grid-template-columns: 1fr 360px 1fr;
    align-items: center;
}

.eco-head-logo {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eco-head-logo a {
    display: block;
    line-height: 0;
}

.eco-head-logo img {
    display: block;
    width: 300px !important;
    max-width: 300px !important;
    height: auto !important;
    max-height: 100px !important;
    object-fit: contain;
    margin: 0 auto;
}

.eco-head-side {
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 13px;
}

.eco-head-side-right {
    justify-content: flex-start;
}

.eco-head-side-left {
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    direction: ltr;
}

.eco-head-email {
    font-size: 12px;
}

.eco-search-button {
    border: 0;
    background: transparent;
    padding: 8px 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.eco-search-button svg,
.eco-nav-search svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}


/* ---------- ROW 2 : 51px ---------- */

.eco-head-row2 {
    height: 51px;
    border-top: 1px solid #d8d8d3;
    border-bottom: 1px solid #d8d8d3;
    background: #fff;
}

.eco-head-row2-inner {
    height: 50px;
    display: grid;
    grid-template-columns: 55px 1fr 55px;
    align-items: stretch;
}

.eco-main-nav {
    height: 50px;
    min-width: 0;
}

.eco-primary-menu,
.eco-main-nav > .primary-menu {
    height: 50px !important;
    min-height: 50px !important;
    display: flex !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 31px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.eco-primary-menu > li,
.eco-main-nav > .primary-menu > li {
    height: 50px !important;
    display: flex !important;
    align-items: stretch !important;
}

.eco-primary-menu > li > a,
.eco-main-nav > .primary-menu > li > a {
    height: 50px !important;
    min-height: 50px !important;
    display: flex !important;
    align-items: center !important;
    position: relative;
    padding: 0 !important;
    font-size: 14px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    white-space: nowrap;
}

.eco-primary-menu > li > a::after,
.eco-main-nav > .primary-menu > li > a::after {
    content: "";
    position: absolute;
    right: 0;
    left: 0;
    bottom: -1px;
    height: 3px;
    background: #087443;
    transform: scaleX(0);
    transition: transform .18s ease;
}

.eco-primary-menu > li > a:hover::after,
.eco-main-nav > .primary-menu > li > a:hover::after {
    transform: scaleX(1);
}

.eco-nav-edge {
    height: 50px;
    display: flex;
    align-items: center;
}

.eco-nav-edge-right {
    justify-content: flex-start;
}

.eco-nav-edge-left {
    justify-content: flex-end;
}

.eco-menu-button,
.eco-nav-search {
    width: 36px;
    height: 36px;
    padding: 7px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.eco-menu-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.eco-menu-button span {
    width: 21px;
    height: 1.5px;
    display: block;
    background: #111;
}


/* ---------- ROW 3 : 45px ---------- */

.eco-head-row3 {
    height: 45px;
    background: #fff;
    border-bottom: 1px solid #d8d8d3;
}

.eco-head-row3-inner {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.eco-head-tagline {
    font-size: 12px;
    color: #555;
}

.eco-head-socials {
    direction: ltr;
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 12px;
}


/* ---------- REMOVE OLD HEADER EFFECTS ---------- */

.eco-header + .site-main {
    margin-top: 0 !important;
}


/* ---------- TABLET ---------- */

@media (max-width: 1050px) {

    .eco-head-row1-inner {
        grid-template-columns: 1fr 310px 1fr;
    }

    .eco-head-logo img {
        width: 270px !important;
        max-width: 270px !important;
    }

    .eco-primary-menu,
    .eco-main-nav > .primary-menu {
        gap: 17px !important;
    }

    .eco-primary-menu > li > a,
    .eco-main-nav > .primary-menu > li > a {
        font-size: 13px !important;
    }

}


/* ---------- MOBILE ---------- */

@media (max-width: 800px) {

    .eco-head-container {
        width: min(calc(100% - 28px), 1286px);
    }

    .eco-head-row1,
    .eco-head-row1-inner {
        height: 104px;
    }

    .eco-head-row1-inner {
        display: flex;
        justify-content: center;
    }

    .eco-head-side {
        display: none;
    }

    .eco-head-logo {
        height: 104px;
    }

    .eco-head-logo img {
        width: 240px !important;
        max-width: 72vw !important;
        max-height: 76px !important;
    }

    .eco-head-row2,
    .eco-head-row2-inner {
        height: 49px;
    }

    .eco-head-row2-inner {
        grid-template-columns: 45px 1fr 45px;
    }

    .eco-main-nav {
        overflow: hidden;
    }

    .eco-primary-menu,
    .eco-main-nav > .primary-menu {
        justify-content: flex-start !important;
        overflow-x: auto;
        gap: 20px !important;
        scrollbar-width: none;
    }

    .eco-primary-menu::-webkit-scrollbar,
    .eco-main-nav > .primary-menu::-webkit-scrollbar {
        display: none;
    }

    .eco-head-row3 {
        height: 40px;
    }

    .eco-head-row3-inner {
        height: 39px;
    }

    .eco-head-tagline {
        display: none;
    }

    .eco-head-socials {
        width: 100%;
        justify-content: center;
    }

}
