/* FONT DEFINITIONS */
@font-face {
    font-family: 'DisplayFont';
    src: url('./tan-pearl.woff2') format('woff2'),
        url('./tan-pearl.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* Replaced BodyFont with Josefin Sans */
/* GENERAL BODY & TYPOGRAPHY */
:root{
  --bg: #F9F6F3;
  --text: #523f2f;
  --muted: #BDBEA9;
  --paper: #EAE1D7;
  --sage: #C8D5B9;
  --brand-accent: burlywood;
  --stone-300: #d6d3d1;
  /* Added new color variables for floral page ONLY */
  --weddings-bg: #cbc7b7;
  --alacarte-bg: #d8bf9f;
  --floral-card-bg: #f2efeb;
}

body {
    font-family: 'Josefin Sans', sans-serif !important;
    background-color: var(--bg);
    color: var(--text); /* UPDATED main text color */
    overflow-x: hidden;
    padding-top: 64px;
}

h1 {
    /* Keeping h1 specific styling as per design, but general h1 color is now body color */
    color: #523f2f !important; /* Changed to match body text color as per image */
}

.font-serif {
    font-family: 'DisplayFont', serif !important;
}

/* NAVIGATION BAR */
/* --- MODIFIED --- */
nav {
    transition: background-color 0.4s ease, box-shadow 0.4s ease; /* Added smooth transition */
}

.navbar-scrolled {
    background-color: rgba(249, 246, 243, 0.8); /* Corrected alpha value */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* --- ADDED: MOBILE MENU ANIMATION --- */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.1, 0.25, 1), padding-top 0.5s cubic-bezier(0.25, 0.1, 0.25, 1), padding-bottom 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: max-height; /* Performance hint for the browser */
}

#mobile-menu.is-open {
    max-height: 500px; /* A value larger than the menu's max possible height */
}


/* --- ADDED: ANIMATED HAMBURGER MENU --- */
.hamburger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition-property: opacity, filter;
    transition-duration: 0.15s;
    transition-timing-function: linear;
    font: inherit;
    color: inherit;
    text-transform: none;
    background-color: transparent;
    border: 0;
    margin: 0;
    overflow: visible;
    width: 56px;
    height: 56px;
}


.hamburger-box {
    width: 24px;
    height: 18px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -1px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 24px;
    height: 2px;
    background-color: var(--brand-accent);
    border-radius: 4px;
    position: absolute;
    transition-property: transform;
    transition-duration: 0.22s;
    transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: "";
    display: block;
}

.hamburger-inner::before {
    top: -8px;
    transition: top 0.1s 0.25s ease-in, opacity 0.1s ease-in;
}

.hamburger-inner::after {
    bottom: -8px;
    transition: bottom 0.1s 0.25s ease-in, transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

/* Active State */
.hamburger-button.is-active .hamburger-inner {
    transform: rotate(225deg);
    transition-delay: 0.12s;
    transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}

.hamburger-button.is-active .hamburger-inner::before {
    top: 0;
    opacity: 0;
    transition: top 0.1s ease-out, opacity 0.1s 0.12s ease-out;
}

.hamburger-button.is-active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-90deg);
    transition: bottom 0.1s ease-out, transform 0.22s 0.12s cubic-bezier(0.215, 0.61, 0.355, 1);
}


/* LOADING SCREEN & ANIMATION */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #e8ceb0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.8s ease-in-out; /* Changed property */
}

.loader-container {
    position: relative;
    width: 250px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#loading-logo {
    width: 75%;
    height: auto;
    z-index: 10;
    transition: opacity 0.5s ease-out; /* ADDED for smooth fade-out */
}

.progress-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: spin 2.5s linear infinite;
    transition: opacity 0.5s ease-out; /* Add transition for fade out */
}

.progress-ring__circle {
    stroke: #5d3215;
    stroke-linecap: round;
    stroke-dasharray: 100, 283;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.main-content {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

/* HERO SECTION */
#hero-logo {
    width: 100%;
    max-width: 350px;
    height: auto;
}

#video-overlay, #overlay-content {
    transition: opacity 0.8s ease-in-out;
}

/* "WHAT WE OFFER" SECTION - UPDATED */
.what-we-offer-h1 {
    font-family: 'DisplayFont', serif;
    font-size: clamp(3rem, 10vw, 6rem);
    line-height: 0.9;
    letter-spacing: -0.02em;
    text-transform: lowercase;
    margin-bottom: 3rem;
    color: #523f2f !important; /* Match body text color as per image */
}

.what-we-offer-title {
    font-family: 'DisplayFont', serif;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 0.9;
    letter-spacing: -0.02em;
    text-transform: lowercase;
    color: #523f2f;
    margin-bottom: 0;
}

.service-section {
    margin-bottom: 0; /* Adjusted for wrapper */
}

.service-title {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.4;
    color: #523f2f;
    margin: 0;
}

.service-number {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 2rem; /* REDUCED base size */
    font-weight: 300;
    color: #523f2f;
    line-height: 1;
    margin-left: 2rem;
}

.service-details {
    margin-top: 0.5rem; /* REDUCED gap */
    margin-left: 0;
}

.service-detail-item {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.4;
    color: #523f2f;
    margin: 0.25rem 0;
}

.service-detail-item-indent {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.4;
    color: #523f2f;
    margin: 0.25rem 0;
    margin-left: 1.5rem;
}

.service-divider {
    border: none;
    height: 1px;
    background-color: #523f2f;
    opacity: 0.2;
    margin: 1.5rem 0 0 0; /* Adjusted margin */
}

/* LEGACY SERVICE STYLES - keeping for backward compatibility */
.service-number {
    font-size: clamp(1.75rem, 3vw, 2.5rem); /* ADJUSTED responsive font size */
    font-weight: 300;
    color: var(--text); /* Match body text color */
    line-height: 1;
    flex-shrink: 0;
}

#services-image-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 0;
}

#services-image-container img {
    flex: 1;
    width: 100%;
    object-fit: cover;
    min-height: 0;
    border-radius: 0.5rem;
}

.text-container {
    min-width: 0;
    word-wrap: break-word;
}

.explore-button {
    color: burlywood;
    border-color: burlywood;
}

.explore-button:hover, .explore-button:focus {
    background-color: burlywood;
    color: white;
}

/* --- CUSTOM CLASSES --- */
.service-card {
    display:block; padding:1rem; border-radius:0.5rem; transition: box-shadow 300ms;
}

.service-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04); /* hover shadow */
}

/* ADDED for clickable service sections */
.service-link-wrapper {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0.5rem;
    margin: -1rem; /* Counteract padding to align dividers */
}

.service-link-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(82, 63, 47, 0.07), 0 4px 6px -2px rgba(82, 63, 47, 0.05);
}


.service-title {
    font-weight:700; font-size:1.25rem; line-height:1.75rem;
}

.service-description p {
    /* Targeting paragraphs inside service-description for consistent styling */
    margin-top: 0.25rem; /* Small margin for lines within description */
}

.service-description p:first-child {
    font-weight:700; /* Ensure only the first line is bold */
}

/* Ensure horizontal rules have consistent spacing */
hr {
    margin-top:1rem; margin-bottom:1rem; border-color: var(--stone-300); /* Added spacing to hr */
}

/* Brand accent text color */
.brand-accent{ color: var(--brand-accent); }

/* RESPONSIVE DESIGN FOR NEW WHAT WE OFFER SECTION */
@media (max-width: 1024px) {
    .service-number {
        font-size: 2rem;
        margin-left: 1rem;
    }

    .what-we-offer-title {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .service-number {
        font-size: 1.75rem;
        margin-left: 0.5rem;
    }

    .service-detail-item-indent {
        margin-left: 1rem;
    }

    .what-we-offer-h1{
        font-size:1.5rem;
        line-height:2rem;
    }
}

/* EVENT PLANNING PAGE STYLES */
.event-planning-title {
    font-family: 'DisplayFont', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 0.9;
    letter-spacing: -0.02em;
    text-transform: lowercase;
    color: #523f2f;
    margin: 0;
}

/* Service Package Cards */
.service-package-card {
    background: #f2efeb;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-package-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.service-package-header {
    background: #f8f8f3;
    padding: 2rem 1.5rem;
    text-align: center;
}

.service-package-title {
    font-family: 'DisplayFont', serif;
    font-size: 1.5rem;
    line-height: 1.2;
    color: #5d3215;
    margin: 0;
    letter-spacing: 0.05em;
}

.service-package-content {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-height: 400px;
}

.service-package-description {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #523f2f;
    text-align: left;
}

.service-package-features {
    flex-grow: 1;
    background-color: #fbfdfe;
    padding: 20px;
    border-radius: 0.75rem;
}

.service-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    space-y: 0.75rem;
}

.service-features-list li {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #523f2f;
    margin: 0.75rem 0;
    position: relative;
    padding-left: 1rem;
}

.service-features-list li::before {
    content: '•';
    color: #523f2f;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.service-package-details {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #E5E7EB;
}

.service-package-details p {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.9rem;
    color: #523f2f;
    margin: 0.25rem 0;
}

/* Process Steps */
.process-step {
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(82, 63, 47, 0.1);
}

.process-step:last-child {
    border-bottom: none;
}

.process-number {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 2rem;
    font-weight: 300;
    color: #523f2f;
    line-height: 1;
    flex-shrink: 0;
}

.process-title {
    font-family: 'DisplayFont', serif;
    font-size: 1.25rem;
    color: #ba9464;
    font-weight: 600; /* Added weight to match design */
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.process-description {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: #523f2f;
    margin: 0.25rem 0;
}

/* Specific styling for the 'plans' image */
#plans-image {
    object-fit: cover;
    object-position: top; /* This ensures the top part of the image is visible */
}

/* Mobile Responsiveness for Event Page */
@media (max-width: 768px) {
    .event-planning-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
        text-align: center;
        margin-bottom: 2rem;
    }

    .service-package-content {
        min-height: auto;
        padding: 1.5rem 1rem;
    }

    .service-package-header {
        padding: 1.5rem 1rem;
    }

    .service-package-title {
        font-size: 1.25rem;
    }

    .process-number {
        font-size: 1.5rem;
    }

    .process-title {
        font-size: 1.125rem;
    }
}

@media (max-width: 640px) {
    .process-step .flex {
        flex-direction: column;
        gap: 0.5rem;
    }

    .process-number {
        align-self: flex-start;
    }
}


/* --- NEW FLORAL PAGE STYLES --- */
/* These styles are new and only affect florals.html */

.floral-hero-section {
    height: calc(100vh - 64px); /* Full screen height minus navbar height */
}

.floral-hero-title {
    font-family: 'DisplayFont', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
    text-transform: lowercase;
    color: #f2efeb !important;
}

.floral-info-card {

}

.floral-card-title {
    font-family: 'DisplayFont', serif;
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    padding: 1rem;
    display: inline-block;
}

.title-weddings {
    background-color: var(--weddings-bg);
}

.title-alacarte {
    background-color: var(--alacarte-bg);
}

.floral-card-description {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.floral-card-subtitle {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #642f19;
    margin-bottom: 0.75rem;
}

.floral-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.floral-card-list li {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
}

.floral-card-list li::before {
    content: '•';
    color: var(--text);
    opacity: 0.5;
    position: absolute;
    left: 0;
    top: 1px;
}


/* --- NEW ABOUT US STYLES --- */
.about-us-h1 {
    font-family: 'DisplayFont', serif;
    color: var(--text);
    text-transform: lowercase;
}

.about-us-text {
    color: var(--text);
}

/* --- Instagram Scrolling Gallery --- */
/* --- MODIFIED --- */
.scrolling-gallery {
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.scrolling-gallery-track {
    display: flex;
    /* Duplicate the number of items for seamless loop (14 items * 2) */
    width: calc(250px * 28);
    animation: scroll 80s linear infinite;
}

@keyframes scroll {
    from { transform: translateX(0); }
    /* Animate to half the width */
    to { transform: translateX(calc(-250px * 14)); }
}


.scrolling-gallery:hover .scrolling-gallery-track {
    animation-play-state: paused;
}


/* --- ADDED: SCROLL-TRIGGERED ANIMATIONS --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.fade-in-up.is-visible,
.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- ADDED: MODERN FORM INPUT STYLES --- */
.form-input {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    --tw-ring-color: burlywood; /* Ensures focus ring color matches */
    box-shadow: 0 0 0 3px rgba(222, 184, 135, 0.4);
}


/* --- ENHANCED 'WHAT WE OFFER' STYLES (FINAL) --- */

.service-tagline {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    opacity: 0.85;
}

.service-explore-cue {
    color: var(--brand-accent);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem; /* 4px space */
}

/* --- Mobile-First Styles: Cue is always visible --- */
.service-explore-cue {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease; /* Prepare for desktop transition */
}
.explore-text {
    /* No specific styles needed for mobile */
}
.explore-arrow {
    /* No specific styles needed for mobile */
}

/* --- Desktop Hover Animation (for screens 768px and wider) --- */
@media (min-width: 768px) {
    .service-explore-cue {
        opacity: 0; /* Hide the cue by default on desktop */
        transform: translateY(5px);
    }

    /* Reveal on desktop hover */
    .service-link-wrapper:hover .service-explore-cue {
        opacity: 1;
        transform: translateY(0);
    }
}
