/* =========================
   ROOT VARIABLES
========================= */
:root {
  --bg: #FAF7EE !important;
  --primary-light: #D2BFAB !important;
  --primary-mid: #B3B49A !important;
  --primary-dark: #7EBEC5 !important;
  --accent: #EA4335 !important;
  --text: #000000 !important;
  --focus: #000000 !important;
}

/* =========================
   BASE RESET
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: #FEFCF7 !important;
  color: #000000 !important;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: #ffffff !important;
  padding: 8px 16px;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* =========================
   TYPOGRAPHY
========================= */
h1 {
  font-weight: 100;
  font-size: 3rem;
  margin-top: 0;
}

h2 {
  font-weight: 200;
  margin-top: 0;
}

h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary-dark);
  margin-top: 0;
}

.title-white {
  color: #ffffff !important;
  font-weight: 400;
}

.thin-text {
  font-weight: 100;
}

.centered {
  font-weight: 400;
  text-align: center !important;
}

.centered h1 {
  margin-bottom: 0.1rem;
  color: #9f8766;
}

.personal-touch {
  font-family: 'Caveat', cursive;
  font-size: 3rem;
  color: var(--primary-dark);
  margin-top: 0;
}

/* =========================
   BLOG TYPOGRAPHY OVERRIDES
========================= */
.blog-card-wrapper,
.blog-card-wrapper * {
  font-weight: 300 !important;
}

.blog-meta-top .author {
  font-weight: 600 !important;
}

.wp-block-post-excerpt__excerpt {
  font-weight: 100 !important;
  font-size: 1.5rem;
  line-height: 1.5;
}

.blog-meta-top .wp-block-post-date,
.blog-meta-top .wp-block-post-time-to-read {
  font-size: 1.5rem !important;
  font-weight: 300 !important;
}

.blog-meta-top .author {
  font-size: 2rem !important;
  font-weight: 600 !important;
}

/* =========================
   SINGLE POST LAYOUT
========================= */
.lm-single-post {
  max-width: 900px;
  margin: 40px auto;
  padding: 40px 20px;
}

/* =========================
   META BAR (SECOND LINE)
========================= */
.lm-single-meta {
  display: flex !important;
  gap: 20px !important;
  align-items: center !important;
  margin-bottom: 30px !important;
  font-size: 14px !important;
  color: #555 !important;
}

/* ICON COLORS */
.lm-heart {
  color: #e60000 !important;
}

.lm-share {
  color: #007bff !important;
}

/* =========================
   IMAGE + EXCERPT SIDE BY SIDE
========================= */
.lm-single-top {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 30px !important;
  width: 100% !important;
  text-align: left !important;
}

.lm-single-featured,
.lm-single-excerpt {
  flex: 1 1 50% !important;
}

.lm-single-featured img,
.lm-single-img {
  width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 !important;
}

.lm-single-excerpt {
  font-size: 18px !important;
  line-height: 1.6 !important;
  color: #333 !important;
}

/* =========================
   FULL CONTENT
========================= */
.lm-single-content {
  font-size: 18px !important;
  line-height: 1.7 !important;
  color: #333 !important;
  margin-top: 40px !important;
}

/* =========================
   REMOVE CRIO DEFAULTS
========================= */
.entry-footer {
  display: none !important;
}

.single-post .lm-single-thumb {
  display: none !important;
}

.single-post .entry-meta {
  display: none !important;
}

/* Remove Read More button on single posts */
.single-post .more-link {
  display: none !important;
}

/* =========================
   MAIN CONTENT WRAPPERS
========================= */
main {
  padding: .5rem;
  padding-top: 1.25rem;
}

.section {
  margin-bottom: 2rem;
}

.card-white {
  background: white !important;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border: 1px solid #ddd !important;
  margin-bottom: 1.5rem;
}

/* =========================
   IMAGE BASICS
========================= */
.logo img {
  max-width: 150px;
  height: auto;
  display: block;
  margin: 0 auto 0.25rem auto;
}

.two-column img,
.three-column img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* =========================
   2 COLUMN LAYOUT
========================= */
.two-column {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 2rem !important;
  margin: 2rem auto !important;
  max-width: 1100px !important;
  padding: 0 1rem !important;
  align-items: center !important;
}

.column-card {
  background: #ffffff !important;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border: 1px solid #ddd !important;
}

.single-post .more-link,
.single-post .wp-block-read-more {
    display: none !important;
}

/* FORCE IMAGE + EXCERPT SIDE BY SIDE */
.lm-single-top {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 30px !important;
    width: 100% !important;
    text-align: left !important;
}

.lm-single-featured,
.lm-single-excerpt {
    flex: 1 1 50% !important;
}

.lm-single-featured img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
}

.lm-single-meta {
  justify-content: flex-end !important;
}

/* FORCE META BAR TO RIGHT — OVERRIDES ALL THEME RULES */
.lm-single-meta {
    display: flex !important;
    justify-content: flex-end !important;
    width: 100% !important;
    text-align: right !important;
}

/* OVERRIDE ANY PARENT THAT IS CENTERING CHILDREN */
.lm-single-post .entry-header,
.lm-single-post .entry-content,
.lm-single-post,
.single-post .entry-header,
.single-post .entry-content {
    text-align: left !important;
}

/* IF THE THEME IS CENTERING SPANS INSIDE THE META BAR */
.lm-single-meta span {
    text-align: right !important;
}

/* HIDE CRIO HEADER TITLE ON SINGLE POSTS */
.single-post .page-header-wrapper .entry-title {
    display: none !important;
}

/* INLINE BLOG TITLE (REPLACES HEADER TITLE) */
.lm-single-title {
    text-align: center;
    color: #9f8766;
    font-weight: 600;
    font-size: 24px;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

/* REMOVE CRIO HEADER TITLE ON SINGLE POSTS */
.single-post .page-header-wrapper .entry-title.page-title.h1 {
    display: none !important;
}

/* INLINE AUTHOR + DATE LEFT SIDE */
.lm-author-date-inline {
    margin-right: auto;
    font-size: 16px;
    color: #9F8766;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* META BAR RIGHT SIDE (existing override stays) */
.lm-single-meta {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 12px;
    width: 100%;
}

/* CENTER THE ENTIRE BLOG CONTENT AREA */
.single-post .lm-single-post {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* When loved (active state) */
.lm-meta-love.lm-loved i {
    color: #c0392b !important;
}

/* HEART HOVER COLOR ONLY */
.lm-like-icon:hover i,
.lm-like-icon a:hover i,
.lm-heart:hover,
.lm-heart:hover i {
    color: #800080 !important;
}

/* SHARE ICON HOVER COLOR */
.lm-share-icon:hover i,
.lm-share:hover i {
    color: #800080 !important;
}

/* FORCE CLICK CURSOR ON SHARE ICON */
.lm-share-icon,
.lm-share-icon i,
.lm-share {
    cursor: pointer !important;
}

/* Force blog title color */
.entry-title.page-title.h1.color4-color.color4-color-hover {
    color: #9F8766 !important;
}

/* Remove hover color */
.entry-title.page-title.h1.color4-color.color4-color-hover:hover {
    color: #9F8766 !important;
}

/* FORCE HERO IMAGE TO DISPLAY CORRECTLY */
.tmpl-call_to_action-5.boldgrid-section.dynamic-gridblock.background-scroll {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    min-height: 500px !important;
    position: relative !important;
}

/* FORCE THE BROWN OVERLAY TO FILL THE HERO AREA */
.tmpl-call_to_action-5 .bg-background-color {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding-top: 60px !important; /* keeps your text where it was */
    padding-bottom: 60px !important;
    background-color: rgba(210,191,171,0.85) !important;
    position: absolute !important;
    top: 0;
    left: 0;
    z-index: 2;
}

/* ENSURE TEXT SITS ABOVE THE OVERLAY */
.tmpl-call_to_action-5 .bg-box {
    position: relative !important;
    z-index: 3 !important;
}

/* FORCE HERO SECTION TO HAVE A FIXED HEIGHT */
.tmpl-call_to_action-5.boldgrid-section.dynamic-gridblock.background-scroll {
    position: relative !important;
    min-height: 500px !important; /* adjust if you want taller */
    background-size: cover !important;
    background-position: center !important;
}

/* MAKE THE BROWN OVERLAY MATCH THE HERO EXACTLY */
.tmpl-call_to_action-5 .bg-background-color {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding-top: 60px !important; /* keeps your text where it was */
    padding-bottom: 60px !important;
    background-color: rgba(210,191,171,0.85) !important;
    z-index: 2;
}

/* ENSURE TEXT SITS ABOVE THE OVERLAY */
.tmpl-call_to_action-5 .bg-box {
    position: relative !important;
    z-index: 3 !important;
}

/* RESTORE THE BROWN BACKGROUND FOR THIS BLOCK */
.row.color3-background-color {
    background-color: #d2bfab !important;
}

/* DESKTOP — Fix dedication block column widths */
.page-id-817 .tmpl-blog-3 .col-md-11 {
    width: 58.333% !important; /* 7/12 */
}

.page-id-817 .tmpl-blog-3 .col-md-1 {
    width: 41.666% !important; /* 5/12 */
}

/* FORCE hearts red inside the dedication block */
.page-id-817 .tmpl-blog-3 i.fa-heart,
.page-id-817 .tmpl-blog-3 i.fa-heart-o {
    color: #c0392b !important;
}

/* GLOBAL — FORCE ALL HEARTS TO OUTLINE + RED (FA4) */
.fa-heart,
.fa-heart-o {
    color: #c0392b !important;
}

/* FORCE OUTLINE HEART SHAPE (FA4) */
.fa-heart:before {
    content: "\f08a" !important; /* FA4 outline heart */
}


/* PET LOSS — Restore CTA-7 layout */
.page-id-817 .tmpl-call_to_action-7 .row {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    padding: 20px !important; /* replaces the inline padding */
}

/* Restore proper column widths */
.page-id-817 .tmpl-call_to_action-7 .col-md-8 {
    width: 66.666% !important; /* 8/12 */
    padding: 0 20px 0 0 !important;
}

.page-id-817 .tmpl-call_to_action-7 .col-md-4 {
    width: 33.333% !important; /* 4/12 */
    padding: 0 !important;
}

/* Fix background collapse caused by global .bg-background-color rules */
.page-id-817 .tmpl-call_to_action-7 {
    padding: 20px !important;
    box-sizing: border-box !important;
}

/* PET LOSS — Restore CTA-7 to normal Bootstrap behavior */
.page-id-817 .tmpl-call_to_action-7 .row {
    display: block !important;        /* undo global flex */
    flex-direction: row !important;   /* undo column stacking */
    padding: 20px !important;
}

.page-id-817 .tmpl-call_to_action-7 .col-md-8,
.page-id-817 .tmpl-call_to_action-7 .col-md-4 {
    width: auto !important;           /* allow Bootstrap widths */
    padding: 0 15px !important;       /* restore column padding */
    float: left !important;           /* restore column behavior */
    box-sizing: border-box !important;
}

/* Force correct proportions */
.page-id-817 .tmpl-call_to_action-7 .col-md-8 {
    width: 66.666% !important;
}

.page-id-817 .tmpl-call_to_action-7 .col-md-4 {
    width: 33.333% !important;
}

/* Fix background shrink */
.page-id-817 .tmpl-call_to_action-7 {
    width: 100% !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

/* PET LOSS — Make CTA-7 right column narrower */
.page-id-817 .tmpl-call_to_action-7 .col-md-4 {
    width: 25% !important;   /* narrower right column */
}

.page-id-817 .tmpl-call_to_action-7 .col-md-8 {
    width: 75% !important;   /* wider left column */
}

function load_fa_regular() {
    wp_enqueue_style(
        'fa-regular',
        'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css'
    );
}
add_action('wp_enqueue_scripts', 'load_fa_regular');

#footer {
    clear: both !important;
    display: block !important;
    float: none !important;
}

#colophon,
#footer,
.site-footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
}
