html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
    font-family: "Lato",-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen-Sans,Ubuntu,Cantarell,'Helvetica Neue',sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Lato",-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen-Sans,Ubuntu,Cantarell,'Helvetica Neue',sans-serif;
}

@media screen and (max-width: 767px) {
    /* Add 5px padding to all sections when the screen width is 767 pixels or less */
    section {
        padding: 5px;
    }
}

/* =======================
   font
   ======================= */

:root {
    --font-primary: 'Helvetica Neue', Arial, sans-serif;
    --color-text: #333;
    --color-subtext: #555;
    --color-accent: #3c8d5a; /* your brand green */
    --font-size-base: 16px;
    --line-height-base: 1.6;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text);
    margin: 0;
    padding: 0;
}

h1 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
}

h2 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
}

h3 {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.4;
}

h4 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
}

p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
}

strong, b {
    font-weight: 700;
}

a {
    font-family: var(--font-primary);
    text-decoration: none;
    color: var(--color-accent);
}

.label {
    font-weight: 600;
    color: var(--color-text);
}

.number {
    font-weight: 700;
    color: var(--color-accent);
    font-size: 18px; /* slightly larger for emphasis */
}

/* =======================
   Re-usable CSS
   ======================= */

section {
    padding-top: 50px;
    padding-bottom: 50px;
}

.section-heading {
    font-weight: 500;
    font-size: 4vh;
    font-family: 'Lora', serif;
    padding-bottom: 15px;
}

.whiteBG-container {
    background-color: #fff;
    padding: 30px;
}

.sageBG-container {
    background-color: #b5c6a9;
    padding: 30px;
}

.greyBG {
    background-color: #fbfcfc;
}
/*Green link with animation*/
.link-container {
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease; /* Apply the transition to the entire container */
}

.green-link {
    color: #578d02;
    text-decoration: none;
}

.icon {
    margin-right: 15px; /* Adjust the spacing between the icon and the text */
    width: 16px; /* Adjust the width of the line */
    height: 2px; /* Adjust the height of the line */
    background-color: #578d02;
    display: inline-block;
    transition: transform 0.3s ease; /* Apply transition to the icon */
}

.link-container:hover {
    transform: translateX(5px); /* Move the entire container 5 pixels to the right on hover */
}

    .link-container:hover .green-link {
        color: #578d02; /* Change text color on hover */
    }

    .link-container:hover .icon {
        transform: translateX(5px); /* Move the icon 5 pixels to the right on hover */
    }

/*Green link withOUT animation*/
.green-link-plain {
    color: #578d02;
    text-decoration: none;
}

    .green-link-plain:hover {
        color: #65a601;
        text-decoration: none;
    }

/*Curved Btn*/
.curved-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid #000;
    background-color: transparent;
    color: #000;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

    .curved-btn:hover {
        transform: translateY(-2px);
        color: #000;
    }

.bold-heading {
    font-weight: bold;
    font-size: 4vh;
    font-family: 'Lora', serif;
}

.medium-heading {
    font-size: 3vh;
    font-family: 'Lora', serif;
    font-weight: 500;
}

.small-heading {
    font-size: 2.3vh;
    font-family: 'Lora', serif;
    font-weight: 500;
}

.bold-small {
    font-size: 1.9vh;
    font-family: 'Lora', serif;
}

.green-number {
    color: #578d02;
    font-size: 3.8vh;
    font-family: 'Lora', serif;
}

.green-number-small {
    color: #578d02;
    font-size: 3vh;
    font-family: 'Lora', serif;
}

/* =======================
   End of Re-usable CSS
   ======================= */

/*Navbar*/

.navbar {
    background-color: #578d02;
}

    .navbar img {
        max-width: 50%;
        padding: 2%;
    }

.navbar-nav a.nav-link {
    color: #FFFFFF;
}

    .navbar-nav a.nav-link:hover {
        color: #000000;
    }

/*Burger Menu*/

.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

.navbar-toggler {
    padding: 0.25rem 0.75rem;
    font-size: 1.25rem;
    line-height: 1;
    background-color: transparent;
    border: 3px solid pink;
    border-radius: 0.25rem;
    transition: box-shadow .15s ease-in-out;
}

.navbar-dark .navbar-toggler {
    color: rgba(255,255,255,.55);
    border-color: rgb(191 233 125);
}

/*Hero Section*/

.horse-carriage-img {
    max-width: 109%;
}

@media screen and (max-width: 768px) {
    .horse-carriage-img {
        padding-top: 20px;
    }
}

.hero-container {
    position: relative;
    background-image: url('/img/abstract-background-white-flower-low.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0;
    height: 80vh;
}

    .hero-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.5);
    }

    .hero-container p {
        font-size: 3.3vh;
        font-weight: normal;
        font-family: 'Lora', serif;
        padding-bottom: 5%;
    }

    .hero-container .row {
        position: relative;
        z-index: 2;
        padding-top: 4%;
    }

@media (max-width: 768px) {
    .hero-container {
        height: auto;
        padding: 80px 0; /* Adjust padding for smaller screens */
    }

        .hero-container .row {
            flex-direction: column-reverse;
        }
}

/*First Section*/
.FountainImage {
    max-width: 83%;
}

/*Quote section*/
.quote-section {
    width: 100%;
    background-color: #578d02;
    color: #FFF;
    text-align: center;

    /* Fixed height  change 320px to whatever fixed height you want */
    height: 320px;

    /* center contents vertically/horizontally */
    display: flex;
    align-items: center;
    justify-content: center;

    /* keep some horizontal breathing room */
    padding: 0 20px;
}

/* Ensure the quote container still limits width and text wraps nicely */
.quote-container {
    max-width: 995px;
    margin: 0 auto;
    width: 100%;
}

.quote-text {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.6;
    font-family: "Lato";
}


/* Mobile: allow the section to grow with content */
@media (max-width: 767px) {
    .quote-section {
        height: auto;
        display: block;
        padding: 40px 10px;
        overflow: visible;
    }
}

/*Next Section*/
.CoffinImage {
    max-width: 85%;
    padding-top: 6%;
}

/*Services Section*/
.funkycard {
    display: flex;
    flex-direction: column;
    height: 100%;
    float: none;              /* override the earlier float */
    max-width: none;         /* let bootstrap column control width */
    margin: 10px 1%;
    max-width: 310px;
    min-width: 250px;
    overflow: hidden;
    box-shadow: 0 0 5px rgba(0,0,0,0.15);
}

    .funkycard * {
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        -webkit-transition: all 0.25s ease;
        transition: all 0.25s ease;
    }

    .funkycard img {
        max-width: 100%;
        vertical-align: top;
        position: relative;
        min-height: 385px;
    }

    .funkycard figcaption {
        padding: 25px 20px 25px;
        position: absolute;
        bottom: 0;
        z-index: 1;
    }

        .funkycard figcaption:before {
            position: absolute;
            top: auto;
            bottom: 0;
            left: 0;
            right: 0;
            background: #700877;
            content: '';
            background-color: #578d02;
            opacity: 0.8;
            z-index: -1;
            min-height: 0 !important;
            height: 100%;
        }

    .funkycard .date {
        background-color: #fff;
        border-radius: 50%;
        color: #700877;
        font-size: 18px;
        font-weight: 700;
        min-height: 48px;
        min-width: 48px;
        padding: 10px 0;
        position: absolute;
        right: 15px;
        text-align: center;
        text-transform: uppercase;
        top: -25px;
    }

        .funkycard .date span {
            display: block;
            line-height: 14px;
        }

    .funkycard h3,
    .funkycard p {
        margin: 0;
        padding: 0;
    }

    .funkycard h3 {
        display: inline-block;
        font-weight: 700;
        letter-spacing: -0.4px;
        margin-bottom: 5px;
    }

    .funkycard p {
        font-size: 0.9em;
        line-height: 1.6em;
        margin-bottom: 0px;
    }

    .funkycard a {
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        position: absolute;
        z-index: 1;
    }

    .funkycard:hover img,
    .funkycard.hover img {
        -webkit-transform: scale(1.1);
        transform: scale(1.1);
    }

body, html {
    height: 100%;
}

/*Parralax*/

/*Pricing Page - Accordion*/

.accordion-button {
    color: #ffffff;
    background-color: #7FBF7F; /* Light Green */
    border-color: #7FBF7F; /* Light Green */
}

    .accordion-button:hover {
        background-color: #5A8A5A; /* Slightly darker shade on hover */
        border-color: #5A8A5A; /* Slightly darker shade for the border on hover */
    }

    .accordion-button.collapsed {
        background-color: #b5c6a9; /* Lighter shade when collapsed */
        border-color: #9EE09E; /* Lighter shade for the border when collapsed */
        color: #000;
    }

    .accordion-button:not(.collapsed) {
        color: #000;
        background-color: #d7ecc9;
        box-shadow: inset 0 -1px 0 rgb(145, 159, 135);
    }

    .accordion-button:active {
        background-color: #4E754E; /* Different shade when the button is clicked */
        border-color: #4E754E; /* Different shade for the border when clicked */
    }

.accordion-body {
    background-color: #f8f9fa; /* Lighter background color for the body */
}

/*Cremations and Burials page*/
.services-hero-container {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0;
    height: 61vh;
}

.contact-hero-container {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0;
    height: 74vh;
}

    .services-hero-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.5);
    }

    .services-hero-container .row {
        position: relative;
        z-index: 2;
        padding-top: 4%;
    }

@media (max-width: 768px) {
    .services-hero-container {
        height: auto;
        padding: 80px 0; /* Adjust padding for smaller screens */
    }

        .services-hero-container .row {
            flex-direction: column-reverse;
        }
}

/* Coffins and Caskets page */

.myImg {
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

    .myImg:hover {
        opacity: 0.7;
    }

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0, 0, 0); /* Fallback color */
    background-color: rgba(0, 0, 0, 0.9); /* Black w/ opacity */
}

/* Modal Content (image) */
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

/* Caption of Modal Image */
.caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Add Animation */
.modal-content, .caption {
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
    from {
        -webkit-transform: scale(0)
    }

    to {
        -webkit-transform: scale(1)
    }
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

/* Testimonials */
.testimonials-section {
    padding: 60px 0;
    background-color: #f7f9f6;
}

    .testimonials-section h1 {
        text-align: center;
        margin-bottom: 50px;
        font-size: 2.5rem;
        color: #333;
    }

.testimonial {
    position: relative;
    background-color: #fff;
    border-left: 6px solid #c9d8c5; /* Sage-green border */
    padding: 30px 30px 30px 40px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    font-style: italic;
    color: #333;
}

    .testimonial::before {
        content: "\201C";
        position: absolute;
        top: 15px;
        left: 15px;
        font-size: 50px;
        color: #c9d8c5;
    }

    .testimonial::after {
        content: "\201D";
        position: absolute;
        bottom: 15px;
        right: 15px;
        font-size: 50px;
        color: #c9d8c5;
    }

/* Pricing table */
.pricing-section {
    padding: 60px 0;
    background-color: #f7f9f6;
}

    .pricing-section h2 {
        text-align: center;
        margin-top: 60px; /* add this if missing */
        margin-bottom: 20px;
        font-size: 2rem;
        color: #333;
        position: relative; /* safe default */
        z-index: 1; /* ensure its above background elements */
    }

    .pricing-section p {
        text-align: center;
        margin-bottom: 40px;
        font-size: 1.1rem;
        color: #555;
    }

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
}

    .pricing-table th, .pricing-table td {
        border: 1px solid #ddd;
        padding: 12px 15px;
        text-align: left;
        vertical-align: top;
    }

    .pricing-table th {
        background-color: #c9d8c5; /* sage green */
        color: #fff;
        font-weight: 600;
    }

    .pricing-table tr:nth-child(even) {
        background-color: #f2f2f2;
    }

    .pricing-table tr:hover {
        background-color: #e6f0e9;
    }

    .pricing-table td {
        color: #333;
    }

    .pricing-table .notes-row {
        background-color: #f9f9f9;
    }

        .pricing-table .notes-row ul {
            margin: 10px 0 0 20px;
            padding: 0;
            list-style-type: disc;
            color: #555;
        }

.terms-section {
    padding: 60px 0;
    background-color: #f7f9f6;
}

    .terms-section h2 {
        text-align: center;
        margin-bottom: 40px;
        font-size: 2rem;
        color: #333;
    }

.term-box {
    background-color: #fff;
    border-left: 5px solid #c9d8c5; /* sage green highlight */
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

    .term-box h3 {
        margin-top: 0;
        margin-bottom: 15px;
        font-size: 1.2rem;
        color: #333;
    }

    .term-box p {
        margin-bottom: 10px;
        color: #555;
    }

    .term-box ul {
        margin: 0;
        padding-left: 20px;
        color: #555;
    }

/* The Close Button */

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

    .close:hover,
    .close:focus {
        color: #bbb;
        text-decoration: none;
        cursor: pointer;
    }

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px) {
    .modal-content {
        width: 100%;
    }
}

/*Green/white/grey boxes sections*/
.boxes-sec h4 {
    font-weight: bold;
    font-size: 2.5vh;
    
}

.whiteBG-container {
    background-color: #fff;
    padding: 30px;
}

.sageBG-container {
    background-color: #b5c6a9;
    padding: 30px;
}

.greyBG-container {
    background-color: #6d6e71;
    padding: 30px;
    color: white;
}

/*Contact Details  section*/
.contact-section {
    padding-top: 150px
}

/*Funeral Repatriation page*/
/*Footer*/
footer {
}

.contact-section {
    padding: 60px 0;
    background-color: #f7f9f6;
    text-align: center;
}

.contact-heading {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.contact-subheading {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-label {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-top: 20px;
    margin-bottom: 8px;
}

.contact-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3c8d5a; /* sage-green brand color */
    margin-bottom: 20px;
}

/* Make columns stretch so cards match height */
.greyBG .row > [class*="col-"] {
    display: flex;
    align-items: stretch;
}

/* Card: positioned (so absolute children are relative), flex column */
.funkycard {
    position: relative;          /* allow absolute children to be relative to the card */
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 10px 1%;
    overflow: hidden;
    box-shadow: 0 0 5px rgba(0,0,0,0.15);
    background: transparent;
    float: none;                 /* ensure bootstrap column controls layout */
    max-width: none;
}

/* Image area: keep its aspect and not force huge min-height */
.funkycard .image {
    flex: 0 0 auto;
}

.funkycard .image img {
    width: 100%;
    height: 220px;               /* consistent image height  adjust as needed */
    object-fit: cover;
    display: block;
}

/* Caption participates in the layout (no absolute) and uses a fixed min-height so all text areas match */
.funkycard figcaption {
    position: relative;          /* no absolute so caption sizes normally */
    z-index: 1;
    padding: 20px;
    background-color: rgba(87,141,2,0.9); /* green background for caption */
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 140px;           /* set the caption height you want for parity across cards */
    box-sizing: border-box;
}

/* hide any legacy overlay pseudo-element */
.funkycard figcaption:before {
    display: none !important;
    content: none !important;
}

/* ensure text is readable */
.funkycard h3,
.funkycard p {
    margin: 0;
    padding: 0;
    color: #fff;
}

.funkycard h3 {
    margin-bottom: 8px;
    font-weight: 700;
}

.funkycard p {
    font-size: 0.95em;
    line-height: 1.5;
}

/* Mobile: let captions grow naturally to avoid clipping */
@media (max-width: 767px) {
    .greyBG .row > [class*="col-"] {
        display: block;
        align-items: initial;
    }

    .funkycard .image img {
        height: auto;
    }

    .funkycard figcaption {
        min-height: auto;
        padding: 18px;
    }
}

/* Services table  more breathing room */
.services-table-container table {
    width: 100%;
    border-collapse: separate !important; /* override inline collapse */
    border-spacing: 0 12px;                /* vertical gap between rows */
    table-layout: auto;
}

.services-table-container th,
.services-table-container td {
    padding: 16px 18px;
    border: 1px solid #ddd;
    vertical-align: top;
    background-clip: padding-box; /* avoid borders overlapping background */
}

.services-table-container thead th {
    background-color: #c9d8c5;
    color: #222;
    font-weight: 600;
}

/* Improve list spacing inside table cells */
.services-table-container td ul {
    margin: 0;
    padding-left: 1.15rem;
}

.services-table-container td li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Small screens: reduce padding and keep horizontal scroll */
@media (max-width: 767px) {
    .services-table-container th,
    .services-table-container td {
        padding: 12px;
    }

    .services-table-container table {
        border-spacing: 0 8px;
    }
}


/* ---------- Services Section ---------- */
.services-section {
    padding: 60px 0;
}

.whiteBG-container {
    padding: 40px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.section-heading {
    margin-bottom: 20px;
    font-size: 32px;
    font-weight: 700;
}

.intro-text {
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
}

.services-table-container {
    overflow-x: auto;
}

.services-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    line-height: 1.6;
}

    .services-table th {
        background-color: #c9d8c5;
        text-align: left;
        padding: 12px;
        border: 1px solid #ddd;
        font-weight: 600;
    }

    .services-table td {
        vertical-align: top;
        padding: 12px;
        border: 1px solid #ddd;
    }

    .services-table ul {
        padding-left: 20px;
        margin: 0;
        list-style-type: disc;
    }

.after-text {
    margin-top: 30px;
}

    .after-text p {
        margin-bottom: 20px;
        font-size: 16px;
        line-height: 1.6;
    }