/* ==========================================================
   Olivetronix Technologies — Main Stylesheet
   Brand: olive green + charcoal/near-black + light neutrals
   ========================================================== */

:root{
  --olive: #5b6f2f;
  --olive-light: #7c9640;
  --olive-dark: #3f4e1f;
  --charcoal: #14161a;
  --charcoal-2: #1e2126;
  --off-white: #f6f6f2;
  --grey: #6b6f72;
  --radius: 10px;
  --ease: cubic-bezier(.22,.9,.28,1);
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  font-family:'Raleway',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  color:var(--charcoal);
  background:var(--off-white);
  margin:0;
  line-height:1.6;
  overflow-x:hidden;
}
h1,h2,h3,h4{
  font-family:'Raleway',sans-serif;
  font-weight:700;
  letter-spacing:-0.02em;
  line-height:1.15;
  margin:0 0 .5em;
}
a{color:inherit;text-decoration:none;transition:color .25s var(--ease);}
img{max-width:100%;display:block;}
.container{width:92%;max-width:1240px;margin:0 auto;}
.btn{
  display:inline-flex;align-items:center;gap:.5em;
  padding:.85em 1.8em;border-radius:100px;
  font-weight:600;font-size:.95rem;
  border:2px solid transparent;cursor:pointer;
  transition:transform .3s var(--ease),box-shadow .3s var(--ease),background .3s var(--ease);
}
.btn:hover{transform:translateY(-3px);}
.btn-primary{background:var(--olive);color:#fff;box-shadow:0 8px 24px -8px rgba(91,111,47,.6);}
.btn-primary:hover{background:var(--olive-light);}
.btn-outline{border-color:rgba(255,255,255,.4);color:#fff;}
.btn-outline:hover{background:rgba(255,255,255,.1);border-color:#fff;}
.btn-dark{background:var(--charcoal);color:#fff;}
.btn-dark:hover{background:#000;}

/* ---------- Header ---------- */


/* Header logo - mobile responsive */
.site-header .logo {
    display: flex !important;
    align-items: center !important;
    width: auto !important;
    max-width: 160px !important;
    height: 60px !important;
}

.site-header .logo img {
    display: block !important;
    width: 160px !important;
    height: 55px !important;
    max-width: 160px !important;
    max-height: 55px !important;
    object-fit: contain !important;
}

/* Tablet */
@media (max-width: 992px) {
    .site-header .logo img {
        width: 145px !important;
        height: 50px !important;
        max-width: 145px !important;
        max-height: 50px !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .site-header .logo {
        max-width: 135px !important;
        height: 50px !important;
    }

    .site-header .logo img {
        width: 135px !important;
        height: 45px !important;
        max-width: 135px !important;
        max-height: 45px !important;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .site-header .logo img {
        width: 125px !important;
        height: 42px !important;
        max-width: 125px !important;
        max-height: 42px !important;
    }
}


/* header */

.site-header{
  position:fixed;top:0;left:0;right:0;z-index:1000;
  padding:18px 0;
  transition:background .35s var(--ease),padding .35s var(--ease),box-shadow .35s var(--ease);
}
.site-header.scrolled{
  background:rgba(20,22,26,.92);backdrop-filter:blur(10px);
  padding:10px 0;box-shadow:0 6px 30px -12px rgba(0,0,0,.5);
}
.site-header .container{display:flex;align-items:center;justify-content:space-between;}
.logo{font-size:1.35rem;font-weight:800;color:#fff;letter-spacing:-.02em;}
.logo span{color:var(--olive-light);}
.nav-links{display:flex;gap:2rem;list-style:none;margin:0;padding:0;}
.nav-links a{color:#fff;font-size:.92rem;font-weight:500;position:relative;padding:4px 0;}
.nav-links a::after{
  content:'';position:absolute;left:0;bottom:0;width:0;height:2px;background:var(--olive-light);
  transition:width .3s var(--ease);
}
.nav-links a:hover::after,.nav-links a.active::after{width:100%;}
.nav-cta{display:flex;align-items:center;gap:1.2rem;}
.burger{display:none;background:none;border:0;color:#fff;font-size:1.6rem;cursor:pointer;}

/* ---------- Hero ---------- */
.hero{
  position:relative;min-height:100vh;display:flex;align-items:center;
  background:radial-gradient(ellipse at 30% 20%, #232a17 0%, var(--charcoal) 55%, #0b0c0e 100%);
  overflow:hidden;color:#fff;
}
.hero::before{
  content:'';position:absolute;inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size:46px 46px;
  mask-image:radial-gradient(ellipse at 40% 30%, black 10%, transparent 70%);
  animation:gridpan 40s linear infinite;
}
@keyframes gridpan{from{background-position:0 0;}to{background-position:400px 400px;}}
.hero-glow{
  position:absolute;width:640px;height:640px;border-radius:50%;
  background:radial-gradient(circle, rgba(124,150,64,.35), transparent 70%);
  top:-160px;right:-160px;filter:blur(10px);
  animation:float 9s ease-in-out infinite;
}
@keyframes float{0%,100%{transform:translateY(0) scale(1);}50%{transform:translateY(30px) scale(1.06);}}
.hero-content{position:relative;z-index:2;max-width:760px;padding-top:100px;}
.hero-eyebrow{
  display:inline-block;padding:.4em 1em;border:1px solid rgba(255,255,255,.25);
  border-radius:100px;font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;
  color:var(--olive-light);margin-bottom:1.6rem;
}
.hero h1{font-size:clamp(2.2rem,5vw,3.6rem);color:#fff;}
.hero h1 .accent{color:var(--olive-light);}
.hero p{font-size:1.15rem;color:rgba(255,255,255,.75);max-width:620px;margin-bottom:2.2rem;}
.hero-actions{display:flex;gap:1rem;flex-wrap:wrap;}
.hero-scroll{
  position:absolute;bottom:30px;left:50%;transform:translateX(-50%);
  color:rgba(255,255,255,.5);font-size:.75rem;letter-spacing:.1em;text-transform:uppercase;
  display:flex;flex-direction:column;align-items:center;gap:6px;
}
.hero-scroll::after{content:'';width:1px;height:38px;background:linear-gradient(#fff,transparent);animation:scrolldown 2s infinite;}
@keyframes scrolldown{0%{opacity:0;transform:scaleY(0);}50%{opacity:1;}100%{opacity:0;transform:scaleY(1);}}

/* ---------- Sections ---------- */
section{padding:100px 0;}
.section-tight{padding:60px 0;}
.eyebrow{
  display:inline-block;color:var(--olive);font-weight:700;font-size:.8rem;
  letter-spacing:.1em;text-transform:uppercase;margin-bottom:.8rem;
}
.section-head{max-width:680px;margin-bottom:3rem;}
.section-head h2{font-size:clamp(1.8rem,3.4vw,2.6rem);}
.section-head p{color:var(--grey);font-size:1.05rem;}
.bg-dark{background:var(--charcoal);color:#fff;}
.bg-dark .eyebrow{color:var(--olive-light);}
.bg-dark .section-head p{color:rgba(255,255,255,.65);}

/* ---------- Capability strip ---------- */
.strip{
  display:flex;flex-wrap:wrap;gap:0;border-top:1px solid #e6e6df;border-bottom:1px solid #e6e6df;
}
.strip-item{
  flex:1 1 150px;text-align:center;padding:1.6rem 1rem;border-right:1px solid #e6e6df;
  font-weight:600;font-size:.92rem;color:var(--charcoal);
}
.strip-item:last-child{border-right:none;}

/* ---------- Cards grid ---------- */
.grid{display:grid;gap:1.8rem;}
.grid-3{grid-template-columns:repeat(3,1fr);}
.grid-4{grid-template-columns:repeat(4,1fr);}
.grid-2{grid-template-columns:repeat(2,1fr);}
.card{
  background:#fff;border-radius:var(--radius);padding:2rem;
  border:1px solid #ece9e0;transition:transform .35s var(--ease),box-shadow .35s var(--ease),border-color .35s var(--ease);
  position:relative;overflow:hidden;
}
.card:hover{transform:translateY(-8px);box-shadow:0 24px 48px -24px rgba(20,22,26,.25);border-color:var(--olive-light);}
.card .icon{
  width:50px;height:50px;border-radius:12px;background:linear-gradient(135deg,var(--olive),var(--olive-dark));
  display:flex;align-items:center;justify-content:center;color:#fff;margin-bottom:1.2rem;font-size:1.3rem;
}
.card h3{font-size:1.15rem;}
.card p{color:var(--grey);font-size:.95rem;margin-bottom:0;}
.card .link{margin-top:1rem;display:inline-block;font-weight:600;color:var(--olive);font-size:.9rem;}
.card .link::after{content:'→';margin-left:.4em;transition:margin .25s var(--ease);}
.card:hover .link::after{margin-left:.8em;}

/* ---------- Process (idea to product) ---------- */
.process{display:flex;gap:0;flex-wrap:wrap;counter-reset:step;}
.process-step{flex:1 1 150px;text-align:center;padding:1.5rem 1rem;position:relative;}
.process-step .num{
  width:44px;height:44px;border-radius:50%;border:2px solid var(--olive);color:var(--olive);
  display:flex;align-items:center;justify-content:center;font-weight:700;margin:0 auto 1rem;
}
.process-step h4{font-size:.98rem;}
.process-step:not(:last-child)::after{
  content:'';position:absolute;top:22px;right:-10%;width:20%;height:2px;background:repeating-linear-gradient(90deg,var(--olive) 0 6px,transparent 6px 12px);
}

/* ---------- Case study / project cards ---------- */
.project-card{
  border-radius:var(--radius);overflow:hidden;position:relative;height:380px;
  background:linear-gradient(160deg,var(--charcoal-2),var(--charcoal));
  color:#fff;display:flex;flex-direction:column;justify-content:flex-end;padding:2rem;
  transition:transform .4s var(--ease);
}
.project-card:hover{transform:scale(1.02);}
.project-card .tag{
  align-self:flex-start;background:rgba(124,150,64,.2);color:var(--olive-light);
  padding:.3em .9em;border-radius:100px;font-size:.75rem;font-weight:700;margin-bottom:1rem;text-transform:uppercase;letter-spacing:.06em;
}
.project-card h3{font-size:1.3rem;margin-bottom:.4rem;}
.project-card p{color:rgba(255,255,255,.65);font-size:.9rem;}

/* ---------- Stats ---------- */
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:2rem;text-align:center;}
.stat .num{font-size:2.6rem;font-weight:800;color:var(--olive-light);}
.stat .label{color:rgba(255,255,255,.6);font-size:.9rem;text-transform:uppercase;letter-spacing:.05em;}

/* ---------- Founder ---------- */
.founder{display:flex;gap:2.5rem;align-items:center;flex-wrap:wrap;}
.founder img{width:180px;height:180px;object-fit:cover;border-radius:16px;}
.founder-info h3{margin-bottom:.2rem;}
.founder-info .role{color:var(--olive);font-weight:600;margin-bottom:1rem;display:block;}

/* ---------- Final CTA ---------- */
.final-cta{
  background:linear-gradient(135deg,var(--olive-dark),var(--charcoal));color:#fff;
  border-radius:20px;padding:4rem 3rem;text-align:center;position:relative;overflow:hidden;
}
.final-cta h2{font-size:clamp(1.8rem,3.5vw,2.8rem);}

/* ---------- Footer ---------- */
.site-footer{background:var(--charcoal);color:rgba(255,255,255,.65);padding:70px 0 30px;}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1.4fr;gap:2.5rem;margin-bottom:3rem;}
.footer-grid h4{color:#fff;font-size:.95rem;margin-bottom:1.1rem;}
.footer-grid ul{list-style:none;margin:0;padding:0;}
.footer-grid li{margin-bottom:.6rem;font-size:.9rem;}
.footer-grid a:hover{color:var(--olive-light);}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.1);padding-top:1.6rem;
  display:flex;justify-content:space-between;flex-wrap:wrap;gap:1rem;font-size:.82rem;
}
.social{display:flex;gap:.8rem;}
.social a{
  width:36px;height:36px;border-radius:50%;border:1px solid rgba(255,255,255,.2);
  display:flex;align-items:center;justify-content:center;transition:.3s var(--ease);
}
.social a:hover{background:var(--olive);border-color:var(--olive);}

/* ---------- Forms ---------- */
.form-group{margin-bottom:1.3rem;}
.form-group label{display:block;font-weight:600;font-size:.88rem;margin-bottom:.4rem;}
.form-control{
  width:100%;padding:.85em 1em;border-radius:8px;border:1.5px solid #dedcd3;
  font-size:.95rem;font-family:inherit;transition:border-color .25s var(--ease),box-shadow .25s var(--ease);background:#fff;
}
.form-control:focus{outline:none;border-color:var(--olive);box-shadow:0 0 0 4px rgba(91,111,47,.12);}
textarea.form-control{resize:vertical;min-height:130px;}
.alert{padding:1em 1.3em;border-radius:8px;margin-bottom:1.5rem;font-size:.92rem;}
.alert-success{background:#eaf3df;color:var(--olive-dark);border:1px solid #cfe3b6;}
.alert-error{background:#fbe9e9;color:#a33;border:1px solid #f3caca;}

/* ---------- Reveal animation (used with AOS-like fallback) ---------- */
.reveal{opacity:0;transform:translateY(24px);transition:opacity .8s var(--ease),transform .8s var(--ease);}
.reveal.in{opacity:1;transform:translateY(0);}

/* ---------- Page header (inner pages) ---------- */
.page-header{
  background:var(--charcoal);color:#fff;padding:170px 0 70px;position:relative;overflow:hidden;
}
.page-header h1{font-size:clamp(2rem,4vw,2.8rem);}
.page-header p{color:rgba(255,255,255,.65);max-width:640px;}
.breadcrumb{font-size:.85rem;color:rgba(255,255,255,.5);margin-bottom:1rem;}
.breadcrumb a{color:var(--olive-light);}

/* ---------- Responsive ---------- */
@media(max-width:960px){
  .grid-3,.grid-4{grid-template-columns:repeat(2,1fr);}
  .footer-grid{grid-template-columns:1fr 1fr;}
  .stats{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:720px){
  .nav-links,.nav-cta .btn{display:none;}
  .burger{display:block;}
  .grid-3,.grid-4,.grid-2{grid-template-columns:1fr;}
  .founder{flex-direction:column;text-align:center;}
  .process{flex-direction:column;}
  .process-step::after{display:none;}
  section{padding:64px 0;}
  .final-cta{padding:2.6rem 1.6rem;}
}

/* Mobile nav drawer */
.mobile-nav{
  position:fixed;inset:0;background:var(--charcoal);z-index:1200;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.6rem;
  transform:translateY(-100%);transition:transform .4s var(--ease);
}
.mobile-nav.open{transform:translateY(0);}
.mobile-nav a{color:#fff;font-size:1.4rem;font-weight:600;}
.mobile-nav .close{position:absolute;top:24px;right:28px;background:none;border:0;color:#fff;font-size:2rem;cursor:pointer;}

/* ---------- Hero two-column layout + product callouts ---------- */
.hero-grid{position:relative;z-index:2;display:grid;grid-template-columns:1.05fr 1fr;gap:3rem;align-items:center;padding-top:90px;}
.hero-grid .hero-content{max-width:none;padding-top:0;}
.hero-caps{display:flex;flex-wrap:wrap;gap:1.6rem;margin-top:2.4rem;}
.hero-cap{display:flex;align-items:center;gap:.6rem;font-size:.82rem;font-weight:600;color:rgba(255,255,255,.75);}
.hero-cap i{color:var(--olive-light);font-size:1rem;}
.hero-visual-wrap{position:relative;padding:70px 90px;}
.hero-visual{position:relative;border-radius:16px;overflow:hidden;}
.hero-visual img{width:100%;display:block;border-radius:16px;}
.callout{
  position:absolute;display:flex;align-items:center;gap:.5rem;
  font-size:.78rem;font-weight:700;color:#fff;white-space:nowrap;letter-spacing:.02em;
  z-index:3;
}
.callout i{
  width:30px;height:30px;border-radius:8px;background:rgba(124,150,64,.18);
  border:1px solid rgba(124,150,64,.5);color:var(--olive-light);
  display:flex;align-items:center;justify-content:center;font-size:.9rem;flex-shrink:0;
}
.callout-line{position:absolute;background:rgba(124,150,64,.6);z-index:2;}
.callout-tl{top:6%;left:0;}
.callout-tl .callout-line{width:1px;height:36px;top:100%;left:15px;}
.callout-tr{top:6%;right:0;flex-direction:row-reverse;text-align:right;}
.callout-tr .callout-line{width:1px;height:36px;top:100%;right:15px;}
.callout-mr{top:44%;right:-2%;flex-direction:row-reverse;text-align:right;}
.callout-mr .callout-line{width:46px;height:1px;top:50%;right:100%;}
.callout-bl{bottom:6%;left:0;}
.callout-bl .callout-line{width:1px;height:36px;bottom:100%;left:15px;}
.callout-br{bottom:6%;right:0;flex-direction:row-reverse;text-align:right;}
.callout-br .callout-line{width:1px;height:36px;bottom:100%;right:15px;}
@media(max-width:960px){
  .hero-grid{grid-template-columns:1fr;padding-top:60px;}
  .hero-visual-wrap{padding:30px 40px;}
  .callout{font-size:.72rem;}
  .callout i{width:26px;height:26px;font-size:.8rem;}
}
@media(max-width:720px){
  .hero{min-height:auto;padding-bottom:40px;}
  .hero-grid{padding-top:110px;gap:1.5rem;}
  .hero-visual-wrap{padding:0;max-width:280px;margin:0 auto;}
  .callout{display:none;}
  .hero-scroll{display:none;}
}

.hero-grid{position:relative;z-index:2;display:grid;grid-template-columns:1.05fr 1fr;gap:3rem;align-items:center;padding-top:90px;}
.hero-grid .hero-content{max-width:none;padding-top:0;}
.hero-visual-wrap{position:relative;padding:40px;}
.hero-visual{position:relative;border-radius:16px;overflow:hidden;}
.hero-visual img{width:100%;display:block;border-radius:16px;}
@media(max-width:960px){
  .hero-grid{grid-template-columns:1fr;padding-top:60px;}
  .hero-visual-wrap{padding:20px 0;}
}
@media(max-width:720px){
  .hero{min-height:auto;padding-bottom:40px;}
  .hero-grid{padding-top:110px;gap:1.5rem;}
  .hero-visual-wrap{max-width:280px;margin:0 auto;}
  .hero-scroll{display:none;}
}

/* ==========================================================
   OLIVETRONIX — WHITE HERO ONLY
   Does NOT change header, sticky header, or other sections
   ========================================================== */

.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #fff !important;
  color: #111 !important;
  padding: 70px 0 45px;
}

/* Remove only the hero's old decorative effects */
.hero::before,
.hero::after,
.hero .hero-glow {
  display: none !important;
}

/* Two-column layout */
.hero .hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 50px;
  padding-top: 0;
}

/* Left content */
.hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding-top: 0;
}

.hero .hero-eyebrow {
  display: block;
  color: #607d18;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
}

.hero .hero-content h1 {
  color: #111 !important;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.035em;
  margin: 0 0 25px;
  max-width: 600px;
}

.hero .hero-content p {
  color: #555 !important;
  font-size: 16px;
  line-height: 1.75;
  max-width: 550px;
  margin: 0 0 32px;
}

/* Hero buttons only — header buttons remain untouched */
.hero .hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.hero .hero-actions .btn {
  min-height: 54px;
  padding: 0 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 0;
}

.hero .hero-actions .btn-primary {
  background: #607d18;
  color: #fff;
  border: 1px solid #607d18;
  box-shadow: none;
}

.hero .hero-actions .btn-primary:hover {
  background: #4e6813;
  border-color: #4e6813;
}

/* White outline button — hero only */
.hero .hero-actions .btn-outline {
  background: #fff;
  color: #222;
  border: 1px solid #b8b8b8;
}

.hero .hero-actions .btn-outline:hover {
  background: #f7f7f7;
  border-color: #607d18;
  color: #607d18;
}

/* Right product image */
.hero .hero-visual-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
  padding: 0;
}

.hero .hero-visual {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  overflow: visible;
  border-radius: 0;
}

.hero .hero-visual img {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  mix-blend-mode: multiply;
}

/* Hide old hero scroll indicator */
.hero .hero-scroll {
  display: none !important;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .hero {
    min-height: 560px;
    padding: 55px 0 40px;
  }

  .hero .hero-grid {
    gap: 35px;
  }

  .hero .hero-content h1 {
    font-size: clamp(34px, 4vw, 48px);
  }

  .hero .hero-visual img {
    max-height: 460px;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 45px 0 35px;
  }

  .hero .hero-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .hero .hero-content {
    max-width: 100%;
  }

  .hero .hero-content h1 {
    font-size: clamp(34px, 8vw, 46px);
    line-height: 1.15;
  }

  .hero .hero-content p {
    font-size: 15px;
    line-height: 1.65;
  }

  .hero .hero-actions {
    gap: 12px;
  }

  .hero .hero-actions .btn {
    min-height: 50px;
    padding: 0 20px;
    font-size: 12px;
  }

  .hero .hero-visual img {
    width: 100%;
    max-width: 520px;
    max-height: 380px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 35px 0 25px;
  }

  .hero .hero-content h1 {
    font-size: 32px;
  }

  .hero .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero .hero-actions .btn {
    width: 100%;
  }

  .hero .hero-visual img {
    max-height: 300px;
  }
}
