/*
  Approved NexoCarp palette (from hero image)
  - Background: #F6F8F3
  - Primary green: #70A75A
  - Secondary green: #B8D663
  - Soft background green: #D5E6CD
  - Mint accent: #A7CBB8
  - Dark green (text/contrast): #32572F
*/
:root{
  --bg:#F6F8F3;
  --bg-soft:#D5E6CD;
  --text:#32572F;
  --muted:#476645;
  --line:rgba(50, 87, 47, .16);

  --accent:#70A75A;
  --accent-hi:#B8D663;
  --mint:#A7CBB8;
  --accent-2:#32572F;
  --accent-soft:rgba(112, 167, 90, .18);

  --radius:16px;
  --shadow:0 10px 30px rgba(50, 87, 47, .10);

  --max:1120px;
  --container-pad:18px;

  --s1:8px;
  --s2:12px;
  --s3:16px;
  --s4:24px;
  --s5:32px;
  --s6:44px;
  --s7:64px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--text);
  background:
    radial-gradient(1200px 560px at 18% -10%, rgba(184, 214, 99, .14), transparent 62%),
    radial-gradient(980px 520px at 82% 10%, rgba(112, 167, 90, .11), transparent 58%),
    var(--bg);
  font-family:ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

img{max-width:100%;display:block}

a{color:var(--accent);text-decoration:none}
a:hover{color:var(--accent-hi)}

.container{
  max-width:var(--max);
  margin:0 auto;
  padding:0 var(--container-pad);
}
.container.narrow{max-width:860px}

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(246, 248, 243, .12);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(50, 87, 47, .08);
}

.topbar .row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:var(--s3);
  padding:14px 0;
}

.nav-toggle{
  display:none;
  border:1px solid rgba(50, 87, 47, .14);
  background:rgba(246, 248, 243, .55);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  color:var(--text);
  border-radius:999px;
  width:44px;
  height:40px;
  padding:0;
  align-items:center;
  justify-content:center;
}

.nav-toggle-bars{
  width:18px;
  height:12px;
  position:relative;
  display:block;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  height:2px;
  border-radius:2px;
  background:currentColor;
}

.nav-toggle-bars::before{top:2px}
.nav-toggle-bars::after{bottom:2px}

/* Mobile navigation */
@media (max-width:860px){
  .topbar .row{
    position:relative;
  }

  .nav-toggle{
    display:inline-flex;
    flex:0 0 auto;
  }

  .nav{
    position:absolute;
    top:calc(100% + 8px);
    right:0;
    left:0;
    padding:12px 14px;
    border-radius:18px;
    border:1px solid rgba(50, 87, 47, .12);
    background:rgba(246, 248, 243, .94);
    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);
    box-shadow:0 18px 50px rgba(50, 87, 47, .18);

    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:8px;

    overflow:hidden;
    max-height:0;
    opacity:0;
    transform:translateY(-6px);
    pointer-events:none;
    transition:max-height .22s ease, opacity .18s ease, transform .18s ease;
  }

  .topbar.is-open .nav{
    max-height:70vh;
    opacity:1;
    transform:translateY(0);
    pointer-events:auto;
  }

  .nav-link{
    width:100%;
    padding:10px 6px;
    border-bottom:1px solid rgba(50, 87, 47, .08);
  }
  .nav-link:last-child{border-bottom:0}
}

.brand{display:flex;align-items:center;gap:12px}
.brand img{height:32px;width:auto}
.brand .name{font-weight:800;letter-spacing:.01em}
.brand .tag{font-size:12px;color:var(--muted)}

.nav{
  display:flex;
  gap:14px;
  flex-wrap:nowrap;
  justify-content:flex-end;
  align-items:center;
  min-width:0;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}

.nav::-webkit-scrollbar{display:none}

.nav-link{
  display:inline-flex;
  align-items:center;
  padding:6px 0;
  font-weight:650;
  font-size:13px;
  letter-spacing:.01em;
  color:var(--accent-2);
  border-bottom:2px solid transparent;
  transition:border-color .18s ease, color .18s ease;
  white-space:nowrap;
}
.nav-link:hover{
  color:var(--text);
  border-bottom-color:rgba(112, 167, 90, .55);
}
.nav-link--cta{
  color:var(--accent);
  border-bottom-color:rgba(184, 214, 99, .45);
}
.nav-link--cta:hover{
  color:var(--accent-hi);
  border-bottom-color:rgba(184, 214, 99, .75);
}

/* legacy .pill styles removed (nav now uses text links) */

.section{padding:var(--s7) 0}
.section.tight{padding:var(--s6) 0}
.section.alt{background:var(--bg-soft)}

.eyebrow{
  color:var(--accent-2);
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  font-size:11px;
  margin:0 0 var(--s2);
}

h1{
  margin:0 0 var(--s3);
  font-size:clamp(34px, 4.6vw, 54px);
  line-height:1.06;
  letter-spacing:-.03em;
}

.section h2{
  text-align:center;
}

h2{
  margin:0 0 var(--s3);
  font-size:clamp(22px, 3.2vw, 32px);
  line-height:1.2;
  letter-spacing:-.015em;
}

p{margin:0 0 var(--s3);line-height:1.7}
.muted{color:var(--muted)}

.hero{
  padding:0;
}
.hero .lead{font-size:clamp(16px, 2vw, 18px)}

.cta{display:flex;gap:12px;flex-wrap:wrap;margin-top:var(--s4)}

.card{
  background:linear-gradient(180deg, rgba(213, 230, 205, .78), rgba(246, 248, 243, .95));
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.hero-media{
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow:0 26px 70px rgba(50, 87, 47, .16);
}
.hero-media img{height:360px;object-fit:cover;object-position:center}

/* Full-bleed hero image (edge-to-edge) */
.hero-media--full{
  width:100%;
  position:relative;
  margin:0;
  border:0;
  border-radius:0;
  box-shadow:none;
  background:var(--bg);
}
.hero-media--full img{
  width:100%;
  height:auto;
  display:block;
}

/* Ensure overlay does not enforce full centering if user wants specific placement */
.hero-overlay{
  position:absolute;
  inset:0;
  pointer-events:none; /* Let clicks pass through to image if needed */
}

/* Container for the content to position it specifically in the top-right quadrant */
.hero-content-box{
  position:absolute;
  top:8%; /* Moved up from 12% */
  right:6%; /* Moved right from 8% */
  width:35%; /* Slightly narrower constraint */
  display:flex;
  flex-direction:column;
  align-items:flex-end; /* Align logo/text to the right edge of this box */
  text-align:right;
}

.hero-logo{
  height:clamp(24px, 4vw, 50px); /* Made smaller (was 30-60) */
  width:auto;
  margin-bottom:8px; /* Tighter spacing */
  filter:drop-shadow(0 4px 12px rgba(255,255,255,0.6));
  display:block; /* Fix potential inline spacing issues */
  max-width:100%;
}

.hero-title{
  color:var(--accent-2);
  font-size:clamp(16px, 2vw, 24px); /* Smaller text to match quadrant feel */
  line-height:1.3;
  margin:0;
  text-shadow:0 0 30px rgba(246, 248, 243, 0.8);
}

.features{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr)); /* Mobile: 2 per row */
  gap:20px; /* More breathing room */
}
@media(min-width:600px){
  .features{grid-template-columns:repeat(2, minmax(0,1fr))}
  .feature{grid-column:auto} /* Reset legacy span */
}
@media(min-width:1100px){
  /* Desktop: 5 per row (2 rows of 5) */
  .features{grid-template-columns:repeat(5, minmax(0,1fr))}
  
  /* Reset special logic */
  .features--332 .feature:nth-last-child(2){grid-column:auto}
  .features--332 .feature:last-child{grid-column:auto}
}

.feature{
  display:flex;
  flex-direction:column; /* Stack vertically (Icon Top, Text Bottom) */
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:16px;
  padding:24px 16px;
  border-radius:16px;
  border:1px solid rgba(50, 87, 47, .06);
  background:#fff; /* White card */
  box-shadow:0 4px 20px rgba(50, 87, 47, .06); /* Soft shadow */
  transition:transform .2s ease, box-shadow .2s ease;
}

.feature:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 30px rgba(50, 87, 47, .12);
}

.feature .icon{
  width:48px;
  height:48px;
  border-radius:50%; /* Circle icon background */
  display:grid;
  place-items:center;
  background:var(--bg-soft); /* Light green icon bg */
  color:var(--text);
  border:none;
}
.feature .icon svg{
  width:24px;
  height:24px;
}

.feature .title{
  font-weight:700;
  margin:0;
  line-height:1.3;
  color:var(--text);
  font-size:15px;
}

.industry-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
  margin-top:var(--s4);
}

@media (min-width:780px){
  .industry-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:18px;
  }
}

.industry-card{
  background:#fff;
  border:1px solid rgba(50, 87, 47, .06);
  border-radius:18px;
  padding:22px 20px;
  box-shadow:0 6px 24px rgba(50, 87, 47, .06);
}

.industry-icon{
  width:48px;
  height:48px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:var(--bg-soft);
  color:var(--text);
  margin:0 auto 10px;
}

.industry-icon svg{
  width:24px;
  height:24px;
}

.industry-card h3{
  margin:0 0 8px;
  font-size:16px;
  font-weight:850;
  letter-spacing:.01em;
  color:var(--text);
}

.industry-card p{
  margin:0;
  color:var(--muted);
  line-height:1.6;
}

.steps{
  display:grid;
  gap:12px;
}
.step{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:14px 16px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(213, 230, 205, .65);
}
.step .num{
  width:32px;
  height:32px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:rgba(167, 203, 184, .78);
  color:var(--accent-2);
  font-weight:900;
  flex:0 0 auto;
}

.team{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
}
@media(min-width:900px){
  .team{grid-template-columns:repeat(2, minmax(0,1fr))}
}

.person{
  padding:18px;
}
.person .role{color:var(--accent-2);font-weight:800;font-size:13px}

.person h3{
  margin:0 0 6px;
}

.person-head{
  display:flex;
  gap:14px;
  align-items:center;
}

.avatar{
  width:72px;
  height:72px;
  border-radius:50%;
  object-fit:cover;
  border:2px solid rgba(246, 248, 243, .9);
  box-shadow:0 10px 24px rgba(50, 87, 47, .12);
  flex:0 0 auto;
}

@media (max-width:520px){
  .avatar{width:64px;height:64px}
}

.tech-card{
  text-align:center;
  max-width:900px;
  margin:0 auto;
}
.tech-card p{
  font-size:18px;
  max-width:700px;
  margin:0 auto;
  color:var(--accent-2);
}

.tech-media--full{
  width:100%;
  height:400px;
  position:relative;
  overflow:hidden;
  background:var(--bg);
}
.tech-media--full::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:url("../img/our-tech.png");
  background-size:cover;
  background-position:center;
  filter:blur(18px) saturate(1.05);
  transform:scale(1.08);
  opacity:.35;
}

/* The actual visible image area (centered). Overlays are positioned relative to this box. */
.tech-figure{
  position:relative;
  z-index:1;
  height:100%;
  aspect-ratio:1584 / 672;
  max-width:100%;
  margin:0 auto;
}

.tech-figure img{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
  object-position:center;
}

.tech-overlay{
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;
}

.tech-overlay-top,
.tech-overlay-bottom{
  position:absolute;
  left:18px;
  max-width:min(520px, 46vw);
  color:var(--text);
  padding:0;
  text-shadow:
    0 2px 14px rgba(246, 248, 243, .92),
    0 1px 2px rgba(50, 87, 47, .22);
}

.tech-overlay-top{
  top:16px;
  font-size:clamp(14px, 1.6vw, 18px);
  line-height:1.35;
  font-weight:650;
}

.tech-overlay-bottom{
  bottom:16px;
  font-size:clamp(12px, 1.4vw, 15px);
  font-weight:800;
  letter-spacing:.01em;
}

@media (max-width:520px){
  .tech-overlay-top,
  .tech-overlay-bottom{
    left:12px;
    right:12px;
    max-width:none;
  }
}

.contact-box{
  padding:32px 40px;
  background:#fff; /* Clean white background */
  border-radius:24px;
  box-shadow:0 12px 40px rgba(50, 87, 47, .08); /* Soft, elegant shadow */
  border:none; /* No border */
  text-align:center;
}
.contact-box h2{
  margin-bottom:24px;
}
form .grid{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}
@media(min-width:860px){
  form .grid.cols3{grid-template-columns:repeat(3, minmax(0, 1fr))}
  form .grid.cols2{grid-template-columns:1fr auto;align-items:end}
}

label{display:block;margin-bottom:6px;font-weight:700;font-size:12px}
input, textarea{
  width:100%;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  font-size:14px;
  font-family:inherit;
  background:rgba(246, 248, 243, .95);
}
input:focus, textarea:focus{
  outline:none;
  border-color:rgba(112, 167, 90, .75);
  box-shadow:0 0 0 4px rgba(184, 214, 99, .28);
}

button{
  border:0;
  border-radius:999px;
  padding:12px 18px;
  font-weight:800;
  cursor:pointer;
  background:var(--accent);
  color:var(--bg);
  transition:background .2s ease, color .2s ease;
}
button:hover{
  background:var(--accent-hi);
  color:var(--accent-2);
}

.footer{
  padding:24px 0 36px;
  color:rgba(246, 248, 243, .90);
  text-align:center;
  border-top:0;
  background:var(--accent-2);
}
.footer a{color:var(--accent-hi)}
.footer a:hover{color:rgba(246, 248, 243, .95)}

.fade-in{opacity:0;transform:translateY(14px);transition:opacity .55s ease, transform .55s ease}
.fade-in.visible{opacity:1;transform:translateY(0)}
