/* 
   Tender Transitions - Brand Styles
   Theme: Light Purple, Rainbow Accents, Premium, Compassionate
*/

:root {
    /* Color Palette */
    --primary-color: #6a4c93;
    /* Premium Purple */
    --primary-light: #9d8ec2;
    /* Lighter Purple */
    --primary-dark: #4a3469;
    /* Darker Purple for text/contrast */
    --accent-gold: #c7a17a;
    /* Gold for premium feel */
    --bg-cream: #f9f7f2;
    /* Soft Cream Background */
    --white: #ffffff;
    --text-dark: #333333;
    --text-muted: #666666;

    /* Rainbow Gradient (Subtle) */
    --rainbow-gradient: linear-gradient(120deg, #ffadad, #ffd6a5, #fdffb6, #caffbf, #9bf6ff, #a0c4ff, #bdb2ff, #ffc6ff);
    --rainbow-soft: linear-gradient(120deg, rgba(255, 173, 173, 0.2), rgba(255, 214, 165, 0.2), rgba(253, 255, 182, 0.2), rgba(202, 255, 191, 0.2), rgba(155, 246, 255, 0.2), rgba(160, 196, 255, 0.2), rgba(189, 178, 255, 0.2), rgba(255, 198, 255, 0.2));

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --font-brand: 'Barlow Condensed', sans-serif;
    --brand-teal: #0CC0DF;

    /* Spacing */
    --section-padding: 5rem 2rem;
    --container-width: 1200px;
    --border-radius: 8px;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: --font-body;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
    font-family: 'Lato', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Helper Classes */
.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(106, 76, 147, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-primary-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-primary-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--bg-cream);
    color: var(--primary-dark);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Reduced gap from 15px */
}

.logo {
    height: 100px;
    width: auto;
    border-radius: 50%;
}

.logo-text {
    font-family: var(--font-brand);
    font-size: 2.5rem;
    /* Increased slightly to balance with logo */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -1px;
    /* Narrower letter spacing */
    color: var(--brand-teal);
    line-height: 1;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-list a {
    font-weight: 500;
    color: var(--primary-dark);
    position: relative;
}

.nav-list a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-gold);
    transition: width 0.3s;
}

.nav-list a:not(.btn):hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-dark);
    margin: 5px 0;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 6rem 1.5rem;
    /* Increased padding */
    background-color: #f3e5f5;
    /* Light Purple Solid Background */
    /* Optional: Subtle gradient if preferred over flat color */
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    animation: fadeIn 1.5s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    width: 200px;
    /* Adjust size as needed */
    height: auto;
    border-radius: 50%;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px rgba(106, 76, 147, 0.2);
    border: 4px solid var(--white);
}

.hero-title {
    font-size: 3.5rem;
    /* Slightly smaller to accommodate logo */
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    color: var(--text-dark);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* About Section */
.section {
    padding: var(--section-padding);
}

.about {
    background-color: var(--white);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.rainbow-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    background: var(--rainbow-gradient);
    border-radius: var(--border-radius);
    z-index: 1;
    opacity: 0.5;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--primary-light);
    margin-bottom: 3rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Services Section */
.services {
    background-color: var(--bg-cream);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: transform 0.3s;
    border-top: 4px solid var(--primary-light);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-muted);
}

.keepsakes-gallery {
    text-align: center;
    margin-top: 4rem;
}

.gallery-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-dark);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: transform 0.3s;
    box-shadow: var(--shadow-soft);
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Guidance Section */
.guidance {
    background: linear-gradient(rgba(74, 52, 105, 0.8), rgba(74, 52, 105, 0.9)), url('assets/keepsakes5.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 8rem 2rem;
}

.guidance .section-title {
    color: var(--white);
    margin-bottom: 2rem;
}

.guidance-text {
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.25rem;
    font-weight: 300;
}

/* Contact Section */
.contact {
    text-align: center;
    background-color: var(--white);
}

.contact-content {
    max-width: 800px;
}

.service-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    color: var(--primary-dark);
}

/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

.footer p {
    opacity: 0.8;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }

    .nav {
        display: none;
        width: 100%;
        margin-top: 1rem;
    }

    .nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .about-image-wrapper {
        order: -1;
    }
}