/* CSS Variables for Light/Dark Mode */
:root {
    --bg-color: #f8f5f0;
    --text-color: #333;
    --header-bg: white;
    --section-bg: #f8f5f0;
    --card-bg: white;
    --border-color: #ddd;
    --heading-color: #5a3e3e;
    --button-primary: #e6a756;
    --button-hover: #d99a45;
    --footer-bg: #5a3e3e;
    --footer-secondary: #4a3434;
    --cookie-bg: #ffffff;
    --cookie-details-bg: #f9f9f9;
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --header-bg: #2d2d2d;
    --section-bg: #1a1a1a;
    --card-bg: #2d2d2d;
    --border-color: #444;
    --heading-color: #b8a082;
    --button-primary: #d49c42;
    --button-hover: #c28a35;
    --footer-bg: #2d2d2d;
    --footer-secondary: #1f1f1f;
    --cookie-bg: #2d2d2d;
    --cookie-details-bg: #333333;
}

[data-theme="dark"] .cookie-consent-text h4,
[data-theme="dark"] .cookie-consent-text p,
[data-theme="dark"] .cookie-details h5,
[data-theme="dark"] .cookie-category-desc {
    color: #e0e0e0;
}

[data-theme="dark"] p,
[data-theme="dark"] li {
    color: white;
}

[data-theme="dark"] .pricing-option p {
    color: var(--button-primary);
}

/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.hero-content h2 .russo-one-regular {
    font-family: "Russo One", sans-serif !important;
    font-weight: 400;
    font-style: normal;
}

/* Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.container {
    width: 960px; /* Approximate width based on image */
    margin: 0 auto;
    padding: 0 15px;
}

.container h4{
    font-size: 1.5em;;
}

img {
    max-width: 100%;
    height: auto;
}

/* Responsive image handling */
.responsive-img {
    display: block;
    max-width: 100%;
    height: auto;
}

button {
    background-color: var(--button-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1em;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: var(--button-hover);
}

h1, h2, h3, h4 {
    font-family: Georgia, serif; /* Serif font for headings */
    color: var(--heading-color);
}

/* Header */
header {
    background-color: var(--header-bg);
}

.top-bar {
    background-color: var(--header-bg);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px; /* Adjust as needed */
    margin-right: 10px;
}

.logo-svg {
    height: 50px;
    width: auto;
    margin-right: 15px;
}

.logo-text {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 28px;
    font-weight: bold;
    color: #2c5530;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo h1 {
    margin: 0;
    font-size: 1.8em;
}

.logo p {
    margin: 0;
    font-size: 0.9em;
    color: #777;
}

.contact-info {
    display: flex;
    align-items: center;
}

.contact-info > div {
    display: flex;
    align-items: center;
    margin-left: 20px;
    font-size: 0.9em;
    color: #5a3e3e;
}

.contact-info img {
    height: 20px; /* Adjust as needed */
    margin-right: 5px;
}

.contact-info span {
    display: block;
    font-size: 0.8em;
    color: #777;
}

.buy-now button {
    background-color: var(--button-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1em;
    text-transform: uppercase;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.buy-now button:hover {
    background-color: var(--button-hover);
}

nav {
    background-color: #5a3e3e; /* Dark red/brown background */
    padding: 10px 0;
}

/* Override nav styling when it only contains the login button */
.main-nav {
    background-color: transparent;
    padding: 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1em;
    padding: 5px 0;
    transition: border-bottom 0.3s ease;
}

nav ul li a:hover {
    border-bottom: 2px solid #e6a756; /* Orange underline on hover */
}

.nav-icons img {
    height: 20px; /* Adjust as needed */
    margin-left: 15px;
    filter: invert(1); /* Make icons white */
}

/* Hero Section */
.hero {
    position: relative;
    color: white;
    overflow: hidden; /* Hide overflowing image */
    background-image: url('img/image10.png'); /* Set the background image */
    min-height: 50vh; /* Set minimum height to full viewport height */
    background-size: cover;
    background-position: center; /* Center the background image */
    background-repeat: no-repeat; /* Do not repeat the image */
    padding: 100px 0; /* Add some padding to give space for content */
}

.hero-image {
    width: 100%;
    height: 449px;
    display: block;
}

.hero-content {
    position: absolute;
    bottom: 20%;
    left: 10%;
    transform: none;
    z-index: 1;
    text-align: left;
}

.hero-content h2 {
    font-size: 3em;
    margin-bottom: 10px;
    color: white;
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.hero-content button {
    margin: 0 10px;
}

/* Current Obituaries Section */
.current-obituaries {
    padding: 40px 0;
    text-align: center;
}

.current-obituaries h3 {
    font-size: 2em;
    margin-bottom: 30px;
}

.obituary-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.obituary-item {
    width: 30%; /* Adjust as needed */
    text-align: center;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    margin: 10px;
    padding: 10px;
}

.obituary-item img {
    width: 42px;
    height: 42px;
    margin-bottom: 10px;
}

.obituary-item h4 {
    margin: 10px 0 5px 0;
    font-size: 1.2em;
}

.obituary-item p {
    margin: 5px 0;
    font-size: 0.9em;
    color: #555;
}





/* Welcome Section */
.welcome {
    padding: 40px 0;
    background-color: var(--section-bg);
}

.welcome .container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.welcome-image {
    width: 50%; /* Adjust as needed */
    height: auto;
}

.welcome-content {
    width: 50%; /* Adjust as needed */
}

.welcome-content h3 {
    font-size: 2em;
    margin-bottom: 20px;
}

.welcome-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Our Services Section */
.our-services {
    padding: 40px 0;
    text-align: center;
}

.our-services h3 {
    font-size: 2em;
    margin-bottom: 30px;
}

.service-list {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.service-item {
    text-align: center;
    width: 18%; /* Adjust as needed */
}

.service-item img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.service-item p {
    font-size: 1em;
    color: #5a3e3e;
    font-weight: bold;
}
/* Pricing Section */
.pricing-section {
    padding: 40px 0;
    text-align: center;
    background-color: var(--section-bg);
}

.pricing-section h3 {
    font-size: 2em;
    margin-bottom: 30px;
}

.pricing-options {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.pricing-option {
    width: 30%; /* Adjust as needed */
    text-align: center;
    background-color: var(--card-bg);
    padding: 30px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.pricing-option h4 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #5a3e3e; /* Dark red/brown */
}

.pricing-option p {
    font-size: 1.1em;
    color: #e6a756; /* Orange color */
    margin-bottom: 20px;
    font-weight: bold;
}

.pricing-option ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    text-align: left;
}

.pricing-option ul li {
    margin-bottom: 10px;
    font-size: 1em;
    color: #555;
    position: relative;
    padding-left: 20px;
}

.pricing-option ul li::before {
    content: '✓'; /* Checkmark icon */
    color: #8a9b6e; /* Green color */
    position: absolute;
    left: 0;
}

/* Quote Section */
.quote {
    position: relative;
    text-align: center;
    color: white;
    padding: 80px 0; /* Adjust padding as needed */
    overflow: hidden;
}

.quote-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.quote-content {
    position: relative;
    z-index: 1;
}

.quote-content p {
    font-size: 1.8em;
    font-style: italic;
    margin-bottom: 20px;
}

.quote-content span {
    font-size: 1.2em;
}

/* Grief & Healing Section */
.grief-healing {
    padding: 40px 0;
    background-color: var(--section-bg);
}

.grief-healing .container {
    text-align: center;
}

.grief-healing-header {
    margin-bottom: 30px;
}

.grief-healing-header p {
    font-size: 1.2em;
    color: #e6a756; /* Orange color */
    margin: 0;
}

.grief-healing-header h3 {
    font-size: 2.5em;
    margin-top: 5px;
}

.grief-healing-list {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.grief-healing-item {
    width: 30%; /* Adjust as needed */
    text-align: left;
    background-color: var(--card-bg);
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.grief-healing-item img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.grief-healing-item h4 {
    margin: 0 0 10px 0;
    font-size: 1.3em;
}

.grief-healing-item p {
    margin: 0 0 15px 0;
    font-size: 0.9em;
    color: #555;
    line-height: 1.5;
}

.grief-healing-item button {
    background-color: #5a3e3e; /* Dark red/brown button */
    padding: 10px 20px;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: white;
    padding-top: 40px;
}

footer .container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.contact-info-footer {
    width: 30%; /* Adjust as needed */
}



.contact-info-footer p {
    margin-bottom: 10px;
    font-size: 0.9em;
    display: flex;
    align-items: center;
}

.contact-info-footer img {
    height: 18px; /* Adjust as needed */
    margin-right: 8px;
     /*filter: invert(1); Make icons white */
}



/* Enquiry Form Styles */
.enquiry-form {
    width: 40%; /* Adjust as needed */
}

.enquiry-form h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.enquiry-form .form-group {
    margin-bottom: 15px;
}

.enquiry-form input,
.enquiry-form textarea {
    width: 100%;
    padding: 12px;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 4px;
    font-size: 16px; /* Prevents zoom on iOS */
    -webkit-appearance: none; /* Removes iOS default styling */
    appearance: none;
}

.enquiry-form input::placeholder,
.enquiry-form textarea::placeholder {
    color: #ccc;
}

.enquiry-form button {
    background-color: var(--button-primary);
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    font-size: 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    -webkit-appearance: none; /* Removes iOS default styling */
    appearance: none;
    min-height: 44px; /* Minimum touch target size */
}

.enquiry-form button:hover {
    background-color: var(--button-hover);
}


.bottom-bar {
    background-color: var(--footer-secondary);
    text-align: center;
    padding: 15px 0;
    margin-top: 30px;
}
.bottom-bar p {
    margin: 0;
    font-size: 0.9em;
    color: #ccc;
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
    .container {
        width: 90%;
        max-width: 960px;
    }
}

@media screen and (max-width: 768px) {
    /* General responsive adjustments */
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    /* Improve touch targets for mobile */
    button,
    input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Improve form usability */
    .form-group {
        margin-bottom: 15px;
    }
    
    /* Header adjustments */
    .top-bar .container {
        flex-direction: column;
        padding: 10px 0;
    }
    
    .logo, .contact-info, .main-nav {
        width: 100%;
        margin-bottom: 5px;
        text-align: center;
    }
    
    .logo-svg {
        height: 40px;
        margin-right: 12px;
    }
    
    .logo-text {
        font-size: 24px;
    }
    
    /* Hero section adjustments */
    .hero {
        min-height: 40vh;
        padding: 50px 0;
    }
    
    .hero-content h2 {
        font-size: 2em;
    }
    
    /* How it works section adjustments */
    .obituary-list {
        flex-direction: column;
        align-items: center;
    }
    
    .obituary-item {
        width: 90%;
        margin-bottom: 20px;
    }
    
    /* Welcome section adjustments */
    .welcome .container {
        flex-direction: column;
    }
    
    .welcome-image, .welcome-content {
        width: 100%;
    }
    
    /* Services section adjustments */
    .service-list {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .service-item {
        width: 45%;
        margin-bottom: 20px;
        padding: 15px;
    }
    
    .service-item img {
        max-width: 60px;
        height: auto;
    }
    
    .service-item h4 {
        font-size: 1.1em;
        margin: 10px 0;
    }
    
    .service-item p {
        font-size: 0.9em;
    }
    
    /* Pricing section adjustments */
    .pricing-options {
        flex-direction: column;
        align-items: center;
    }
    
    .pricing-option {
        width: 90%;
        margin-bottom: 20px;
    }
    
    /* Footer adjustments */
    footer .container {
        flex-direction: column;
    }
    
    .contact-info-footer, .enquiry-form {
        width: 100%;
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 480px) {
    /* Hide large images on small screens */
    .welcome-image {
        display: none;
    }
    
    /* Hide grief section on small screens as requested */
    .grief-healing {
        display: none;
    }
    
    /* Simplify layout for very small screens */
    .service-list {
        flex-direction: column;
        align-items: center;
    }
    
    /* Improve readability on small screens */
    body {
        font-size: 16px;
        line-height: 1.5;
    }
    
    /* Adjust spacing for better mobile experience */
    section {
        margin-bottom: 20px;
    }
    
    /* Further adjustments for very small screens */
    .hero-content h2 {
        font-size: 1.5em;
    }
    
    .service-item {
        width: 100%;
    }
    
    /* Reduce padding and margins */
    section {
        padding: 20px 0;
    }
    
    /* Make buttons full width */
    button {
        width: 100%;
        margin: 5px 0;
    }
    
    /* Adjust quote section */
    .quote {
        padding: 40px 0;
    }
    
    .quote-content p {
        font-size: 1.2em;
    }
    
    /* Optimize images for mobile */
    img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }
    
    /* Improve form usability on mobile */
    input, textarea, button {
        font-size: 16px; /* Prevents iOS zoom on focus */
        padding: 12px; /* Larger touch targets */
    }
    
    /* Improve spacing for mobile */
    h2, h3, h4 {
        margin-top: 15px;
        margin-bottom: 10px;
    }
    
    p {
        margin-bottom: 15px;
    }
}

/* Print styles for better printing */
@media print {
    .hero, .buy-now, .enquiry-form, button {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .container {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    /* Logo adjustments for very small screens */
    .logo-svg {
        height: 35px;
        margin-right: 8px;
    }
    
    .logo-text {
        font-size: 20px;
    }
}

/* Cookie Consent Styles */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--cookie-bg);
    border-top: 3px solid var(--button-primary);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 9999;
    font-family: Arial, sans-serif;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-consent-text {
    flex: 1;
}

.cookie-consent-text h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #333;
    font-weight: bold;
}

.cookie-consent-text p {
    margin: 0 0 8px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.cookie-consent-text a {
    color: #e6a756;
    text-decoration: underline;
}

.cookie-consent-text a:hover {
    color: #d49c42;
}

.cookie-consent-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.cookie-btn-primary {
    background-color: var(--button-primary);
    color: white;
}

.cookie-btn-primary:hover {
    background-color: var(--button-hover);
    transform: translateY(-1px);
}

.cookie-btn-secondary {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.cookie-btn-secondary:hover {
    background-color: #e9e9e9;
    border-color: #ccc;
}

/* Cookie Details Panel */
.cookie-details {
    margin-top: 20px;
    padding: 20px;
    background: var(--cookie-details-bg);
    border-radius: 5px;
    border: 1px solid var(--border-color);
}

.cookie-details h5 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: bold;
}

.cookie-category {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cookie-category-header {
    margin-bottom: 8px;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.cookie-toggle input[type="checkbox"] {
    position: relative;
    width: 50px;
    height: 24px;
    appearance: none;
    background: #ccc;
    border-radius: 12px;
    transition: background 0.2s;
}

.cookie-toggle input[type="checkbox"]:checked {
    background: var(--button-primary);
}

.cookie-toggle input[type="checkbox"]:disabled {
    background: var(--button-primary);
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-toggle input[type="checkbox"]::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.cookie-toggle input[type="checkbox"]:checked::before {
    transform: translateX(26px);
}

.cookie-category-desc {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
    padding-left: 62px;
}

.cookie-details-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

/* Mobile responsiveness for cookie consent */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .cookie-consent-actions {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .cookie-details-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .cookie-category-desc {
        padding-left: 0;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .cookie-consent {
        padding: 15px;
        border-radius: 0;
    }
    
    .cookie-consent-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .cookie-consent-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .cookie-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* Dark Mode Toggle Button */
.theme-toggle {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background-color: var(--button-primary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.theme-toggle:hover {
    background-color: var(--button-hover);
    transform: translateY(-50%) scale(1.1);
}

.theme-toggle-icon {
    font-size: 24px;
    color: white;
    transition: transform 0.3s ease;
}

[data-theme="dark"] .theme-toggle-icon {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .theme-toggle {
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    .theme-toggle-icon {
        font-size: 20px;
    }
}



