:root {
    /* 60% - Dominant color */
    --color-bg: #ddd8cb;
    /* 30% - Secondary color */
    --color-primary: #4BB653;
    /* 10% - Accent color */
    --color-accent: #F68953;
    --color-secondary: #007AFF;
    --font-header: 'baga', sans-serif;
    --color-text: #231F20;
    --color-text-accent: #585858;
}

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    margin: 0;
}

h1,
h2 {
    color: var(--color-text);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2rem;
    text-decoration: underline;
    text-decoration-style: wavy;
    text-decoration-color: var(--color-accent);
    text-decoration-thickness: 3px;
    text-underline-offset: 12px;
    text-decoration-skip-ink: none;
}


a {
    color: var(--color-accent);
}

.hero {
    background-color: var(--color-accent);
    color: var(--color-bg);
    padding: 3rem 2rem;
    height: 25dvh;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
}

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

.changing_text {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    height: 100%;
    font-family: var(--font-header);
}

.changing_text h2 {
    color: var(--color-text) !important;
}

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

.logo {
    width: 100%;
    max-width: 17rem;
}

.hero_content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 5rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Polaroids Section */
.polaroids {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
    background-color: var(--color-bg);
    background-image: url('../img/lights.png');
    background-repeat: repeat-x;
    background-position: top center;
    background-blend-mode: soft-light;
    overflow: hidden;
    /* Hide overflow from buttons if needed */
}

.polaroid-container {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 2rem 1rem;
    width: 100%;
    max-width: 1400px;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    align-items: center;
    /* Center items vertically if heights differ slightly */
    margin: 0 auto;
}

.polaroid-container::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.polaroid {
    flex: 0 0 auto;
    /* Prevent shrinking */
    background: white;
    padding: 1rem 1rem 3rem 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
    max-width: 350px;
    width: 300px;
    /* Fixed width for better carousel feel */
    scroll-snap-align: center;
}

.polaroid:nth-child(even) {
    transform: rotate(2deg);
}

.polaroid:hover {
    transform: scale(1.05) rotate(0);
    z-index: 10;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.polaroid-nav-container {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.nav-button {
    background: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
}

.polaroid img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1/1;
    /* Ensure square look for photo area */
    object-fit: cover;
    filter: grayscale(20%);
}

.polaroid figcaption {
    font-family: 'baga', sans-serif;
    /* Use handwritten font */
    text-align: center;
    font-size: 1rem;
    margin-top: 1rem;
    color: var(--color-text);
    /* Fallback or primary */
    color: #333;
    /* Darker pencil-like color */
}



/* Section Divider */
.section-divider {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.section-divider svg {
    position: relative;
    display: block;
    width: calc(150% + 1.3px);
    height: 60px;
}

.section-divider .shape-fill {
    fill: #C8C3B6;
}

/* Options Section */
.section-container {
    padding: 4rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-container h2 {
    font-family: var(--font-header);
    margin-bottom: 3rem;
    color: var(--color-text);
}

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

@media (min-width: 600px) {
    .options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .options-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.option-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-align: left;
}

.option-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.option-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.option-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.option-item:hover .option-image img {
    transform: scale(1.1);
}

.option-item h3 {
    font-family: var(--font-header);
    font-size: 1.5rem;
    padding: 1rem;
    margin: 0;
    color: var(--color-text-accent);
}

.hidden-content {
    display: none;
}

/* Modal Styles */
.modal {
    display: none;
}

.modal.is-open {
    display: block;
}

.modal__overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1rem;
}

.modal__container {
    background-color: #fff;
    padding: 0;
    /* Remove default padding for split layout */
    width: 100%;
    max-width: 900px;
    height: auto;
    /* Fit to content */
    max-height: 90vh;
    /* Prevent overflow */
    border-radius: 12px;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
}



/* Footer */
footer {
    background: var(--color-primary);
    color: white;
    padding: 4rem 2rem 2rem;
}

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

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

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

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

.footer-section ul li a {
    color: var(--color-white);
    transition: all 0.3s ease;
}

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

.founders-image {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--color-white);
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.founders-image:hover {
    transform: scale(1.05);
}

.footer-section:first-child {
    text-align: center;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

@media (min-width: 768px) {
    .modal__container {
        display: grid;
        grid-template-columns: 45% 55%;
        /* Split 45/55 */
    }
}

.modal__image-column {
    position: relative;
    height: 30vh;
    /* Mobile height */
    overflow: hidden;
}

@media (min-width: 768px) {
    .modal__image-column {
        height: 100%;
        /* Full height on desktop */
        min-height: 400px;
        /* Ensure decent image size */
    }
}

.modal__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal__content-column {
    padding: 2rem;
    overflow-y: auto;
    position: relative;
    background: #fff;
    display: flex;
    flex-direction: column;
    text-align: left;
    /* Ensure text aligns left */
}

@media (min-width: 768px) {
    .modal__content-column {
        padding: 3rem;
    }
}

.modal__title {
    margin: 0 0 1.5rem 0;
    font-family: var(--font-header);
    font-size: 2.2rem;
    color: var(--color-primary);
    line-height: 1.2;
}

.modal__close {
    background: white;
    border: 0;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    color: #333;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 20;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, background 0.2s;
}

.modal__close:before {
    content: "\00d7";
    font-size: 1.5rem;
    line-height: 1;
}

.modal__close:hover {
    transform: rotate(90deg);
    background: #f5f5f5;
}

.modal__text {
    line-height: 1.7;
    color: #444;
    font-size: 1rem;
    text-align: left;
    /* Explicitly align left */
}

.modal__text p {
    margin-bottom: 1rem;
}

.modal__text ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    text-align: left;
    /* Ensure lists align left */
}

/* Contact Section */
#contact {
    padding: 6rem 1rem;
    background-color: var(--color-bg);
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-flyer {
    background: #fff;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    padding: 0;
    display: flex;
    flex-direction: column;
    transform: rotate(-1deg);
}

.flyer-body {
    padding: 3rem 2rem 4rem;
    text-align: center;
}

.flyer-body h2 {
    margin-bottom: 1rem;
    text-decoration: none;
}

.flyer-body p {
    font-family: var(--font-header);
    font-size: 1.2rem;
    color: #666;
}

.flyer-strips {
    display: flex;
    justify-content: space-around;
    border-top: 2px dashed #ddd;
    background: #fff;
}

.strip {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0.5rem;
    text-decoration: none;
    color: #333;
    border-left: 1.5px dashed #eee;
    transition: all 0.3s ease;
    transform-origin: top;
}

.strip:first-child {
    border-left: none;
}

.strip span {
    font-family: var(--font-header);
    font-size: 1.1rem;
    margin-top: 0.5rem;
    letter-spacing: 0.5px;
    text-align: center;
}

.strip svg {
    width: 24px;
    height: 24px;
    fill: #333;
    transition: transform 0.3s ease;
}

.strip:hover {
    background-color: #fdfdfd;
    transform: translateY(5px) rotate(2deg);
    color: var(--color-accent);
}

.strip:hover svg {
    transform: scale(1.2);
    fill: var(--color-accent);
}

/* Torn paper effect on mobile */
@media (max-width: 480px) {
    .contact-flyer {
        max-width: 100%;
    }

    .strip span {
        font-size: 1rem;
    }
}

/* Specific Colors - Removed for Tuscany Uniformity */
/* .contact-phone, .contact-whatsapp, .contact-email styles removed */

/* Information Section */
.information {
    padding: 4rem 1rem;
    background-color: var(--color-bg);
    display: flex;
    justify-content: center;
}

.checklist-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

.checklist-item {
    background: white;
    border-left: 5px solid var(--color-accent);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.checklist-item[open] {
    border-left-color: var(--color-accent);
}

.checklist-item summary {
    list-style: none;
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-header);
    font-size: 1.25rem;
    color: var(--color-accent);
    transition: background-color 0.2s, color 0.2s;
}

.checklist-item summary::-webkit-details-marker {
    display: none;
}

.checklist-item summary:hover {
    background-color: rgba(75, 182, 83, 0.05);
}

.checklist-item[open] summary {
    background-color: rgba(246, 137, 83, 0.05);
    color: var(--color-accent);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.checklist-item .icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    position: relative;
    flex-shrink: 0;
}

.checklist-item .icon::before,
.checklist-item .icon::after {
    content: '';
    position: absolute;
    background-color: currentColor;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}

.checklist-item .icon::before {
    width: 2px;
    height: 14px;
}

.checklist-item .icon::after {
    width: 14px;
    height: 2px;
}

.checklist-item[open] .icon::before {
    transform: translate(-50%, -50%) rotate(90deg);
}

.checklist-item[open] .icon::after {
    transform: translate(-50%, -50%) rotate(180deg);
}

.checklist-item .content {
    padding: 1.5rem;
    line-height: 1.6;
    color: #555;
    animation: fadeIn 0.3s ease-in-out;
}

.checklist-item .content p {
    margin-bottom: 1rem;
}

.checklist-item .content p:last-child {
    margin-bottom: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Media Queries */
@media (max-width: 768px) {


    h1 {
        font-size: 1.75rem;
    }

    /* Typography adjustments */
    h2 {
        font-size: 1.5rem;
        text-underline-offset: 8px;
    }

    h3 {
        font-size: 1.1rem;
    }

    /* Hero section */
    .hero {
        height: auto;
        min-height: 45dvh;
        padding: 3rem 1.5rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero_content {
        flex-direction: column;
        gap: 2rem;
        padding: 1rem;
    }

    .changing_text {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .changing_text h2 {
        color: var(--color-text) !important;
    }

    .logo {
        max-width: 16rem;
    }

    /* Polaroids section */
    .polaroids {
        padding: 2rem 1rem;
    }

    .polaroid {
        width: 250px;
    }

    .nav-button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    /* Section container */
    .section-container {
        padding: 2rem 1rem;
    }

    .section-container h2 {
        margin-bottom: 2rem;
    }

    /* Contact section */
    #contact {
        padding: 3rem 1rem;
    }

    .contact-container h2 {
        margin-bottom: 2rem;
    }

    .contact-item {
        width: 120px;
        height: 120px;
        font-size: 1rem;
    }

    .contact-item svg {
        width: 35px;
        height: 35px;
    }

    /* Footer */
    footer {
        padding: 3rem 1rem 2rem;
    }

    .footer-content {
        gap: 2rem;
        margin-bottom: 2rem;
    }

    /* Information section */
    .information {
        padding: 2rem 1rem;
    }

    .checklist-item summary {
        padding: 1rem;
        font-size: 1.1rem;
    }

    .checklist-item .content {
        padding: 1rem;
    }

    /* Modal adjustments */
    .modal__overlay {
        padding: 0.5rem;
    }

    .modal__content-column {
        padding: 1.5rem;
    }

    .modal__title {
        font-size: 1.8rem;
    }

    .modal__close {
        top: 0.5rem;
        right: 0.5rem;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {

    h1 {
        font-size: 1.5rem;
    }

    /* Further typography adjustments for small phones */
    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero h2 {
        font-size: 1.3rem;
    }

    /* Hero section */
    .hero {
        padding: 2.5rem 1rem;
    }

    .hero_content {
        gap: 1.5rem;
    }

    .logo {
        max-width: 12rem;
    }

    /* Polaroids */
    .polaroid {
        width: 200px;
    }

    .polaroid-container {
        gap: 1rem;
        padding: 1rem;
    }

    /* Contact items */
    .contact-grid {
        gap: 1rem;
    }

    .contact-item {
        width: 100px;
        height: 100px;
        font-size: 0.9rem;
    }

    .contact-item svg {
        width: 30px;
        height: 30px;
    }

    /* Section spacing */
    .section-container {
        padding: 1.5rem 0.75rem;
    }

    #contact {
        padding: 2rem 0.75rem;
    }

    footer {
        padding: 2rem 0.75rem 1.5rem;
    }

    .information {
        padding: 1.5rem 0.75rem;
    }

    /* Modal */
    .modal__title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .modal__text {
        font-size: 0.95rem;
    }
}