:root {
    --primary-color: #D4AF37;
    --secondary-color: #222;
    --text-color: #333;
    --light-color: #fff;
    --gray-color: #f4f4f4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

h1, h2, h3, h4 {
    font-family: 'Cinzel', serif;
    color: var(--secondary-color);
}

/* Navigation */
.navbar {
    background: var(--secondary-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 0;
    height: 80px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
    padding: 0 2rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-section img {
    height: 50px;
    display: block;
}

.company-name {
    color: var(--primary-color);
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.nav-links li a {
    color: var(--light-color);
    text-decoration: none;
    padding: 0.5rem;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary-color);
}

.cta-button {
    background: var(--primary-color);
    color: var(--secondary-color) !important;
    padding: 0.7rem 1.5rem !important;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #b38f1d;
    color: var(--light-color) !important;
}

.hamburger {
    display: none;
    cursor: pointer;
}

@media (max-width: 1200px) {
    .nav-links {
        gap: 1.5rem;
    }

    .nav-links li a {
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    .company-name {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-wrapper {
        grid-template-columns: auto auto;
        padding: 0 1rem;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--secondary-color);
        flex-direction: column;
        align-items: center;
        padding: 1.5rem 0;
        gap: 1.5rem;
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        display: none;
    }

    .nav-links.active {
        transform: translateY(0);
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--light-color);
        margin: 5px 0;
        transition: all 0.3s ease;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* Home Page */
.home-page {
    margin-top: 0;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: calc(100vh - 80px);
    margin-top: 80px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.slide:nth-child(1) {
    background-image: url('../images/hero/funeral-service.jpg');
}

.slide:nth-child(2) {
    background-image: url('../images/hero/family-support.jpg');
}

.slide:nth-child(3) {
    background-image: url('../images/hero/facility.jpg');
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: relative;
    text-align: center;
    color: var(--light-color);
    z-index: 2;
    padding: 2rem;
}

.slide-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--light-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.slider-navigation {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 2;
}

.slider-nav-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-nav-btn.active {
    background: var(--light-color);
    transform: scale(1.2);
}

.slider-nav-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transform: scale(0);
    transition: transform 0.3s ease;
    border-radius: 50%;
}

.slider-nav-btn.active:before {
    transform: scale(1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Services Preview */
.services-preview {
    padding: 5rem 0;
    background: var(--gray-color);
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.service-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* About Hero */
.about-hero {
    position: relative;
    height: 60vh;
    background: url('../images/hero/family-support.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-color);
    margin-top: 0;
    padding-top: 80px;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.about-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-hero h1 {
    font-size: 3.5rem;
    color: var(--light-color);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.about-hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .about-hero {
        height: 50vh;
    }

    .about-hero h1 {
        font-size: 2.5rem;
    }

    .about-hero p {
        font-size: 1rem;
    }
}

/* About Preview */
.about-preview {
    padding: 5rem 0;
    background: var(--secondary-color);
    color: var(--light-color);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
}

.about-content h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.secondary-button {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.7rem 1.5rem;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

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

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: var(--gray-color);
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    padding: 2rem;
    background: var(--light-color);
    border-radius: 10px;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    background: var(--light-color);
    border-radius: 10px;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: var(--light-color);
    padding: 3rem 5% 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 50px;
    margin-bottom: 1rem;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--light-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: block;
        cursor: pointer;
    }
    
    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--light-color);
        margin: 5px 0;
        transition: all 0.3s ease;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        grid-template-columns: 1fr auto auto;
        padding: 1rem 5%;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--secondary-color);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .hamburger {
        display: block;
        cursor: pointer;
        margin-left: 2rem;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--light-color);
        margin: 5px 0;
        transition: all 0.3s ease;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* About Page Styles */
.about-page {
    padding-top: 80px;
}

.about-page .hero {
    height: calc(100vh - 80px);
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.about-page .hero-slider {
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero/about-hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.about-page .slide {
    width: 100%;
}

.about-page .slide-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    color: var(--light-color);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.2s ease forwards;
}

.about-page .slide-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Cinzel', serif;
}

.about-page .slide-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.about-page .slide-content .cta-button {
    display: inline-block;
    font-size: 1.1rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .about-page .slide-content h1 {
        font-size: 2.5rem;
    }
    
    .about-page .slide-content p {
        font-size: 1rem;
    }
}

.about-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/gallery/IMG_2234.jpg');
    background-size: cover;
    background-position: center;
    color: var(--light-color);
    padding: 6rem 0;
    text-align: center;
}

.about-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
}

.mission-vision {
    padding: 4rem 0;
    background: var(--light-color);
}

.mission-vision .container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.mission-box, .vision-box {
    padding: 2rem;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.mission-box h2, .vision-box h2 {
    color: var(--primary-color);
    font-family: 'Cinzel', serif;
    margin-bottom: 1rem;
}

.values {
    padding: 4rem 0;
    background: #f9f9f9;
}

.values h2 {
    text-align: center;
    color: var(--primary-color);
    font-family: 'Cinzel', serif;
    margin-bottom: 3rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.value-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
}

.about-content {
    padding: 4rem 0;
    background: var(--light-color);
}

.about-content .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-content h2 {
    color: var(--primary-color);
    font-family: 'Cinzel', serif;
    margin-bottom: 2rem;
    text-align: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-color);
}

.motto {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: #f9f9f9;
    border-radius: 10px;
}

.motto-text {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-family: 'Cinzel', serif;
    font-weight: 700;
}

/* Services Page Styles */
.services-page {
    padding-top: 0;
}

.page-header {
    background: var(--secondary-color);
    color: var(--light-color);
    padding: 7rem 0 4rem;
    text-align: center;
}

.page-header h1 {
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    color: var(--light-color);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.services-section {
    padding: 5rem 0;
    background: var(--gray-color);
}

.service-card {
    background: var(--light-color);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.service-card h2 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.service-details h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
}

.service-details ul {
    list-style: none;
    margin-bottom: 2rem;
}

.service-details ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.service-details ul li:before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.insurance-note {
    font-size: 0.9rem;
    font-style: italic;
    color: #666;
    margin-top: 1rem;
}

.cta-section {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.cta-button.secondary {
    background: var(--secondary-color);
    color: var(--light-color) !important;
}

.cta-button.secondary:hover {
    background: #333;
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-card h2 {
        font-size: 1.75rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Gallery Page Styles */
.gallery-page {
    padding-top: 80px;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--gray-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(34, 34, 34, 0.8);
    color: var(--light-color);
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.gallery-overlay p {
    font-size: 0.9rem;
    margin: 0;
}

/* Lightbox Customization */
.lb-data .lb-caption {
    font-family: 'Cinzel', serif;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Footer Styles */
footer {
    background: var(--secondary-color);
    color: var(--light-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 4rem 2rem;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--light-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-section p {
    margin-bottom: 0.5rem;
}

.footer-section i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.footer-logo {
    height: 60px;
    margin-bottom: 1rem;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .footer-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .about-hero h1 {
        font-size: 2rem;
    }

    .mission-vision .container {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        padding: 3rem 0;
    }
}
