/* ============================================
   Expense Control Consulting — Main Stylesheet
   Light, bright, simple. Navy for text/structure,
   light blue as the main accent, gold rare highlight.

   QUICK EDITING GUIDE
   - All colors are set once below in :root. Change a value there
     and it updates everywhere on the site that uses it.
   - Section comments like "============ Header / Nav ============"
     mark where each part of the site's look is controlled.
   - .card-with-image is the style used for the photo cards on the
     What We Do page (square photo box on the left).
   - .theme-green is only applied on sustainability.html, via a
     class on the <body> tag in that file.
   ============================================ */

@font-face {
  font-family: 'Aptos';
  src: local('Aptos');
}

:root {
  /* Color tokens */
  --color-navy: #012169;
  --color-blue: #4A8FE0;
  --color-blue-light: #EAF2FD;
  --color-blue-pale: #F5F9FE;
  --color-gold: #B1997B;
  --color-gold-light: #F3EEE6;
  --color-green: #3E8E5A;
  --color-green-light: #EAF6EE;
  /* Accent colors for variety, used on icons and highlights */
  --color-coral: #E8734A;
  --color-coral-light: #FCEDE7;
  --color-teal: #2BA8A0;
  --color-teal-light: #E4F4F3;
  --color-purple: #7A6FD0;
  --color-purple-light: #EEECFA;
  --color-amber: #E0A92E;
  --color-amber-light: #FBF2DD;
  --color-black: #15171C;
  --color-white: #FFFFFF;
  --color-grey-50: #FAFBFC;
  --color-grey-200: #E8ECF2;
  --color-grey-500: #707888;
  --color-text: #1A1D26;

  /* Type scale */
  --font-display: 'Aptos Display', 'Aptos', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Aptos', 'Segoe UI', Arial, sans-serif;

  /* Layout */
  --max-width: 1140px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  font-size: 17px;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-navy);
  line-height: 1.18;
  margin: 0 0 0.5em 0;
  font-weight: 700;
}

p {
  margin: 0 0 1em 0;
}

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

/* ============ Header / Nav ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-grey-200);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-full-img {
  height: 70px;
  width: auto;
  display: block;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  margin: 5px 0;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.93rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-blue);
  border-bottom-color: var(--color-blue);
}

.header-cta {
  background: var(--color-blue);
  color: var(--color-white) !important;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--color-navy);
}

/* ============ Hero ============ */
.hero {
  padding: 68px 0 56px;
  text-align: center;
  background: linear-gradient(180deg, var(--color-blue-pale) 0%, var(--color-white) 100%);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-blue);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--color-grey-500);
  max-width: 600px;
  margin: 18px auto 34px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--color-blue);
  color: var(--color-white);
  border-color: var(--color-blue);
}

.btn-primary:hover {
  background: var(--color-navy);
  border-color: var(--color-navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(1, 33, 105, 0.22);
}

.btn-outline {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-grey-200);
}

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

/* ============ Sections ============ */
section {
  padding: 52px 0;
}

.section-alt {
  background: var(--color-blue-pale);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 36px;
}

.section-eyebrow {
  color: var(--color-blue);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

/* ============ Intro Text Blocks (centered) ============ */
.intro-text {
  max-width: 700px;
  margin: 0 auto 20px;
  text-align: center;
  font-size: 1.08rem;
  color: var(--color-grey-500);
}

/* ============ Cards / Services Grid ============ */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-grey-200);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 28px rgba(1, 33, 105, 0.12);
  border-color: transparent;
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: transform 0.2s ease;
}

.card:hover .card-icon {
  transform: scale(1.12);
}

/* Card variant with a square photo on the left, inset with padding */
.card-with-image {
  display: flex;
  align-items: center;
  padding: 20px;
  gap: 24px;
}

.card-with-image .card-img {
  flex: 0 0 170px;
  width: 170px;
  height: 170px;
  padding: 14px;
  background-color: var(--color-blue-light);
  border-radius: 14px;
  box-sizing: border-box;
}

.card-with-image .card-img-inner {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.card-with-image .card-img-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.card-with-image:hover .card-img-inner img {
  transform: scale(1.08);
}

.card-with-image .card-body {
  flex: 1;
  padding: 0;
}

.card-with-image h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.card-with-image p {
  margin: 0;
  color: var(--color-grey-500);
}

.card ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--color-grey-500);
}

.card ul li {
  margin-bottom: 4px;
}

/* ============ Stats Bar ============ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  background: var(--color-blue-pale);
  border-radius: var(--radius);
  padding: 44px 40px;
  text-align: center;
}

.stats-bar .stat-icon {
  height: 80px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stats-bar .stat-num {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--color-blue);
}

.stats-bar .stat-label {
  color: var(--color-grey-500);
  font-size: 0.9rem;
}

/* ============ Process Steps ============ */
.process-step {
  display: flex;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--color-grey-200);
}

.process-step:last-child {
  border-bottom: none;
}

.process-step .step-num {
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.process-step:hover .step-num {
  transform: scale(1.1);
  background: var(--color-blue);
  color: var(--color-white);
}

/* Accent colors per step, override the default blue */
.step-num.accent-coral { background: var(--color-coral-light); color: var(--color-coral); }
.process-step:hover .step-num.accent-coral { background: var(--color-coral); color: var(--color-white); }
.step-num.accent-teal { background: var(--color-teal-light); color: var(--color-teal); }
.process-step:hover .step-num.accent-teal { background: var(--color-teal); color: var(--color-white); }
.step-num.accent-amber { background: var(--color-amber-light); color: var(--color-amber); }
.process-step:hover .step-num.accent-amber { background: var(--color-amber); color: var(--color-white); }
.step-num.accent-purple { background: var(--color-purple-light); color: var(--color-purple); }
.process-step:hover .step-num.accent-purple { background: var(--color-purple); color: var(--color-white); }

.step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-blue-light);
  color: var(--color-blue);
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  position: relative;
}

.step-num-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-white);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-white);
}

.step-content h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.step-content p {
  color: var(--color-grey-500);
  margin: 0;
}

/* ============ Testimonials ============ */
.testimonial {
  background: var(--color-white);
  border: 1px solid var(--color-grey-200);
  border-radius: var(--radius);
  padding: 30px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(1, 33, 105, 0.1);
}

.testimonial-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  color: var(--color-gold);
  opacity: 0.7;
}

.testimonial-quote {
  color: var(--color-text);
  font-size: 1.02rem;
  margin-bottom: 18px;
}

.testimonial-author {
  font-weight: 700;
  color: var(--color-navy);
  font-size: 0.92rem;
}

.testimonial-role {
  color: var(--color-grey-500);
  font-size: 0.88rem;
}

/* ============ Contact Info Cards ============ */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.contact-info-card {
  text-align: center;
  padding: 30px 20px;
  background: var(--color-blue-pale);
  border-radius: var(--radius);
}

.contact-info-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.reveal-btn {
  background: none;
  border: none;
  color: var(--color-blue);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0;
  font-family: var(--font-body);
}

.reveal-btn:hover {
  text-decoration: underline;
}

/* ============ CTA Band ============ */
.cta-band {
  background: var(--color-blue-pale);
  text-align: center;
  padding: 64px 0;
}

.cta-band h2 {
  color: var(--color-navy);
}

.cta-band p {
  color: var(--color-grey-500);
  max-width: 520px;
  margin: 0 auto 28px;
}

/* ============ Footer ============ */
.site-footer {
  background: var(--color-navy);
  color: #A9B8DC;
  padding: 48px 0 24px;
  font-size: 0.9rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 20px;
}

.footer-logo {
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #A9B8DC;
}

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

.footer-bottom {
  text-align: center;
  color: #7488B5;
  font-size: 0.85rem;
}

/* ============ Page Header (non-home pages) ============ */
.page-header {
  background: var(--color-blue-pale);
  padding: 44px 0 40px;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 0;
}

/* ============ Sustainability green theme ============ */
.theme-green .page-header {
  background: var(--color-green-light);
}

.theme-green .section-eyebrow {
  color: var(--color-green);
}

.theme-green .card {
  border-top: 3px solid var(--color-green);
}

.theme-green .intro-text strong {
  color: var(--color-green);
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-grey-200);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.open {
    max-height: 400px;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
  }
  .main-nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-grey-200);
  }
  .header-cta { display: none; }
  .grid-4 { grid-template-columns: 1fr; }
  .contact-info-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .card-with-image {
    flex-direction: column;
    align-items: flex-start;
  }
  .card-with-image .card-img {
    width: 100%;
    height: 180px;
  }
}
