/* ==========================================================================
   Bizentrix Technologies — Global Design System
   Palette is derived directly from the logo (brushed blue + green chevrons).
   ========================================================================== */

:root {
  /* Brand — Blue */
  --blue-deep: #1e4e79;
  --blue: #2f7db8;
  --blue-light: #7fb9de;
  --blue-tint: #eaf3fa;

  /* Brand — Green */
  --green-deep: #2f6a2f;
  --green: #4f9d2e;
  --green-light: #8dc63f;
  --green-tint: #eef7e6;

  /* Neutrals */
  --ink: #16202e;        /* primary text (near-navy) */
  --ink-soft: #3a4a5c;   /* secondary text */
  --muted: #6b7c8d;      /* captions / meta */
  --line: #e3eaf1;       /* hairline borders */
  --bg: #ffffff;
  --bg-alt: #f4f8fb;     /* tinted section background */
  --bg-dark: #112437;    /* dark sections / footer */
  --bg-dark-2: #0c1b2b;

  /* Signature gradient (blue -> green, matches the logo) */
  --grad: linear-gradient(120deg, var(--blue-deep) 0%, var(--blue) 42%, var(--green) 100%);
  --grad-soft: linear-gradient(120deg, var(--blue-tint), var(--green-tint));

  /* Typography */
  --font-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  /* Spacing / shape */
  --container: 1200px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(20, 40, 70, 0.06);
  --shadow: 0 14px 40px rgba(20, 40, 70, 0.10);
  --shadow-lg: 0 24px 60px rgba(20, 40, 70, 0.16);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ------------------------------- Reset ---------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-deep); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }
p { margin: 0 0 1.1rem; }

ul, ol { margin: 0 0 1.1rem; padding-left: 1.2rem; }

/* ----------------------------- Layout ----------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: #c7d6e4; }
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: #fff; }

.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 3px; border-radius: 3px;
  background: var(--grad);
}
.section--dark .eyebrow { color: var(--green-light); }

.lead { font-size: 1.16rem; color: var(--ink-soft); }
.section--dark .lead { color: #b6c7d7; }

/* ------------------------------ Grid ------------------------------------ */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ----------------------------- Buttons ---------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 2px; }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 24px rgba(47, 125, 184, 0.30);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 32px rgba(47, 125, 184, 0.40); }

.btn-outline { background: transparent; color: var(--blue-deep); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue-deep); transform: translateY(-2px); }

.btn-ghost-light { background: rgba(255,255,255,0.10); color: #fff; border-color: rgba(255,255,255,0.28); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.18); color: #fff; }

.btn-lg { padding: 17px 34px; font-size: 1.05rem; }
.btn-sm { padding: 9px 16px; font-size: 0.86rem; }
.btn-ghost { background: transparent; color: var(--muted); border-color: transparent; }
.btn-ghost:hover { color: var(--ink); }
.btn-arrow::after { content: "→"; font-size: 1.1em; line-height: 1; }

/* ------------------------------ Cards ----------------------------------- */
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
  height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }

.card-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--grad-soft);
  color: var(--blue-deep);
  margin-bottom: 20px;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }

.tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-head);
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--blue-tint);
  color: var(--blue-deep);
}
.tag--green { background: var(--green-tint); color: var(--green-deep); }

/* --------------------------- Header / Nav -------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 42px; width: auto; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand-name small {
  display: block;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--green-deep);
  margin-top: 4px;
  white-space: nowrap;
}

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { flex: 0 0 auto; }
.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.96rem;
  line-height: 1;
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 8px;
  white-space: nowrap;
}
/* Animated underline — absolutely positioned so it never shifts the link. */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 6px;
  height: 2px; border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s ease;
}
.nav-links a:hover { color: var(--blue-deep); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--blue-deep); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* Account links are listed inline only inside the mobile menu. */
.nav-divider, .nav-acc-mobile { display: none; }

/* Anonymous "Sign in" link (desktop) */
.nav-signin {
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  color: var(--ink); padding: 9px 8px; white-space: nowrap;
}
.nav-signin:hover { color: var(--blue-deep); }

/* Authenticated account dropdown (desktop) */
.account { position: relative; }
.account-trigger {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 6px 12px 6px 6px; cursor: pointer; font-family: var(--font-head);
  font-weight: 600; font-size: 0.92rem; color: var(--ink); transition: var(--transition);
}
.account-trigger:hover { border-color: var(--blue-light); }
.account-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff;
  background: var(--grad); font-size: 0.85rem; font-weight: 700;
}
.account-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-caret { color: var(--muted); transition: transform var(--transition); }
.account.open .account-caret { transform: rotate(180deg); }
.account-menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 200px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 8px; z-index: 120;
  opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}
.account.open .account-menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.account-menu a, .account-logout button {
  display: block; width: 100%; text-align: left;
  font-family: var(--font-head); font-weight: 500; font-size: 0.93rem;
  color: var(--ink); padding: 10px 12px; border-radius: 8px;
  background: none; border: 0; cursor: pointer;
}
.account-menu a:hover, .account-logout button:hover { background: var(--bg-alt); color: var(--blue-deep); }
.account-logout { margin: 0; }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 9px;
  border-radius: 10px;
}
.nav-toggle span { display: block; height: 2.5px; background: var(--ink); border-radius: 2px; transition: var(--transition); }
.nav-toggle span + span { margin-top: 6px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ------------------------------ Footer ---------------------------------- */
.site-footer {
  background: var(--bg-dark-2);
  color: #9fb3c6;
  padding-top: 72px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 48px;
}
.site-footer h4 {
  color: #fff; font-size: 0.95rem; letter-spacing: 0.04em;
  text-transform: uppercase; margin-bottom: 18px;
}
.footer-brand img { height: 44px; margin-bottom: 18px; }
.footer-brand p { max-width: 34ch; font-size: 0.95rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { color: #9fb3c6; font-size: 0.96rem; }
.footer-links a:hover { color: var(--green-light); }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 14px; font-size: 0.95rem; }
.footer-contact svg { flex: none; width: 18px; height: 18px; color: var(--green-light); margin-top: 3px; }
.footer-contact a { color: #c7d6e4; }
.footer-contact a:hover { color: #fff; }

.social { display: flex; gap: 12px; margin-top: 18px; }
.social a {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.07); color: #c7d6e4;
}
.social a:hover { background: var(--grad); color: #fff; }
.social svg { width: 18px; height: 18px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding: 22px 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.86rem; color: #7d93a8;
}
.footer-bottom a { color: #9fb3c6; }
.footer-bottom a:hover { color: #fff; }

/* ------------------------- Breadcrumbs ---------------------------------- */
.breadcrumbs { font-size: 0.86rem; color: var(--muted); padding: 18px 0 0; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs span { margin: 0 8px; opacity: 0.5; }

/* --------------------------- Page hero (interior) ----------------------- */
.page-hero {
  position: relative;
  background: var(--bg-dark);
  color: #c7d6e4;
  padding: clamp(60px, 8vw, 96px) 0 clamp(56px, 7vw, 80px);
  overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 380px at 85% -10%, rgba(79,157,46,0.28), transparent 60%),
              radial-gradient(760px 360px at 5% 120%, rgba(47,125,184,0.30), transparent 60%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero p { max-width: 60ch; color: #b6c7d7; font-size: 1.12rem; }

/* ------------------------------ Forms ----------------------------------- */
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block; font-family: var(--font-head); font-weight: 600;
  font-size: 0.92rem; color: var(--ink); margin-bottom: 7px;
}
.form-field .req { color: var(--green); }
.form-control {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 125, 184, 0.12);
}
textarea.form-control { min-height: 150px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.help-text { font-size: 0.84rem; color: var(--muted); margin-top: 6px; }
.errorlist { list-style: none; margin: 6px 0 0; padding: 0; color: #c0392b; font-size: 0.86rem; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Messages / alerts */
.alert {
  padding: 16px 20px; border-radius: var(--radius-sm);
  margin-bottom: 22px; font-size: 0.96rem; border: 1px solid transparent;
}
.alert-success { background: var(--green-tint); color: var(--green-deep); border-color: #cbe7b8; }
.alert-error { background: #fdecea; color: #c0392b; border-color: #f5c6c0; }

/* ------------------------------ Utilities ------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 18px; }
.divider-chevron {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  color: var(--green); margin: 10px 0;
}

/* skip link for a11y */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 8px;
  transition: top var(--transition);
}
.skip-link:focus { top: 12px; }

/* --------------------------- Responsive --------------------------------- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* Nav collapses to a hamburger early enough to fit the account links. */
@media (max-width: 1120px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 14px 24px 22px;
    box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: var(--transition);
    max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 8px; border-radius: 8px; font-size: 1.02rem; }
  .nav-links a:hover, .nav-links a.active { background: var(--bg-alt); }
  .nav-links a::after { display: none; }

  /* Account links join the mobile menu */
  .nav-divider { display: block; height: 1px; background: var(--line); margin: 10px 0; padding: 0; }
  .nav-acc-mobile { display: block; }
  .nav-acc-mobile .nav-logout-form button {
    width: 100%; text-align: left; padding: 14px 8px; border: 0; background: none;
    font-family: var(--font-head); font-weight: 500; font-size: 1.02rem; color: var(--ink); cursor: pointer;
  }
  .nav-acc-mobile .nav-logout-form button:hover { color: var(--blue-deep); }
  .nav-links a.nav-mobile-cta { justify-content: center; padding: 15px 24px; margin-top: 10px; }

  /* Desktop account UI hidden in mobile */
  .nav-cta .account, .nav-cta .nav-signin, .nav-cta .nav-desktop-cta { display: none; }
}
@media (max-width: 880px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .brand-name { font-size: 1.05rem; }
  .footer-bottom { flex-direction: column; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ========================================================================
   Shared components (used across multiple pages)
   ======================================================================== */

/* Brand-gradient text */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Reveal-on-scroll */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* Clickable card */
.card-link { display: flex; flex-direction: column; color: inherit; }
.card-link h3 { color: var(--ink); }
.card-link:hover h3 { color: var(--blue-deep); }
.card-more {
  margin-top: auto;
  padding-top: 16px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--blue);
}

/* Project card */
.project-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; color: inherit; height: 100%;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.project-media {
  position: relative; aspect-ratio: 16 / 10; background: var(--grad-soft);
  display: grid; place-items: center; overflow: hidden;
}
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-media-fallback { color: var(--blue); opacity: 0.6; }
.project-domain {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,0.95); color: var(--blue-deep);
  font-family: var(--font-head); font-weight: 600; font-size: 0.76rem;
  padding: 5px 12px; border-radius: 999px;
}
.project-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.project-body h3 { margin-bottom: 8px; }
.project-body .card-more { color: var(--green-deep); }

/* Testimonial */
.testimonial {
  margin: 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px;
}
.testimonial blockquote {
  margin: 0 0 20px; font-size: 1.08rem; color: var(--ink); line-height: 1.6;
}
.testimonial figcaption strong { display: block; color: var(--ink); font-family: var(--font-head); }
.testimonial figcaption span { font-size: 0.9rem; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--grad); color: #fff; padding: clamp(48px, 7vw, 80px) 0; }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-inner h2 { color: #fff; margin-bottom: 8px; }
.cta-inner p { color: rgba(255,255,255,0.92); margin: 0; max-width: 60ch; }
.cta-band .btn-primary { background: #fff; color: var(--blue-deep); box-shadow: 0 12px 30px rgba(0,0,0,0.18); }
.cta-band .btn-primary:hover { color: var(--blue-deep); }

/* Feature list with check icons */
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--grad);
}
.feature-list li::after {
  content: ""; position: absolute; left: 5px; top: 11px;
  width: 5px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

@media (max-width: 620px) {
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

/* ========================================================================
   Page-load entrance animations (motion-safe; skipped for reduced-motion)
   ======================================================================== */
@keyframes biz-rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes biz-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
/* The navbar stays static — only page content animates in on load. */
