/*--------------------------------------------------------------
# Martin Capital - Custom overrides
# Keep site-specific tweaks here so assets/css/main.css (the
# BootstrapMade "Append" template file) stays untouched.
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Fixed header offset for inner pages
#
# .header is position:fixed, so page content starts underneath it.
# index.php is fine because its hero is designed to sit under the
# transparent header, but every other page starts with .page-title,
# which was being hidden behind the menu.
#
# Any page whose <body> does NOT have the .index-page class gets
# pushed down by the header height - so new pages are handled
# automatically with no extra CSS.
--------------------------------------------------------------*/
body:not(.index-page) .main {
  padding-top: 100px;
  /* desktop header: 40px padding + ~62px nav link height */
}

@media (max-width: 1199px) {
  body:not(.index-page) .main {
    padding-top: 80px;
    /* mobile header: nav collapses to the hamburger toggle */
  }
}

/* The page title banner already has generous internal spacing,
   so trim its top padding now that .main provides the offset. */
body:not(.index-page) .page-title .heading {
  padding: 40px 0 60px 0;
  border-top: 0;
}

/*--------------------------------------------------------------
# About page - info card grid
#
# Used by the "About Martin Capital" section on about.php.
# Everything below inherits the template's own colour variables
# (--surface-color, --accent-color, --heading-color ...), so the
# cards automatically follow .light-background / .dark-background
# and any future change to the site colour scheme.
--------------------------------------------------------------*/
.info-card {
  background-color: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  border-radius: 12px;
  padding: 35px;
  height: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Icon chip shown above the eyebrow label */
.info-card .card-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
}

.info-card .card-icon i {
  font-size: 26px;
  line-height: 0;
  color: var(--accent-color);
}

/* Featured variant - accent bar along the top */
.info-card.info-card-featured {
  border-top: 3px solid var(--accent-color);
}

/* Small coloured label above a card heading */
.info-card .eyebrow,
.about-intro .eyebrow {
  color: var(--accent-color);
  font-family: var(--nav-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.info-card h3 {
  color: var(--heading-color);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
}

.info-card p:last-child {
  margin-bottom: 0;
}

.info-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-card ul li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 10px;
}

.info-card ul li:last-child {
  margin-bottom: 0;
}

.info-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-color);
}

/* Highlighted variant, for the closing note */
.info-card.info-card-accent {
  border-color: color-mix(in srgb, var(--accent-color), transparent 60%);
  background-color: color-mix(in srgb, var(--accent-color), transparent 94%);
}

/* Row of key figures under the page intro - each one its own box */
.about-figures .figure-item {
  background-color: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  border-radius: 12px;
  padding: 28px 25px;
  height: 100%;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.about-figures .figure-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-figures .figure-item .num {
  color: var(--accent-color);
  font-family: var(--heading-font);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  display: block;
  margin-bottom: 10px;
}

.about-figures .figure-item p {
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
}

/* Closing call-to-action panel */
.about-cta {
  background-color: var(--heading-color);
  border-radius: 12px;
  padding: 45px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.about-cta h3,
.about-cta p {
  color: #ffffff;
}

.about-cta p {
  opacity: 0.75;
}

.about-cta .eyebrow {
  color: var(--accent-color);
}

.about-cta .btn-cta {
  background-color: var(--accent-color);
  color: #ffffff;
  font-family: var(--nav-font);
  font-size: 15px;
  font-weight: 500;
  padding: 13px 34px;
  border-radius: 6px;
  white-space: nowrap;
  transition: 0.3s;
  display: inline-block;
}

.about-cta .btn-cta:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: #ffffff;
}

/* Image logo (images/logo.png, 618x201) — template default of 36/40px is too small for this wide logo */
.header .logo img { max-height: 54px; margin-right: 0; }
.footer .footer-about .logo img { max-height: 64px; margin-right: 0; }
@media (max-width: 575px) {
  .header .logo img { max-height: 42px; }
}
/* Two logos in menu.php: logo-white.png while the homepage header is transparent over
   the dark hero photo, logo.png everywhere else (inner pages, and once you scroll) */
.header .logo .logo-light { display: none; }
.index-page:not(.scrolled) .header .logo .logo-light { display: block; }
.index-page:not(.scrolled) .header .logo .logo-dark { display: none; }
