/* ======================================================
   GREEN VIEW IMPEX — MASTER STYLESHEET
   ====================================================== */

/* =========================
   CSS VARIABLES
   ========================= */
:root{
  --brand-green:#7FBF2E;
  --brand-green-dark:#5E8F1F;
  --brand-green-soft:#EAF4DC;

  --brand-dark:#1F2D16;
  --brand-muted:#5F6D57;
  --brand-border:#DDE6D3;

  --radius:18px;
  --shadow:0 10px 28px rgba(20,53,35,.10);
  --container:1140px;
  --header-height:78px;
}

/* =========================
   RESET / BASE
   ========================= */
*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--brand-dark);
  background:#fff;
}

img{
  max-width:100%;
  display:block;
}

a{ color:var(--brand-green-dark); text-decoration:none; }
a:hover{ color:var(--brand-green); }

.container{
  width:min(var(--container), calc(100% - 40px));
  margin-inline:auto;
}

.muted{ color:var(--brand-muted); }

/* =========================
   HEADER
   ========================= */
.header{
  position:sticky;
  top:0;
  z-index:50;
  background:#fff;
  border-bottom:1px solid rgba(221,230,211,.85);
}

.header__inner{
  display:flex;
  align-items:center;
  gap:18px;
  padding:14px 0;
}

.brand__logo{
  height:34px;
  width:auto;
}

.nav{
  display:flex;
  gap:18px;
  margin-left:auto;
}

.nav__link{
  font-size:14px;
  padding:8px 6px;
  color:rgba(31,45,22,.78);
}

.nav__link:hover{ color:var(--brand-green-dark); }

.nav__link.is-active{
  color:var(--brand-green-dark);
  position:relative;
}

.nav__link.is-active::after{
  content:"";
  position:absolute;
  left:6px;
  right:6px;
  bottom:-8px;
  height:3px;
  border-radius:999px;
  background:var(--brand-green);
}

.nav__toggle{
  display:none;
  background:transparent;
  border:0;
  font-size:22px;
  margin-left:auto;
}

.header__cta{ margin-left:10px; }

/* =========================
   BUTTONS
   ========================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 18px;
  border-radius:999px;
  font-weight:700;
  font-size:14px;
  border:1px solid transparent;
  cursor:pointer;
}

.btn--primary{
  background:var(--brand-green);
  color:#fff;
  border-color:rgba(127,191,46,.35);
}

.btn--primary:hover{
  background:var(--brand-green-dark);
}

.btn--secondary{
  background:#143523;
  color:#fff;
  border:1px solid rgba(20,53,35,.25);
}

.btn--ghost{
  background:#fff;
  color:var(--brand-dark);
  border:1px solid var(--brand-border);
}

.btn--ghost:hover{
  border-color:rgba(127,191,46,.55);
  color:var(--brand-green-dark);
}

/* =========================
   HOME HERO
   ========================= */
.hero{
  position:relative;
  overflow:hidden;
}

.hero__inner{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:28px;
  padding:58px 0 36px;
  align-items:center;
}

.hero__content h1{
  font-size:52px;
  line-height:1.05;
  margin:0 0 12px;
}

.hero__visual{
  border-radius:22px;
  overflow:hidden;
  box-shadow:var(--shadow);
  border:1px solid rgba(221,230,211,.7);
}

.hero__image{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}

/* =========================
   INNER PAGE HERO
   ========================= */
.inner-hero{
  min-height:500px;
  background-size:cover;
  background-position:right center;
  background-repeat:no-repeat;
  position:relative;
}

.inner-hero__overlay{
  position:absolute;
  inset:0;
  padding-top:var(--header-height);
  display:flex;
  align-items:center;
  background:linear-gradient(
    90deg,
    rgba(234,244,220,.96) 0%,
    rgba(234,244,220,.85) 45%,
    rgba(234,244,220,.55) 65%,
    rgba(234,244,220,.15) 100%
  );
}

.inner-hero__content{
  max-width:620px;
}

.inner-hero__title{
  font-size:48px;
  font-weight:800;
  margin:0 0 8px;
}

.inner-hero__subtitle{
  font-size:16px;
  max-width:52ch;
  color:var(--brand-muted);
}

/* =========================
   SECTIONS
   ========================= */
.section{ padding:42px 0; }
.section--soft{ background:var(--brand-green-soft); }

.section__head h2{
  margin:0 0 6px;
  font-size:26px;
}

.section__head p{
  margin:0;
  line-height:1.65;
  max-width:78ch;
}

/* =========================
   GRIDS / CARDS
   ========================= */
.grid{ display:grid; gap:18px; }
.grid--2{ grid-template-columns:1fr 1fr; }
.grid--4{ grid-template-columns:repeat(4,1fr); }

.card,
.cat,
.content-card{
  background:#fff;
  border:1px solid rgba(221,230,211,.95);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.content-card{ padding:26px; }

/* =========================
   PRODUCT GRID (ALL PRODUCT PAGES)
   ========================= */
.pgrid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
  margin-top:20px;
}

.p{
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

.p img{
  width:100%;
  height:160px;
  object-fit:cover;
}

.p .b{
  padding:16px;
  flex:1;
  display:flex;
  flex-direction:column;
}

.p h3{
  margin:0 0 6px;
  font-size:16px;
  color:var(--brand-green-dark);
}

.p p{
  margin:0 0 12px;
  font-size:13px;
  color:var(--brand-muted);
  line-height:1.5;
  flex:1;
}

.p .actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* =========================
   CONTACT / ENQUIRY FORMS
   ========================= */
.field{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-top:12px;
}

.field label{
  font-weight:700;
  font-size:14px;
}

.field input,
.field textarea,
.field select{
  border:1px solid var(--brand-border);
  border-radius:14px;
  padding:12px;
  font-size:14px;
  outline:none;
}

.field textarea{ min-height:120px; resize:vertical; }

.field input:focus,
.field textarea:focus{
  border-color:rgba(127,191,46,.65);
  box-shadow:0 0 0 4px rgba(127,191,46,.12);
}

.contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

/* =========================
   FOOTER
   ========================= */
.footer{
  padding:34px 0 18px;
  border-top:1px solid rgba(221,230,211,.85);
}

.footer__grid{
  display:grid;
  grid-template-columns:1.1fr .9fr 1.2fr;
  gap:18px;
}

.footer-divider-full{
  width:100%;
  height:1px;
  background:linear-gradient(
    to right,
    transparent,
    rgba(127,191,46,.35),
    transparent
  );
  margin:26px 0 16px;
}

.footer__bottom{
  font-size:13px;
  color:var(--brand-muted);
}

.footer__bottom--flex{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}

.footer-dev{ opacity:.75; }
.footer-dev a{ font-weight:600; }

/* =========================
   RESPONSIVE
   ========================= */
@media(max-width:1024px){
  .grid--4,
  .pgrid{ grid-template-columns:repeat(2,1fr); }
  .grid--2,
  .contact-grid{ grid-template-columns:1fr; }

  .hero__inner{ grid-template-columns:1fr; }

  .nav{ display:none; }
  .nav__toggle{ display:block; }
  .header__cta{ display:none; }
}

@media(max-width:640px){
  .pgrid{ grid-template-columns:1fr; }
  .footer__grid{ grid-template-columns:1fr; }
  .footer__bottom--flex{
    flex-direction:column;
    text-align:center;
  }
  .inner-hero__title{ font-size:28px; }
}
/* =========================
   FOOTER (FINAL)
   ========================= */
.footer{
  padding:34px 0 18px;
  border-top:1px solid rgba(221,230,211,.85);
}

.footer__grid{
  display:grid;
  grid-template-columns:1.1fr .9fr 1.2fr;
  gap:18px;
}

.footer h4{
  margin:0 0 10px;
}

.footer a{
  color:var(--brand-green-dark);
  text-decoration:none;
}

.footer a:hover{
  color:var(--brand-green);
}

.footer-divider-full{
  width:100%;
  height:1px;
  background:linear-gradient(
    to right,
    transparent,
    rgba(127,191,46,.35),
    transparent
  );
  margin:26px 0 16px;
}

.footer__bottom{
  font-size:13px;
  color:var(--brand-muted);
}

.footer__bottom--flex{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.footer-dev{
  opacity:.75;
}

.footer-dev a{
  font-weight:600;
  color:inherit;
}

.footer-dev a:hover{
  opacity:1;
}

/* Mobile */
@media(max-width:640px){
  .footer__grid{
    grid-template-columns:1fr;
  }

  .footer__bottom--flex{
    flex-direction:column;
    text-align:center;
    gap:8px;
  }
}