/* ---------- Theme (unified with Companies section) ---------- */
:root{
  --bg: #ffffff;
  --surface: #f8fafc;          /* light section bg */
  --card: #ffffff;
  --text: #0f172a;             /* slate-900 */
  --muted: #475569;            /* slate-600 */
  --stroke: #e2e8f0;           /* slate-200 */
  --accent: #2f8f5d;           /* brand green */
  --accent-ink: #0a291a;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --shadow: 0 8px 24px rgba(2,6,23,0.08);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height:1.6;
  font-size:16px;
}

img{max-width:100%; display:block}

/* ---------- A11y ---------- */
.skip-link{
  position:absolute; left:-10000px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  position:fixed; left:1rem; top:1rem; width:auto; height:auto; padding:.5rem .75rem;
  background:#fff; color:var(--text); border:2px solid #a7e2c0;
  border-radius:.5rem; z-index:9999;
}

/* ---------- Header / Nav ---------- */
.site-header{
  position:sticky; top:0; z-index:1000;
  background: rgba(255,255,255,0.9);
  -webkit-backdrop-filter: blur(8px); /* prefix for Safari */
  backdrop-filter: blur(8px);
  border-bottom:1px solid var(--stroke);
}
.nav-container{
  max-width:1200px; margin:auto; padding:14px 20px;
  display:flex; align-items:center; justify-content:space-between;
}
.logo{
  font-family: "Caprasimo", serif;
  color: var(--accent);
  text-decoration:none;
  font-size:24px;
  letter-spacing:.3px;
}
.nav-links{
  list-style:none; display:flex; gap:16px; margin:0; padding:0;
}
.nav-links a{
  text-decoration:none; color: var(--text);
  padding:8px 12px; border-radius:10px; transition:.2s;
  font-weight:500;
}
.nav-links a:hover, .nav-links a.active{
  background: var(--surface);
  color: var(--accent);
}

/* Menu toggle (mobile) */
.menu-toggle{
  display:none; width:40px; height:40px; background:#fff; border:1px solid var(--stroke);
  border-radius:10px; cursor:pointer; position:relative;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after{
  position:absolute; left:10px; right:10px; height:2px; background:#0f172a; border-radius:2px; content:"";
}
.menu-toggle span{ top:50%; transform:translateY(-50%); }
.menu-toggle span::before{ top:-8px; }
.menu-toggle span::after{ top:8px; }
.menu-toggle.open span{ background:transparent; }
.menu-toggle.open span::before{ transform:translateY(8px) rotate(45deg); }
.menu-toggle.open span::after{ transform:translateY(-8px) rotate(-45deg); }

/* Mobile nav */
@media (max-width: 768px){
  .menu-toggle{display:block}
  .nav-links{
    position:fixed; top:68px; right:16px; width:260px; flex-direction:column; gap:10px;
    background:#fff; border:1px solid var(--stroke);
    border-radius:12px; padding:12px; box-shadow: var(--shadow);
    transform: translateY(-10px); opacity:0; pointer-events:none;
    transition: .2s ease;
  }
  .nav-links.active{
    transform: translateY(0); opacity:1; pointer-events:auto;
  }
}

/* ---------- Hero ---------- */
.hero-wrapper{ height: 200vh; position: relative; background: var(--bg); }
.hero{
  height: 100vh; position: sticky; top:0;
  display:flex; align-items:center; justify-content:center; text-align:center;
  background: url("download.webp") center / cover no-repeat fixed;
  overflow:hidden;
}
.hero::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,.6));
  z-index:0;
}
.hero .row{ position:relative; z-index:1; max-width:900px; padding:24px; }
.mainhero{
  font-family:"Caprasimo", serif; font-weight:400; margin:0 0 8px;
  font-size: clamp(40px, 6vw, 64px);
  color: var(--accent);
  letter-spacing:.5px;
}
.subhero{
  font-weight:700; margin:0 0 14px; font-size: clamp(18px, 2.4vw, 28px); color:#f3f3f3;
}
.smalltext{ color:#0a3604; max-width:720px; margin:0 auto 20px; }

/* ---------- Sections & Containers ---------- */
.section-padding{ padding: 72px 20px; }
.container{ max-width:1200px; margin:auto; }
.container-narrow{ max-width:800px; margin:auto; text-align:center; }
.accent{ color: var(--accent); }

.about,
.our-mission,
.contact{ background: var(--bg); }
.companies-1{ background: var(--surface); }

/* ---------- Companies Layout ---------- */
.companies-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px){
  .companies-layout { grid-template-columns: 1fr; }
}

/* Cards */
.card{
  background: var(--card);
  border:1px solid var(--stroke);
  border-radius:14px; overflow:hidden; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover{ transform: translateY(-2px); border-color: #cde8d6; }
.card img{ width:100%; height:200px; object-fit:cover; }
.card-body{ padding:18px; }
.card-body h3{ margin:4px 0 8px; font-size:20px; }
.card-body p{ margin:0 0 12px; color: var(--muted); }
.link-underline{ color: var(--accent); text-decoration: underline; text-underline-offset:2px; }

/* Cards grid stack */
.cards-grid { display:flex; flex-direction:column; gap:22px; }

/* ---------- Info Section ---------- */
.info-section{
  display:flex; flex-direction:column; gap:24px;
}
.info-box,
.product-bcc{
  background: var(--card);
  border:1px solid var(--stroke);
  border-radius:14px;
  padding:24px;
  box-shadow: var(--shadow);
}
.info-box h2{ margin:0 0 8px; color: var(--text); font-family:"Caprasimo", serif; }
.info-box p{ margin:0; color: var(--muted); }

/* Products grid inside info section */
.product-bcc h2{ margin:0 0 16px; font-family:"Caprasimo", serif; color: var(--accent); }
.product-grid{
  display:grid; gap:16px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.product{
  background: var(--surface);
  border:1px solid var(--stroke);
  border-radius:12px; padding:12px; text-align:center;
}
.product img{ width:100%; height:120px; object-fit:cover; border-radius:8px; margin-bottom:8px; }
.product p{ margin:0; color: var(--text); font-weight:600; }

/* ---------- Achievements / Stats ---------- */
.achievements{
  background: var(--bg);
  border-top:1px solid var(--stroke); border-bottom:1px solid var(--stroke);
}
.stats{
  display:grid; grid-template-columns: repeat(4, 1fr); gap:20px; text-align:center;
}
.stat h3{ font-size:28px; color: var(--accent); margin:0 0 4px; }
.stat p{ margin:0; color: var(--muted); }
@media (max-width: 900px){ .stats{ grid-template-columns: repeat(2, 1fr); } }

/* ---------- Mission ---------- */
.our-mission .btn-outline{ margin-top:14px; }

/* ---------- Contact ---------- */
.contact-actions{
  display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top:18px;
}

/* ---------- Buttons ---------- */
.btn-primary, .btn-outline{
  display:inline-block; border-radius:10px; padding:12px 18px; text-decoration:none; font-weight:600;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  will-change: transform;
}
.btn-primary{
  background-color: var(--accent);
  color:#ffffff; box-shadow: 0 10px 18px rgba(47,143,93,.20);
}
.btn-primary:hover{ transform: translateY(-1px); box-shadow: 0 14px 24px rgba(47,143,93,.28); }
.btn-primary:active{ transform: translateY(0); }

.btn-outline{
  background: transparent; color: var(--accent);
  border:1px solid var(--accent);
}
.btn-outline:hover{ background: var(--accent); color:#fff; }

/* ---------- Footer ---------- */
.site-footer{
  border-top:1px solid var(--stroke);
  padding: 28px 20px; text-align:center; color: var(--muted);
}
.site-footer a{ color: var(--accent); text-decoration: underline; text-underline-offset:2px; }

/* ---------- Utilities ---------- */
.row{
  display:flex; align-items:center; justify-content:center; gap: 40px; flex-wrap: wrap;
}

.fade-up{ opacity:0; transform: translateY(18px); animation: fadeUp .8s ease forwards; }
@keyframes fadeUp{ to{ opacity:1; transform: translateY(0);} }
