/* Final Design - Combined Best Elements from All Designs */

:root {
    /* Using Design 3 colors */
    --rose: #E8B4B8; /* Dusty Rose */
    --lavender: #C8B6DB; /* Soft Lavender */
    --sage: #B8D4C8; /* Sage Green */
    --cream: #FFF8E7; /* Cream */
    --peach: #F5C99B; /* Soft Peach */
    --rose-deep: #A85F6B; /* Accessible rose for text and buttons (4.65:1 on white) */
    --sage-deep: #6B8A7E; /* Accessible sage for buttons */
    --text-primary: #5A5353;
    --text-secondary: #7D7373;
    --white: #FFFFFF;
    --light-gray: #F5F5F0;
    --border-color: #E5E5E0;
    /* Design 2 background for hero */
    --hero-bg: #F8F9FA;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-primary);
    background-color: var(--cream);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Merriweather', serif;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Images */
img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Hero Layout */
.hero-text-side {
    text-align: left;
}

.hero-text-side .hero-greeting {
    text-align: left;
}

.hero-text-side .hero-title {
    text-align: left;
}

.hero-text-side .hero-description {
    text-align: left;
}

.hero-image-wrapper-half {
    position: relative;
    width: 480px; /* 20% larger than 400px */
    max-width: 100%; /* Never wider than the column on small screens */
}

/* Pause/Play Button */
.pan-control {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--rose);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: background-color 0.3s ease;
}

.pan-control:hover {
    background: var(--white);
}

.pause-icon, .play-icon {
    font-size: 16px;
    color: var(--rose-deep);
}

/* Panning image */
.hero-image-pan-slow {
    overflow: hidden;
    height: 480px; /* 20% larger */
    width: 100%; /* Fill the wrapper (480px max, shrinks on small screens) */
    position: relative;
}

.hero-img-pan-slow {
    height: 480px; /* 20% larger */
    width: auto;
    min-width: 200%; /* Doubled width for full panning */
    object-fit: cover;
    animation: gentlePanTwice 30s ease-in-out forwards;
    transform-origin: left center;
    position: absolute;
    left: 0;
}

.hero-img-pan-slow.paused {
    animation-play-state: paused;
}

@keyframes gentlePanTwice {
    /* First pan cycle - 15 seconds */
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-50%); /* Pan to right at 7.5s */
    }
    50% {
        transform: translateX(0); /* Return to left at 15s */
    }

    /* Second pan cycle - 15 seconds */
    75% {
        transform: translateX(-50%); /* Pan to right again at 22.5s */
    }
    100% {
        transform: translateX(-25%); /* Stop in the middle at 30s */
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-img-pan-slow {
        animation: none;
        transform: translateX(-25%); /* Rest at the animation's end position */
    }

    .pan-control {
        display: none; /* Nothing to pause */
    }
}

.story-img {
    height: 350px;
}

.gallery-main-img {
    height: 400px;
}

.gallery-small-img {
    height: 200px;
    transition: transform 0.3s ease;
}

.bouquet-img {
    height: 300px;
}

.visit-img {
    height: 350px;
}

/* Header */
.header-top {
    background-color: var(--rose-deep);
    text-align: center;
    padding: 0.75rem 0;
    color: white;
    font-size: 1.35rem; /* 50% larger than Design 3's 0.9rem */
}

.main-nav {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem; /* Larger than Design 3's 2.5rem */
    color: var(--rose-deep);
    margin-bottom: 0;
}

.logo-tagline {
    font-size: 1rem;
    color: var(--text-secondary);
    font-style: italic;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1.15rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--rose-deep);
}

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

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--rose-deep);
    margin: 3px 0;
    border-radius: 2px;
    transition: 0.3s;
}

/* Hero Section - Design 3 layout with Design 2 background */
.hero-section {
    position: relative;
    padding: 4rem 0;
    overflow-x: hidden;
    background: linear-gradient(135deg, var(--hero-bg) 0%, rgba(255,107,157,0.1) 100%); /* Design 2 bg */
    width: 100%;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, var(--rose) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, var(--lavender) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, var(--sage) 0%, transparent 50%);
    opacity: 0.1;
}

.hero-content {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-greeting {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem; /* 50% larger than Design 3's 2rem */
    color: var(--rose-deep);
    margin-bottom: 0.5rem;
}

.hero-title {
    font-size: 3rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.875rem 2rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

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

.btn-primary:hover {
    background-color: #9E5561;
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--rose-deep);
    color: var(--rose-deep);
}

.btn-outline:hover {
    background-color: var(--rose-deep);
    color: white;
}

.btn-secondary {
    background-color: var(--sage-deep);
    color: white;
    font-weight: bold;
    font-size: 1.2rem; /* Same as note-content p */
}

.btn-secondary:hover {
    background-color: #5D7A6F;
}

.hero-image {
    position: relative;
    z-index: 2;
    border-radius: 12px;
    overflow: hidden;
}

.decorative-frame {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--lavender);
    border-radius: 12px;
    z-index: 1;
}

/* Story Section */
.story-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.section-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.title-decoration {
    font-size: 1.5rem;
    color: var(--rose);
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.image-frame {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    background-color: var(--light-gray);
    border-radius: 8px;
    z-index: -1;
}

.story-intro {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem; /* Same as hero-greeting */
    color: var(--rose-deep);
    margin-bottom: 0.5rem;
}

.story-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.125rem; /* Same as hero-description */
    color: var(--text-secondary); /* Same as hero-description */
}

.story-highlights {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--light-gray);
    border-radius: 8px;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.highlight-icon {
    font-size: 1.5rem;
}

/* Garden Section */
.garden-section {
    padding: 5rem 0;
    background-color: var(--light-gray);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
}

.garden-gallery {
    margin-top: 3rem;
}

.gallery-main {
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05) rotate(2deg);
}

.garden-quote {
    text-align: center;
    margin-top: 3rem;
}

.garden-quote blockquote {
    margin-top: 1rem;
    font-family: 'Dancing Script', cursive;
    font-size: 3.75rem; /* Same as Ready for delivery */
    color: #7A9A8E; /* Darker sage for better contrast */
    font-weight: 400;
    margin-bottom: 0;
}

/* Bouquets Section */
.bouquets-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.bouquet-collection {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.bouquet-item {
    text-align: center;
}

.bouquet-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    height: 300px;
}

.bouquet-item.featured .bouquet-image {
    box-shadow: 0 8px 16px rgba(232, 180, 184, 0.3);
}

/* Removed bouquet labels and descriptions */

.seasonal-note {
    margin-top: 3rem;
    background-color: var(--cream);
    border: 2px dashed var(--rose);
    border-radius: 12px;
    padding: 2rem;
}

.note-content {
    text-align: center;
}

.note-content h3 {
    color: var(--rose-deep);
    margin-bottom: 1rem;
    font-size: 2rem; /* Increased font size */
    font-weight: bold;
}

.note-content p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-weight: bold;
    font-size: 1.2rem; /* 20% larger */
}

/* Events Section */
.events-section {
    padding: 5rem 0;
    background-color: var(--light-gray);
}

.events-card {
    max-width: 760px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(90, 83, 83, 0.08);
}

.events-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.events-highlights {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.events-highlights .highlight {
    background-color: var(--cream);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
}

/* Visit Section */
.visit-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.visit-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.visit-intro {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--light-gray);
    border-radius: 8px;
}

.method-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    background-color: var(--rose-deep);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.method-details h4 {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    font-size: 1.5rem; /* Larger heading */
    font-weight: 600; /* Bolder */
}

.method-details p {
    color: var(--text-secondary);
    font-size: 1.25rem; /* Larger email text */
    font-weight: 500; /* Semi-bold */
}

.method-details a {
    color: var(--rose-deep);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.delivery-info {
    background-color: var(--cream);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.delivery-info h3 {
    color: var(--rose-deep);
    margin-bottom: 1rem;
}

.delivery-towns {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.town {
    font-weight: 600;
    color: var(--text-primary);
}

.town-separator {
    color: var(--rose);
}

.delivery-note {
    font-style: italic;
    color: var(--text-secondary);
}

.visit-image {
    text-align: center;
    overflow: hidden;
    border-radius: 8px;
}

.image-caption {
    margin-top: 1rem;
    font-family: 'Dancing Script', cursive;
    font-size: 3.75rem; /* Tripled from 1.25rem */
    color: #7A9A8E; /* Match the garden quote; base sage is too faint on white */
}

/* Footer */
.site-footer {
    background-color: var(--rose-deep);
    color: white;
    padding: 3rem 0 1rem;
    text-align: center;
}

.footer-main h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.6rem; /* 30% larger than Design 3's 2rem */
    margin-bottom: 0.5rem;
}

.footer-main p {
    font-style: italic;
    margin-bottom: 2rem;
    font-size: 1.17rem; /* 30% larger */
}

.footer-bottom p {
    font-size: 1.14rem; /* 30% larger than 0.875rem */
    margin-bottom: 0.5rem;
}

.footer-decoration {
    margin-top: 2rem;
    font-size: 1.95rem; /* 30% larger than 1.5rem */
}

.footer-decoration span {
    margin: 0 0.5rem;
}

/* Animations (anim/site-anim.js) — all elements below are created by JS;
   the page renders identically without them */

/* nav underline grows a leaf */
.anim-nav-leaves .nav-link::after {
    background-color: var(--sage-deep);
}

.nav-link .leaf-tip {
    position: absolute;
    right: -7px;
    bottom: -3px;
    width: 9px;
    height: 9px;
    opacity: 0;
    transform: scale(0) rotate(-30deg);
    transform-origin: left bottom;
    transition: transform 0.22s ease 0.2s, opacity 0.1s ease 0.2s;
}

.nav-link:hover .leaf-tip,
.nav-link:focus-visible .leaf-tip {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* CTA petal pulse */
.anim-petal-btn {
    position: relative;
}

.btn-halo {
    position: absolute;
    inset: -22px;
    width: calc(100% + 44px);
    height: calc(100% + 44px);
    pointer-events: none;
    overflow: visible;
}

/* section-title flourish */
.anim-flourish-title {
    position: relative;
    display: inline-block;
}

.anim-flourish-title .flourish {
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 12px;
    overflow: visible;
    pointer-events: none;
}

/* gallery petal settle */
.petal-settle-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.gallery-item {
    position: relative;
}

/* story sketch dahlia */
.story-sketch {
    float: right;
    width: 110px;
    height: 155px;
    margin: 0 0 0.5rem 1rem;
}

.story-sketch svg {
    width: 100%;
    height: 100%;
}

/* mini dahlia divider */
.title-decoration .mini-dahlia {
    width: 34px;
    height: 34px;
    margin: 0 0.4rem;
    vertical-align: middle;
}

/* events side gardens — growing flowers flanking the section header */
#events .section-intro.has-side-gardens {
    position: relative;
}

.events-side-garden {
    position: absolute;
    bottom: -8px;
    width: 170px;
    height: 146px;
    pointer-events: none;
}

.events-side-garden.side-left { left: 0; }
.events-side-garden.side-right { right: 0; }

.events-side-garden svg {
    width: 100%;
    height: 100%;
}

@media (max-width: 900px) {
    .events-side-garden {
        display: none;
    }
}

/* sway cluster by the contact section */
.visit-section {
    position: relative;
    overflow: hidden;
}

.sway-cluster {
    position: absolute;
    right: 8px;
    bottom: 0;
    width: 170px;
    height: 200px;
    pointer-events: none;
    opacity: 0.85;
}

.sway-cluster svg {
    width: 100%;
    height: 100%;
}

/* footer garden strip — the beds firework show */
.footer-garden {
    background-color: var(--cream);
    padding-top: 1rem;
    line-height: 0;
    overflow: hidden;
}

.footer-garden svg {
    display: block;
    width: 100%;
    height: clamp(140px, 19vw, 230px);
}

/* celebrate overlay */
#celebrate-layer {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
}

@media (max-width: 768px) {
    .story-sketch {
        width: 84px;
        height: 120px;
    }

    .sway-cluster {
        display: none;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-list {
        position: absolute; /* Anchored to the sticky nav, so it sits right below the header */
        left: -100%;
        top: 100%;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
        gap: 1rem;
    }
    
    .nav-list.active {
        left: 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    /* Re-center hero text (base .hero-text-side rules set it left) */
    .hero-text-side,
    .hero-text-side .hero-greeting,
    .hero-text-side .hero-title,
    .hero-text-side .hero-description {
        text-align: center;
    }

    .hero-image-wrapper-half {
        /* Drop the fixed 480px width: it inflates the grid column past the
           viewport (max-width alone can't prevent that during track sizing) */
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
    }

    .hero-image-pan-slow,
    .hero-img-pan-slow {
        height: 360px; /* Shorter pan window on phones */
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-greeting {
        font-size: 2rem;
    }
    
    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .decorative-frame {
        display: none;
    }
    
    .story-content,
    .visit-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .image-frame {
        display: none;
    }
    
    .story-highlights {
        flex-direction: column;
        gap: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bouquet-collection {
        grid-template-columns: 1fr;
    }

    .events-highlights {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .delivery-towns {
        flex-direction: column;
        gap: 0;
    }
    
    .town-separator {
        display: none;
    }
    
    .logo-text {
        font-size: 2.5rem;
    }
    
    .header-top {
        font-size: 1.1rem;
    }
}