/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;1,400;1,700&family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* Variables */
:root {
    --primary-color: #D4A0A7;
    --secondary-color: #8AB6A5;
    --background-color: #F8F6F4;
    --text-color: #333333;
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Lato', sans-serif;
    --accent-color-1: #E4D9C0;
    --accent-color-2: #C0D6E4;
    --white-color: #ffffff;
    --box-shadow-light: 0 4px 10px rgba(0, 0, 0, 0.08);
    --box-shadow-heavy: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Reset and Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scrollbars */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

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

.btn {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-family: var(--heading-font);
    font-size: 1.1rem;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    margin-top: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--background-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
}

/* Header */
header {
    background-color: var(--white-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--box-shadow-light);
}

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

.logo {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav a {
    font-family: var(--body-font);
    font-weight: 700;
    color: var(--text-color);
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 5px;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
#hero {
    height: 100vh;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white-color);
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.2); /* Subtle dark overlay */
}

.hero-content {
    z-index: 1;
    animation: fadeIn 2s ease-in-out forwards;
}

.hero-content h1 {
    font-size: 5rem;
    margin-bottom: 0.5rem;
    color: var(--white-color);
}

.hero-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--white-color);
    font-weight: 400;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    color: rgba(255, 255, 255, 0.9);
}

/* Filmstrip Cinema Layout */
.filmstrip-section {
    padding: 80px 0;
    background-color: var(--background-color);
    position: relative; /* For potential parallax/layering later */
}

.filmstrip-wrapper {
    overflow-x: auto; /* Horizontal scrolling */
    white-space: nowrap;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px; /* Space for scrollbar if needed */
}

.filmstrip-content {
    display: inline-block;
    vertical-align: top; /* Ensure alignment */
    width: 100%; /* Take full width of the viewport */
    padding: 40px 5%; /* Add horizontal padding to the content */
    box-sizing: border-box;
    scroll-snap-align: start;
    white-space: normal; /* Reset for content inside */
    min-height: 80vh; /* Ensure enough height for content */
}

.filmstrip-content h2,
.filmstrip-content p {
    text-align: center;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.product-gallery {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.product-card {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: var(--box-shadow-light);
    padding: 20px;
    width: 300px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    white-space: normal; /* Reset for card content */
    display: inline-block; /* Crucial for horizontal scroll */
    vertical-align: top; /* Align cards */
    scroll-snap-align: center; /* Snap to card */
    position: relative; /* For hover effects */
    overflow: hidden; /* Ensure hover effects stay within bounds */
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-heavy);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 400px; /* Fixed height for consistency */
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1); /* Subtle shimmer */
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none; /* Allow interaction with image underneath */
}

.product-card:hover .product-hover-effect {
    opacity: 1;
    transform: scale(1.05);
}

/* Special CSS Effect: Gentle bloom animation on hover */
.product-card:hover .product-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 10%, transparent 70%);
    opacity: 0;
    animation: bloom-effect 2s ease-out forwards;
    pointer-events: none;
}

@keyframes bloom-effect {
    0% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 0.7; }
    100% { opacity: 0; transform: scale(1.5); }
}


.product-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.product-card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1rem;
}

.product-card .price {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 1.5rem;
}

/* Parallax Section */
.parallax-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--background-color);
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-attachment: fixed;
    z-index: 1;
}

.parallax-layer.layer-back {
    background-image: url('https://via.placeholder.com/1920x1080/F8F6F4/333333?text=Subtle+Floral+Background'); /* Placeholder for background */
    z-index: 0;
    transform: translateZ(-1px) scale(2); /* Push back and scale */
}

.parallax-layer.layer-base {
    background-color: rgba(248, 246, 244, 0.8); /* Slightly transparent base */
    padding: 80px 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.parallax-section h2 {
    margin-bottom: 1rem;
}

.parallax-section p {
    max-width: 700px;
    margin-bottom: 3rem;
}

.seasonal-gallery {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.seasonal-item {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: var(--box-shadow-light);
    padding: 20px;
    width: 250px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.seasonal-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-heavy);
}

.seasonal-item img {
    border-radius: 8px;
    margin-bottom: 15px;
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.seasonal-item h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.seasonal-item p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0; /* Remove bottom margin for last element */
}

/* Custom Arrangement Studio */
.custom-studio-section {
    padding: 80px 0;
    background-color: var(--accent-color-1);
    text-align: center;
}

.custom-studio-section h2 {
    color: var(--text-color);
}

.custom-studio-section p {
    max-width: 700px;
    margin: 0 auto 3rem auto;
    color: #444;
}

.studio-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

.color-palette {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow-light);
    width: 300px;
    text-align: left;
}

.color-palette h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
}

.color-options {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: border-color 0.3s ease, transform 0.2s ease;
    box-shadow: var(--box-shadow-light);
}

.color-swatch:hover {
    transform: scale(1.1);
}

.color-swatch.selected {
    border-color: var(--text-color);
    transform: scale(1.2);
}

.arrangement-preview {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow-light);
    flex-grow: 1; /* Take remaining space */
    max-width: 600px;
}

.arrangement-preview h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.preview-canvas {
    width: 100%;
    min-height: 400px; /* Minimum height for the canvas */
    background-color: #f0f0f0; /* Placeholder background */
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-style: italic;
    color: #777;
    margin-bottom: 20px;
    /* Placeholder for interactive elements */
}

.vase-controls button {
    margin: 0 10px;
    background-color: var(--secondary-color);
    color: var(--white-color);
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-family: var(--body-font);
}

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

/* Gifts & Accents */
.gifts-accents-section {
    padding: 80px 0;
    background-color: var(--accent-color-2);
    text-align: center;
}

.gifts-accents-section h2 {
    color: var(--text-color);
}

.gifts-accents-section p {
    max-width: 700px;
    margin: 0 auto 3rem auto;
    color: #444;
}

.gift-gallery {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.gift-item {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: var(--box-shadow-light);
    padding: 20px;
    width: 200px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gift-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-heavy);
}

.gift-item img {
    border-radius: 8px;
    margin-bottom: 15px;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.gift-item h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.gift-item p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 1rem;
}

.gift-item .price {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--secondary-color);
    display: block;
}

/* The Petal & Bloom Story */
.story-section {
    padding: 80px 0;
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.story-content {
    max-width: 550px;
    text-align: left;
}

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

.story-content p {
    font-size: 1.1rem;
    color: #444;
}

.story-image img {
    border-radius: 10px;
    box-shadow: var(--box-shadow-heavy);
    max-width: 600px;
    width: 100%;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
}

.contact-section h2 {
    color: var(--white-color);
    margin-bottom: 1rem;
}

.contact-section p {
    max-width: 700px;
    margin: 0 auto 3rem auto;
    color: rgba(255, 255, 255, 0.9);
}

.contact-details {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    text-align: left;
}

.contact-info {
    flex-basis: 300px;
}

.contact-info h3 {
    color: var(--white-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-form {
    flex-grow: 1;
    max-width: 550px;
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow-light);
    color: var(--text-color);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-family: var(--heading-font);
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-color);
}

.contact-form input[type="text"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--body-font);
    font-size: 1rem;
    color: var(--text-color);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .btn-primary {
    background-color: var(--secondary-color);
    color: var(--white-color);
    border: none;
    font-family: var(--heading-font);
    font-size: 1.2rem;
}

.contact-form .btn-primary:hover {
    background-color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: var(--background-color);
    padding: 50px 0;
    font-size: 0.9rem;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

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

.footer-brand h3 {
    font-size: 2rem;
    color: var(--white-color);
    margin-bottom: 1rem;
}

.footer-links h4,
.footer-social h4 {
    font-size: 1.3rem;
    color: var(--white-color);
    margin-bottom: 1rem;
}

.footer-links ul,
.footer-social ul {
    list-style: none;
    padding: 0;
}

.footer-links li,
.footer-social li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-social a {
    color: var(--background-color);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover,
.footer-social a:hover {
    opacity: 1;
}

.footer-social ul {
    display: flex;
    gap: 15px;
}

.footer-social i {
    font-size: 1.5rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.6rem; }

    .hero-content h1 { font-size: 4rem; }
    .hero-content h2 { font-size: 1.8rem; }

    nav ul { gap: 15px; }
    nav a { font-size: 1rem; }

    .product-card { width: 270px; }
    .seasonal-item { width: 220px; }
    .gift-item { width: 180px; }

    .studio-container, .contact-details {
        flex-direction: column;
        align-items: center;
    }

    .color-palette, .arrangement-preview, .contact-info, .contact-form {
        width: 90%;
        max-width: 500px;
    }

    .filmstrip-content { padding: 20px 5%; }
}

@media (max-width: 768px) {
    header .container { flex-direction: column; gap: 15px; }
    nav ul { margin-top: 15px; }

    #hero { height: 70vh; }
    .hero-content h1 { font-size: 3rem; }
    .hero-content h2 { font-size: 1.6rem; }
    .hero-content p { font-size: 1.1rem; }

    .filmstrip-wrapper { padding-bottom: 0; } /* No scrollbar needed with flex-wrap */
    .product-gallery {
        flex-wrap: wrap;
        justify-content: center;
    }
    .product-card {
        width: 85%; /* Full width on smaller screens, max-width helps */
        max-width: 300px;
        margin-bottom: 20px;
    }

    .parallax-section { height: auto; padding: 100px 0; }
    .parallax-layer.layer-base { padding: 40px 5%; }

    .seasonal-gallery, .gift-gallery { flex-direction: column; align-items: center; }
    .seasonal-item, .gift-item { width: 85%; max-width: 250px; margin-bottom: 20px; }

    .story-section { flex-direction: column; text-align: center; }
    .story-content { max-width: 90%; }
    .story-image img { max-width: 90%; }

    .contact-details { text-align: center; }
    .contact-info { margin-bottom: 30px; }

    footer .container { flex-direction: column; align-items: center; }
    .footer-content { flex-direction: column; align-items: center; text-align: center; }
    .footer-brand, .footer-links, .footer-social { margin-bottom: 30px; }
    .footer-links ul, .footer-social ul { padding: 0; }
    .footer-social ul { justify-content: center; }
}