/*
  YOUR CUSTOM STYLES
  This file loads LAST on every public page, so rules here override all the
  other stylesheets. Put your own changes here instead of editing the others.
  Example: make the gold cards a deeper gold
  .cal-card--gold { background: #E09A0B; }
*/

:root {
  /* One colour for every icon on the site's redesigned sections.
     Switch to blue by changing this line to:  --icon-color: var(--primary-blue);  */
  --icon-color: #8A8D91;            /* marble grey */
  --icon-color-hover: #5F6368;

  --cal-card-bg: #F4F3F0;           /* CalBank-style cards: warm light grey */

  /* One rhythm for every section: same space above and below, same heading and intro sizes */
  --section-pad: 96px;
  --section-title: clamp(1.75rem, 1.3rem + 1.5vw, 2.25rem);
  --section-text: 1.0625rem;
}
@media (max-width: 991.98px) { :root { --section-pad: 72px; } }
@media (max-width: 575.98px) { :root { --section-pad: 56px; --section-text: 1rem; } }

/* Elements that animate in from the side must never make the page scroll sideways on phones */
main#main-content { overflow-x: hidden; overflow-x: clip; }

/* Consistent sections: padding, headings, intro paragraphs */
.section-padding,
.services-summary,
.hcf-about,
.industries-section,
.why-choose-us,
.how-we-work,
.leadership-preview,
.testimonials-section,
.get-started-cta,
.consultation-section {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}

/* Section headings (card and banner headings keep their own sizes via their classes) */
main h2,
.consultation-intro h2 {
  font-size: var(--section-title);
  font-weight: 500;
  line-height: 1.25;
}

/* Intro paragraphs under section headings */
main .lead,
.hcf-about-text,
.why-choose-us .section-eyebrow-block p,
.how-we-work-heading p,
.deep-sector p,
.vm-cal-pillars .col-lg-4 > p {
  font-size: var(--section-text);
  line-height: 1.75;
  font-weight: 400;
}

/* "View all" buttons at the end of a section: the section's own padding provides the space below */
.services-cta {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px 16px;
  margin-top: 40px; padding-bottom: 0;
}

/* Phones: every section heading and intro is left-aligned, like "Who We Are" */
@media (max-width: 767.98px) {
  .section-heading,
  .how-we-work-heading,
  .get-started-content,
  .why-choose-us .section-eyebrow-block {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }
  .section-heading p.lead,
  .get-started-content h2,
  .get-started-content .lead { margin-left: 0; margin-right: 0; }
  .get-started-actions { justify-content: flex-start; }
}

.section-heading { margin-bottom: 48px; }
@media (max-width: 575.98px) { .section-heading { margin-bottom: 36px; } }

/* Navbar: highlight the current page */
.main-nav .nav-link { position: relative; }
.main-nav .nav-link.active { color: var(--accent-gold) !important; font-weight: 600; }
.main-nav .nav-link.active::after {
  content: "";
  position: absolute; left: 12px; right: 12px; bottom: 0;
  height: 3px; border-radius: 3px;
  background: var(--accent-gold);
}
.main-nav .nav-link.active:hover { color: var(--primary-blue) !important; }

.dropdown-panel a.is-current {
  color: var(--primary-blue-dark);
  font-weight: 600;
  background: rgba(240, 175, 30, .14);
  box-shadow: inset 4px 0 0 var(--accent-gold);
}
.dropdown-panel a.is-current:hover { color: #fff; background: var(--accent-gold); }

.mobile-nav-list > li > a.is-current,
.mobile-accordion-toggle.is-current {
  color: var(--accent-gold);
  font-weight: 600;
  box-shadow: inset 4px 0 0 var(--accent-gold);
}
.mobile-accordion-panel a.is-current {
  color: var(--primary-blue-dark);
  font-weight: 600;
  background: rgba(240, 175, 30, .14);
}

/* Homepage: Industry Expertise icons — one solid colour, no background */
a.industry-card { display: block; text-decoration: none; }
.industry-icon.industry-icon--marble {
  width: auto; height: auto;
  margin-bottom: 14px;
  font-size: 30px;
  color: var(--icon-color);
  background: none;
  transition: color .3s ease, transform .3s ease;
}
.industry-card:hover .industry-icon--marble { color: var(--icon-color-hover); transform: scale(1.08); }
.industry-card:focus-visible { outline: 3px solid var(--accent-gold); outline-offset: 3px; }

/*
  CalBank-style cards (used on the homepage, Industries and Vision & Mission)
  <article class="cal-card [cal-card--gold | cal-card--blue | cal-card--white]">
  <div class="cal-card-head"><span class="cal-pill">Label</span> [icon or number]</div>
  <p class="cal-statement">Big statement</p>
  <p class="cal-note">Smaller supporting text</p>
  <a class="cal-arrow" href="..."><i class="bi bi-arrow-up-right"></i></a>
  </article>
*/
.cal-card {
  position: relative;
  display: flex; flex-direction: column;
  height: 100%;
  padding: 34px 32px 32px;
  background: var(--cal-card-bg);
  border-radius: 28px;
  scroll-margin-top: 120px;
  transition: transform .35s ease, box-shadow .35s ease;
}
.cal-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(31, 39, 51, .12); }
.cal-card:target { box-shadow: 0 0 0 4px rgba(240, 175, 30, .55); }
.cal-card--gold { background: var(--accent-gold); }
.cal-card--white { background: #fff; }
.cal-card--blue { background: var(--primary-blue); }

.cal-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.cal-card-head > :last-child { margin-left: auto; }

.cal-pill {
  display: inline-block;
  align-self: flex-start;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--neutral-dark);
  color: #fff;
  font-size: .78rem; font-weight: 600; letter-spacing: .8px; text-transform: uppercase;
  line-height: 1.3;
}
.cal-card--blue .cal-pill { background: #fff; color: var(--primary-blue-dark); }

/* Icon in the card's top-right corner: one solid colour, no background */
.cal-icon { font-size: 1.9rem; line-height: 1; color: var(--icon-color); flex-shrink: 0; transition: color .3s ease; }
.cal-card:hover .cal-icon { color: var(--icon-color-hover); }
.cal-card--gold .cal-icon { color: rgba(31, 39, 51, .55); }
.cal-card--blue .cal-icon { color: rgba(255, 255, 255, .8); }

/* Big step number ("01") used instead of an icon */
.cal-number { font-size: 2.4rem; font-weight: 300; line-height: 1; color: rgba(31, 39, 51, .28); flex-shrink: 0; }
.cal-card--blue .cal-number { color: rgba(255, 255, 255, .45); }

.cal-statement {
  margin: 26px 0 14px;
  font-size: 1.35rem; font-weight: 400; line-height: 1.45;
  color: #3A3F47;
}
.cal-statement--large { font-size: clamp(1.4rem, 2.4vw, 1.85rem); line-height: 1.4; }
.cal-card--gold .cal-statement { color: var(--neutral-dark); }
.cal-card--blue .cal-statement { color: #fff; }

.cal-note { margin: 0 0 24px; font-size: .9rem; line-height: 1.65; color: var(--neutral-body); }
.cal-note strong { color: var(--neutral-dark); }
.cal-card--gold .cal-note { color: #3A3326; }
.cal-card--blue .cal-note { color: #DFEAF6; }
.cal-card--blue .cal-note strong { color: #fff; }

.cal-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  align-self: flex-start;
  width: 58px; height: 58px; flex-shrink: 0;
  margin-top: auto;               /* keeps arrows aligned across cards in a row */
  border-radius: 50%;
  background: #fff;
  color: var(--neutral-dark);
  font-size: 1.15rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(31, 39, 51, .08);
  transition: background .3s ease, color .3s ease, transform .3s ease;
}
.cal-card--white .cal-arrow { background: var(--cal-card-bg); box-shadow: none; }
.cal-arrow:hover, .cal-arrow:focus-visible { background: var(--neutral-dark); color: #fff; transform: rotate(45deg); }
.cal-arrow:focus-visible { outline: 3px solid var(--primary-blue); outline-offset: 3px; }

@media (max-width: 575.98px) {
  .cal-card { padding: 26px 22px 24px; border-radius: 22px; }
  .cal-statement { font-size: 1.2rem; margin-top: 20px; }
  .cal-arrow { width: 52px; height: 52px; }
}

/* Homepage: Who We Are — mission / vision cards and quote */
.about-cards { margin: 8px 0 28px; }
.about-cards .cal-card { padding: 28px 26px 26px; }
.about-cards .cal-statement { font-size: 1.05rem; margin: 20px 0 22px; }
.about-quote {
  margin: 0 0 24px;
  font-size: 1rem; line-height: 1.6;
  padding: 6px 0 6px 18px;
  border-left: 4px solid var(--accent-gold);
  font-style: italic; font-weight: 600; color: var(--neutral-dark);
}
.hcf-about-badge { gap: 0; }
/* Quote sits under the photo; leave room for the "14+" badge that overlaps the photo's bottom edge */
.about-quote--below-image { margin: 56px 0 0; }
.hcf-about-text { margin-bottom: 24px; }

/* Homepage: Deep sector expertise — four blue tiles */
.deep-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  height: 100%;
}
.deep-tile {
  display: flex; flex-direction: column; justify-content: center;
  min-height: 120px;
  padding: 22px 20px;
  border-radius: 18px;
  background: var(--primary-blue);
  color: #fff;
  text-align: center;
}
.deep-tile strong { display: block; font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 700; line-height: 1.2; color: #fff; }
.deep-tile span { display: block; margin-top: 6px; font-size: .92rem; color: #DFEAF6; }

@media (max-width: 575.98px) {
  .deep-tiles { gap: 12px; }
  .deep-tile { min-height: 104px; padding: 18px 12px; border-radius: 14px; }
  .deep-tile span { font-size: .82rem; }
}

/* Homepage: Why choose us — numbered cards */
.why-cards .cal-card { padding: 28px 24px; }
/* Narrow cards: smaller pill and number so both always fit inside the card */
.why-cards .cal-pill { padding: 8px 15px; font-size: .7rem; letter-spacing: .5px; }
.why-cards .cal-number { font-size: 1.9rem; }
.why-cards .cal-statement { font-size: 1.15rem; font-weight: 600; color: var(--neutral-dark); margin: 22px 0 10px; }
.why-cards .cal-note { margin-bottom: 0; }
.why-cards .cal-card--blue .cal-statement { color: #fff; }

/* Vision & Mission page */
.vm-cal-statements { background: #fff; }
.vm-cal-statements .cal-card { padding: 44px 40px 40px; }
.vm-cal-statements .cal-statement { margin: 32px 0 30px; }
.vm-cal-promise { background: var(--neutral-light-bg); }
.vm-cal-promise .cal-statement { font-size: 1.25rem; font-weight: 600; color: var(--neutral-dark); margin: 24px 0 10px; }
.vm-cal-promise .cal-card--blue .cal-statement { color: #fff; }
.vm-cal-pillars .cal-statement { font-size: 1.2rem; font-weight: 600; color: var(--neutral-dark); margin: 22px 0 10px; }

@media (max-width: 575.98px) {
  .vm-cal-statements .cal-card { padding: 30px 22px 26px; }
}

/* Desktop: reserve two lines for governance card titles so every description starts at the same height */
@media (min-width: 992px) {
  .board-principle h3 { min-height: 2.7em; }
}
