/* ========================================
   ABSENT FRIENDS - MAIN STYLESHEET
   ======================================== */

/* ========================================
   FONTS & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    overflow-x: hidden;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    height: 100vh;
    background: white;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 80px;
}

.hero-container {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

.hero-image {
    flex: 0 0 50%;
    max-width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-content {
    flex: 1;
    padding: 0 4rem;
    text-align: left;
    color: #333;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px;
}

.hero-title {
    font-family: 'Migra', serif;
    font-size: 4.5rem;
    font-weight: 200;
    line-height: 1.1;
    margin-bottom: 0;
    color: #333;
}

.hero-subtitle {
    font-family: 'Migra', serif;
    font-size: 4.5rem;
    font-weight: 200;
    font-style: italic;
    line-height: 1.1;
    margin-bottom: 40px;
    color: #333;
}

.learn-more-btn {
    display: inline-block;
    padding: 15px 45px;
    background: transparent;
    border: 2px solid #333;
    border-radius: 50px;
    color: #333;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.learn-more-btn:hover {
    background: #333;
    color: white;
    transform: translateY(-2px);
}

/* ========================================
   MEMORY CARDS SECTION
   ======================================== */
.memory-section {
    width: 100%;
    overflow: hidden;
}

.memory-image {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   MEMORIAL CREATION SECTION
   ======================================== */
.memorial-section {
    width: 100%;
    background: white;
    padding: 60px 0;
}

.memorial-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
    gap: 40px;
}

.date-start, .date-end {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.2rem;
    color: #333;
    font-weight: 300;
}

.date-line {
    width: 800px;
    height: 1px;
    background: #333;
}

.memorial-content {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    gap: 40px;
    align-items: center;
    position: relative;
    padding: 0 2rem;
}

.memorial-gallery {
    display: flex;
    flex-direction: row;
    gap: 0;
    flex: 1;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    flex: 1;
}

.gallery-item img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

.play-button {
    display:none;
}

.memorial-text {
    flex: 0 0 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 20px;
}

.memorial-title {
    font-family: 'Migra', serif;
    font-size: 4.5rem;
    font-weight: 200;
    line-height: 1.1;
    margin-bottom: 40px;
    color: #333;
    text-align: center;
}

.create-memorial-btn {
    background: transparent;
    border: 2px solid #333;
    color: #333;
    padding: 15px 40px;
    border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration:none;
}

.create-memorial-btn:hover {
    background: #333;
    color: white;
    transform: translateY(-2px);
    text-decoration:none;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-section {
    background: white;
    padding: 80px 0;
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: #333;
}

.about-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: #333;
}

.about-container {
    display: flex;
    width: 100%;
    align-items: center;
    position: relative;
}

.about-content {
    flex: 1;
    padding: 0 4rem 0 2rem;
    max-width: 700px;
}

.hashtag {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.about-brand {
    font-family: 'Migra', serif;
    font-size: 2rem;
    font-weight: 200;
    color: #333;
    text-align: center;
    letter-spacing: 0.2em;
    margin-bottom: 3rem;
    position: relative;
}

.about-brand::before {
    content: '';
    position: absolute;
    top: -1rem;
    left: 0;
    right: 0;
    height: 1px;
    background: #333;
}

.about-title {
    font-family: 'Migra', serif;
    font-size: 3.5rem;
    font-weight: 200;
    color: #333;
    line-height: 1.1;
    margin-bottom: 2rem;
    text-align: center;
}

.about-title .italic {
    font-style: italic;
}

.about-description {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 3rem;
}

.about-description p {
    margin-bottom: 1.5rem;
}

.about-features {
    list-style: none;
    padding: 0;
}

.about-features li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 0;
}

.about-features li::before {
    content: '•';
    color: #333;
    font-weight: bold;
    position: absolute;
    left: -15px;
}

.about-graphic {
    width: 50vw;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.about-graphic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
}

.about-btn {
    background: transparent;
    border: 2px solid #333;
    color: #333;
    padding: 15px 40px;
    border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    text-decoration: none;
}

.about-btn:hover {
    background: #333;
    color: white;
    transform: translateY(-2px);
    text-decoration:none;
}

/* ========================================
   MEMORIES SECTION
   ======================================== */
.memories-section {
    width: 100%;
    overflow: hidden;
}

.memories-bg {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   TESTIMONIAL SECTION
   ======================================== */
.testimonial-section {
    background: white;
    padding: 100px 0;
}

.testimonial-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.testimonial-hashtag {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    letter-spacing: 0.1em;
    margin-bottom: 4rem;
}

.testimonial-main {
    display: flex;
    align-items: center;
    gap: 6rem;
}

.photo-collages {
    flex: 0 0 600px;
    position: relative;
    height: 500px;
}

.photo-collages img {
    display: block;
}

.grid-image {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.testimonial-text {
    flex: 1;
    position: relative;
}

@media (max-width: 768px) {
    .testimonial-heading {
        text-align: center;
        max-width: 100%;
    }
}

.quote-mark {
    font-size: 8rem;
    color: #c5a394;
    font-family: 'Times New Roman', serif;
    position: absolute;
    top: -2rem;
    right: 0;
    line-height: 1;
}

.testimonial-heading {
    font-family: 'Migra', serif;
    font-size: 3.5rem;
    font-weight: 200;
    color: #c5a394;
    line-height: 1.2;
    margin-bottom: 2rem;
    max-width: 600px;
    font-style: italic;
}

.testimonial-description {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 2rem;
    max-width: 600px;
}

.testimonial-author {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    color: #c5a394;
    font-style: italic;
    margin-bottom: 3rem;
}

.testimonial-btn {
    background: transparent;
    border: 2px solid #333;
    color: #333;
    padding: 15px 40px;
    border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 2rem;
    text-decoration: none;
}

.testimonial-btn:hover {
    background: #333;
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

.testimonial-arrow {
    display: inline-block;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.testimonial-arrow:hover {
    transform: translateX(5px);
}

/* ========================================
   MEMORIAL SELECTION SECTION
   ======================================== */
.memorial-selection-section {
    background: white;
    padding: 120px 0;
    position: relative;
}

.memorial-selection-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 80px;
}

.memorial-cards {
    display: flex;
    justify-content: center;
    gap: 60px;
    width: 100%;
    flex-wrap: wrap;
}

.memorial-card {
    background: transparent;
    border-radius: 30px;
    padding: 50px 40px;
    width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.memorial-card:hover {
    transform: translateY(-10px);
}
.memorial-card a {text-decoration:none;}
.memorial-card a:hover {text-decoration:none;}

.memorial-icon {
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
    background: #deb6b4;
}

.memorial-icon img {
    width: 90%;
    border-radius: 10px;
}
.memorial-icon span {
color: #fff;
 display: block;
  margin-top: 0.5rem;       /* space between image and text */
  text-align: center; }

.memorial-card-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: white;
    text-align: center;
    margin: 0;
    letter-spacing: 0.05em;
}

.memorial-selection-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background: linear-gradient(180deg, #d4b5a8 0%, #c5a394 100%);
    padding: 60px 80px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.memorial-selection-title {
    font-family: 'Migra', serif;
    font-size: 4.5rem;
    font-weight: 200;
    color: white;
    line-height: 1.1;
    margin: 0;
    letter-spacing: 0.02em;
}

.memorial-selection-tagline {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: white;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin: 0;
    padding: 15px 40px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 5px;
}

/* ========================================
   MEMORIAL SELECTION RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .memorial-selection-section {
        padding: 60px 0;
    }
    
    .memorial-selection-container {
        gap: 40px;
        padding: 0 1rem;
    }
    
    .memorial-cards {
        gap: 30px;
        flex-direction: column;
        align-items: center;
    }
    
    .memorial-card {
        width: 100%;
        max-width: 280px;
        padding: 30px 20px;
    }
    
    .memorial-icon {
        width: 150px;
        height: 150px;
    }
    
    .memorial-selection-content {
        padding: 40px 20px;
    }
    
    .memorial-selection-title {
        font-size: 3rem;
    }
    
    .memorial-selection-tagline {
        font-size: 0.8rem;
        padding: 12px 20px;
        letter-spacing: 0.1em;
    }
}

@media (max-width: 480px) {
    .memorial-selection-title {
        font-size: 2.5rem;
    }
    
    .memorial-icon {
        width: 120px;
        height: 120px;
    }
    
    .memorial-selection-tagline {
        font-size: 0.7rem;
        padding: 10px 15px;
    }
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: #333;
}

footer {
    background: linear-gradient(180deg, #d4b5a8 0%, #c5a394 100%);
    color: #fff;
    padding: 40px 0 0 0;
}
footer .ft-logo { max-width: 150px;width: 100%;margin-bottom: 1rem;}
footer .logo-text { font-family: DMSans;text-transform: uppercase;font-weight: bold;font-size: 2rem;letter-spacing: 2px;margin-bottom: .5rem;}
footer p { margin-bottom: 2rem;}
footer p span {display:block;margin-bottom:.5rem; }
footer .socials { margin-bottom: 2rem;}
footer .socials a { color: #e8cc35;}
footer .socials a:hover { }
footer .socials a i { font-size: 35px;color: rgba(0, 0, 0, 0.8);}
footer .ft-menu { background: #b78e8c;padding: 1rem 0;}
footer .ft-menu ul { list-style: none;padding: 0;margin: 0;}
footer .ft-menu ul li { display: inline-block;padding: 0 1rem;}
footer .ft-menu ul li a { color: #fff;font-weight: bold;}
footer .ft-menu ul li a:hover { }
footer .small { padding: 1rem 0;background: linear-gradient(180deg, #d4b5a8 0%, #c5a394 100%);}


/* ========================================
   Category Pages – TOKENS (scoped)
   ======================================== */
.cat-page{
  /* Theme tokens */
  --af-olive:#8A9368;
  --af-deep:#2f322b;
  --af-text:#2f2f2f;
  --af-muted:#6b6b6b;

  /* Extra tokens used by subsections */
  --af-ink:#3d3f42;
  --af-cream:#F5F6EA;
  --white:#ffffff;

  /* Hero */
  --hero-image-mil:url('/images/military-hero.png');
  --hero-image-mem:url('/images/memorial-hero.png');
  --hero-image-pet:url('/images/pet-hero.png');

  color:var(--af-text);
}

/* ========================================
   Hero
   ======================================== */
.cat-page .hero{
  min-height:100vh;
  display:flex;
  flex-direction:row;
  background:#fff;
  margin-top:105px;
}
.cat-page .hero-left{
  flex:1 1 50%;
  padding:2rem clamp(1rem, 5vw, 5rem);
  background:#fff;
  position:relative;
}
.cat-page .hero-right{
  flex:1 1 50%;
  position:relative;
  background:
    linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 40%, rgba(255,255,255,0.05) 60%, rgba(255,255,255,0.25) 100%),
    var(--hero-image-mil) center/cover no-repeat;
  min-height:60vh;
}
.cat-page.br-pink .hero-right{
  flex:1 1 50%;
  position:relative;
  background:
    linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 40%, rgba(255,255,255,0.05) 60%, rgba(255,255,255,0.25) 100%),
    var(--hero-image-mem) center/cover no-repeat;
  min-height:60vh;
}
.cat-page.br-pet .hero-right{
  flex:1 1 50%;
  position:relative;
  background:
    linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 40%, rgba(255,255,255,0.05) 60%, rgba(255,255,255,0.25) 100%),
    var(--hero-image-pet) center/cover no-repeat;
  min-height:60vh;
}
/* Logo */
.cat-page .af-logo {
  letter-spacing: .6rem;
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--af-deep);
  font-family: 'Migra', serif;
  margin-bottom: 5rem;
}
.cat-page.br-pet .af-logo {color:#fd674f;}
.cat-page .af-logo .mark {
  width: 90px;
  display: inline-block;
  background: 0;
  margin-right: 1rem;
}

/* Headline */
.cat-page .eyebrow{
  font-size:clamp(2.6rem,7vw,4.8rem);
  line-height:.9;
  font-weight:800;
  letter-spacing:-.02em;
  position: relative;
}
.cat-page.br-pink .eyebrow{line-height:normal;}

.cat-page .eyebrow .sub{
  display:block;
  color:#333;
  font-weight:700;
  font-size:clamp(2.6rem,7vw,4.8rem);
  opacity:.9;
  margin-bottom: 5rem;
  line-height: 26px;
}
.cat-page.br-pink .eyebrow .sub {color:#b78e8c;}

.cat-page .eyebrow .main{
  color:var(--af-olive);
  text-transform:lowercase;
  z-index: 2;
  position: relative;
}
.cat-page.br-pink .eyebrow .main {color:#b78e8c;}
.cat-page.br-pet .eyebrow .main {color:#fd674f;}

/* Badges */
.cat-page .badge-dot{
  display:inline-flex; align-items:center; gap:.5rem;
  margin-right:1.25rem;
}
.cat-page .badge-dot::before{
  content:""; width:.5rem; height:.5rem; border-radius:50%; background:var(--af-olive);
  display:inline-block;
}
.cat-page.br-pink .badge-dot::before{background:#b78e8c;}
.cat-page.br-pet .badge-dot::before{background:#fd674f;}


/* ========================================
   CTA – base + variants
   ======================================== */
.cat-page .cta{
  border:2px solid var(--af-ink, var(--af-deep)); /* uses --af-ink if available */
  border-radius:999px;
  padding:.9rem 2.2rem;
  font-weight:700;
  font-size:1.15rem;
  display:inline-flex; align-items:center; gap:.75rem;
  background:#fff;
  text-decoration:none;
  color:inherit;
}
.cat-page .cta:hover{ background:#f8f8f8; }
.cat-page .cta .cursor{
  width:22px; height:22px; display:inline-block;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256' viewBox='0 0 256 256'%3E%3Cpath d='M34 18l68 184 22-58 62 62 20-20-62-62 58-22L34 18z' fill='%23000'/%3E%3C/svg%3E") center/contain no-repeat;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.15));
}
/* Quote row inverted CTA */
.cat-page .quote-row .cta{ border-color:#fff; color:#fff; background:transparent; }
.cat-page .quote-row .cta:hover{ background:#fff; color:#1b1b1b; }
/* Olive outline variant (used in simple steps row) */
.cat-page .simple-row .cta-olive{
  border-color:var(--af-olive);
  color:var(--af-ink);
  box-shadow:6px 6px 0 0 rgba(138,147,104,.35);
}
.cat-page.br-pink .simple-row .cta-olive{
  border-color:#b78e8c;
  color:#b78e8c;
  box-shadow:6px 6px 0 0 rgba(138,147,104,.35);
}
.cat-page.br-pet .simple-row .cta-olive{
  border-color:#fd674f;
  color:#fd674f;
  box-shadow:6px 6px 0 0 rgba(138,147,104,.35);
}

.cat-page .simple-row .cta-olive:hover{ background:var(--af-olive); color:#fff; box-shadow:none; }
.cat-page.br-pink .simple-row .cta-olive:hover{ background:#b78e8c; color:#fff; box-shadow:none; }
.cat-page.br-pet .simple-row .cta-olive:hover{ background:#fd674f; color:#fff; box-shadow:none; }


/* Right-side social buttons */
.cat-page .social-stack{
  position:absolute; right:1.25rem; top:50%; transform:translateY(-50%);
  display:flex; flex-direction:column; gap:1rem;
}
.cat-page .social-stack a{
  width:56px; height:56px; border-radius:50%;
  background:#000; color:#fff; display:grid; place-items:center;
  text-decoration:none; font-size:1.4rem;
  transition:opacity .2s ease;
}
.cat-page .social-stack a:hover{ opacity:.85; }

/* Copy */
.cat-page .lead-text{ color:#3e3e3e; }
.cat-page .muted{ color:var(--af-muted); }

/* Responsive (hero) */
@media (max-width:992px){
  .cat-page .hero{ flex-direction:column; }
  .cat-page .hero-right{ order:-1; min-height:40vh; }
  .cat-page .social-stack{ right:.75rem; top:auto; bottom:1rem; transform:none; }
  .cat-page .bubble-left{ display:none; }
}

/* ========================================
   Quote Row
   ======================================== */
.cat-page .quote-row{
  --quote-image: url('/images/mil-quote-bg.png');
  position:relative;
  min-height:62vh;
  display:flex;
  align-items:center;
  background: var(--quote-image) center/cover no-repeat;
  color:#fff;
  padding:clamp(2rem, 6vw, 5rem) 0;
}
.cat-page.br-pink .quote-row{
  --quote-image: url('/images/mem-quote-bg.png');
  position:relative;
  min-height:62vh;
  display:flex;
  align-items:center;
  background: var(--quote-image) center/cover no-repeat;
  color:#fff;
  padding:clamp(2rem, 6vw, 5rem) 0;
}
.cat-page.br-pet .quote-row{
  --quote-image: url('/images/pet-quote-bg.png');
  position:relative;
  min-height:62vh;
  display:flex;
  align-items:center;
  background: var(--quote-image) center/cover no-repeat;
  color:#fff;
  padding:clamp(2rem, 6vw, 5rem) 0;
}
.cat-page .quote-row .quote-overlay{
  position:absolute; inset:0;
  background:rgba(24,18,14,.50);
  backdrop-filter:saturate(110%) brightness(90%);
}
.cat-page .quote-row .quote-author{
  display:flex; align-items:center; gap:1rem;
  text-transform:uppercase; letter-spacing:.12em;
  font-weight:700; font-size:.95rem; opacity:.95;
}
.cat-page .quote-row .quote-author .rule{
  width:80px; height:4px; border-radius:2px; background:#fff; display:inline-block;
}
.cat-page .quote-row .quote-text{
  margin:0; font-weight:600; line-height:1.15;
  font-size:clamp(1.8rem, 4.6vw, 3.75rem);
  text-shadow:0 2px 18px rgba(0,0,0,.35);
}
@media (max-width:576px){
  .cat-page .quote-row{ min-height:56vh; }
  .cat-page .quote-row .quote-author .rule{ width:60px; }
}

/* ========================================
   (Optional) Slider styles
   ======================================== */
#hm-pro-slider {padding:2rem 0;}
#hm-pro-slider h2 {text-align:center;margin-bottom:1rem;color:#999999;}
#hm-pro-slider .inner {text-align:center;line-height:3;background:rgba(48,61,65,0.30);padding:1rem;}
#hm-pro-slider .inner .fl-name {font-size:12px;font-weight:bold;text-transform:uppercase;color:#fff;font-family:Migra-Extralight;}
#hm-pro-slider .inner .dates {color:#fff;font-size:12px;font-weight:bold;margin-bottom:.5rem;}
#hm-pro-slider .inner a {background:#3d4243;width:100%;display:block;color:#fff;text-transform:uppercase;letter-spacing:1px;border:3px solid #3d4243;border-radius:100px;font-family:DMSans;font-weight:bold;}
#hm-pro-slider .inner a:hover {border-color:#fff;text-decoration:none;}

/* ========================================
   Book cover variables (global)
   ======================================== */
:root{
  --cover-red-dark:#2e0000;
  --cover-red-mid:#4e0000;
  --cover-red-light:#6e0000;
  --gold:#d1bb7a;
  --gold-soft:rgba(209,187,122,.65);
}

/* ========================================
   Book component
   ======================================== */
h3,.nickname{font-family:'Playfair Display',serif;}
.row.five-cols{display:flex;flex-wrap:wrap;margin:0 -0.5rem}
.row.five-cols .col-5th{padding:0 0.5rem;flex:0 0 20%;max-width:20%;margin-bottom:1.2rem}
@media(max-width:1200px){.row.five-cols .col-5th{flex:0 0 25%;max-width:25%}}
@media(max-width:992px){.row.five-cols .col-5th{flex:0 0 33.333%;max-width:33.333%}}
@media(max-width:768px){.row.five-cols .col-5th{flex:0 0 50%;max-width:50%}}
@media(max-width:576px){.row.five-cols .col-5th{flex:0 0 100%;max-width:100%}}

.book-wrapper{position:relative;width:100%;padding-top:125%;perspective:1400px;cursor:pointer}
.book{position:absolute;inset:0;transform-style:preserve-3d;transform:rotateY(-4deg);transition:transform .4s ease}
.book::before{content:"";position:absolute;left:-12px;top:0;width:12px;height:100%;border-left:;border-right:;transform-origin:right center;transform:rotateY(90deg);backface-visibility:hidden;box-shadow:inset -1px 0 2px rgba(255,255,255,.08)}
.cover,.page{position:absolute;inset:0;border-radius:6px;overflow:hidden;backface-visibility:hidden;transform-style:preserve-3d;height:100%}
.cover{background:url(/images/book-back-1.png);color:#fefcf6;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;row-gap:1rem;padding:4rem 1rem 1.6rem;box-shadow:;transform-origin:left center;transition:transform .7s ease;position:relative;text-shadow:0 1px 2px rgba(0,0,0,.4);background-size: 100% 100%;}
.cover::before{content:"";position:absolute;inset:0;background-size:62px 62px;opacity:.12;mix-blend-mode:overlay}
.cover::after{content:"";position:absolute;border-radius:4px;pointer-events:none}
.cover .logo{position:absolute;top:50px;left:50%;transform:translateX(-50%);width:56px!important;opacity:.85;filter:drop-shadow(0 0 2px rgba(0,0,0,.35));pointer-events:none}
.cover .dec-line{width:65%;height:2px;background:linear-gradient(to right,transparent 0%,var(--gold) 45%,var(--gold) 55%,transparent 100%);opacity:.85}
h3.title{font-size:1rem;margin:0;font-weight:normal;letter-spacing:.35px;text-align:center;color:#000;padding-top: 1.2rem;}
.aka{font-size:.78rem;color:#000;letter-spacing:.3px;margin-top:-.1rem;}
.nickname{font-size:.92rem;font-style:italic;color:#000;margin-top:-.1rem;opacity:.9;}
.dates{font-size:.78rem;letter-spacing:.3px;color:#000;margin-top:-.1rem;;}
.age{font-size:1.05rem;font-weight:normal;color:#000;letter-spacing:.45px;margin-top:-.15rem;}
.page{background:#fdfcfb;transform:rotateY(-180deg);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1.6rem 1rem;gap:.9rem;box-shadow:0 0 6px rgba(0,0,0,.15) inset;height:100%}
.page::before{content:"";position:absolute;inset:0;border:2px solid #ebe8e1;border-radius:5px;pointer-events:none}
.page img{width:80%;aspect-ratio:1/1;border-radius:50%;border:4px solid #fff;box-shadow:0 0 6px rgba(0,0,0,.28);object-fit:cover}
.page-text{font-size:.8rem;color:#363636;text-align:center;line-height:1.4;font-style:italic;font-family:'Lora',serif}
.book-wrapper:hover .cover{transform:rotateY(-160deg)}
.book-wrapper:hover .page{transform:rotateY(0deg)}
.book-wrapper:hover .book{transform:rotateY(-1deg)}
.book-wrapper.open .cover{transform:rotateY(-160deg)}
.book-wrapper.open .page{transform:rotateY(0deg)}
.book-wrapper.open .book{transform:rotateY(-1deg)}

/* ===================== THIS IS YOUR LIFE (final) ===================== */
/* scope */
.cat-page .life-section{
  --olive: #8A9368;
  --ink:   #3d3f42;
  --cream: #F5F6EA;
  --line:  #5b5f57;
  --spark: #ff7f66;           /* tiny coral diamond */
  background: var(--cream);
}
.cat-page.br-pink .life-section {background: #f0e8e8;}
.cat-page.br-pet .life-section {background: none;}

/* outer frame */
.cat-page .life-frame{
  border: 14px solid var(--olive);
  margin: clamp(.4rem, 2vw, .9rem);
  padding: clamp(1.2rem, 3.8vw, 2.6rem);
  position: relative;
  overflow: hidden;
}
.cat-page.br-pink .life-frame {  border: 14px solid #b78e8c; }
.cat-page.br-pet .life-frame {  border:0; }

/* ---------- top name (right; no decorative line) ---------- */
.cat-page .life-name-row{
  display: flex; justify-content: flex-end;
  margin-bottom: clamp(1.1rem, 3.5vw, 2rem);
}
.cat-page .life-name{
  letter-spacing: .32em;
  font-size: .95rem;
  color: #3b3e3b;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- title row ---------- */
.cat-page .life-title-row{
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;                /* line is not vertically centered to text */
  column-gap: clamp(1rem, 3vw, 2rem);
  margin-bottom: clamp(1.2rem, 4vw, 2.2rem);
}
.cat-page .life-title{
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  text-transform: lowercase;
  letter-spacing: .16em;             /* generous tracking like the comp */
  line-height: 1.05;
}
.cat-page.br-pink .life-title {color:#b78e8c;}
.cat-page.br-pet .life-title {color:#fd674f;}

/* hairlines + optional sparkle */
.cat-page .life-rule{
  position: relative;
  height: 2px;
  background: var(--line);
  opacity: .65;
  align-self: start;                 /* keeps it slightly above title midline */
  margin-top: .55rem;                /* nudge up so it's not centered to the text */
}
.cat-page .life-rule-right{ width: 100%; }
.cat-page .life-rule-left{ width: 32%; }  /* shorter like the comp */

.cat-page .life-rule .sparkle{
  position: absolute; width: 12px; height: 12px;
  background: var(--spark);
  transform: rotate(45deg);
  border-radius: 2px;
  top: -5px;
}
/* sparkle placement */
.cat-page .life-rule-right .sparkle{ left: 0; box-shadow: 0 0 0 3px var(--cream); }
.cat-page .life-rule-left  .sparkle{ right: 0; box-shadow: 0 0 0 3px var(--cream); }

/* ---------- center book + chevrons ---------- */
.cat-page .life-main{
  display: grid;
  align-items: center;
  justify-items: center;
  margin-bottom: clamp(1rem, 3.2vw, 1.6rem);
}
.cat-page .life-book{
  width: min(280px, 42vw);
  height: auto;
  filter: drop-shadow(0 18px 20px rgba(0,0,0,.18));
}

.cat-page .life-nav{
  width: 74px; height: 74px;
  border-radius: 50%;
  background: 0;
  border: 3px solid var(--olive);
  color: #788234;
  display: grid; place-items: center;
  font-size: 1.35rem; font-weight: 700;
  user-select: none;
}
.cat-page .life-nav span{ position: relative; top: -10px; font-size: 65px;line-height: 0px;}
.cat-page.br-pink .life-nav{
  border: 3px solid #b78e8c;
  color: #b78e8c;
}
.cat-page.br-pet .life-nav{
  border: 3px solid #fd674f;
  color: #fd674f;
}


/* ---------- dots ---------- */
.cat-page .life-dots{
  display: flex; justify-content: center; gap: 14px;
  margin: .2rem 0 1.2rem;
}
.cat-page .life-dots span{
  width: 14px; height: 14px; border-radius: 50%;
  background: #b9bcb2;
}
.cat-page .life-dots .active{ background: #8c9086; }

/* ---------- bottom row (mirrored) ---------- */
.cat-page .life-bottom-row{
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  column-gap: clamp(1rem, 3vw, 2rem);
  margin-top: clamp(.5rem, 2.4vw, 1rem);
}
.cat-page .life-subtitle{
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  text-transform: lowercase;
  letter-spacing: .18em;
  font-size: clamp(2rem, 6.5vw, 3.35rem);
  line-height: 1.05;
  text-align: right;
}
.cat-page.br-pink .life-subtitle{color: #b78e8c;}
.cat-page.br-pet .life-subtitle{color: #fd674f;}


/* ---------- responsive tweaks ---------- */
@media (max-width: 992px){
  .cat-page .life-rule-left{ width: 42%; }
  .cat-page .life-name{ letter-spacing: .26em; font-size: .85rem; }
}
@media (max-width: 576px){
  .cat-page .life-main{ grid-template-columns: 64px 1fr 64px; }
  .cat-page .life-nav{ width: 64px; height: 64px; }
  .cat-page .life-rule-left{ width: 50%; }
  .cat-page .life-rule .sparkle{ width: 10px; height: 10px; top:-4px; }
}
/* 1) Make the top line shorter AND make it start from the right edge */
.cat-page .life-title-row .life-rule-right{
  width: 85%;          /* ← set the length you want (e.g., 35–55%) */
  margin-left: auto;   /* pushes the rule to the far right so it "starts" there */
}
.cat-page .life-rule-right .sparkle{
  left: auto;          /* move the diamond to the right end */
  right: 235px;         /* tiny overhang like the comp */
}

/* 2) Make “jim, this is” bigger and nudge it to the right with padding */
.cat-page .life-title{
  font-size: clamp(3.5rem, 7vw, 5rem);   /* bigger */
  padding-left: clamp(8rem, 4vw, 1.25rem);/* gentle push to the right */
  /* If you prefer a harder shift, use margin-left instead of padding-left */
  /* margin-left: clamp(.5rem, 2vw, 1.25rem); */
}

/* (optional) If you also want the bottom rule shorter to match the new feel */
.cat-page .life-bottom-row .life-rule-left{
  width: 35%;
}
/* Pull the chevron buttons closer to the book */
.cat-page .life-main{
  grid-template-columns: 400px 1fr 400px;              /* narrower side columns */
                    /* smaller gap */
}

.cat-page .life-nav-left{  justify-self: end;  }     /* hug the book edge */
.cat-page .life-nav-right{ justify-self: start; }    /* hug the book edge */

/* ========================================
   Simple Steps Row
   ======================================== */
.cat-page .simple-row{
  --af-olive:#8A9368;
  --af-deep:#2f322b;
  --af-ink:#3d3f42;
  --af-cream:#fff;
  background:#fff;
}

/* Left card frame + inner keyline */
.cat-page .steps-wrap{border:3px solid var(--af-deep)}
.cat-page .steps-card{
  background:var(--af-olive); color:#fff;
  padding:clamp(2.25rem, 3.5vw, 3rem) clamp(2.25rem, 4vw, 3.25rem);
  border:4px solid #fff;
}
.cat-page.br-pink .steps-card{background:#b78e8c; }
.cat-page.br-pet .steps-card{background:#fd674f; }



.cat-page .step-title{margin:0 0 .25rem 0;font-weight:800;text-transform:lowercase;letter-spacing:.02em;font-size:clamp(1.2rem, 2.2vw, 1.6rem)}
.cat-page .step-title .num{margin-right:.6rem;letter-spacing:.08em}
.cat-page .steps-card p{color:#f6f7f1;line-height:1.6}
.cat-page .simple-title{color:var(--af-ink);letter-spacing:.02em;text-transform:lowercase;font-size:clamp(1.6rem, 2.8vw, 2.25rem)}
.cat-page .simple-underline{width:72px;height:4px;border-radius:2px;background:var(--af-olive)}
.cat-page.br-pink .simple-underline {background:#b78e8c; } #fd674f
.cat-page.br-pet .simple-underline {background:#fd674f; } 
.cat-page .simple-row .boxed {max-width:372px; }
@media (max-width:576px){
  .cat-page .steps-card{padding:1rem 1.1rem}
  .cat-page .simple-row .cta{width:100%;justify-content:center}
}

/* ========================================
   Keep Memory Alive Row (revised)
   ======================================== */
.cat-page .memory-row{
  --olive:#8A9368;
  --white:#ffffff;
  background:var(--olive);
  color:var(--white);
  padding:clamp(3.5rem, 8vw, 6.5rem) 0;
}
.cat-page.br-pink .memory-row{background:#b78e8c;}
.cat-page.br-pet .memory-row{background:#fd674f;}


.cat-page .memory-title{
  font-weight:800; line-height:1.05; letter-spacing:.005em;
  font-size:clamp(2.2rem, 6.2vw, 4.25rem); margin:0; color:#fff;
}
/* Framed panel */
.cat-page .memory-panel{
  border:2px solid #fff;
  padding:clamp(1.25rem, 3.3vw, 2.25rem) clamp(1.25rem, 3.3vw, 2.5rem);
  color:#fff;
}
.cat-page .memory-panel .panel-title{
  font-weight:800; font-size:clamp(1.15rem, 2.2vw, 1.55rem);
  line-height:1.45; margin:0 0 .75rem 0;
}
.cat-page .memory-panel .panel-intro{opacity:.95; margin:0}

/* Timeline: rail + markers with safe text gutter */
.cat-page .timeline{
  list-style:none; margin:1.25rem 0 0 0; padding:0 0 0 3.25rem; position:relative;
}
.cat-page .timeline::before{
  content:""; position:absolute; left:1.6rem; top:.25rem; bottom:.25rem;
  width:2px; background:#fff; opacity:.9;
}
.cat-page .timeline li{ position:relative; padding:1.15rem 0;margin-bottom:3rem; }
.cat-page .timeline li::before{
  content:""; position:absolute; left:calc(-1.6rem - 9px); top:50%; transform:translateY(-50%);
  width:18px; height:18px; border-radius:50%; background:#fff;
  box-shadow:0 0 0 4px rgba(255,255,255,.22) inset;
}
.cat-page .timeline span{ display:block; font-weight:800; font-size:clamp(1rem, 1.9vw, 1.25rem); line-height:1.45; }

@media (max-width:992px){
  .cat-page .memory-row{ padding:clamp(2.5rem, 7vw, 4.5rem) 0; }
  .cat-page .memory-panel{ margin-top:.25rem; }
}
@media (max-width:576px){
  .cat-page .memory-title{ font-size:clamp(1.9rem, 8vw, 2.6rem); }
  .cat-page .timeline{ padding-left:2.75rem; }
  .cat-page .timeline::before{ left:1.35rem; }
  .cat-page .timeline li::before{ left:calc(1.35rem - 8px); width:16px; height:16px; }
}

/* ===== FAQS (scoped) ===== */
.cat-page .faqs-row{
  --olive: var(--af-olive);
  --ink:   var(--af-text);
}

.cat-page .faqs-kicker{
  margin: 0 0 .25rem 0;
  color: var(--olive);
  font-weight: 800;
  text-transform: lowercase;
  letter-spacing: .02em;
  font-size: clamp(2rem, 6vw, 3.5rem);
}
.cat-page.br-pink .faqs-kicker {color:#b78e8c; }
.cat-page.br-pet .faqs-kicker {color:#fd674f; }

.cat-page .faqs-sub{
  margin: 0 0 2rem 0;
  font-weight: 800;
  color: #c7d063; /* slightly brighter olive like mock */
}
.cat-page.br-pink .faqs-sub {color:#b78e8c;}
.cat-page.br-pet .faqs-sub {color:#111111;}

.cat-page .faqs-sub .muted{
  display:block;
  font-weight: 400;
  color: #6b6b6b;
}

/* List */
.cat-page .faqs-list{
  counter-reset: faq;
  margin: 0;
}
.cat-page .faqs-list .faq{
  padding: 1.1rem 0 1.2rem 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.cat-page .faqs-list .faq:first-child{ border-top: 1px solid rgba(0,0,0,.06); }

/* Question (dt) with auto number "01 - " */
.cat-page .faqs-list dt{
  position: relative;
  margin: 0 0 .35rem 0;
  font-weight: 800;
  color: var(--ink);
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);
  line-height: 1.25;
  text-transform: none;
  padding-left: 4.6ch;               /* space for number */
}
.cat-page.br-pink .faqs-list dt{color:#b78e8c;}
.cat-page .faqs-list dt::before{
  counter-increment: faq;
  content: counter(faq, decimal-leading-zero) " - ";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ink);
  opacity: .9;
}
.cat-page.br-pink .faqs-list dt::before{color:#b78e8c;}

/* Answer (dd) */
.cat-page .faqs-list dd{
  margin: 0;
  color: #6b6b6b;
  font-size: 1rem;
  line-height: 1.6;
}
.cat-page.br-pink .faqs-list dd{color:#b78e8c;}

/* Footer link */
.cat-page .faqs-foot{
  margin: 2.25rem 0 0 0;
  font-weight: 800;
  color: var(--ink);
}
.cat-page .faqs-foot .help-link{
  color: var(--af-olive);
  text-decoration: none;
  border-bottom: 2px solid rgba(138,147,104,.35);
}
.cat-page.br-pink .faqs-foot .help-link{color:#b78e8c;}
.cat-page.br-pet .faqs-foot .help-link{color:#fd674f;}

.cat-page .faqs-foot .help-link:hover{
  border-bottom-color: currentColor;
}
/* ===== CONTACT & REMEMBER (scoped) ===== */
.cat-page .contact-remember{
  --olive: var(--af-olive);
  --ink:   var(--af-text);
  --cr-img: url('/images/cr-mil.png'); /* swap for your image */
  padding: clamp(2.5rem, 7vw, 5rem) 0;
}

/* Circular photo with olive ring */
.cat-page .cr-photo{
  width: min(520px, 78vw);
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: var(--cr-img) center/cover no-repeat;
  border: 14px solid var(--olive);
  box-shadow: 0 0 0 14px #fff inset;          /* creates the white inner margin look */
  overflow: hidden;
}

/* Heading */
.cat-page .cr-title{
  font-weight: 800;
  color: var(--ink);
  letter-spacing: .02em;
  text-transform: lowercase;
  font-size: clamp(1.8rem, 4.6vw, 2.8rem);
  margin: 0 0 1.5rem 0;
}

/* Rows */
.cat-page .cr-item{
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 1rem .9rem;
  margin-bottom: 1.25rem;
}
.cat-page .cr-label{
  font-weight: 800;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--ink);
}

/* Olive icon blocks (heart / photos) */
.cat-page .cr-ic{
  width: 48px; height: 48px; border-radius: 8px;
  background: var(--olive);
  display: grid; place-items: center;
}
.cat-page .cr-ic-heart::before{
  content: "❤"; font-size: 1.25rem; color: #fff; line-height: 1;
}
.cat-page .cr-ic-photos{
  position: relative;
}
.cat-page .cr-ic-photos::before{
  content: "";
  width: 26px; height: 20px; border: 2px solid #fff; border-radius: 4px;
  display: block;
}
.cat-page .cr-ic-photos::after{
  content: "";
  position: absolute; right: 8px; top: 8px;
  width: 7px; height: 7px; border-radius: 50%; background: #fff;
  box-shadow: 6px 6px 0 -1px #fff; /* tiny '+' accent */
}

/* Social squares (visual only) */
.cat-page .cr-social{ display: inline-flex; gap: 1rem; }
.cat-page .sq{
  width: 56px; height: 56px; border-radius: 12px;
  background: #000; color: #fff;
  display: grid; place-items: center;
  font-size: 1.6rem; font-weight: 800;
}
.cat-page .sq i{ font-size: 1.45rem; } /* envelope when Bootstrap Icons is present */

/* Big olive pill (visual CTA) */
.cat-page .cr-cta{
  margin-top: clamp(1rem, 4vw, 2rem);
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1.1rem 2rem;
  min-width: min(540px, 90%);
  border-radius: 999px;
  background: var(--olive);
  color: #fff;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  font-weight: 700;
}

/* Responsive tweaks */
@media (max-width: 992px){
  .cat-page .cr-item{ grid-template-columns: 44px 1fr; }
  .cat-page .cr-social{ grid-column: 1 / -1; padding-left: 60px; }
  .cat-page .cr-cta{ min-width: 100%; }
}

/* ===== QUICK ACCESS (scoped) ===== */
.cat-page .quick-access{
  --olive: var(--af-olive);                 /* #8A9368 from your palette */
  --ink:   var(--af-text);
  --qa-img: url('/images/cr-mil-2.png'); 
  padding: clamp(2.5rem, 7vw, 5rem) 0;
  background:#fff;
  position:relative;
}

/* Top-left decorative blob */
.cat-page .quick-access .qa-blob{
  position:absolute; left:-3.2rem; top:-3.2rem;
  width:min(180px, 22vw); aspect-ratio:1/1;
  background:var(--olive); border-radius:50%;
  z-index:0; opacity:1;
}

/* Circular photo with olive ring */
.cat-page .qa-photo{
  width:min(640px, 82vw);
  aspect-ratio:1/1;
  border-radius:50%;
  background: var(--qa-img) center/cover no-repeat;
  border: 14px solid var(--olive);
  box-shadow: 0 0 0 14px #fff inset;              /* white inner keyline look */
  overflow:hidden;
  z-index:1;
  margin:0;                                       /* reset figure margin */
}

/* Right column */
.cat-page .qa-title{
  font-weight:normal;
  color:var(--ink);
  letter-spacing:.02em;
  text-transform:lowercase;
  font-size:clamp(1.8rem, 4.6vw, 2.8rem);
  margin:0 0 1.25rem 0;
}

.cat-page .qa-qr-wrap{
  margin: .25rem 0 1.75rem 0;
}
.cat-page .qa-qr{
  width:min(340px, 64vw);
  height:auto;
  display:inline-block;

}

/* Visual pill caption (not a button) */
.cat-page .qa-pill{
  display:inline-flex; align-items:center; justify-content:center;
  padding:1rem 1.6rem;
  min-width:min(520px, 90%);
  border-radius:999px;
  background:var(--olive);
  color:#fff;
  font-weight:700;
  font-size:clamp(1rem, 2.2vw, 1.3rem);
}

/* Responsive tweaks */
@media (max-width: 992px){
  .cat-page .qa-pill{ min-width:100%; }
  .cat-page .quick-access .qa-blob{ left:-2rem; top:-2rem; width:140px; }
}
.jm-mesg-popup-wrp {
  position: fixed;
  inset: 0;
  z-index: 1050;
}
.jm-mesg-popup {
    position: relative;
    max-width: 640px;
    margin: 32vh auto 0;
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem 2.75rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border:2px solid #c29382;
 }

.jm-mesg-popup joomla-alert[type="success"] {
  background-color: #fff;
  border-color: transparent;
  color: #333;
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  line-height: 1.6;
  margin-bottom:0;
}