/* ==========================================================================
   FINOPS TAX CONSULTANCY - MAIN STYLESHEET
   Clean, modern, and fully responsive styling
   ========================================================================== */

:root {
  --ink: #10495d;
  --ink-rgb: 16, 73, 93;
  --deep: #093c50;
  --teal: #168995;
  --aqua: #87d5c8;
  --gold: #ca9637;
  --gold-hover: #b5832b;
  --paper: #f5f6f1;
  --paper-card: #e7f1ee;
  --muted: #678189;
  --line: #d5e0dc;
  --white: #ffffff;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --header-height: 84px;
  --header-height-mobile: 72px;
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'DM Mono', monospace;
  --transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

h1, h2, h3, h4, p {
  margin-top: 0;
}

h1, h2, h3 {
  letter-spacing: -0.03em;
  font-weight: 800;
}

h1 em, h2 em {
  font-style: normal;
  color: var(--aqua);
}

/* --------------------------------------------------------------------------
   Typography & Shared Utilities
   -------------------------------------------------------------------------- */
.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.6px;
  color: var(--gold);
  margin: 0 0 20px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.kicker i {
  width: 30px;
  border-top: 1px solid currentColor;
  display: inline-block;
}

.button {
  background: var(--gold);
  color: var(--white);
  text-decoration: none;
  display: inline-flex;
  gap: 20px;
  align-items: center;
  padding: 15px 24px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition);
}

.button:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
}

.button b {
  font-size: 16px;
  font-weight: 700;
  transition: transform var(--transition);
}

.button:hover b {
  transform: translateX(3px) translateY(-3px);
}

.button.light {
  background: var(--aqua);
  color: var(--ink);
}

.button.light:hover {
  background: #76c5b8;
}

.plain-link {
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  opacity: 0.9;
}

.plain-link:hover {
  opacity: 1;
}

.plain-link span {
  font-size: 18px;
  transition: transform var(--transition);
}

.plain-link:hover span {
  transform: translateY(3px);
}

.text-arrow {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  gap: 14px;
  align-items: center;
  margin-top: 16px;
}

.text-arrow:hover {
  color: var(--teal);
}

.text-arrow b {
  font-size: 16px;
  transition: transform var(--transition);
}

.text-arrow:hover b {
  transform: translateX(3px) translateY(-3px);
}

/* --------------------------------------------------------------------------
   Site Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  height: var(--header-height);
  width: 100%;
  padding: 0 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  color: var(--white);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Dark home header states */
.site-header.scrolled {
  background: rgba(9, 60, 80, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(135, 213, 200, 0.15);
}

/* Inner pages light header */
.inner-page .site-header,
.contact-page .site-header {
  color: var(--ink);
  background: rgba(245, 246, 241, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.inner-page .site-header.scrolled,
.contact-page .site-header.scrolled {
  box-shadow: 0 4px 20px rgba(16, 73, 93, 0.08);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  z-index: 1002;
}

.logo img {
  width: 112px;
  height: 52px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: opacity var(--transition);
}

.logo:hover img {
  opacity: 0.85;
}

.inner-page .logo img,
.contact-page .logo img {
  filter: none;
}

/* Desktop Navigation */
nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

nav a {
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  opacity: 0.72;
  position: relative;
  padding: 8px 0;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--aqua);
  transition: width var(--transition);
}

.inner-page nav a::after,
.contact-page nav a::after {
  background: var(--gold);
}

nav a:hover,
nav a.active {
  opacity: 1;
}

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

.mobile-nav-footer {
  display: none;
}

/* Header actions & CTA */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-cta {
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition);
}

.header-cta span {
  color: var(--gold);
  font-size: 15px;
}

.header-cta:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.8);
}

.inner-page .header-cta,
.contact-page .header-cta {
  border-color: var(--ink);
  color: var(--ink);
}

.inner-page .header-cta:hover,
.contact-page .header-cta:hover {
  background: var(--ink);
  color: var(--white);
}

/* Animated Hamburger Toggle Button */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 8px;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 1002;
  border-radius: var(--radius-sm);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.hamburger-box {
  width: 24px;
  height: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  margin: 0 auto;
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.2s ease,
              background-color 0.3s ease;
  transform-origin: center;
}

/* Hamburger active transformation to X */
.site-header.nav-open .hamburger-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header.nav-open .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.site-header.nav-open .hamburger-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile backdrop overlay */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* --------------------------------------------------------------------------
   Mobile Header & Navigation Drawer (< 820px)
   -------------------------------------------------------------------------- */
@media (max-width: 820px) {
  .site-header {
    height: var(--header-height-mobile);
    padding: 0 5vw;
  }

  .logo img {
    width: 95px;
    height: 44px;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-actions .header-cta {
    display: none;
  }

  /* When menu is open on inner page, change hamburger toggle to white */
  .inner-page .site-header.nav-open .nav-toggle,
  .contact-page .site-header.nav-open .nav-toggle {
    color: var(--white);
  }

  .nav-backdrop {
    display: block;
  }

  .site-header.nav-open ~ .nav-backdrop,
  body.menu-open .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  /* Mobile Navigation Drawer */
  nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--ink);
    color: var(--white);
    padding: calc(var(--header-height-mobile) + 20px) 6vw 40px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    z-index: 1001;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(135, 213, 200, 0.2);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.3s ease,
                visibility 0.35s;
    max-height: 100vh;
    overflow-y: auto;
  }

  nav.open,
  .site-header.nav-open nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  nav a {
    width: 100%;
    padding: 16px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--white) !important;
    opacity: 0.85 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  nav a::after {
    display: none;
  }

  nav a.active {
    color: var(--aqua) !important;
    opacity: 1 !important;
  }

  nav a.active::before {
    content: "●";
    font-size: 10px;
    color: var(--aqua);
    margin-right: 12px;
  }

  .mobile-nav-footer {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    margin-top: 25px;
    padding-top: 15px;
  }

  .mobile-cta {
    background: var(--gold);
    color: var(--white) !important;
    opacity: 1 !important;
    text-align: center;
    justify-content: center;
    padding: 14px 20px !important;
    border-radius: var(--radius-sm);
    font-size: 14px !important;
    border-bottom: none !important;
  }

  .mobile-cta span {
    color: var(--white);
    margin-left: 8px;
  }

  .mobile-contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: #bdd7d3;
  }

  .mobile-contact-info a {
    border: none;
    padding: 4px 0;
    font-size: 13px;
    font-family: var(--font-mono);
    color: #bdd7d3 !important;
    opacity: 0.9 !important;
  }
}

/* --------------------------------------------------------------------------
   Hero Section (Home)
   -------------------------------------------------------------------------- */
.hero-home {
  background: linear-gradient(130deg, #0b4354 0%, #116a75 50%, #0d3849 100%);
  color: var(--white);
  min-height: 840px;
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-height) + 80px) 8vw 100px;
  display: flex;
  align-items: center;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 49.93%, rgba(255, 255, 255, 0.05) 50% 50.08%, transparent 50.15%),
    linear-gradient(transparent 0 74.93%, rgba(255, 255, 255, 0.05) 75% 75.1%, transparent 75.15%);
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border: 1px solid rgba(160, 232, 215, 0.25);
  border-radius: 50%;
  pointer-events: none;
}

.orb-a {
  height: 780px;
  width: 780px;
  right: -140px;
  top: -380px;
}

.orb-b {
  height: 450px;
  width: 450px;
  left: -180px;
  bottom: -160px;
}

.hero-orb::after {
  content: "";
  position: absolute;
  inset: 60px;
  border: 1px solid rgba(160, 232, 215, 0.12);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 58%;
  max-width: 680px;
}

.hero-content h1 {
  font-size: clamp(48px, 6.2vw, 96px);
  line-height: 1.02;
  margin-bottom: 24px;
}

.hero-lead {
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.7;
  color: #d1e4df;
  max-width: 480px;
}

.button-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* Floating Finance Panel */
.finance-panel {
  position: absolute;
  z-index: 2;
  width: 360px;
  right: 8vw;
  top: 50%;
  transform: translateY(-50%);
  padding: 24px;
  background: #f7f8f4;
  color: var(--ink);
  box-shadow: 20px 24px 0 rgba(0, 34, 48, 0.2);
  border-radius: var(--radius-sm);
}

.panel-top, .panel-bottom {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.6px;
}

.live {
  color: #18946d;
}

.growth {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 45px 0 24px;
}

.growth p {
  font-size: 14px;
  line-height: 1.35;
  margin: 0;
  color: var(--muted);
}

.growth strong {
  font-size: 54px;
  letter-spacing: -3px;
  line-height: 0.85;
  color: var(--ink);
}

.growth strong span {
  font-size: 24px;
}

.panel-chart {
  height: 100px;
  display: flex;
  gap: 14px;
  align-items: flex-end;
  position: relative;
  border-bottom: 1px solid #d7e3dd;
}

.panel-chart i {
  display: block;
  width: 18px;
  background: #bedfd7;
  border-radius: 2px 2px 0 0;
}

.panel-chart i:nth-child(1) { height: 25%; }
.panel-chart i:nth-child(2) { height: 45%; }
.panel-chart i:nth-child(3) { height: 38%; }
.panel-chart i:nth-child(4) { height: 72%; }
.panel-chart i:nth-child(5) { height: 92%; background: var(--gold); }

.panel-chart svg {
  position: absolute;
  inset: 0;
  fill: none;
  width: 100%;
  height: 100%;
}

.panel-chart path {
  stroke: var(--teal);
  stroke-width: 2.5;
}

.panel-bottom {
  padding-top: 15px;
}

.panel-bottom b {
  font-family: var(--font-sans);
  font-size: 11px;
}

.hero-footer {
  position: absolute;
  z-index: 2;
  bottom: 30px;
  left: 8vw;
  right: 8vw;
  display: flex;
  align-items: center;
  gap: 18px;
  color: #b7d5d0;
  font-family: var(--font-mono);
  font-size: 10px;
}

.scroll-line {
  height: 1px;
  background: rgba(134, 200, 191, 0.4);
  flex: 1;
}

/* --------------------------------------------------------------------------
   Home Hero Responsiveness
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .hero-home {
    padding-top: calc(var(--header-height) + 50px);
    padding-bottom: 90px;
  }
  .hero-content {
    width: 52%;
  }
  .finance-panel {
    width: 320px;
    right: 5vw;
  }
}

@media (max-width: 960px) {
  .hero-home {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-top: calc(var(--header-height-mobile) + 50px);
    padding-bottom: 90px;
    min-height: auto;
  }
  .hero-content {
    width: 100%;
    max-width: 620px;
  }
  .finance-panel {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin-top: 48px;
    width: 100%;
    max-width: 400px;
  }
  .hero-footer {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-home {
    padding: calc(var(--header-height-mobile) + 36px) 6vw 70px;
  }
  .button-row {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .button-row .button {
    justify-content: center;
  }
  .button-row .plain-link {
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   Intro Section & Principles
   -------------------------------------------------------------------------- */
.intro-section {
  padding: 120px 8vw 100px;
  display: grid;
  grid-template-columns: 0.8fr 1.4fr 1.3fr;
  gap: 5vw;
  align-items: flex-start;
}

.side-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
  padding-top: 10px;
  margin: 0;
}

.intro-copy h2,
.section-head h2,
.software-copy h2,
.platform-intro h2,
.implementation h2,
.story h2 {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.08;
  margin-bottom: 24px;
}

.intro-copy > p,
.software-copy > p,
.platform-intro > p,
.story > p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}

.principles {
  border-left: 1px solid var(--line);
}

.principles > div {
  padding: 20px 0 24px 28px;
  border-bottom: 1px solid var(--line);
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.principles span {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 11px;
}

.principles h3 {
  font-size: 22px;
  margin: 8px 0 8px;
}

.principles p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 960px) {
  .intro-section {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 80px 7vw;
  }
  .side-label {
    padding-top: 0;
  }
}

/* --------------------------------------------------------------------------
   Service Preview Section
   -------------------------------------------------------------------------- */
.service-preview {
  background: #e5efeb;
  padding: 110px 8vw;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 45px;
  gap: 20px;
}

.rounded-arrow {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  background: var(--ink);
  border-radius: 50%;
  color: var(--white);
  text-decoration: none;
  font-size: 24px;
  flex-shrink: 0;
  transition: background var(--transition), transform var(--transition);
}

.rounded-arrow:hover {
  background: var(--teal);
  transform: scale(1.08);
}

.service-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #b9d1ca;
}

.service-rail a {
  min-height: 220px;
  padding: 24px 20px;
  text-decoration: none;
  color: var(--ink);
  border-right: 1px solid #b9d1ca;
  border-bottom: 1px solid #b9d1ca;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: transparent;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.service-rail a:hover {
  background: var(--ink);
  color: var(--white);
}

.service-rail small {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gold);
}

.service-rail span {
  font-weight: 800;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.8px;
  margin: 20px 0;
}

.service-rail b {
  font-size: 22px;
  transition: transform var(--transition);
}

.service-rail a:hover b {
  transform: translateX(4px);
}

.service-rail .accent {
  background: var(--teal);
  color: var(--white);
}

.service-rail .accent:hover {
  background: #116a75;
}

@media (max-width: 960px) {
  .service-rail {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .service-preview {
    padding: 70px 6vw;
  }
  .service-rail {
    grid-template-columns: 1fr;
    border-right: 1px solid #b9d1ca;
  }
  .service-rail a {
    min-height: 160px;
  }
}

/* --------------------------------------------------------------------------
   Software Banner (Home)
   -------------------------------------------------------------------------- */
.software-banner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--ink);
  color: var(--white);
  min-height: 560px;
}

.software-art {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #137c84, #0b4358);
  min-height: 380px;
}

.art-ring {
  position: absolute;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(133, 210, 195, 0.4);
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.art-ring::after {
  content: "";
  position: absolute;
  inset: 50px;
  border: 1px solid rgba(133, 210, 195, 0.2);
  border-radius: 50%;
}

.software-tags span {
  position: absolute;
  background: #f5f6f1;
  color: var(--ink);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 6px 8px 0 rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-sm);
}

.software-tags span:nth-child(1) { top: 22%; left: 14%; }
.software-tags span:nth-child(2) { top: 28%; right: 14%; }
.software-tags span:nth-child(3) { top: 48%; left: 8%; color: #e54245; }
.software-tags span:nth-child(4) { top: 58%; right: 10%; color: #1277b8; }
.software-tags span:nth-child(5) { top: 70%; left: 20%; color: #4a9a41; }
.software-tags span:nth-child(6) { top: 78%; right: 26%; color: #29a8d3; }
.software-tags span:nth-child(7) { top: 40%; left: 44%; color: #227641; }

.software-copy {
  padding: 100px 8vw 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.software-copy > p {
  color: #bad6d1;
  margin-bottom: 32px;
}

@media (max-width: 960px) {
  .software-banner {
    grid-template-columns: 1fr;
  }
  .software-art {
    min-height: 320px;
  }
  .software-copy {
    padding: 60px 7vw;
  }
}

/* --------------------------------------------------------------------------
   Closing CTA Section
   -------------------------------------------------------------------------- */
.closing-cta {
  padding: 120px 8vw;
  background: var(--paper);
  position: relative;
}

.closing-cta h2 {
  font-size: clamp(42px, 5.2vw, 78px);
  line-height: 1;
  margin-bottom: 32px;
}

.mini-logo {
  position: absolute;
  right: 9vw;
  top: 50%;
  transform: translateY(-50%);
  width: 140px;
  height: 140px;
  border: 1px solid #d0dfdb;
  border-radius: 50%;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 820px) {
  .mini-logo {
    display: none;
  }
  .closing-cta {
    padding: 80px 7vw;
  }
}

/* --------------------------------------------------------------------------
   Global Footer
   -------------------------------------------------------------------------- */
footer {
  background: #0b3d50;
  color: var(--white);
  padding: 70px 8vw 40px;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1.2fr;
  gap: 40px;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer .footer-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}

footer p, footer a {
  font-size: 13px;
  line-height: 1.7;
  color: #bed3ce;
  text-decoration: none;
  display: block;
}

footer a:hover {
  color: var(--white);
}

footer h4 {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--gold);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin: 0 0 16px;
}

footer small {
  grid-column: 1 / -1;
  padding-top: 30px;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 10px;
  color: #89aaa4;
  display: block;
}

@media (max-width: 820px) {
  footer {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 50px 7vw 36px;
  }
}

/* --------------------------------------------------------------------------
   Inner Page Layouts (About, Services, Software, Contact)
   -------------------------------------------------------------------------- */
.inner-page,
.contact-page {
  background: var(--paper);
}

.about-hero,
.service-hero {
  padding: calc(var(--header-height) + 60px) 12vw 80px;
  background: var(--paper);
  background-image: radial-gradient(circle at 88% 20%, #cceee6, transparent 35%);
}

.about-hero h1,
.service-hero h1 {
  font-size: clamp(38px, 4.8vw, 72px);
  line-height: 1.05;
  margin-bottom: 24px;
  max-width: 900px;
}

.about-hero > p:not(.kicker),
.service-hero > p:not(.kicker) {
  max-width: 540px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

/* Story Section (About) */
.story {
  padding: 100px 12vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8vw;
  background: var(--white);
}

.story > p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
}

@media (max-width: 820px) {
  .about-hero,
  .service-hero {
    padding: calc(var(--header-height-mobile) + 40px) 7vw 60px;
  }
  .story {
    padding: 70px 7vw;
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Values Grid (About) */
.values {
  padding: 0 8vw 100px;
  background: var(--white);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.values article {
  background: var(--paper-card);
  padding: 36px 30px;
  min-height: 260px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.values span {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 11px;
}

.values h3 {
  font-size: 26px;
  margin: 30px 0 12px;
}

.values p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 820px) {
  .values {
    padding: 0 7vw 70px;
    grid-template-columns: 1fr;
  }
  .values article {
    min-height: auto;
  }
}

/* --------------------------------------------------------------------------
   Full Services List (Services Page)
   -------------------------------------------------------------------------- */
.full-services {
  padding: 0 12vw 100px;
  background: var(--white);
}

.full-services article {
  display: grid;
  grid-template-columns: 70px 1fr 48px;
  gap: 20px;
  align-items: center;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.full-services span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
  font-weight: 500;
}

.full-services h2 {
  font-size: 26px;
  margin: 0 0 8px;
}

.full-services p {
  color: var(--muted);
  font-size: 14px;
  max-width: 580px;
  line-height: 1.6;
  margin: 0;
}

.full-services a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 20px;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.full-services article:hover a {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

@media (max-width: 820px) {
  .full-services {
    padding: 0 7vw 70px;
  }
  .full-services article {
    grid-template-columns: 40px 1fr 40px;
    padding: 28px 0;
  }
  .full-services h2 {
    font-size: 20px;
  }
  .full-services p {
    font-size: 13px;
  }
}

/* --------------------------------------------------------------------------
   Software Solutions Page
   -------------------------------------------------------------------------- */
.software-hero {
  background: var(--deep);
  color: var(--white);
  min-height: 520px;
  padding: calc(var(--header-height) + 60px) 8vw 70px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.software-hero h1 {
  font-size: clamp(38px, 5vw, 76px);
  line-height: 1.05;
  margin-bottom: 24px;
  max-width: 600px;
}

.software-hero > p:not(.kicker) {
  color: #bdd7d3;
  max-width: 480px;
  line-height: 1.7;
  font-size: 17px;
}

.logo-cloud {
  position: absolute;
  right: 8vw;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 320px;
}

.logo-cloud span {
  position: absolute;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  box-shadow: 8px 10px 0 rgba(0, 0, 0, 0.15);
}

.logo-cloud span:nth-child(1) { top: 20px; left: 20px; color: #147eab; }
.logo-cloud .qb { right: 28px; top: 30px; background: #2d9843; color: var(--white); border-radius: 50%; font-size: 24px; padding: 18px; }
.logo-cloud .zoho { top: 130px; left: 10px; color: #e94d4c; }
.logo-cloud .sap { right: 10px; top: 135px; background: #137fc2; color: var(--white); }
.logo-cloud .sage { bottom: 30px; left: 60px; color: #5ca447; font-size: 24px; }
.logo-cloud .xero { right: 90px; bottom: 20px; border-radius: 50%; background: #29b8dd; color: var(--white); font-size: 18px; padding: 14px; }
.logo-cloud .excel { bottom: 65px; right: 0; background: #1c7742; color: var(--white); font-size: 22px; }

@media (max-width: 1024px) {
  .logo-cloud {
    width: 320px;
    height: 260px;
    transform: translateY(-50%) scale(0.85);
    transform-origin: right center;
  }
}

@media (max-width: 820px) {
  .software-hero {
    padding: calc(var(--header-height-mobile) + 40px) 7vw 60px;
    min-height: auto;
  }
  .logo-cloud {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin-top: 40px;
    width: 100%;
    max-width: 360px;
    height: 240px;
  }
}

/* Platforms List */
.platforms {
  padding: 110px 9vw;
  display: grid;
  grid-template-columns: 0.9fr 1.35fr;
  gap: 8vw;
}

.platform-intro {
  position: sticky;
  top: calc(var(--header-height) + 30px);
  height: max-content;
}

.platform-list {
  border-top: 1px solid var(--line);
}

.platform-list article {
  display: grid;
  grid-template-columns: 35px 1fr 1.1fr 28px;
  gap: 16px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.platform-list article > span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gold);
}

.platform-list p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.platform-list i {
  font-size: 18px;
  font-style: normal;
  color: var(--ink);
}

.platform-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.tally { color: #226fb2; }
.quickbooks { font-size: 12px; }
.quickbooks b { display: block; font-size: 18px; color: #299548; }
.zoho-name { color: #e64d4b; }
.sap-name { color: #137fc2; }
.sage-name { color: #56a143; font-size: 24px; }
.xero-name { color: #23a8d1; }
.excel-name { color: #1c7944; }

@media (max-width: 960px) {
  .platforms {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 80px 7vw;
  }
  .platform-intro {
    position: static;
  }
}

@media (max-width: 600px) {
  .platform-list article {
    grid-template-columns: 28px 1fr 24px;
    gap: 12px;
  }
  .platform-list p {
    grid-column: 2 / 4;
  }
}

/* Implementation Steps */
.implementation {
  padding: 100px 9vw;
  background: #dcece6;
}

.implementation h2 {
  margin-bottom: 45px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #b5cec6;
  margin-bottom: 45px;
}

.steps div {
  padding: 24px 28px 24px 0;
  border-right: 1px solid #b5cec6;
}

.steps div + div {
  padding-left: 28px;
}

.steps b {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 11px;
}

.steps h3 {
  font-size: 24px;
  margin: 36px 0 10px;
}

.steps p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 820px) {
  .implementation {
    padding: 70px 7vw;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .steps div, .steps div + div {
    padding: 20px 0;
    border-right: none;
    border-bottom: 1px solid #b5cec6;
  }
  .steps h3 {
    margin: 16px 0 8px;
  }
}

/* --------------------------------------------------------------------------
   Contact Page
   -------------------------------------------------------------------------- */
.contact-hero {
  background: linear-gradient(130deg, #0e4d60 0%, #147e85 100%);
  color: var(--white);
  min-height: calc(100vh - var(--header-height));
  padding: calc(var(--header-height) + 60px) 10vw 80px;
}

.contact-hero h1 {
  font-size: clamp(38px, 5.2vw, 76px);
  line-height: 1.05;
  margin-bottom: 24px;
}

.contact-hero > p:not(.kicker) {
  max-width: 500px;
  color: #bfdbd5;
  line-height: 1.7;
  font-size: 18px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 40px;
  margin-top: 60px;
}

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-grid > * {
  padding: 24px 28px;
  background: rgba(10, 58, 74, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 14px;
  line-height: 1.6;
  transition: background var(--transition), transform var(--transition);
}

.contact-grid a:hover {
  background: rgba(14, 77, 96, 0.9);
  transform: translateY(-2px);
}

.contact-grid small {
  display: block;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.contact-grid b {
  float: right;
  font-size: 18px;
  color: var(--aqua);
}

/* Contact Form Card */
.contact-form-card {
  background: var(--white);
  color: var(--ink);
  padding: 36px;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.contact-form-card h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.contact-form-card > p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--ink);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 14px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color var(--transition), background var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
}

.form-submit-btn {
  margin-top: 10px;
  width: 100%;
  justify-content: center;
  border: none;
}

.form-status {
  margin-top: 15px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  display: none;
}

.form-status.success {
  display: block;
  color: #18946d;
}

.form-status.error {
  display: block;
  color: #e54245;
}

@media (max-width: 960px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
  }
}

@media (max-width: 600px) {
  .contact-hero {
    padding: calc(var(--header-height-mobile) + 36px) 6vw 60px;
  }
  .contact-form-card {
    padding: 24px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Animations & Reveals
   -------------------------------------------------------------------------- */
.principles > div,
.platform-list article,
.values article,
.full-services article {
  opacity: 0.35;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.principles > div.in-view,
.platform-list article.in-view,
.values article.in-view,
.full-services article.in-view {
  opacity: 1;
  transform: none;
}

/* Safe fallback if JS or intersection observer is disabled */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .principles > div,
  .platform-list article,
  .values article,
  .full-services article,
  .stat-card,
  .case-card,
  .sector-card,
  .team-card {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   AUTHENTIC FINOPS SERVICES & PROFILE COMPONENTS
   ========================================================================== */

/* 8 Core Services Grid */
.core-services-section {
  padding: 100px 8vw;
  background: var(--paper);
}

.services-grid-8 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.service-card-item {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 30px 24px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card-item:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
  box-shadow: 0 14px 30px rgba(16, 73, 93, 0.08);
}

.service-card-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 14px;
  display: block;
}

.service-card-item h3 {
  font-size: 20px;
  line-height: 1.25;
  margin-bottom: 16px;
  color: var(--ink);
}

.service-sublist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.service-sublist li {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  position: relative;
  padding-left: 14px;
}

.service-sublist li::before {
  content: "•";
  color: var(--teal);
  position: absolute;
  left: 0;
  font-weight: 700;
}

@media (max-width: 1200px) {
  .services-grid-8 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .services-grid-8 {
    grid-template-columns: 1fr;
  }
}

/* Niche Specialization Highlights (Clinical Costing & E-Invoicing) */
.specialization-banner {
  background: var(--ink);
  color: var(--white);
  padding: 80px 8vw;
}

.specialization-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 40px;
}

.special-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(135, 213, 200, 0.2);
  padding: 32px 28px;
  border-radius: var(--radius-sm);
}

.special-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: block;
}

.special-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--aqua);
}

.special-card p {
  font-size: 14px;
  color: #c5ded8;
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 768px) {
  .specialization-grid {
    grid-template-columns: 1fr;
  }
}

/* Detailed Services Breakdown on Services Page */
.service-detail-block {
  padding: 50px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 0.8fr 1.6fr 0.6fr;
  gap: 30px;
  align-items: flex-start;
}

.service-detail-block:last-child {
  border-bottom: 1px solid var(--line);
}

.detail-num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--gold);
  font-weight: 700;
}

.detail-main h2 {
  font-size: 26px;
  margin-bottom: 12px;
}

.detail-main p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-chips span {
  background: #e5efeb;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
}

.detail-action {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 820px) {
  .service-detail-block {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 36px 0;
  }
  .detail-action {
    justify-content: flex-start;
  }
}


