/* =============================================
   LODESTONE BANKING — WEBSITE STYLESHEET
   Colors from logo: Navy #1C2D45, Gold #B8A07A
   Reference style: KPMG / Jack Henry
   ============================================= */

:root {
  --navy:        #1C2D45;
  --navy-deep:   #111E30;
  --navy-mid:    #243650;
  --gold:        #B8A07A;
  --gold-light:  #CDB896;
  --gold-dark:   #9A8262;
  --white:       #FFFFFF;
  --off-white:   #F7F5F2;
  --light-gray:  #EDEAE5;
  --mid-gray:    #8C8880;
  --dark-gray:   #3A3630;
  --text-body:   #2C2A27;
  --border:      #DDD9D3;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', 'Helvetica Neue', sans-serif;

  --max-width: 1180px;
  --nav-height: 76px;

  --shadow-sm: 0 2px 8px rgba(28,45,69,0.08);
  --shadow-md: 0 6px 24px rgba(28,45,69,0.12);
  --shadow-lg: 0 16px 48px rgba(28,45,69,0.16);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* CONTAINER */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* =============================================
   NAVIGATION
   ============================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--navy);
  border-bottom: 2px solid var(--gold-dark);
  transition: background 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  background: var(--navy-deep);
  box-shadow: var(--shadow-md);
}

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

.logo-link { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }

.nav-logo-icon {
  height: 42px;
  width: auto;
  display: block;
  flex-shrink: 0;
  /* transparent PNG — no blend mode needed */
  filter: brightness(1.08);
  transition: filter 0.2s;
}
.nav-logo-icon:hover { filter: brightness(1.18); }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-main {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.01em;
}

.logo-sub {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 500;
  color: var(--gold-dark);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Keep text versions for footer (they reference separate classes) */
.logo-main {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.01em;
}

.logo-sub {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--gold-dark);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  padding: 8px 14px;
  border-radius: 2px;
  letter-spacing: 0.03em;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-light);
}

.nav-cta {
  background: var(--gold);
  color: var(--navy-deep) !important;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 2px;
  margin-left: 8px;
  transition: background 0.2s;
}

.nav-cta:hover { background: var(--gold-light); }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold-light);
  transition: all 0.3s;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--navy-deep);
  padding: 16px 32px 24px;
  border-top: 1px solid rgba(184,160,122,0.2);
}

.mobile-nav .nav-link {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 1rem;
}

.mobile-nav.open { display: flex; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 13px 28px;
  border-radius: 2px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
}

.btn-lg { padding: 16px 36px; font-size: 0.95rem; }

.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover { background: var(--navy-deep); border-color: var(--navy-deep); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

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

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  background: var(--navy);
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(184,160,122,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(36,54,80,0.8) 0%, transparent 70%);
  pointer-events: none;
}

.hero-bg-pattern::before {
  content: '';
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  border: 1px solid rgba(184,160,122,0.12);
  border-radius: 50%;
}

.hero-bg-pattern::after {
  content: '';
  position: absolute;
  right: -200px;
  top: 50%;
  transform: translateY(-50%);
  width: 900px;
  height: 900px;
  border: 1px solid rgba(184,160,122,0.06);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding-top: 48px;
  padding-bottom: 80px;
  animation: fadeInUp 0.8s ease both;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  padding-left: 3px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.75;
}

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

/* =============================================
   STATS BAR
   ============================================= */
.stats-bar {
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(184,160,122,0.2);
  padding: 28px 0;
}

.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 40px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-light);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(184,160,122,0.25);
}

/* =============================================
   SECTIONS
   ============================================= */
.section-light { background: var(--white); padding: 96px 0; }
.section-navy  { background: var(--navy); padding: 80px 0; }
.section-offwhite { background: var(--off-white); padding: 96px 0; }

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

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.body-text {
  font-size: 1.0rem;
  color: #4a4744;
  line-height: 1.8;
  margin-bottom: 16px;
}

/* =============================================
   TWO COLUMN LAYOUT
   ============================================= */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.col-text { }

.col-text .section-eyebrow { margin-bottom: 12px; }
.col-text .section-title { margin-bottom: 24px; }
.col-text .btn { margin-top: 16px; }

.col-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* INSIGHT CARDS */
.insight-card {
  background: var(--off-white);
  border-left: 4px solid var(--gold);
  padding: 28px 28px 24px;
  border-radius: 0 4px 4px 0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.insight-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.insight-card-alt {
  background: var(--navy);
}

.insight-card-alt .insight-stat,
.insight-card-alt .insight-desc { color: var(--white); }
.insight-card-alt .insight-desc { color: rgba(255,255,255,0.75); }

.insight-icon {
  color: var(--gold);
  font-size: 0.7rem;
  margin-bottom: 8px;
}

.insight-stat {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 6px;
}

.insight-desc {
  font-size: 0.875rem;
  color: var(--mid-gray);
  line-height: 1.5;
}

/* =============================================
   PULL QUOTE
   ============================================= */
.quote-section {
  background: var(--off-white);
  padding: 72px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.quote-inner { max-width: 840px; }

.quote-mark {
  font-family: var(--font-display);
  font-size: 6rem;
  color: var(--gold);
  line-height: 0.6;
  margin-bottom: 24px;
  opacity: 0.6;
}

.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  font-style: italic;
  color: var(--navy);
  line-height: 1.55;
  font-weight: 400;
  margin-bottom: 24px;
}

.quote-cite {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold-dark);
  letter-spacing: 0.05em;
  font-style: normal;
  display: block;
}

/* =============================================
   THREE COLUMN
   ============================================= */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.process-card {
  padding: 36px 32px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--navy);
  border-radius: 0 0 4px 4px;
  transition: border-top-color 0.2s, box-shadow 0.2s;
}

.process-card:hover {
  border-top-color: var(--gold);
  box-shadow: var(--shadow-sm);
}

.process-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: 12px;
}

.process-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
}

/* =============================================
   CEO QUOTE SECTION
   ============================================= */
.ceo-quote-wrap { max-width: 860px; }

.ceo-quote-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.ceo-quote-text {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-style: italic;
  color: rgba(255,255,255,0.92);
  line-height: 1.65;
  font-weight: 400;
  margin-bottom: 20px;
}

.ceo-quote-cite {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold);
  display: block;
  font-style: normal;
}

/* =============================================
   VIDEO SECTION
   ============================================= */
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.video-wrap { }

.video-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
}

.video-wrap iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  border-radius: 4px;
  box-shadow: var(--shadow-md);
}

.video-caption {
  font-size: 0.875rem;
  color: var(--mid-gray);
  margin-top: 12px;
  line-height: 1.6;
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
  background: var(--navy);
  padding: 80px 0;
  border-top: 4px solid var(--gold);
}

.cta-inner { text-align: center; max-width: 680px; margin: 0 auto; }

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  margin-bottom: 36px;
}

/* =============================================
   PAGE HERO (interior pages)
   ============================================= */
.page-hero {
  background: var(--navy);
  padding: calc(var(--nav-height) + 56px) 0 64px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(184,160,122,0.05) 0%, transparent 60%);
  pointer-events: none;
}

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

.page-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
}

.page-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.72);
  max-width: 600px;
  line-height: 1.7;
}

/* =============================================
   SERVICES PAGE
   ============================================= */
.service-list { display: flex; flex-direction: column; gap: 0; }

.service-item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
  padding: 48px 0 48px 20px; /* left padding clears the accent bar */
  --accent-color: var(--gold); /* default: gold for flagship/gold-tagged */
}

.service-item:first-child { border-top: 1px solid var(--border); }

.service-label-col {
  padding-right: 48px;
  padding-top: 4px;
}

.service-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--navy);
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 12px;
}

.service-tag.flagship { background: var(--gold-dark); }

.service-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
}

.service-content-col { }

.service-desc {
  font-size: 1rem;
  color: #4a4744;
  line-height: 1.8;
  margin-bottom: 20px;
}

.service-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-bullets li {
  display: flex;
  gap: 12px;
  font-size: 0.95rem;
  color: #3a3630;
  line-height: 1.6;
}

.service-bullets li::before {
  content: '◆';
  color: var(--gold);
  font-size: 0.55rem;
  margin-top: 6px;
  flex-shrink: 0;
}

.core-systems-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.core-chip {
  background: var(--off-white);
  border: 1px solid var(--border);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 2px;
}

/* =============================================
   TESTIMONIALS PAGE
   ============================================= */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--navy);
  padding: 36px 32px;
  border-radius: 0 0 4px 4px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.testimonial-card.featured {
  border-top-color: var(--gold);
  background: var(--off-white);
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--dark-gray);
  line-height: 1.7;
  flex: 1;
}

.testimonial-quote::before { content: '\201C'; color: var(--gold); }
.testimonial-quote::after  { content: '\201D'; color: var(--gold); }

.testimonial-attribution { border-top: 1px solid var(--border); padding-top: 16px; }

.testimonial-bank {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 2px;
}

.testimonial-person {
  font-size: 0.85rem;
  color: var(--mid-gray);
}

/* =============================================
   ARTICLES PAGE
   ============================================= */
.article-list { display: flex; flex-direction: column; gap: 0; }

.article-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
  transition: background 0.2s;
}

.article-item:first-child { border-top: 1px solid var(--border); }

.article-item:hover { background: var(--off-white); margin: 0 -32px; padding: 40px 32px; }

.article-pub-col {
  padding-right: 40px;
  padding-top: 4px;
}

.article-pub {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 4px;
}

.article-author {
  font-size: 0.82rem;
  color: var(--mid-gray);
  line-height: 1.5;
}

.article-content-col { }

.article-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}

.article-desc {
  font-size: 0.95rem;
  color: #4a4744;
  line-height: 1.75;
  margin-bottom: 16px;
}

.article-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
  display: inline-block;
  transition: color 0.2s;
}

.article-link:hover { color: var(--gold-dark); }

/* =============================================
   ABOUT PAGE
   ============================================= */
.about-intro {
  max-width: 780px;
  margin-bottom: 72px;
}

.about-intro .body-text { font-size: 1.05rem; }

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 72px;
}

.team-card { }

.team-photo {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  filter: grayscale(15%);
}

.team-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.team-title-role {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 16px;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 12px;
  display: inline-block;
}

.team-bio {
  font-size: 0.95rem;
  color: #4a4744;
  line-height: 1.8;
  margin-bottom: 12px;
}

.team-email {
  font-size: 0.875rem;
  color: var(--navy);
  font-weight: 500;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
}

.team-email:hover { color: var(--gold-dark); }

/* Core systems */
.expertise-section { margin-top: 64px; padding-top: 64px; border-top: 1px solid var(--border); }

.expertise-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.expertise-sub { font-size: 0.95rem; color: var(--mid-gray); margin-bottom: 28px; }

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

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

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

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.04em;
}

.form-input,
.form-textarea,
.form-input select,
select.form-input {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-body);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 12px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238C8880' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(28,45,69,0.08);
}

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

.contact-sidebar {
  padding: 36px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--navy);
}

.contact-sidebar-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 24px;
}

.contact-person {
  margin-bottom: 28px;
}

.contact-person-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 2px;
}

.contact-person-role {
  font-size: 0.8rem;
  color: var(--mid-gray);
  margin-bottom: 8px;
}

.contact-detail {
  font-size: 0.875rem;
  color: #4a4744;
  margin-bottom: 4px;
}

.contact-detail a {
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
}

.contact-address {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 0.875rem;
  color: #4a4744;
  line-height: 1.8;
}



/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--navy-deep);
  padding: 64px 0 0;
  border-top: 3px solid var(--gold);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand { }

.footer-logo-main {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 2px;
}

.footer-logo-sub {
  display: block;
  font-size: 0.58rem;
  font-weight: 500;
  color: var(--gold-dark);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  max-width: 280px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

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

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-contact p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}

.footer-contact a {
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

.footer-contact a:hover { color: var(--gold-light); }

.footer-bottom {
  background: rgba(0,0,0,0.2);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 18px 0;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   RESPONSIVE — 4-tier breakpoint system
   1024px  Tablet landscape / small desktop
    768px  Tablet portrait / large phone
    480px  Phone portrait (most iPhones/Android)
    360px  Small phones (Galaxy S, iPhone SE)
   ============================================= */

/* ── TABLET LANDSCAPE (≤1024px) ─────────────── */
@media (max-width: 1024px) {
  .two-col          { grid-template-columns: 1fr; gap: 48px; }
  .three-col        { grid-template-columns: 1fr 1fr; gap: 24px; }
  .team-grid        { grid-template-columns: 1fr 1fr; gap: 40px; }
  .contact-grid     { grid-template-columns: 1fr; }
  .video-grid       { grid-template-columns: 1fr 1fr; gap: 28px; }

  /* Tighten nav logo text slightly */
  .logo-main        { font-size: 1.2rem; }
}

/* ── TABLET PORTRAIT / LARGE PHONE (≤768px) ── */
@media (max-width: 768px) {
  /* Nav */
  .main-nav         { display: none; }
  .mobile-menu-btn  { display: flex; }
  .nav-inner        { padding: 0 20px; }
  .nav-logo-icon    { height: 36px; }
  .logo-main        { font-size: 1.1rem; }
  .logo-sub         { font-size: 0.55rem; letter-spacing: 0.12em; }

  /* Mobile nav — larger tap targets */
  .mobile-nav .nav-link {
    padding: 14px 0;
    font-size: 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Hero */
  .hero             { min-height: 80vh; }
  .hero-content     { padding-top: 32px; padding-bottom: 56px; }
  .hero-headline    { font-size: clamp(1.75rem, 6vw, 2.4rem); }
  .hero-sub         { font-size: 1rem; }
  .hero-actions     { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-actions .btn { width: 100%; text-align: center; }

  /* Stats bar */
  .stats-inner      { flex-wrap: wrap; justify-content: center; gap: 0; }
  .stat-item        { padding: 14px 24px; min-width: 140px; }
  .stat-divider     { display: none; }
  .stat-num         { font-size: 1.4rem; }

  /* Section spacing */
  .section-light, .section-navy, .section-offwhite { padding: 56px 0; }
  .container        { padding: 0 20px; }

  /* Content grids */
  .three-col        { grid-template-columns: 1fr; gap: 20px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .video-grid       { grid-template-columns: 1fr; }
  .team-grid        { grid-template-columns: 1fr; gap: 48px; }

  /* Fix testimonial full-width card on single column */
  .testimonial-card[style*="grid-column"] { grid-column: 1 !important; }

  /* Services */
  .service-item     { grid-template-columns: 1fr; gap: 16px; padding-left: 20px; }
  .service-label-col { padding-right: 0; }

  /* Articles */
  .article-item     { grid-template-columns: 1fr; gap: 6px; }
  .article-pub-col  { padding-right: 0; }
  .article-item:hover { margin: 0; padding: 40px 0; background: none; }

  /* Contact form */
  .form-row         { grid-template-columns: 1fr; }
  .contact-grid     { grid-template-columns: 1fr; gap: 40px; }

  /* Footer */
  .footer-inner     { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom p  { font-size: 0.75rem; }

  /* Page hero */
  .page-hero        { padding: calc(var(--nav-height) + 32px) 0 40px; }
  .page-title       { font-size: clamp(1.6rem, 5vw, 2.4rem); }

  /* CTA section */
  .cta-section      { padding: 56px 0; }
  .cta-title        { font-size: clamp(1.4rem, 5vw, 2rem); }

  /* Buttons — ensure 44px min touch target */
  .btn              { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

  /* Team photos — constrain on single column */
  .team-photo       { max-width: 240px; }

  /* Quote sections */
  .pull-quote       { font-size: 1.15rem; }
  .ceo-quote-text   { font-size: 1.1rem; }
}

/* ── PHONE PORTRAIT (≤480px) ────────────────── */
@media (max-width: 480px) {
  /* Reduce nav height slightly, keep logo readable */
  :root             { --nav-height: 64px; }
  .nav-logo-icon    { height: 30px; }
  .logo-main        { font-size: 1rem; }
  .logo-sub         { display: none; } /* hide tagline on tiny screens */

  /* Hero */
  .hero             { min-height: 85vh; }
  .hero-eyebrow     { font-size: 0.7rem; }
  .hero-headline    { font-size: clamp(1.5rem, 7vw, 2rem); }
  .hero-sub         { font-size: 0.95rem; }
  .hero-actions .btn { font-size: 0.82rem; padding: 12px 20px; }

  /* Stats — 2 per row */
  .stat-item        { min-width: 120px; padding: 12px 16px; }
  .stat-num         { font-size: 1.25rem; }
  .stat-label       { font-size: 0.68rem; }

  /* Section spacing — tighter on phones */
  .section-light, .section-navy, .section-offwhite { padding: 44px 0; }
  .container        { padding: 0 16px; }

  /* Section headers */
  .section-title    { font-size: clamp(1.4rem, 6vw, 1.9rem); }
  .section-eyebrow  { font-size: 0.68rem; }

  /* Process cards */
  .process-card     { padding: 24px 20px; }
  .process-num      { font-size: 2rem; }

  /* Insight cards */
  .insight-card     { padding: 20px; }
  .insight-stat     { font-size: 1.7rem; }

  /* Services */
  .service-name     { font-size: 1.15rem; }
  .core-systems-list { gap: 8px; }
  .core-chip        { font-size: 0.78rem; padding: 5px 12px; }

  /* Testimonials */
  .testimonial-card  { padding: 24px 20px; }
  .testimonial-quote { font-size: 0.95rem; }

  /* Articles */
  .article-title    { font-size: 1.1rem; }

  /* About page */
  .team-photo       { max-width: 200px; }
  .team-name        { font-size: 1.2rem; }

  /* Contact */
  .contact-sidebar  { padding: 24px 20px; }
  .form-input, .form-textarea, select.form-input { font-size: 0.9rem; padding: 10px 14px; }

  /* Footer */
  .footer-logo-main { font-size: 1.1rem; }
  .footer-nav, .footer-contact { font-size: 0.85rem; }

  /* Page hero */
  .page-title       { font-size: clamp(1.4rem, 7vw, 2rem); }
  .page-subtitle    { font-size: 0.95rem; }

  /* CTA */
  .cta-inner        { padding: 0 4px; }
  .cta-title        { font-size: clamp(1.2rem, 6vw, 1.6rem); }
  .cta-sub          { font-size: 0.95rem; }

  /* Thank-you page */
  .thankyou-headline { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .thankyou-actions  { flex-direction: column; }
  .thankyou-actions .btn { width: 100%; text-align: center; }

  /* View doc button */
  .view-doc-btn     { font-size: 0.68rem; padding: 7px 14px; }
}

/* ── SMALL PHONES (≤360px) ──────────────────── */
@media (max-width: 360px) {
  .logo-main        { font-size: 0.9rem; }
  .hero-headline    { font-size: 1.4rem; }
  .container        { padding: 0 14px; }
  .nav-inner        { padding: 0 14px; }
  .mobile-nav       { padding: 12px 14px 20px; }
  .stat-item        { padding: 10px 12px; min-width: 100px; }
  .process-card     { padding: 20px 16px; }
  .testimonial-card { padding: 20px 16px; }
}

/* ── REDUCED MOTION (accessibility) ────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .view-doc-btn::before { transition: none; }
}

/* ── LANDSCAPE PHONE (short viewport) ────────── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero             { min-height: 100%; padding-bottom: 40px; }
  .hero-content     { padding-top: 24px; padding-bottom: 40px; }
  .pdf-modal        { height: 96vh; }
}

/* =============================================
   SCROLL & PAGE ANIMATIONS
   ============================================= */

/* Page entrance — body fades in on load */
html body {
  opacity: 0;
  transition: opacity 0.35s ease;
}
html.js-loaded body {
  opacity: 1;
}

/* Page exit — fade out before navigation */
html.js-page-exit body {
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

/* Hamburger → X morph */
.mobile-menu-btn.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-menu-btn.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.mobile-menu-btn span {
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

/* Gold top-bar entrance on hero header */
.pdf-modal-header::before {
  animation: goldLineIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
  transform-origin: left center;
}
@keyframes goldLineIn {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}

/* Stat bar — subtle pulse on number reveal */
@keyframes statPulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}
.stat-num {
  display: inline-block; /* needed for transform */
}

/* Section reveal — soft gold underline grows in under eyebrow labels */
.section-eyebrow {
  position: relative;
  display: inline-block;
}
.section-eyebrow::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}
/* Trigger underline when eyebrow becomes visible */
.section-eyebrow.is-visible::after {
  width: 100%;
}

/* Process cards — top border color shifts on reveal */
.process-card {
  --border-anim-color: var(--light-gray);
}
.process-card.is-visible {
  --border-anim-color: var(--navy);
  border-top-color: var(--navy);
  transition-property: opacity, transform, border-top-color;
}

/* Insight cards — slide in left border */
.insight-card {
  border-left-width: 0;
  transition-property: opacity, transform, border-left-width;
}
.insight-card.is-visible {
  border-left-width: 4px;
}

/* Quote mark — scale in */
.quote-mark {
  display: inline-block;
  transform-origin: bottom left;
}

/* Hero background circles — subtle float */
@keyframes floatCircle {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50%       { transform: translateY(-50%) scale(1.03); }
}
.hero-bg-pattern::before {
  animation: floatCircle 8s ease-in-out infinite;
}
.hero-bg-pattern::after {
  animation: floatCircle 11s ease-in-out 1s infinite;
}

/* Testimonial cards — hover lift */
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease,
              opacity 0.6s cubic-bezier(0.22,1,0.36,1),
              transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(28,45,69,0.1);
}

/* Service items — left accent bar slides in */
.service-item {
  position: relative;
  overflow: hidden;
}
.service-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent-color);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}
.service-item.is-visible::before {
  transform: scaleY(1);
}
/* Navy-tagged services get a navy line */
.service-item:has(.service-tag:not(.flagship)) {
  --accent-color: var(--navy);
}

/* Article items — subtle right arrow nudge on hover */
.article-link::after {
  content: ' →';
  display: inline-block;
  transition: transform 0.2s ease;
}
.article-link:hover::after {
  transform: translateX(4px);
}

/* CTA button — pulse glow on reveal */
@keyframes btnGlow {
  0%   { box-shadow: 0 0 0 0 rgba(184,160,122,0.4); }
  70%  { box-shadow: 0 0 0 12px rgba(184,160,122,0); }
  100% { box-shadow: 0 0 0 0 rgba(184,160,122,0); }
}
.cta-inner .btn-gold.is-visible {
  animation: btnGlow 1.5s ease 0.5s 1;
}

/* Team photos — desaturate until hovered */
.team-photo {
  transition: filter 0.4s ease;
}
.team-photo:hover {
  filter: grayscale(0%) !important;
}

/* Nav logo icon — subtle scale on load */
@keyframes logoEntrance {
  from { opacity: 0; transform: scale(0.85) rotate(-5deg); }
  to   { opacity: 1; transform: scale(1) rotate(0deg); }
}
.nav-logo-icon {
  animation: logoEntrance 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

/* Thank-you checkmark — draw in */
@keyframes checkDraw {
  from { stroke-dashoffset: 60; }
  to   { stroke-dashoffset: 0; }
}
.thankyou-icon svg polyline {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: checkDraw 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

/* Respect reduced motion — defined in responsive section,
   but also guard animation properties here */
@media (prefers-reduced-motion: reduce) {
  .hero-bg-pattern::before,
  .hero-bg-pattern::after,
  .nav-logo-icon,
  .pdf-modal-header::before,
  .thankyou-icon svg polyline {
    animation: none !important;
  }
  .section-eyebrow::after { transition: none; }
  .service-item::before   { transform: scaleY(1); }
}
