/* ===================================
   RESET & BASE
=================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  :root {
    /* Refined, premium local palette */
    --charcoal: #2a2a2a;
    --soft-black: #1e1e1e;
    --warm-ivory: #f5f3ef;
    --stone: #e6e2db;
    --sage: #8f9a8b;
    --muted-gold: #b89b5e;
    --white: #ffffff;
    --text-soft: #6b6b6b;
  
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
  
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: var(--font-body);
    background: var(--warm-ivory);
    color: var(--soft-black);
    line-height: 1.7;
    overflow-x: hidden;
  }
  
  .container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
  }
  
  img {
    width: 100%;
    display: block;
    border-radius: 6px;
  }
  
  a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
  }
  
  /* ===================================
     NAVIGATION
  =================================== */
  
  #navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--stone);
    z-index: 1000;
  }
  
  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--spacing-md);
  }
  
  .logo img {
    height: 70px;
  }
  
  .nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
  }
  
  .nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    color: var(--charcoal);
  }
  
  .nav-links a:hover {
    color: var(--muted-gold);
  }
  
  .btn-nav {
    background: var(--charcoal);
    color: var(--white) !important;
    padding: 0.6rem 1.4rem;
    border-radius: 30px;
    font-weight: 600;
  }
  
  .btn-nav:hover {
    background: var(--muted-gold);
    color: var(--white);
  }
  
  /* ===================================
     HERO
  =================================== */
  
  .hero {
    height: 90vh;
    background: url('images/header.png') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    color: var(--white);
    padding: 2rem;
  }
  
  .hero-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }
  
  .hero-tagline {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
  }
  
  .btn-primary {
    display: inline-block;
    background: var(--muted-gold);
    color: var(--white);
    padding: 0.9rem 2.2rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
  }
  
  .btn-primary:hover {
    background: var(--charcoal);
  }
  
  /* ===================================
     SECTION HEADERS
  =================================== */
  
  .section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
  }
  
  .section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    margin-bottom: 0.6rem;
  }
  
  .section-header p {
    color: var(--text-soft);
    max-width: 600px;
    margin: 0 auto;
  }
  
  .divider {
    width: 60px;
    height: 2px;
    background: var(--muted-gold);
    margin: 1rem auto 0;
  }
  
  /* ===================================
     ABOUT
  =================================== */
  
  .about {
    padding: var(--spacing-xl) 0;
    background: var(--white);
  }
  
  .about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }
  
  .about-text h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }
  
  .about-text p {
    margin-bottom: 1.2rem;
    color: var(--text-soft);
  }
  
  .about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  .feature {
    background: var(--warm-ivory);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
  }
  
  .feature h4 {
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
  }
  
  .feature p {
    font-size: 0.9rem;
    color: var(--text-soft);
  }
  
  /* ===================================
     GALLERY
  =================================== */
  
  .gallery {
    padding: var(--spacing-xl) 0;
    background: var(--warm-ivory);
  }
  
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  .gallery-item {
    overflow: hidden;
    position: relative;
  }
  
  .gallery-item img {
    transition: 0.5s ease;
  }
  
  .gallery-item:hover img {
    transform: scale(1.04);
  }
  
  .gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    color: var(--white);
    font-family: var(--font-heading);
  }
  
  /* ===================================
     SERVICES
  =================================== */
  
  .services {
    padding: var(--spacing-xl) 0;
    background: var(--white);
  }
  
  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  .service-card {
    background: var(--warm-ivory);
    padding: 2rem;
    border-radius: 8px;
  }
  
  .service-card h3 {
    font-family: var(--font-heading);
    margin-bottom: 0.8rem;
  }
  
  .service-card p {
    font-size: 0.95rem;
    color: var(--text-soft);
  }
  
  .pricing-note {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--charcoal);
    color: var(--white);
    border-radius: 8px;
    text-align: center;
  }
  
  .pricing-note h3 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
  }
  
  /* ===================================
     CONTACT
  =================================== */
  
  .contact {
    padding: var(--spacing-xl) 0;
    background: var(--warm-ivory);
  }
  
  .contact-content {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 3rem;
  }
  
  .contact-form-wrapper {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.3rem;
  }
  
  .form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.8rem;
    border: 1px solid var(--stone);
    border-radius: 6px;
    font-family: var(--font-body);
  }
  
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: var(--muted-gold);
  }
  
  .btn-submit {
    background: var(--charcoal);
    color: var(--white);
    padding: 0.9rem 2rem;
    border-radius: 40px;
    border: none;
    cursor: pointer;
  }
  
  .btn-submit:hover {
    background: var(--muted-gold);
  }
  
  /* ===================================
     FOOTER
  =================================== */
  
  .footer {
    background: var(--soft-black);
    color: var(--white);
    padding: 3rem 0 2rem;
  }
  
  .footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
  }
  
  .footer-links ul {
    list-style: none;
  }
  
  .footer-links li {
    margin-bottom: 0.5rem;
  }
  
  .footer-links a:hover {
    color: var(--muted-gold);
  }
  
  .footer-bottom {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
  }
  
  /* ===================================
     RESPONSIVE
  =================================== */
  
  @media (max-width: 900px) {
  
    .about-content,
    .contact-content {
      grid-template-columns: 1fr;
    }
  
    .gallery-grid,
    .services-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 600px) {
  
    .gallery-grid,
    .services-grid {
      grid-template-columns: 1fr;
    }
  
    .hero-title {
      font-size: 2.2rem;
    }
  
  }
  /* Reveal animation (does not break hover) */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  .reveal.in-view {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Bring hover back */
  .service-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  
  .service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.10);
  }
  
  /* Optional: slightly “premium” hover for features too */
  .feature {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  
  .feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.08);
  }
  /* =========================
   Service cards with images
   ========================= */

.service-card{
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    min-height: 240px;
    cursor: pointer;
  
    /* Keep your premium feel */
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    transform: translateY(0);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  

  
  /* Soft overlay for readability (warm, premium) */
  .service-card::after{
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(
        135deg,
        rgba(245, 243, 239, 0.92) 0%,
        rgba(245, 243, 239, 0.78) 55%,
        rgba(245, 243, 239, 0.90) 100%
      );
  }
  
  /* Content sits above overlays */
  .service-card-inner{
    position: relative;
    z-index: 2;
    padding: 2rem;
  }
  
  .service-card h3{
    font-family: var(--font-heading);
    margin-bottom: 0.75rem;
    color: var(--soft-black);
  }
  
  .service-card p{
    color: var(--text-soft);
    font-size: 0.95rem;
    max-width: 42ch;
  }
  
  /* Hover */
  .service-card:hover{
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(0,0,0,0.12);
  }
  
  .service-card:hover::before{
    transform: scale(1.06);
  }
  
  /* =========================
     Card image mappings
     (paths from styles.css)
     ========================= */
  
  /* If your folder is /media next to styles.css */
  .card-xmas     { --card-bg: url("media/xmas.jpeg"); }
  .card-seasonal { --card-bg: url("media/mothers%20day.jpeg"); }
  .card-faux     { --card-bg: url("media/faux.png"); }
  .card-memorial { --card-bg: url("media/memorial.png"); }
  .card-bespoke  { --card-bg: url("media/bespoke.png"); }
  .card-gifts    { --card-bg: url("media/gifts.png"); }
  /* =========================
   Modal / Lightbox Gallery
   ========================= */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 2000;
  }
  
  .modal.is-open {
    display: block;
  }
  
  .modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
  }
  
  .modal-dialog {
    position: relative;
    z-index: 2;
    width: min(980px, calc(100% - 2rem));
    max-height: calc(100vh - 2rem);
    overflow: auto;
    margin: 1rem auto;
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  }
  
  .modal-close {
    position: sticky;
    top: 0;
    margin-left: auto;
    display: block;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    font-size: 32px;
    line-height: 44px;
    cursor: pointer;
    color: var(--charcoal);
  }
  
  .modal-head {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--stone);
    margin-bottom: 1rem;
  }
  
  .modal-head h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
  }
  
  .modal-head p {
    color: var(--text-soft);
    margin-bottom: 0;
  }
  
  .modal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  .modal-grid img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.25s ease;
  }
  
  .modal-grid img:hover {
    transform: scale(1.02);
  }
  
  @media (max-width: 900px) {
    .modal-grid { grid-template-columns: repeat(2, 1fr); }
    .modal-grid img { height: 200px; }
  }
  
  @media (max-width: 600px) {
    .modal-grid { grid-template-columns: 1fr; }
    .modal-grid img { height: 220px; }
  }
  .service-card::after{
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(
        135deg,
        rgba(245, 243, 239, 0.78) 0%,
        rgba(245, 243, 239, 0.55) 55%,
        rgba(245, 243, 239, 0.72) 100%
      );
  }
  .service-card p{
    color: #4a4a4a; /* darker than text-soft */
    font-size: 0.97rem;
    line-height: 1.65;
    max-width: 44ch;
  }
  .service-card h3{
    font-family: var(--font-heading);
    margin-bottom: 0.75rem;
    color: var(--soft-black);
    font-weight: 600;
    letter-spacing: 0.3px;
  }
  .service-card::after{
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(
        135deg,
        rgba(245, 243, 239, 0.62) 0%,
        rgba(245, 243, 239, 0.40) 55%,
        rgba(245, 243, 239, 0.60) 100%
      );
  }
  .service-card:hover::after{
    background:
      linear-gradient(
        135deg,
        rgba(245, 243, 239, 0.40) 0%,
        rgba(245, 243, 239, 0.25) 55%,
        rgba(245, 243, 239, 0.38) 100%
      );
  }
  .service-card h3{
    font-weight: 700;
  }
  .service-card-inner{
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  .service-card::after{
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(
        to top,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.35) 40%,
        rgba(0, 0, 0, 0.0) 70%
      );
  }
  .service-card h3,
.service-card p {
  color: #ffffff;
}
.service-card-inner{
    position: relative;
    z-index: 2;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  .service-card::after{
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(
        to top,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.30) 45%,
        rgba(0, 0, 0, 0.05) 75%
      );
    transition: background 0.35s ease;
  }
  .service-card:hover::after{
    background:
      linear-gradient(
        to top,
        rgba(0, 0, 0, 0.65) 0%,
        rgba(0, 0, 0, 0.50) 45%,
        rgba(0, 0, 0, 0.15) 75%
      );
  }
  .service-card h3,
.service-card p{
  color: #ffffff;
  transition: opacity 0.3s ease;
}

.service-card p{
  opacity: 0.85;
}

.service-card:hover p{
  opacity: 1;
}
.service-card::before{
    transition: transform 0.6s ease;
  }
  
  .service-card:hover::before{
    transform: scale(1.05);
  }
  /* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 9999;
  }
  
  .lightbox.active {
    opacity: 1;
    visibility: visible;
  }
  
  .lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  }
  
  .lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    font-weight: 300;
  }
  /* ===== Lightbox fixes ===== */
body.lb-open {
    overflow: hidden;
    height: 100vh;
  }
  
  /* Ensure overlay truly covers viewport + sits above everything */
  .lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(0, 0, 0, 0.78);
  }
  
  .lightbox.is-open {
    display: flex;
  }
  
  /* Keep image fully visible in viewport */
  .lightbox-img {
    max-width: min(1200px, 92vw);
    max-height: 86vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    object-fit: contain;
    background: #fff;
  }
  
  /* Close button always visible */
  .lightbox-close {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 10000;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #fff;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(6px);
  }
  
  .lightbox-close:hover {
    background: rgba(0,0,0,0.55);
  }
/* -------------------------------------------
   HERO: lighten overlay slightly
-------------------------------------------- */
.hero .hero-overlay{
    opacity: 0.28; /* was heavier; tweak 0.22–0.32 */
  }
  
  /* -------------------------------------------
     SERVICES: stronger overlay ON HOVER for readability
     (assumes your cards use background images via CSS)
  -------------------------------------------- */
  .service-card{
    position: relative;
    overflow: hidden;
  }
  
  .service-card::before{
    content:"";
    position:absolute;
    inset:0;
    background: rgba(255,255,255,0.55); /* base overlay */
    transition: opacity .25s ease, background .25s ease;
    opacity: 0.65; /* base strength (still “feel” the photo) */
  }
  
  .service-card:hover::before{
    background: rgba(255,255,255,0.82);
    opacity: 0.95; /* stronger on hover so text is crystal clear */
  }
  
  .service-card-inner{
    position: relative;
    z-index: 2;
  }
  
  .service-card h3,
  .service-card p{
    color: #111; /* stronger contrast */
  }
  
  /* -------------------------------------------
     GALLERY: scroll-snap carousel rail
  -------------------------------------------- */
  .gallery-rail{
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 1fr);
    gap: 18px;
  
    overflow-x: auto;
    padding: 10px 6px 18px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  
  .gallery-rail::-webkit-scrollbar{
    height: 10px;
  }
  
  .gallery-card{
    position: relative;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    scroll-snap-align: start;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  }
  
  .gallery-card img{
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
  }
  
  .gallery-card:hover img{
    transform: scale(1.03);
  }
  
  .gallery-caption{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 14px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0));
    color: #fff;
  }
  
  .gallery-caption h3{
    margin: 0 0 4px;
    font-size: 20px;
  }
  
  .gallery-caption p{
    margin: 0;
    font-size: 14px;
    opacity: 0.95;
  }
  
  .gallery-hint{
    margin-top: 10px;
    font-size: 14px;
    opacity: 0.75;
  }
  
  /* Responsive: slightly larger cards on wide screens */
  @media (min-width: 1000px){
    .gallery-rail{
      grid-auto-columns: minmax(320px, 1fr);
    }
    .gallery-card img{
      height: 420px;
    }
  }
  
  /* -------------------------------------------
     LIGHTBOX: CSS-only pop-out (via :target)
  -------------------------------------------- */
  .lightbox{
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
  }
  
  .lightbox:target{
    display: block;
  }
  
  .lightbox-backdrop{
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.72);
  }
  
  .lightbox-inner{
    position: relative;
    z-index: 2;
    width: min(1100px, calc(100vw - 40px));
    height: min(85vh, 800px);
    margin: 6vh auto 0;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  }
  
  .lightbox-inner img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #111; /* avoids white flash behind portrait images */
  }
  
  .lightbox-close{
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 3;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    text-decoration: none;
    font-size: 26px;
    line-height: 1;
    color: #111;
    background: rgba(255,255,255,0.92);
  }
    /* =========================
   GALLERY CAROUSEL (RADIO)
   ========================= */
#gallery.gallery-carousel .carousel {
    position: relative;
    max-width: 1044px;
    margin: 0 auto;
  }
  
/* Prevent scroll-jump by keeping radio inputs off-screen */
#gallery.gallery-carousel .carousel > input{
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
  }
  
  
  #gallery.gallery-carousel .carousel__slides {
    position: relative;
    z-index: 1;
    padding: 0;
    margin: 0;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    display: flex;
    border-radius: 16px;
  }
  
  #gallery.gallery-carousel .carousel__slide {
    position: relative;
    display: block;
    flex: 1 0 100%;
    width: 100%;
    overflow: hidden;
    transition: all 300ms ease-out;
    box-sizing: border-box;
    white-space: normal;
    background: #fff;
  }
  
  #gallery.gallery-carousel .carousel__slide figure {
    display: flex;
    gap: 18px;
    margin: 0;
    padding: 18px;
    align-items: stretch;
  }
  
  #gallery.gallery-carousel .carousel__image {
    position: relative;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    cursor: zoom-in;
    /* 3:2 ratio */
    padding-top: 66.6667%;
    background: #eee;
  }
  
  #gallery.gallery-carousel .carousel__image > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  #gallery.gallery-carousel .carousel__slide figcaption {
    align-self: flex-end;
    padding: 6px 6px 0 6px;
    flex: 0 0 auto;
    width: 26%;
    min-width: 170px;
    font-family: "Lato", sans-serif;
  }
  
  #gallery.gallery-carousel .carousel__slide figcaption h3 {
    margin: 0 0 6px 0;
    font-family: "Playfair Display", serif;
    font-size: 22px;
  }
  
  #gallery.gallery-carousel .carousel__slide figcaption p {
    margin: 0;
    opacity: 0.85;
    line-height: 1.4;
  }
  
  /* Slide shifting logic (12 slides) */
  #gallery.gallery-carousel .carousel > input:nth-of-type(12):checked ~ .carousel__slides .carousel__slide:first-of-type { margin-left: -1100%; }
  #gallery.gallery-carousel .carousel > input:nth-of-type(11):checked ~ .carousel__slides .carousel__slide:first-of-type { margin-left: -1000%; }
  #gallery.gallery-carousel .carousel > input:nth-of-type(10):checked ~ .carousel__slides .carousel__slide:first-of-type { margin-left: -900%; }
  #gallery.gallery-carousel .carousel > input:nth-of-type(9):checked  ~ .carousel__slides .carousel__slide:first-of-type { margin-left: -800%; }
  #gallery.gallery-carousel .carousel > input:nth-of-type(8):checked  ~ .carousel__slides .carousel__slide:first-of-type { margin-left: -700%; }
  #gallery.gallery-carousel .carousel > input:nth-of-type(7):checked  ~ .carousel__slides .carousel__slide:first-of-type { margin-left: -600%; }
  #gallery.gallery-carousel .carousel > input:nth-of-type(6):checked  ~ .carousel__slides .carousel__slide:first-of-type { margin-left: -500%; }
  #gallery.gallery-carousel .carousel > input:nth-of-type(5):checked  ~ .carousel__slides .carousel__slide:first-of-type { margin-left: -400%; }
  #gallery.gallery-carousel .carousel > input:nth-of-type(4):checked  ~ .carousel__slides .carousel__slide:first-of-type { margin-left: -300%; }
  #gallery.gallery-carousel .carousel > input:nth-of-type(3):checked  ~ .carousel__slides .carousel__slide:first-of-type { margin-left: -200%; }
  #gallery.gallery-carousel .carousel > input:nth-of-type(2):checked  ~ .carousel__slides .carousel__slide:first-of-type { margin-left: -100%; }
  #gallery.gallery-carousel .carousel > input:nth-of-type(1):checked  ~ .carousel__slides .carousel__slide:first-of-type { margin-left: 0%; }
  
  #gallery.gallery-carousel .carousel__thumbnails {
    list-style: none;
    padding: 0;
    margin: 18px 0 0 0;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  
  #gallery.gallery-carousel .carousel__thumbnails li {
    flex: 0 0 auto;
    width: 92px;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 200ms ease;
  }
  
  #gallery.gallery-carousel .carousel__thumbnails label {
    display: block;
    position: relative;
    width: 100%;
    padding-top: 100%;
    cursor: pointer;
  }
  
  #gallery.gallery-carousel .carousel__thumbnails img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  #gallery.gallery-carousel .carousel__thumbnails li:hover {
    transform: translateY(-2px);
  }
  
  /* Active thumbnail ring */
  #gallery.gallery-carousel .carousel > input:nth-of-type(1):checked  ~ .carousel__thumbnails li:nth-of-type(1),
  #gallery.gallery-carousel .carousel > input:nth-of-type(2):checked  ~ .carousel__thumbnails li:nth-of-type(2),
  #gallery.gallery-carousel .carousel > input:nth-of-type(3):checked  ~ .carousel__thumbnails li:nth-of-type(3),
  #gallery.gallery-carousel .carousel > input:nth-of-type(4):checked  ~ .carousel__thumbnails li:nth-of-type(4),
  #gallery.gallery-carousel .carousel > input:nth-of-type(5):checked  ~ .carousel__thumbnails li:nth-of-type(5),
  #gallery.gallery-carousel .carousel > input:nth-of-type(6):checked  ~ .carousel__thumbnails li:nth-of-type(6),
  #gallery.gallery-carousel .carousel > input:nth-of-type(7):checked  ~ .carousel__thumbnails li:nth-of-type(7),
  #gallery.gallery-carousel .carousel > input:nth-of-type(8):checked  ~ .carousel__thumbnails li:nth-of-type(8),
  #gallery.gallery-carousel .carousel > input:nth-of-type(9):checked  ~ .carousel__thumbnails li:nth-of-type(9),
  #gallery.gallery-carousel .carousel > input:nth-of-type(10):checked ~ .carousel__thumbnails li:nth-of-type(10),
  #gallery.gallery-carousel .carousel > input:nth-of-type(11):checked ~ .carousel__thumbnails li:nth-of-type(11),
  #gallery.gallery-carousel .carousel > input:nth-of-type(12):checked ~ .carousel__thumbnails li:nth-of-type(12) {
    box-shadow: 0 0 0 4px rgba(0,0,0,0.25);
  }
  
  #gallery.gallery-carousel .gallery-tip {
    margin: 10px 0 0 0;
    font-size: 14px;
    opacity: 0.75;
    text-align: center;
  }
  
  /* Responsive: stack caption under image */
  @media (max-width: 900px) {
    #gallery.gallery-carousel .carousel__slide figure {
      flex-direction: column;
    }
    #gallery.gallery-carousel .carousel__slide figcaption {
      width: 100%;
      min-width: 0;
    }
  }
  
  /* =========================
     LIGHTBOX
     ========================= */
  .gallery-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0,0,0,0.78);
    z-index: 9999;
  }
  
  .gallery-lightbox.is-open {
    display: flex;
  }
  
  .gallery-lightbox__inner {
    position: relative;
    max-width: min(1100px, 96vw);
    max-height: 86vh;
    width: 100%;
  }
  
  .gallery-lightbox__img {
    width: 100%;
    height: auto;
    max-height: 86vh;
    object-fit: contain;
    display: block;
    border-radius: 14px;
    background: rgba(255,255,255,0.02);
  }
  
  .gallery-lightbox__close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255,255,255,0.9);
    font-size: 22px;
    line-height: 42px;
  }
  /* ===================================
   SERVICES CARD BACKGROUNDS (FIX PATHS)
   Files live in: /images/gallery/media/
=================================== */

.service-card {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  
  /* Optional: dark overlay so text stays readable */
  .service-card::before{
    content:"";
    position:absolute;
    inset:0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.05), rgba(0,0,0,0.55));
    pointer-events:none;
  }
  
  .service-card-inner{
    position: relative;
    z-index: 1;
  }
  
  /* Backgrounds */
  .card-xmas {
    background-image: url("images/gallery/media/xmas.jpeg");
  }
  
  .card-seasonal {
    /* You don’t currently have a "seasonal" file in that folder.
       Use a good placeholder (or add one). If you want, point this to another image. */
    background-image: url("images/gallery/media/xmas.jpeg");
  }
  
  .card-faux {
    background-image: url("images/gallery/media/faux.png");
  }
  
  .card-memorial {
    background-image: url("images/gallery/media/memorial.png");
  }
  
  .card-bespoke {
    background-image: url("images/gallery/media/bespoke.png");
  }
  
  .card-gifts {
    background-image: url("images/gallery/media/gifts.png");
  }
  /* Service card background images */
.service-card {
    position: relative;
    overflow: hidden;
  }
  
  /* image layer */
  .service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.02);
    z-index: 0;
  }
  
  /* dark overlay for text readability */
  .service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.05), rgba(0,0,0,0.55));
    z-index: 1;
  }
  
  /* ensure text is above overlays */
  .service-card-inner {
    position: relative;
    z-index: 2;
  }
  
  /* paths (case-sensitive on many servers) */
  .card-xmas::before      { background-image: url("images/gallery/media/xmas.jpeg"); }
  .card-seasonal::before  { background-image: url("images/gallery/media/spring.jpeg"); }
  .card-faux::before      { background-image: url("images/gallery/media/faux.png"); }
  .card-memorial::before  { background-image: url("images/gallery/media/memorial.png"); }
  .card-bespoke::before   { background-image: url("images/gallery/media/bespoke.png"); }
  .card-gifts::before     { background-image: url("images/gallery/media/gifts.png"); }
  /* === FIXED: Service card background image layer === */
.service-card::before{
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--card-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: transform 0.6s ease;
    z-index: 0;
  }
  
  /* Overlay for readability */
  .service-card::after{
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(
        to top,
        rgba(0,0,0,0.55) 0%,
        rgba(0,0,0,0.35) 45%,
        rgba(0,0,0,0.05) 75%
      );
    transition: background 0.35s ease;
    z-index: 1;
  }
  
  .service-card:hover::before{
    transform: scale(1.05);
  }
  
  .service-card-inner{
    position: relative;
    z-index: 2;
  }
  /* =========================================================
   SERVICES (Background image cards) — scoped to #services only
   ========================================================= */

#services.services-bg-cards .services-grid-bg{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  #services.services-bg-cards .service-card-bg{
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    min-height: 280px;
    text-decoration: none;
  
    /* keep your existing premium feel */
    box-shadow: 0 12px 30px rgba(0,0,0,0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  
  /* background image layer */
  #services.services-bg-cards .service-card-bg::before{
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: transform 0.6s ease;
  }
  
  /* readability overlay */
  #services.services-bg-cards .service-card-bg::after{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to top,
      rgba(0,0,0,0.62) 0%,
      rgba(0,0,0,0.38) 45%,
      rgba(0,0,0,0.10) 75%
    );
    transition: background 0.35s ease;
  }
  
  #services.services-bg-cards .service-card-bg__content{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.6rem;
    z-index: 2;
  }
  
  #services.services-bg-cards .service-card-bg__content h3{
    font-family: var(--font-heading);
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
  }
  
  #services.services-bg-cards .service-card-bg__content p{
    color: rgba(255,255,255,0.88);
    margin: 0;
    max-width: 46ch;
  }
  
  #services.services-bg-cards .service-card-bg:hover{
    transform: translateY(-6px);
    box-shadow: 0 18px 44px rgba(0,0,0,0.14);
  }
  
  #services.services-bg-cards .service-card-bg:hover::before{
    transform: scale(1.05);
  }
  
  #services.services-bg-cards .service-card-bg:hover::after{
    background: linear-gradient(
      to top,
      rgba(0,0,0,0.72) 0%,
      rgba(0,0,0,0.46) 45%,
      rgba(0,0,0,0.14) 75%
    );
  }
  
  @media (max-width: 900px){
    #services.services-bg-cards .services-grid-bg{
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 600px){
    #services.services-bg-cards .services-grid-bg{
      grid-template-columns: 1fr;
    }
  }
  /* Navbar social icons */
.nav-social {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: 20px;
  }
  
  .nav-social a {
    color: var(--charcoal);
    display: flex;
    align-items: center;
    transition: color 0.25s ease, transform 0.25s ease;
  }
  
  .nav-social a:hover {
    color: var(--muted-gold);
    transform: translateY(-2px);
  }
  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .nav-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 1rem var(--spacing-md);
  }
  
  .nav-left {
    justify-self: start;
  }
  
  .nav-center {
    justify-self: center;
  }
  
  .nav-right {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 16px;
  }
  
  .nav-right a {
    color: var(--charcoal);
    display: flex;
    align-items: center;
    transition: 0.25s ease;
  }
  
  .nav-right a:hover {
    color: var(--muted-gold);
    transform: translateY(-2px);
  }
  /* ===================================
   SECTION BG SWAP (Services + Gallery)
   =================================== */

#services{
    background: var(--warm-ivory);
  }
  
  #gallery{
    background: var(--white);
  }
  /* ===================================
   FOOTER SOCIAL (stacked)
   =================================== */

.footer-social-links{
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 0.25rem;
  }
  
  .footer-social-links .social-link{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    opacity: 0.92;
  }
  
  .footer-social-links .social-link:hover{
    opacity: 1;
    color: var(--muted-gold);
  }
  .hero{
    position: relative;
    overflow: hidden;
    background-position: center 0px; /* important */
    will-change: background-position;
  }
  .footer-bottom{
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.75;
  }
  
  .footer-bottom a{
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: 0.3s ease;
  }
  
  .footer-bottom a:hover{
    color: var(--muted-gold);
    border-bottom: 1px solid var(--muted-gold);
  }
  /* ===================================
   Footer bottom centering fix
   =================================== */

.footer-bottom{
    width: 100%;
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  
  .footer-bottom p{
    margin: 0 auto;
  }
  /* ===================================
   Full-width centered footer credit
   =================================== */

.footer-bottom-full{
    width: 100%;
    text-align: center;
    padding: 2rem 0 1.5rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.9rem;
    opacity: 0.75;
  }
  
  .footer-bottom-full a{
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
  }
  
  .footer-bottom-full a:hover{
    color: var(--muted-gold);
  }
/* Footer logo size (reduce by ~50%) */
.footer .footer-logo img{
    width: 30%;
    max-width: 280px;   /* adjust if you want tighter */
    height: auto;
    display: block;
  }
  .about-image {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .about-image-main img {
    width: 100%;
    border-radius: 14px;
    display: block;
  }
  
  .about-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  
  .about-image-grid img {
    width: 100%;
    border-radius: 12px;
    display: block;
  }
  .pricing-note {
    background: #2b2b2b;
    color: #fff;
    text-align: center;
    padding: 50px 30px;
    border-radius: 14px;
    margin-top: 60px;
  }
  
  .pricing-note h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 18px;
    font-size: 24px;
  }
  
  .pricing-note p {
    max-width: 700px;
    margin: 0 auto 28px;
    line-height: 1.6;
    font-size: 16px;
  }
  
  .pricing-cta {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 999px;
    background: #c9a84f; /* adjust to your brand gold */
    color: #000;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
  }
  
  .pricing-cta:hover {
    transform: translateY(-2px);
    background: #d8b760;
  }
  .pricing-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
  }
  
  .pricing-cta {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
  }
  
  /* Primary */
  .pricing-cta.primary {
    background: #c9a84f; /* your gold */
    color: #000;
  }
  
  .pricing-cta.primary:hover {
    transform: translateY(-2px);
    background: #d8b760;
  }
  
  /* Secondary */
  .pricing-cta.secondary {
    background: transparent;
    border: 2px solid #c9a84f;
    color: #c9a84f;
  }
  
  .pricing-cta.secondary:hover {
    background: #c9a84f;
    color: #000;
    transform: translateY(-2px);
  }
  