/*
Theme Name: Astra Child
Template: astra
Version: 1.0
*/

:root {
  /* Existing Living Fire navy and white */
  --navy: #031225;
  --navy2: #071d38;
  --white: #ffffff;

  /* New logo colors */
  --lfm-orange: #f06719;
  --lfm-red: #7d1012;

  /* Supporting neutrals */
  --cream: #f7efe4;
  --ink: #111827;

  /* Backward-compatible aliases for any older page code */
  --gold: var(--lfm-orange);
  --orange: var(--lfm-orange);
}

* { box-sizing: border-box; }

body.lfm-body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

.lfm-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 3.5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, rgba(3,18,37,.95), rgba(3,18,37,.65), transparent);
}

.lfm-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.lfm-mark {
  font-size: 42px;
  line-height: 1;
}

.lfm-brand-main {
  font-family: Georgia, serif;
  font-size: 34px;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: 1px;
}

.lfm-brand-sub {
  color: var(--lfm-orange);
  text-transform: uppercase;
  letter-spacing: 7px;
  font-size: 17px;
}

.lfm-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.lfm-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
}

.lfm-nav a:first-child {
  color: #fff;
  border-bottom: 3px solid var(--lfm-orange);
  padding-bottom: 8px;
}

.lfm-nav-btn,
.lfm-btn {
  background: linear-gradient(135deg, var(--lfm-orange), var(--lfm-red));
  color: #fff !important;
  padding: 15px 22px;
  border-radius: 8px;
  text-transform: uppercase;
  font-weight: 900;
  text-decoration: none;
  display: inline-block;
}

.lfm-btn-outline {
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.85);
  padding: 14px 22px;
  border-radius: 8px;
  text-transform: uppercase;
  font-weight: 900;
  text-decoration: none;
  display: inline-block;
}

.lfm-hero {
  position: relative;
  min-height: 620px;
  background:
    linear-gradient(90deg, rgba(3,18,37,.98) 0%, rgba(3,18,37,.78) 39%, rgba(3,18,37,.2) 100%),
    url("https://images.unsplash.com/photo-1507692049790-de58290a4334?auto=format&fit=crop&w=1800&q=80");
  background-size: cover;
  background-position: center right;
  color: #fff;
}

.lfm-hero-inner {
  position: relative;
  z-index: 2;
  padding: 150px 3.5% 55px;
  max-width: 1320px;
}

.lfm-hero-copy {
  max-width: 640px;
}

.lfm-hero h1 {
  font-family: Georgia, serif;
  font-size: clamp(56px, 7vw, 96px);
  line-height: .86;
  text-transform: uppercase;
  margin: 0;
  color: #fff;
}

.lfm-hero h1 span {
  color: var(--lfm-orange);
}

.lfm-script,
.lfm-cursive,
.lfm-signature {
  font-family: "Brush Script MT", cursive;
}

.lfm-script {
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1;
  margin: 12px 0 20px;
  color: #fff;
}

.lfm-hero p {
  max-width: 560px;
  font-size: 18px;
  line-height: 1.65;
}

.lfm-actions {
  display: flex;
  gap: 16px;
  margin: 26px 0;
  flex-wrap: wrap;
}

.lfm-hero-meta {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-weight: 700;
}

.lfm-welcome {
  background: #fff;
  display: grid;
  grid-template-columns: 1.05fr 1.1fr .85fr;
  align-items: stretch;
  min-height: 360px;
}

.lfm-pastor-photo img,
.lfm-scripture-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lfm-welcome-copy {
  padding: 45px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lfm-cursive {
  color: var(--lfm-orange);
  font-size: 46px;
  line-height: 1;
}

.lfm-welcome h2 {
  font-family: Georgia, serif;
  color: var(--navy);
  font-size: clamp(44px, 5vw, 66px);
  line-height: .9;
  text-transform: uppercase;
  margin: 8px 0 10px;
}

.lfm-line {
  width: 90px;
  height: 3px;
  background: var(--lfm-red);
  margin: 12px 0 20px;
}

.lfm-welcome p {
  line-height: 1.6;
  font-size: 17px;
}

.lfm-signature {
  color: var(--navy);
  font-size: 32px;
  margin: 14px 0;
}

.lfm-dark-btn {
  background: var(--navy);
  color: #fff !important;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 5px;
  width: fit-content;
  text-transform: uppercase;
  font-weight: 900;
}

.lfm-scripture-card {
  position: relative;
  padding: 24px;
  background: var(--cream);
}

.lfm-scripture-card img {
  border-radius: 18px;
  height: 220px;
}

.lfm-verse {
  background: rgba(3,18,37,.94);
  color: #fff;
  padding: 28px;
  border-radius: 14px;
  margin-top: -30px;
  position: relative;
  font-family: Georgia, serif;
  font-size: 22px;
  line-height: 1.25;
}

.lfm-verse strong {
  display: block;
  color: var(--lfm-orange);
  font-size: 15px;
  margin-top: 12px;
}

.lfm-services-wrap {
  display: grid;
  grid-template-columns: 360px 1fr;
  background: var(--cream);
}

.lfm-service-card {
  background: var(--navy);
  color: #fff;
  padding: 42px 30px;
  margin-top: -1px;
}

.lfm-service-card h3 {
  color: #fff;
  font-size: 32px;
  text-transform: uppercase;
  margin: 0 0 28px;
}

.lfm-service-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  margin-bottom: 28px;
}

.lfm-service-item span {
  border: 2px solid var(--lfm-orange);
  color: var(--lfm-orange);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
}

.lfm-service-item strong {
  color: #fff;
  text-transform: uppercase;
  display: block;
  font-size: 16px;
}

.lfm-service-item p {
  margin: 5px 0 0;
  line-height: 1.45;
}

.lfm-service-btn {
  border: 2px solid var(--lfm-orange);
  color: #fff !important;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 900;
  padding: 15px 22px;
  border-radius: 6px;
  display: block;
  text-align: center;
}

.lfm-ministries {
  padding: 42px 34px 50px;
  text-align: center;
}

.lfm-section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.lfm-section-title span {
  width: 90px;
  height: 2px;
  background: var(--lfm-red);
}

.lfm-section-title h2 {
  margin: 0;
  color: var(--navy);
  font-size: 34px;
  text-transform: uppercase;
}

.lfm-subtitle {
  margin: 6px 0 26px;
}

.lfm-ministry-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.lfm-ministry-card {
  background: #fff;
  padding-bottom: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.lfm-ministry-card img {
  width: 100%;
  height: 135px;
  object-fit: cover;
}

.lfm-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--lfm-orange);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
  margin: -27px auto 12px;
  position: relative;
  z-index: 2;
  border: 4px solid #fff;
}

.lfm-ministry-card h4 {
  color: var(--navy);
  text-transform: uppercase;
  font-size: 16px;
  margin: 0 12px 8px;
}

.lfm-ministry-card p {
  font-size: 14px;
  line-height: 1.45;
  margin: 0 14px;
}

.lfm-family-band {
  background:
    linear-gradient(rgba(3,18,37,.85), rgba(3,18,37,.85)),
    url("https://images.unsplash.com/photo-1511632765486-a01980e01a18?auto=format&fit=crop&w=1800&q=80");
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 36px 3.5%;
  display: grid;
  grid-template-columns: 1.2fr 1.6fr auto;
  align-items: center;
  gap: 28px;
}

.orange {
  color: var(--lfm-orange);
}

.lfm-family-band h2 {
  color: #fff;
  font-size: 48px;
  text-transform: uppercase;
  margin: 0;
}

.lfm-family-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  text-align: center;
  font-weight: 700;
}

.lfm-family-icons span {
  border-left: 1px solid rgba(255,255,255,.25);
  padding: 12px;
}

.lfm-footer {
  background: var(--navy);
  color: #fff;
  padding: 44px 3.5% 20px;
}

.lfm-footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1fr;
  gap: 38px;
}

.lfm-footer h4 {
  color: #fff;
  text-transform: uppercase;
}

.lfm-footer a {
  color: #fff;
  display: block;
  text-decoration: none;
  margin-bottom: 8px;
}

.lfm-footer p {
  line-height: 1.5;
}

.footer-brand .lfm-brand-main {
  font-size: 28px;
}

.footer-brand .lfm-brand-sub {
  font-size: 14px;
}

.lfm-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  margin-top: 30px;
  padding-top: 16px;
  text-align: center;
  color: #fff;
}

.lfm-bottom strong {
  color: var(--lfm-orange);
}

@media (max-width: 1100px) {
  .lfm-nav {
    display: none;
  }

  .lfm-welcome,
  .lfm-services-wrap,
  .lfm-family-band,
  .lfm-footer-grid {
    grid-template-columns: 1fr;
  }

  .lfm-ministry-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lfm-family-icons {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 650px) {
  .lfm-header {
    position: relative;
    background: var(--navy);
  }

  .lfm-brand-main {
    font-size: 26px;
  }

  .lfm-brand-sub {
    font-size: 13px;
  }

  .lfm-hero-inner {
    padding: 70px 6% 45px;
  }

  .lfm-actions {
    display: grid;
  }

  .lfm-welcome-copy,
  .lfm-ministries {
    padding: 36px 22px;
  }

  .lfm-ministry-grid,
  .lfm-family-icons {
    grid-template-columns: 1fr;
  }

  .lfm-service-card {
    padding: 36px 24px;
  }
}

/* =========================================================
   LIVING FIRE MINISTRIES — SUPPORTING / RED ACCENT RULES
   ========================================================= */

/* Subtle interaction polish */
.lfm-nav a,
.lfm-nav-btn,
.lfm-btn,
.lfm-dark-btn,
.lfm-service-btn,
.lfm-footer a,
.lfm-socials a {
  transition: color .2s ease, background-color .2s ease,
              border-color .2s ease, transform .2s ease,
              box-shadow .2s ease;
}

/* Orange remains the primary accent. Red is used selectively. */
.lfm-nav a:hover,
.lfm-footer a:hover {
  color: var(--lfm-orange);
}

.lfm-nav-btn:hover,
.lfm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(125, 16, 18, .28);
}

.lfm-dark-btn:hover,
.lfm-service-btn:hover {
  background: var(--lfm-red);
  border-color: var(--lfm-red);
  transform: translateY(-2px);
}

/* Alternate ministry icons between orange and red. */
.lfm-ministry-card:nth-child(even) .lfm-icon {
  background: var(--lfm-red);
}

/* Small helper class for future red text accents. */
.red {
  color: var(--lfm-red);
}

/* Existing layout refinements retained from the old file. */
.lfm-logo {
  min-width: 335px !important;
  overflow: visible !important;
}

.lfm-logo img {
  width: 335px !important;
  max-height: 86px !important;
}

.lfm-menu {
  gap: 20px !important;
}

.lfm-hero-content {
  width: min(720px, 100%) !important;
}

.lfm-hero p {
  max-width: 620px !important;
  font-size: 18px !important;
  line-height: 1.6 !important;
}

.lfm-nowrap {
  white-space: nowrap;
}

.lfm-hero-actions,
.lfm-hero-facts {
  flex-wrap: nowrap !important;
  align-items: center !important;
}

.lfm-fact {
  white-space: nowrap !important;
}

.lfm-small-dark-btn,
.lfm-small-dark-btn span,
.lfm-small-dark-btn:visited,
.lfm-small-dark-btn:hover,
.lfm-small-dark-btn:focus,
.lfm-time-copy h3 {
  color: #fff !important;
}

.lfm-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #fff !important;
  opacity: .96;
}

.lfm-socials a:hover {
  color: var(--lfm-orange) !important;
  opacity: 1;
  transform: translateY(-1px);
}

.lfm-socials svg {
  width: 18px;
  height: 18px;
  color: currentColor !important;
}

.lfm-socials .fill-icon {
  fill: currentColor !important;
  stroke: none !important;
}

.lfm-socials .stroke-icon {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
}

@media (max-width: 650px) {
  .lfm-logo {
    min-width: 220px !important;
  }

  .lfm-logo img {
    width: 220px !important;
    height: auto !important;
  }

  .lfm-hero-actions,
  .lfm-hero-facts {
    flex-wrap: wrap !important;
  }
}

/* =========================================================
   LIVING FIRE MINISTRIES — FINAL BRAND COLOR OVERRIDES
   Orange: #f06719
   Red:    #7d1012
   ========================================================= */

/* Force the new brand variables throughout the page */
html body {
  --gold: #f06719 !important;
  --orange: #f06719 !important;
  --lfm-orange: #f06719 !important;
  --lfm-red: #7d1012 !important;
}

/* Primary orange text accents */
.lfm-brand-sub,
.lfm-hero h1 span,
.lfm-cursive,
.lfm-verse strong,
.lfm-bottom strong,
.orange {
  color: #f06719 !important;
}

/* Active navigation underline */
.lfm-nav a:first-child,
.lfm-menu a:first-child {
  border-bottom-color: #f06719 !important;
}

/* Main call-to-action buttons */
.lfm-nav-btn,
.lfm-btn {
  background: linear-gradient(
    135deg,
    #f06719 0%,
    #7d1012 100%
  ) !important;

  color: #ffffff !important;
  border-color: transparent !important;
}

/* Welcome-section divider */
.lfm-line {
  background: #7d1012 !important;
}

/* Ministry-section title divider lines */
.lfm-section-title span {
  background: #7d1012 !important;
}

/* Service icons */
.lfm-service-item span {
  color: #f06719 !important;
  border-color: #f06719 !important;
}

/* Service outline button */
.lfm-service-btn {
  border-color: #f06719 !important;
}

/* Ministry icons: orange by default */
.lfm-ministry-card .lfm-icon,
.lfm-icon {
  background: #f06719 !important;
}

/* Alternate ministry icons in red */
.lfm-ministry-card:nth-child(even) .lfm-icon {
  background: #7d1012 !important;
}

/* Red hover treatment */
.lfm-dark-btn:hover,
.lfm-service-btn:hover {
  background: #7d1012 !important;
  border-color: #7d1012 !important;
  color: #ffffff !important;
}

/* Orange navigation and footer link hover */
.lfm-nav a:hover,
.lfm-menu a:hover,
.lfm-footer a:hover {
  color: #f06719 !important;
}

/* Orange social icon hover */
.lfm-socials a:hover,
.lfm-socials a:hover svg {
  color: #f06719 !important;
}

/* Red helper class for future use */
.red {
  color: #7d1012 !important;
}