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

/* Card fade-in — will-change applied only in JS right before animation, removed after */
.service-card, .feature, .team-card, .pricing-card {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .4s ease, transform .4s ease;
}
.service-card.visible, .feature.visible, .team-card.visible, .pricing-card.visible {
  opacity: 1;
  transform: none;
}

:root {
  --navy:      #1a2744;
  --navy-light:#243460;
  --gold:      #c9a84c;
  --gold-light:#e0c46a;
  --white:     #ffffff;
  --grey-bg:   #f5f6fa;
  --grey-mid:  #e8eaf0;
  --text:      #2d2d2d;
  --text-muted:#6b7280;
  --radius:    8px;
  --shadow:    0 4px 24px rgba(26,39,68,.10);
  --shadow-sm: 0 2px 10px rgba(26,39,68,.08);
  --transition:0.25s ease;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text); background: var(--white); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-overflow-scrolling: touch; /* momentum scrolling on iOS */
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ─── Typography ────────────────────────────────────────────────── */
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.2; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem);   font-weight: 700; line-height: 1.3; }
h3 { font-size: 1.15rem; font-weight: 600; }
p  { font-size: 1rem; line-height: 1.75; }

.section-label {
  font-size: .75rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold); margin-bottom: .5rem;
}
.section-title { color: var(--navy); margin-bottom: 1rem; }
.section-sub   { color: var(--text-muted); max-width: 580px; font-size: 1.05rem; }

/* ─── Layout Helpers ────────────────────────────────────────────── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.section   { padding: 80px 0; }
.section--grey { background: var(--grey-bg); }
.section--navy { background: var(--navy); color: var(--white); }
.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* ─── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: .75rem 1.75rem; border-radius: var(--radius);
  font-weight: 600; font-size: .95rem; cursor: pointer; transition: var(--transition);
  border: 2px solid transparent;
  -webkit-tap-highlight-color: transparent; /* removes grey flash on mobile tap */
  touch-action: manipulation;              /* eliminates 300ms tap delay */
}
.btn-primary {
  background: var(--gold); color: var(--navy);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(201,168,76,.35); }
.btn-outline {
  background: transparent; color: var(--white); border-color: var(--gold);
}
.btn-outline:hover { background: var(--gold); color: var(--navy); }
.btn-navy {
  background: var(--navy); color: var(--white); border-color: var(--navy);
}
.btn-navy:hover { background: var(--navy-light); }

/* ─── Navigation ────────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy); box-shadow: 0 2px 12px rgba(0,0,0,.18);
  transform: translateZ(0); /* keeps navbar on its own compositing layer */
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.navbar__brand { display: flex; align-items: center; gap: .75rem; }
.brand-mark {
  width: 40px; height: 40px; background: var(--gold); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 800; color: var(--navy); letter-spacing: -.5px;
}
.brand-text { line-height: 1.2; }
.brand-text strong { display: block; color: var(--white); font-size: .95rem; font-weight: 700; }
.brand-text span   { color: var(--gold); font-size: .72rem; letter-spacing: .06em; }

.navbar__links {
  display: flex; align-items: center; gap: .25rem;
}
.navbar__links a {
  color: #c8d0e7; font-size: .9rem; padding: .5rem .9rem;
  border-radius: 5px; transition: var(--transition); font-weight: 500;
}
.navbar__links a:hover, .navbar__links a.active {
  color: var(--white); background: rgba(255,255,255,.08);
}
.navbar__links .btn { margin-left: .5rem; padding: .5rem 1.2rem; }

.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: .25rem;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px; transition: var(--transition);
}
.mobile-menu {
  display: none; background: var(--navy-light); padding: 1rem 1.5rem 1.5rem;
}
.mobile-menu a {
  display: block; color: #c8d0e7; padding: .65rem 0;
  font-size: .95rem; border-bottom: 1px solid rgba(255,255,255,.07);
}
.mobile-menu a:last-child { border: none; }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--gold); }
.mobile-menu.open { display: block; }

/* ─── Hero ──────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #1e3a5f 100%);
  color: var(--white); padding: 100px 0 80px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero .container {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(201,168,76,.15); border: 1px solid rgba(201,168,76,.3);
  color: var(--gold); padding: .35rem .9rem; border-radius: 20px;
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero__title { color: var(--white); margin-bottom: 1rem; }
.hero__title span { color: var(--gold); }
.hero__sub { color: #c8d0e7; font-size: 1.05rem; margin-bottom: 2rem; max-width: 520px; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; margin-top: 2.5rem; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.12);
}
.stat__num { font-size: 2rem; font-weight: 700; color: var(--gold); line-height: 1; }
.stat__label { font-size: .8rem; color: #c8d0e7; margin-top: .2rem; }

.hero__card {
  background: rgba(255,255,255,.07); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.12); border-radius: 16px;
  padding: 2rem; display: flex; flex-direction: column; gap: 1rem;
}
.hero__card-title { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.service-pill {
  display: flex; align-items: center; gap: .65rem;
  background: rgba(255,255,255,.06); border-radius: 8px;
  padding: .65rem .9rem; font-size: .88rem; color: #dde2f0;
}
.service-pill .icon { font-size: 1.1rem; }
a.service-pill { transition: background var(--transition), border-color var(--transition); cursor: pointer; }
a.service-pill:hover { background: rgba(255,255,255,.12); border: 1px solid rgba(201,168,76,.5); }

/* ─── Page Hero (inner pages) ───────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white); padding: 36px 0 40px; text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: .75rem; }
.page-hero p  { color: #c8d0e7; max-width: 580px; margin: 0 auto; font-size: 1.05rem; }
.breadcrumb {
  display: flex; justify-content: center; gap: .5rem; align-items: center;
  font-size: .8rem; color: var(--gold); margin-bottom: .75rem;
}
.breadcrumb a { color: #c8d0e7; }
.breadcrumb a:hover { color: var(--gold); }

/* ─── Services Grid ─────────────────────────────────────────────── */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem; margin-top: 3rem;
}
.service-card {
  background: var(--white); border: 1px solid var(--grey-mid);
  border-radius: 12px; padding: 2rem; transition: var(--transition);
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 48px 1fr; column-gap: .75rem; align-items: start;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--gold); opacity: 0;
  transition: opacity var(--transition);  /* opacity is cheaper than scaleX transform */
}
.service-card:hover { box-shadow: var(--shadow); border-color: transparent; }
/* Removed transform:translateY on hover — triggers layout recalc, causes scroll jank */
.service-card:hover::before { opacity: 1; }
.service-card__icon {
  width: 48px; height: 48px; background: rgba(201,168,76,.1);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; grid-column: 1; grid-row: 1; align-self: center;
}
.service-card h3 {
  color: var(--navy); font-size: 1.05rem; margin-bottom: 0;
  grid-column: 2; grid-row: 1; align-self: center;
}
.service-card > p, .service-card__list, .service-card__link { grid-column: 1 / -1; }
.service-card > p { margin-top: .75rem; }
.service-card p  { color: var(--text-muted); font-size: .93rem; }
.service-card__list { margin-top: 1rem; }
.service-card__list li {
  font-size: .88rem; color: var(--text-muted); padding: .3rem 0;
  padding-left: 1.1rem; position: relative;
}
.service-card__list li::before {
  content: '›'; position: absolute; left: 0; color: var(--gold); font-weight: 700;
}
.service-card__link {
  display: inline-flex; align-items: center; gap: .35rem;
  color: var(--navy); font-size: .88rem; font-weight: 600; margin-top: 1.25rem;
  transition: var(--transition);
}
.service-card__link:hover { color: var(--gold); gap: .6rem; }

/* ─── Features / Why Us ─────────────────────────────────────────── */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem; margin-top: 3rem;
}
.feature {
  text-align: center; padding: 1.5rem 1rem;
}
.feature__icon {
  width: 60px; height: 60px; background: rgba(201,168,76,.12);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin: 0 auto 1rem;
}
.feature h3 { color: var(--navy); margin-bottom: .5rem; }
.feature p   { color: var(--text-muted); font-size: .93rem; }

/* ─── About / Team ──────────────────────────────────────────────── */
.about-intro {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start;
}
.about-intro__image {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 16px; padding: 3rem 2rem; color: var(--white); text-align: center;
}
.about-intro__image .big-year {
  font-size: 5rem; font-weight: 800; color: var(--gold); line-height: 1;
}
.about-intro__image p { color: #c8d0e7; margin-top: .5rem; }
.credential-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(201,168,76,.12); border: 1px solid rgba(201,168,76,.25);
  color: var(--gold); padding: .4rem .9rem; border-radius: 6px;
  font-size: .78rem; font-weight: 600; margin: .3rem;
}
.about-points { margin-top: 1.5rem; display: flex; flex-direction: column; gap: .75rem; }
.about-point {
  display: flex; gap: .75rem; align-items: flex-start;
}
.about-point__icon { color: var(--gold); font-size: 1.1rem; margin-top: .1rem; flex-shrink: 0; }
.about-point p { font-size: .95rem; color: var(--text-muted); }

.team-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem; margin-top: 3rem;
}
.team-card {
  background: var(--white); border: 1px solid var(--grey-mid);
  border-radius: 12px; padding: 1.75rem; text-align: center; transition: var(--transition);
}
.team-card:hover { box-shadow: var(--shadow); border-color: transparent; }
.team-card__avatar {
  width: 70px; height: 70px; background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 700; color: var(--gold); margin: 0 auto 1rem;
}
.team-card h3 { color: var(--navy); font-size: 1rem; margin-bottom: .25rem; }
.team-card__role { color: var(--gold); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; margin-bottom: .75rem; }
.team-card p { color: var(--text-muted); font-size: .88rem; }
.team-card__tag {
  display: inline-block; background: var(--grey-bg); color: var(--text-muted);
  font-size: .72rem; padding: .2rem .6rem; border-radius: 20px; margin: .2rem;
}

/* ─── VCFO Page ─────────────────────────────────────────────────── */
.vcfo-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start;
}
.pricing-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; }
.pricing-card {
  border: 2px solid var(--grey-mid); border-radius: 12px; padding: 1.75rem;
  position: relative; transition: var(--transition);
}
.pricing-card.featured {
  border-color: var(--gold); background: rgba(201,168,76,.04);
}
.pricing-card .badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--navy); font-size: .72rem; font-weight: 700;
  padding: .25rem .8rem; border-radius: 20px; letter-spacing: .06em;
}
.pricing-card h3 { color: var(--navy); font-size: 1.05rem; }
.pricing-card .price {
  font-size: 1.6rem; font-weight: 700; color: var(--navy); margin: .75rem 0 .25rem;
}
.pricing-card .price span { font-size: .85rem; color: var(--text-muted); font-weight: 400; }
.pricing-card ul { margin-top: 1rem; }
.pricing-card ul li {
  font-size: .88rem; color: var(--text-muted); padding: .35rem 0;
  padding-left: 1.3rem; position: relative; border-bottom: 1px solid var(--grey-mid);
}
.pricing-card ul li:last-child { border: none; }
.pricing-card ul li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* ─── Contact ───────────────────────────────────────────────────── */
.contact-layout {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 4rem;
}
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-block { display: flex; gap: 1rem; align-items: flex-start; }
.contact-block__icon {
  width: 44px; height: 44px; background: rgba(201,168,76,.1);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.contact-block h4 { color: var(--navy); font-size: .9rem; margin-bottom: .2rem; }
.contact-block p, .contact-block a { color: var(--text-muted); font-size: .93rem; }
.contact-block a:hover { color: var(--gold); }

.contact-form { background: var(--white); border: 1px solid var(--grey-mid); border-radius: 16px; padding: 2.5rem; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .87rem; font-weight: 600; color: var(--navy); margin-bottom: .45rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: .75rem 1rem; border: 1.5px solid var(--grey-mid);
  border-radius: var(--radius); font-size: 1rem; /* 1rem prevents iOS auto-zoom on focus */
  font-family: inherit; color: var(--text); background: var(--white);
  transition: border-color .15s ease; /* only transition border, not box-shadow — faster on mobile */
  outline: none; -webkit-appearance: none; appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .8rem; color: var(--text-muted); margin-top: .4rem; }
.form-success {
  display: none; background: #d1fae5; border: 1px solid #6ee7b7;
  color: #065f46; padding: 1rem 1.25rem; border-radius: var(--radius);
  font-size: .93rem; margin-top: 1rem;
}

/* ─── CTA Banner ────────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white); padding: 70px 0; text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: .75rem; }
.cta-banner p  { color: #c8d0e7; margin-bottom: 2rem; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-banner .actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ─── Footer ────────────────────────────────────────────────────── */
.footer {
  background: #111827; color: #9ca3af; padding: 60px 0 30px;
}
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 3rem;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__brand { }
.footer__brand .brand-mark { background: var(--gold); color: var(--navy); width: 44px; height: 44px; font-size: .9rem; }
.footer__brand .brand-text strong { color: var(--white); }
.footer__about { margin-top: 1rem; font-size: .88rem; line-height: 1.7; max-width: 280px; }
.footer__icai  { font-size: .78rem; color: var(--gold); margin-top: .75rem; }
.footer h4     { color: var(--white); font-size: .9rem; font-weight: 600; margin-bottom: 1rem; }
.footer__links li { margin-bottom: .55rem; }
.footer__links a  { font-size: .88rem; transition: var(--transition); }
.footer__links a:hover { color: var(--gold); }
.footer__contact li { font-size: .88rem; margin-bottom: .6rem; display: flex; gap: .5rem; align-items: flex-start; }
.footer__contact .icon { color: var(--gold); flex-shrink: 0; margin-top: .1rem; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1.5rem; font-size: .82rem; flex-wrap: wrap; gap: .5rem;
}
.footer__bottom a { color: var(--gold); }

/* ─── Reusable responsive grid helpers ──────────────────────────── */
/* Used in services.html, index.html, about.html to replace inline grid styles */
.split-1-2   { display:grid; grid-template-columns:1fr 2fr; gap:4rem; align-items:start; }
.split-2-1   { display:grid; grid-template-columns:2fr 1fr; gap:4rem; align-items:start; }
.split-1-1   { display:grid; grid-template-columns:1fr 1fr; gap:4rem; align-items:center; }
.split-1-1--start { align-items:start; }
.cards-2col  { display:grid; grid-template-columns:1fr 1fr; gap:1.25rem; }
.stats-2col  { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.sticky-col  { position:static; }  /* sticky causes per-frame recalc — removed */
.auto-1fr    { grid-template-columns:auto 1fr; gap:3rem; align-items:start; display:grid; }
.founder-team-card { display:grid; grid-template-columns:auto 1fr; gap:2rem; align-items:center; }

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero .container    { grid-template-columns: 1fr; }
  .hero__right        { display: none; }
  .about-intro        { grid-template-columns: 1fr; }
  .about-intro__image { display: none; }
  .vcfo-split         { grid-template-columns: 1fr; }
  .contact-layout     { grid-template-columns: 1fr; }
  .pricing-cards      { grid-template-columns: 1fr; }
  .footer__grid       { grid-template-columns: 1fr 1fr; gap: 2rem; }
  /* Collapse all split helpers */
  .split-1-2, .split-2-1, .split-1-1, .auto-1fr { grid-template-columns:1fr; gap:2rem; }
  .founder-team-card { grid-template-columns:1fr; text-align:center; }
  .sticky-col  { position:static; }
  .cards-2col  { grid-template-columns:1fr; }
}
@media (max-width: 600px) {
  .section            { padding: 55px 0; }
  .form-row           { grid-template-columns: 1fr; }
  .navbar__links      { display: none; }
  .hamburger          { display: flex; }
  .hero               { padding: 70px 0 60px; }
  .hero__stats        { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .footer__grid       { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom     { flex-direction: column; text-align: center; }
  .cards-2col         { grid-template-columns:1fr; }
}

/* ─── Utility ───────────────────────────────────────────────────── */
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.divider { height: 1px; background: var(--grey-mid); margin: 2rem 0; }
.tag {
  display: inline-block; background: rgba(201,168,76,.1); color: #8a6d20;
  font-size: .75rem; font-weight: 600; padding: .2rem .65rem; border-radius: 20px;
  margin: .2rem;
}
.highlight-box {
  background: rgba(201,168,76,.08); border-left: 4px solid var(--gold);
  padding: 1.25rem 1.5rem; border-radius: 0 8px 8px 0; margin: 1.5rem 0;
}
.highlight-box p { color: var(--text); font-size: .95rem; }
