/* ============================================================
   ANDESOFT — Global Stylesheet
   Brand: Orange #F47B20 | Charcoal #3C3C3C | Light Gray #F5F5F5
   ============================================================ */

@import url(https://fonts.googleapis.com/css?family=Roboto+Condensed|Roboto:300,400,500,700);
@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700);
@import url("https://fonts.googleapis.com/css2?family=Pathway+Gothic+One&display=swap");

/* ── Reset & Base ─────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --orange: #f47b20;
  --orange-dark: #d96a10;
  --orange-light: #fef0e3;
  --charcoal: #3c3c3c;
  --dark: #222222;
  --mid: #666666;
  --light: #999999;
  --border: #e0e0e0;
  --bg-light: #f5f5f5;
  --white: #ffffff;
  --font-head: "Source Sans Pro", sans-serif;
  --font-body: "Source Sans Pro", sans-serif;
  --nav-h: 70px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
  --radius: 4px;
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--orange);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--orange-dark);
}
ul {
  list-style: none;
}

/* ── Typography ──────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  color: var(--dark);
  letter-spacing: 0.5px;
}
h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}
h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}
h4 {
  font-size: 1.1rem;
}
p {
  margin-bottom: 1rem;
  font-size: 0.975rem;
  color: var(--mid);
}
p:last-child {
  margin-bottom: 0;
}

/* ── Layout Helpers ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow {
  max-width: 960px;
}
.section {
  padding: 30px 0;
}
.section--sm {
  padding: 40px 0;
}
.section--lg {
  padding: 96px 0;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.flex {
  display: flex;
}
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.text-center {
  text-align: center;
}
.text-orange {
  color: var(--orange);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 20px;
  border-radius: 50px;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn--primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  color: var(--white);
}
.btn--outline {
  background: transparent;
  color: var(--orange);
  border-color: var(--orange);
}
.btn--outline:hover {
  background: var(--orange);
  color: var(--white);
}
.btn svg {
  width: 16px;
  height: 16px;
}

/* ── Navigation ──────────────────────────────────────────── */
#navbar-placeholder {
  position: sticky;
  top: 0;
  z-index: 99;
}

.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 44px;
}

/* Logo */
.navbar__logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-wordmark {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.logo-wordmark span.logo-ande {
  color: var(--orange);
}
.logo-wordmark span.logo-soft {
  color: var(--charcoal);
}
.logo-tagline {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-top: 1px;
}
.sidebar-box__head:not(.inactive) a {
  color: white;
  display: flex;
  gap: 3px;
}
/* Nav Menu */
.navbar__menu {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 0;
}
.navbar__item {
  position: relative;
}
.navbar__link {
  display: block;
  padding: 2px 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--charcoal);
  transition: color var(--transition);
  white-space: nowrap;
  font-size: 18px;
  font-weight: normal;
  font-family: "Source Sans Pro", sans-serif;
}
.navbar__link:hover,
.navbar__link.active {
  color: var(--orange);
}
.navbar__link.active {
  border-bottom: 2px solid var(--orange);
}
.navbar__link--cta {
  background: var(--orange);
  color: var(--white) !important;
  border-radius: var(--radius);
  padding: 7px 16px;
  margin-left: 8px;
}
.navbar__link--cta:hover {
  background: var(--orange-dark);
  color: var(--white) !important;
}

/* Dropdown */
.navbar__dropdown {
  position: absolute;
  top: calc(100% + -3px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--orange);
  border-radius: 0 0 var(--radius) var(--radius);
  min-width: 200px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  pointer-events: none;
  z-index: 99;
}
.navbar__item:hover .navbar__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
}
.navbar__dropdown a {
  display: block;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--charcoal);
  border-bottom: 1px solid var(--bg-light);
  transition: all var(--transition);
}
.navbar__dropdown a:last-child {
  border-bottom: 0;
}
.navbar__dropdown a:hover {
  background: var(--orange-light);
  color: var(--orange);
  padding-left: 24px;
}

/* Sub-nav bar (Products | Services | Case Studies) */
.subnav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.subnav__inner {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 24px;
}
.subnav a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--mid);
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}
.subnav a:hover,
.subnav a.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}
.subnav__sep {
  color: var(--border);
  font-size: 0.9rem;
  padding: 0 2px;
}

/* Hamburger */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: transparent;
  padding: 10px;
  border: 1px solid lightgray;
  border-radius: 8px;
}
.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  transition: all var(--transition);
  border-radius: 2px;
}

@media (max-width: 1124px) {
  .navbar__menu {
    display: none !important;
  }
  .navbar__toggle {
    display: flex !important;
  }
  .navbar__inner {
    padding: 12px 20px;
  }
  a.navbar__logo img {
    width: 174px;
    height: unset !important;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .navbar__inner {
    padding: 10px 9px;
  }
}

/* ── Page Header Banner ───────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--bg-light) 0%, #ebe8e2 100%);
  padding: 48px 0 36px;
  border-bottom: 3px solid var(--orange);
}
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 3px;
  text-transform: uppercase;
}
.page-hero p {
  font-size: 1rem;
  max-width: 560px;
  margin-top: 10px;
}

/* ── Sidebar Layout ──────────────────────────────────────── */
.with-sidebar {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}

.sidebar-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}
.sidebar-box__head {
  background: var(--orange);
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.sidebar-box__head svg {
  width: 32px;
  height: 26px;
  opacity: 0.9;
}
.sidebar-box__head.inactive {
  background: #ecd9c4;
  color: var(--charcoal);
}
.sidebar-box__head.inactive svg {
  opacity: 0.5;
}
.sidebar-box ul {
  padding: 8px 0;
}
.sidebar-box ul li a {
  display: flex;
  gap: 6px;
  padding: 8px 18px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--charcoal);
  transition: all var(--transition);
  border-left: 3px solid transparent;
}
.sidebar-box ul li a::before {
  content: "\25B8"; /* ▸ triangle */
  color: var(--charcoal);
  font-size: 15px;
  flex-shrink: 0;
}
.sidebar-box ul li a:hover {
  color: var(--orange);
  background: var(--orange-light);
  border-left-color: var(--orange);
  padding-left: 22px;
}
.sidebar-section-label {
  padding: 10px 18px 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--light);
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  padding: 0 18px 0 18px;
}
.card__body {
  padding: 0 20px;
  padding-bottom: 17px;
}
.card__title {
  font-family: "Pathway Gothic One", sans-serif;
  font-size: 26px;
  color: var(--dark);
  margin-bottom: 10px;
  font-weight: 500;
  margin-bottom: 4px;
}
.card__text {
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* ── Divider ─────────────────────────────────────────────── */
.divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}
.divider--orange {
  border-top-color: var(--orange);
  border-top-width: 2px;
}

/* ── Bullet List (arrow style) ───────────────────────────── */
.arrow-list {
  padding-left: 0;
}
.arrow-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.6;
}
.arrow-list li::before {
  content: "▸";
  color: BLACK;
  font-size: 14px;
  margin-top: 0;
  flex-shrink: 0;
}

/* ── Highlight Box ───────────────────────────────────────── */
.highlight-box {
  background: var(--orange-light);
  border-left: 4px solid var(--orange);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
}
.highlight-box strong {
  color: var(--dark);
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: #d3d3d3;
  border-top: 1px solid var(--border);
  padding: 18px 0;
  text-align: center;
}
.footer p {
  font-size: 0.82rem;
  color: black;
  margin: 0;
}

/* ── Nav Drawer (Mobile/Tablet) ──────────────────────────── */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: var(--white);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
}
.nav-drawer.open {
  right: 0;
}

.nav-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 3px solid var(--orange);
  flex-shrink: 0;
}
.nav-drawer__close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal);
  transition: background var(--transition);
}
.nav-drawer__close:hover {
  background: var(--bg-light);
}

.nav-drawer__menu {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.nav-drawer__item {
  border-bottom: 1px solid var(--bg-light);
}
.nav-drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--charcoal);
  text-decoration: none;
  transition: all var(--transition);
}
.nav-drawer__link:hover,
.nav-drawer__link.active {
  color: var(--orange);
  background: var(--orange-light);
  padding-left: 26px;
}
.nav-drawer__link .arrow {
  font-size: 11px;
  color: var(--light);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.nav-drawer__link.sub-open .arrow {
  transform: rotate(90deg);
}

.nav-drawer__sub {
  display: none;
  background: var(--bg-light);
  border-top: 1px solid var(--border);
}
.nav-drawer__sub.open {
  display: block;
}
.nav-drawer__sub a {
  display: block;
  padding: 10px 20px 10px 36px;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
.nav-drawer__sub a:last-child {
  border-bottom: none;
}
.nav-drawer__sub a::before {
  content: "▸";
  margin-right: 8px;
  font-size: 11px;
  color: var(--orange);
}
.nav-drawer__sub a:hover {
  color: var(--orange);
  background: var(--orange-light);
  padding-left: 42px;
}

.nav-drawer__footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.nav-drawer__cta {
  display: block;
  text-align: center;
  padding: 11px 20px;
  background: var(--orange);
  color: var(--white) !important;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: background var(--transition);
}
.nav-drawer__cta:hover {
  background: var(--orange-dark);
}

/* Hamburger → X animation */
.navbar__toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.navbar__toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.navbar__toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Show hamburger, hide desktop menu on mobile/tablet */
@media (max-width: 768px) {
  .navbar__menu {
    display: none !important;
  }
  .navbar__toggle {
    display: flex !important;
  }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .with-sidebar {
    grid-template-columns: 220px 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 60px;
  }
  .navbar__menu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 8px 0;
    z-index: 999;
  }
  .navbar__menu.open {
    display: flex;
  }
  .navbar__item {
    width: 100%;
  }
  .navbar__link {
    padding: 12px 24px;
    border-bottom: 1px solid var(--bg-light);
  }
  .navbar__dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-top: 1px solid var(--bg-light);
    background: var(--bg-light);
  }
  .navbar__dropdown a {
    padding-left: 36px;
  }
  .navbar__toggle {
    display: flex;
  }
  .with-sidebar {
    grid-template-columns: 1fr;
  }
  .sidebar {
    order: 2;
  }
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .page-hero h1 {
    letter-spacing: 1px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .section {
    padding: 40px 0;
  }
  .container.subnav__inner {
    padding: 0;
  }
}

/* ── Animations ──────────────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in {
  animation: fadeInUp 0.5s ease both;
}
.fade-in-1 {
  animation-delay: 0.1s;
}
.fade-in-2 {
  animation-delay: 0.2s;
}
.fade-in-3 {
  animation-delay: 0.3s;
}
.content-section {
  display: none;
}

.content-section.active {
  display: block;
}
.container.container--narrow h1 {
  font-weight: 400;
  font-size: 30px;
  margin-bottom: 16px;
}
.section-block {
  padding-bottom: 15px;
}
.section-block p {
  line-height: 1.6;
}
.anchor_text {
  font-family: "Pathway Gothic One", sans-serif;
  font-size: 26px;
  color: var(--orange);
  margin-bottom: 10px;
  font-weight: 400;
}
.sidebar a.active-link {
  color: #ffa500;
  font-weight: bold;
}
