/* ============================================================
   ALTA TECH LLC — Global Stylesheet (Redesign Version)
   Palette: Navy (#162235), Forest Green (#2D7A4F),
            Bright Green (#3DAA6A), White (#FFFFFF), Off-White (#F8F9FA)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- VARIABLES --- */
:root {
  --navy: #162235;
  --navy-light: #20314A;
  --green: #2D7A4F;
  --green-bright: #3DAA6A;
  --green-bright-2: #F0F7F3;
  --green-light: #F0F7F3;
  --white: #FFFFFF;
  --bg-light: #f1f6fe;
  --bg-dark: #121C2B;
  --gray-200: #E5E9ED;
  --gray-400: #9CA3AF;
  --text-dark: #111827;
  --text-muted: #4B5563;

  --font-main: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, .04), 0 1px 2px rgba(0, 0, 0, .02);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, .05), 0 2px 8px rgba(0, 0, 0, .03);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, .08);

  --transition: 0.3s cubic-bezier(.4, 0, .2, 1);
}

/* --- RESET --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}

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


ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* --- UTILITIES --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-pad {
  padding: 50px 0;
  background: var(--bg-light);
}

.section-pad.white {
  background: var(--white);
}

.section-pad-sm {
  padding: 60px 0;
}

.text-center {
  text-align: center;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-main);
  line-height: 1.2;
  color: var(--navy);
  font-weight: 700;
}

h1 {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  letter-spacing: -0.02em;
}

h1 em {
  color: var(--green);
  font-style: normal;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.1rem;
}

p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1em;
}

p.lead {
  font-size: 1.15rem;
  color: var(--navy-light);
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--green);
  margin-bottom: 16px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}

.btn-outline-white:hover {
  background: var(--bg-light);
}

/* --- NAVIGATION --- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}

#navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo img {
  width: 25rem;
  height: auto
}

.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
}

.nav-links a.nav-item {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9rem;
  padding-bottom: 4px;
  position: relative;
}

.nav-links a.nav-item::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--green);
  transition: width var(--transition);
}

.nav-links a.nav-item:hover::after,
.nav-links a.nav-item.active::after {
  width: 100%;
}

.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
}

.nav-hamburger span {
  height: 2px;
  background: var(--navy);
  transition: all var(--transition);
  display: block;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 20px 32px;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
}

.nav-mobile.open {
  display: flex;
}

@media(min-width: 900px) {
  .nav-links {
    display: flex;
  }

  .nav-hamburger {
    display: none;
  }
}

/* --- HERO SPLIT COMPONENT --- */
.hero-split {
  padding-top: 80px;
  /* offset for nav */
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(100deg, var(--white) 0%, var(--bg-light) 40%, transparent 60%);
}

.hero-bg-image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 55%;
  background-size: cover;
  background-position: right center;
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
  z-index: -1;
}

.hero-content {
  max-width: 650px;
  padding: 80px 0;
}

.hero-btns {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

/* SERVICES BAR (Overlapping Hero) */
.services-bar-wrap {
  margin-top: -30px;
  position: relative;
  z-index: 10;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
}

.services-bar-wrap.center-text {
  text-align: center;
}

.services-bar-wrap h2 {
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.services-bar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.service-minicard {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  background: var(--white);
  text-align: left;
}

.minicard-icon {
  width: 80px;
  height: 80px;
  background: var(--green-bright-2);
  border: 1px solid var(--green-200);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(45, 122, 79, .08);
}

.minicard-icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--green);
  fill: none;
  stroke-width: 2;
}

.icon {
  width: 300px;
  stroke: var(--green);
  fill: none;
  stroke-width: 2;
}

.service-minicard h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.service-minicard p {
  font-size: 0.85rem;
  margin: 0;
}

/* --- THE PROBLEM WE ADDRESS --- */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.problem-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.problem-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-200);
}

.problem-item:last-child {
  border-bottom: none;
}

.problem-number {
  color: var(--green);
  font-size: 1.8rem;
  font-weight: 700;
  font-family: var(--font-main);
}

.problem-text {
  color: var(--navy);
  font-size: 1.05rem;
}

.problem-map img {
  width: 100%;
  border-radius: var(--radius-lg);

  -webkit-mask-image:
    linear-gradient(to top, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0)),
    linear-gradient(to bottom, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0)),
    linear-gradient(to left, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0)),
    linear-gradient(to right, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0));

  -webkit-mask-composite: destination-in;
  mask-composite: intersect;
}

/* --- IMPACT BANNER (Dark) --- */
.impact-banner {
  background: var(--bg-dark);
  position: relative;
  padding: 10px 0;
  color: var(--white);
  background-image: linear-gradient(rgba(18, 28, 43, 0.85), rgba(18, 28, 43, 0.85)), url('../assets/landscape.png');
  background-size: cover;
  background-position: center;
}

.impact-banner h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.impact-banner p {
  color: rgba(255, 255, 255, .8);
  font-size: 1.1rem;
}

.impact-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.impact-card-wide {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  gap: 16px;
  color: var(--navy);
}

.impact-card-wide .icn svg {
  width: 100px;
  height: 100px;
  stroke: var(--green);
  fill: none;
  stroke-width: 1.5;
}

.impact-card-wide h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.impact-card-wide p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

/* --- WHY ALTA TECH / EXPECTED IMPACT --- */
.why-impact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.why-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.why-item svg {
  width: 25px;
  height: 25px;
  stroke: var(--green);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.why-item polyline {
  stroke-width: 4;
  fill: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--gray-200);
  padding-top: 32px;
}

.stat-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.stat-box .str {
  color: var(--green);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-box .str svg {
  width: 28px;
  height: 28px;
  stroke: var(--green);
  fill: none;
  stroke-width: 1.5;
}

.stat-box p {
  font-size: 0.8rem;
  margin: 4px 0 0 0;
  line-height: 1.3;
}

/* --- CTA BANNER GROUND --- */
.cta-banner-ground {
  background: url('../assets/landscape.png');
  background-size: cover;
  background-position: bottom;
  padding: 60px 0;
  color: var(--white);
}

.cta-banner-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.cta-banner-flex h2 {
  color: var(--white);
  margin-bottom: 8px;
  font-size: 2rem;
}

.cta-banner-flex p {
  color: rgba(255, 255, 255, .9);
  margin: 0;
}

/* --- SERVICES & CASE CARDS --- */
.card-modern {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  padding: 32px;
  transition: all var(--transition);
}

.card-modern:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card-modern.with-image {
  padding: 0;
  overflow: hidden;
}

.card-img-wrap {
  height: 200px;
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body-pad {
  padding: 32px;
}

/* --- FOOTER --- */
footer {
  background: var(--bg-light);
  padding: 60px 0 40px;
  border-top: 1px solid var(--gray-200);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 32px;
}

.footer-brand p {
  font-size: 0.85rem;
  margin-top: 16px;
  color: var(--text-muted);
}

.footer-brand img {
  width: 15rem;
  height: auto;
  margin-bottom: 20px;
}

.footer-col h5 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--navy);
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.footer-col a:hover {
  color: var(--green);
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-row svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 1.5;
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-400);
}

/* RESPONSIVE RESPONSIVE RESPONSIVE */
@media(max-width: 900px) {
  .hero-split {
    background: var(--bg-light);
    clip-path: none;
    min-height: auto;
  }

  .hero-bg-image {
    position: relative;
    width: 100%;
    height: 300px;
    clip-path: none;
    margin-top: 40px;
  }

  .problem-grid,
  .why-impact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cta-banner-flex {
    flex-direction: column;
    text-align: center;
  }

}