/* ===============================  
   Global Styles
   =============================== */
:root{
  --green:#006b3c;
  --muted:#4b5563;
  --bg:#f5f5eb;
  --panel: rgba(6,50,30,0.75);
  --card-shadow: 0 4px 10px rgba(0,0,0,0.08);
  --accent:#b8860b;
  --focus: rgba(6,107,60,0.18);
}

/* reset / base */
*{box-sizing:border-box}
body {
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: #222;
  line-height: 1.6;
}

/* global container helper */
.inner{max-width:1100px;margin:0 auto;padding:0 20px}

/* ===============================
   Header & Navigation (UNIFIED)
   =============================== */
header {
  background-color: #f9f9f2;
  border-bottom: 3px solid var(--green);
  padding: 10px 0;
  /* ensure header sits above hero image if overlapping */
  z-index: 40;
  position: relative;
}
header .inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

/* brand block: logo + company name */
/* by default logo is visible; change display if you want to hide it */
header img.logo {
  max-height:60px;
  display:block;
  vertical-align:middle;
}

/* brand holds the visual group */
.brand {
  display:flex;
  align-items:center;
  gap:12px;
}

/* If no logo is used we want a tighter layout for text */
.brand-text {
  display:flex;
  flex-direction:column;
  line-height:1.05;
  justify-content:center;
}

/* company name styles: TEKNOKOM bolded, rest lighter */
.company-name {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
  line-height: 1;
  display:inline-block;
  letter-spacing:0.2px;
}
.company-name strong {
  font-weight: 900;
  letter-spacing: 0.6px;
}

/* small "ISO/descriptor" tagline under company name */
.iso-tagline {
  font-size:0.85rem;
  color:var(--muted);
  margin-top:4px;
  font-weight:600;
}

/* nav */
nav {
  display:flex;
  align-items:center;
}
nav ul {
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap:18px;
  align-items:center;
}
nav a {
  text-decoration:none;
  color:var(--green);
  font-weight:700;
  font-size:0.95rem;
  transition: color .2s ease, opacity .15s ease;
  padding:6px 8px;
  border-radius:4px;
  display:inline-block;
}
nav a:hover{ color:var(--accent); opacity:0.96; }

/* active link: both class and aria-current handled */
nav a.active,
nav a[aria-current="page"] {
  color:var(--accent);
  background: transparent;
}

/* small screens header adjustments */
@media (max-width:800px){
  header .inner{flex-wrap:wrap;gap:8px}
  .brand{gap:8px}
  .company-name{font-size:1rem}
  nav ul{gap:14px}
}
@media (max-width:600px){
  header .inner{flex-direction:row;justify-content:space-between}
  nav ul{gap:12px;font-size:0.9rem}
  /* shrink company name on very small screens to avoid wrap */
  .company-name{font-size:0.95rem}
  .iso-tagline{font-size:0.78rem}
}

/* When logo is visible ensure company text nudges a little */
header img.logo + .brand-text .company-name { transform: translateY(0); }

/* ===============================
   HERO
   =============================== */
.hero {
  position:relative;
  background: url("../images/hero.jpg") no-repeat center center;
  background-size: cover;
  height: 62vh;
  min-height:420px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  padding:20px;
  color:white;
  overflow:visible;
}
.hero .hero-panel{
  width:380px;
  max-width:40%;
  background: linear-gradient(180deg,var(--panel), rgba(6,50,30,0.6));
  padding:36px;
  margin-right:28px;
  border-radius:8px;
  box-shadow:0 12px 30px rgba(0,0,0,0.35);
  position: relative;
}
.hero .hero-panel h1{
  margin:0 0 12px;
  font-size:1.8rem;
  line-height:1.05;
}
/* hero subtitle added */
.hero-sub { margin-top:10px; font-size:1rem; opacity:0.95; color:#e8efe9; }
/* hero paragraph fallback */
.hero .hero-panel p{color: #e8efe9;font-size:0.9rem;margin:0 0 12px}
.hero .hero-panel .btn{background:var(--green);color:#fff;padding:10px 14px;border-radius:8px;text-decoration:none;font-weight:700; border:2px solid rgba(0,0,0,0.12)}

/* a secondary CTA style */
.btn-secondary { background:var(--accent); color:#fff; border:2px solid rgba(0,0,0,0.06); }

/* responsive hero */
@media (max-width:1000px){
  .hero{height:52vh;min-height:360px;justify-content:center}
  .hero .hero-panel{width:86%;max-width:none;margin-right:0;padding:28px}
}
@media (max-width:600px){
  .hero{height:auto;padding:36px 12px;background-position:center top}
  .hero .hero-panel h1{font-size:1.3rem}
}

/* ===============================
   Mobile: make hero panel stack, remove floating shadow/overlap
   (prevents the panel from hovering over next section)
   =============================== */
@media (max-width:600px){
  .hero .hero-panel {
    position: static !important;      /* stop any overlay behaviour */
    width: 100% !important;           /* use full width within hero */
    max-width: none !important;
    margin: 0 0 18px 0 !important;    /* stack with small gap */
    padding: 20px !important;         /* slightly smaller padding on small screens */
    box-shadow: none !important;      /* remove heavy shadow so it doesn't "hover" */
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(6,50,30,0.72), rgba(6,50,30,0.6));
  }

  /* ensure hero background still shows above the panel */
  .hero { padding-bottom: 18px; }

  /* stack CTA buttons in the hero-panel nicely */
  .hero .hero-panel .btn { display:block; width: auto; margin-bottom:10px; }
  .hero .hero-panel .btn:last-child { margin-bottom:0; }
}

/* ===============================
   Trusted strip / mini-about
   =============================== */
.trusted-strip { background: linear-gradient(90deg, rgba(6,107,60,0.03), rgba(184,134,11,0.02)); border-top:4px solid var(--green); border-bottom:1px solid rgba(0,0,0,0.02); padding:10px 0; margin-top:-6px}
.trusted-inner{max-width:1100px;margin:0 auto;padding:0 20px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.trusted-badge{display:flex;align-items:center;gap:10px;font-weight:700;color:var(--green)}
.trusted-text{color:var(--muted);font-size:0.95rem}
@media (max-width:720px){ .trusted-inner{flex-direction:column;align-items:flex-start} }

/* ===============================
   Sections
   =============================== */
section{padding:48px 0}
section h2{
  text-align:left;
  font-size:1.6rem;
  margin:0 0 18px;
  color:var(--green);
  border-bottom:2px solid var(--green);
  display:inline-block;
  padding-bottom:8px;
}

/* ===============================
   Cards / Product Grid
   =============================== */
.card-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:20px;
  align-items:start;
}
.card{
  background:#fff;
  border-radius:10px;
  overflow:hidden;
  box-shadow:var(--card-shadow);
  transition:transform .25s ease,box-shadow .25s ease;
}
.card img{width:100%;height:150px;object-fit:cover;display:block}
.card .card-content{padding:12px}
.card h3{margin:0 0 8px;color:var(--green)}
.card p{margin:0;color:var(--muted);font-size:0.95rem}
.card:hover{transform:translateY(-6px);box-shadow:0 10px 28px rgba(0,0,0,0.18)}

/* ===============================
   WHY / Quick-points cards + icons
   =============================== */
.why-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:12px; margin-top:20px; }
.why-card { background:#fff; padding:14px; border-radius:8px; box-shadow:0 4px 8px rgba(0,0,0,0.04); display:flex; gap:12px; align-items:flex-start; }
.why-icon{width:36px;height:36px;flex:0 0 36px}

/* ===============================
   Mini product specs
   =============================== */
.specs { display:flex; gap:12px; flex-wrap:wrap; margin-top:8px }
.spec { background:#fff; padding:10px; border-radius:8px; box-shadow:var(--card-shadow); min-width:200px }

/* ===============================
   Projects / Lists
   =============================== */
.project-list{display:block;max-width:940px;margin:0 auto}
.project-item{margin:18px 0;padding:12px 0;border-bottom:1px solid rgba(0,0,0,0.04)}
.project-item h4{margin:0 0 6px;color:var(--green)}

/* ===============================
   Contact / Form
   =============================== */
.contact-grid{display:grid;grid-template-columns:1fr 340px;gap:22px;align-items:start}
@media (max-width:860px){.contact-grid{grid-template-columns:1fr}}
.contact-form label{display:block;margin-top:10px;font-weight:600}
.contact-form input,.contact-form textarea,.contact-form select{
  width:100%;padding:8px;border:1px solid #e3e6e0;border-radius:6px;margin-top:6px;font-size:0.95rem;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.contact-form textarea{min-height:110px;resize:vertical}

/* focus states for accessibility */
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus,
.btn:focus,
nav a:focus {
  outline: none;
  box-shadow: 0 0 0 6px var(--focus);
  border-color: rgba(0,0,0,0.06);
}

/* consent checkbox inline single-line */
.contact-form .consent {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  white-space: nowrap;  /* keep text on one line when possible */
  vertical-align: middle;
  font-weight: 600;
}
.contact-form .consent input[type="checkbox"] {
  margin: 0;
  width: 16px;
  height: 16px;
  transform: scale(1);
  accent-color: var(--green);
}

/* allow wrapping on very small screens so layout doesn't break */
@media (max-width:420px) {
  .contact-form .consent {
    white-space: normal;
    gap: 8px;
    flex-wrap: wrap;
  }
}

/* call-to-action buttons */
.btn{display:inline-block;background:var(--green);color:#fff;padding:10px 14px;border-radius:8px;text-decoration:none;font-weight:700;border:2px solid rgba(0,0,0,0.15);box-shadow:0 4px 8px rgba(0,0,0,0.06)}
.btn:hover{transform:translateY(-1px);box-shadow:0 8px 22px rgba(0,0,0,0.12)}
.btn-secondary{ background:var(--accent); color:#fff; border:2px solid rgba(0,0,0,0.06); }

/* ===============================
   QR Codes - uniform square + hover
   =============================== */
.qr{
  width:120px;
  height:120px;
  object-fit:contain;
  background:#fff;
  padding:6px;
  border-radius:6px;
  display:inline-block;
  margin:0.5rem 0;
  transition:transform .28s ease,box-shadow .28s ease;
  cursor:pointer;
  vertical-align:middle;
}
.qr:hover{
  transform:scale(1.12);
  box-shadow:0 8px 22px rgba(0,0,0,0.25);
  position:relative;
  z-index:50;
}

/* small-screen QR override to avoid overflow */
@media (max-width:480px){
  .qr{width:100px;height:100px;padding:4px}
}

/* ===============================
   Footer
   =============================== */
footer{background:var(--green);color:#fff;text-align:center;padding:18px 0;margin-top:36px}
footer p{margin:0;font-size:0.95rem}
