/* ============================================
   AccountingForce — Global Stylesheet
   Navy & Gold Corporate Theme
   ============================================ */

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

:root {
  --navy: #1a2332;
  --navy-dark: #111927;
  --navy-light: #243044;
  --gold: #c9a84c;
  --gold-light: #dfc06a;
  --gold-dark: #b08f3a;
  --white: #ffffff;
  --off-white: #f7f8fa;
  --grey-light: #e8eaed;
  --grey: #6b7280;
  --grey-dark: #374151;
  --text: #1f2937;
  --text-light: #6b7280;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  background: var(--white);
}

a { color: var(--gold-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

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

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

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

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-logo span { color: var(--gold); }

.nav-links { display: flex; gap: 32px; list-style: none; }

.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
}

.nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.nav-cta:hover {
  background: var(--gold-light) !important;
  color: var(--navy) !important;
}

.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: var(--transition);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  color: var(--white);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-block;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  border-left: 3px solid var(--gold);
  padding-left: 12px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
  max-width: 700px;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

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

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  background: var(--navy-dark);
  border-top: 1px solid rgba(201,168,76,0.2);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.5px;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 80px 0;
}

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

.section-dark {
  background: var(--navy);
  color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.section-dark .section-header h2 { color: var(--white); }

.section-header p {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto;
}

.section-dark .section-header p { color: rgba(255,255,255,0.65); }

/* ============================================
   CARDS & GRIDS
   ============================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  background: var(--white);
  border-radius: 8px;
  padding: 36px 28px;
  border: 1px solid var(--grey-light);
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  border-color: var(--gold);
}

.card-number {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}

.card p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.7;
}

.card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

/* Service detail card */
.service-detail {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--grey-light);
  transition: all var(--transition);
}

.service-detail:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.service-detail-header {
  background: var(--navy);
  color: var(--white);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.service-detail-header .num {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.service-detail-header h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

.service-detail-body {
  padding: 28px;
}

.service-detail-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service-detail-body li {
  padding-left: 20px;
  position: relative;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.6;
}

.service-detail-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--gold);
  border-radius: 50%;
}

/* ============================================
   CASE STUDIES
   ============================================ */
.case-study {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--grey-light);
}

.case-study-header {
  background: var(--navy);
  color: var(--white);
  padding: 24px 28px;
}

.case-study-header h3 { font-size: 1.1rem; font-weight: 600; }
.case-study-header .sector { color: var(--gold); font-size: 0.8rem; margin-top: 4px; }

.case-study-body { padding: 28px; }

.case-study-body .label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.case-study-body p {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 16px;
}

.case-study-result {
  display: inline-block;
  background: rgba(201,168,76,0.1);
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 4px;
  margin-right: 8px;
  margin-bottom: 8px;
}

/* ============================================
   ENGAGEMENT MODELS
   ============================================ */
.engagement-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.engagement-table th {
  background: var(--navy);
  color: var(--white);
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
}

.engagement-table th:first-child { border-radius: 8px 0 0 0; }
.engagement-table th:last-child { border-radius: 0 8px 0 0; }

.engagement-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--grey-light);
  color: var(--text);
}

.engagement-table tr:nth-child(even) td { background: var(--off-white); }
.engagement-table .check { color: var(--gold); font-weight: 700; }

/* ============================================
   INSIGHT CARD
   ============================================ */
.insight-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--grey-light);
  transition: all var(--transition);
}

.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.insight-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.insight-card-img .tag {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.insight-card-body { padding: 24px; }
.insight-card-body h3 { font-size: 1.1rem; font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.insight-card-body p { font-size: 0.88rem; color: var(--text-light); line-height: 1.7; margin-bottom: 16px; }
.insight-card-body .read-more { color: var(--gold-dark); font-weight: 600; font-size: 0.85rem; }

/* ============================================
   ABOUT PAGE - TIMELINE
   ============================================ */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gold);
}

.timeline-item { margin-bottom: 36px; position: relative; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -38px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  border: 3px solid var(--white);
}

.timeline-item h4 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.timeline-item .org { color: var(--gold-dark); font-size: 0.88rem; font-weight: 500; margin-bottom: 6px; }
.timeline-item p { font-size: 0.9rem; color: var(--text-light); }

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-info-item .icon {
  width: 44px;
  height: 44px;
  background: rgba(201,168,76,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info-item h4 { font-size: 0.95rem; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.contact-info-item p { font-size: 0.9rem; color: var(--text-light); }

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--grey-light);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.92rem;
  margin-bottom: 16px;
  transition: border-color var(--transition);
  background: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--gold);
}

.contact-form textarea { min-height: 140px; resize: vertical; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.6);
  padding: 60px 0 30px;
}

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

.footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer p { font-size: 0.85rem; line-height: 1.8; }

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

/* ============================================
   QUOTE BLOCK
   ============================================ */
.quote-block {
  border-left: 4px solid var(--gold);
  padding: 24px 28px;
  background: rgba(201,168,76,0.05);
  border-radius: 0 8px 8px 0;
  margin: 40px 0;
}

.quote-block p {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.8;
}

.quote-block .attribution {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 10px;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.cta-banner h2 { font-size: 2rem; margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.7); font-size: 1.05rem; margin-bottom: 32px; max-width: 540px; margin-left: auto; margin-right: auto; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
  .hero h1 { font-size: 2.25rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 24px;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  }
  .hero { padding: 60px 0 50px; }
  .hero h1 { font-size: 1.85rem; }
  .section { padding: 56px 0; }
  .section-header h2 { font-size: 1.75rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-buttons { flex-direction: column; }
  .btn { text-align: center; }
}
