/* Root Variables */
:root {
    --purple-dark: #4B2D73;
    --purple-medium: #5A3985;
    --purple-light: #785096;
    --purple-accent: #6B4485;
    --cream: #F5E6D3;
    --tan: #D4A574;
    --dark-purple: #2D1B4E;
    --white: #ffffff;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-purple);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../images/IMG_3501.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

/* Fallback gradient background if image isn't loaded */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple-light) 100%);
    z-index: 0;
}

/* Purple gradient overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(75, 45, 115, 0.85) 0%,
        rgba(90, 57, 133, 0.75) 50%,
        rgba(120, 80, 150, 0.85) 100%
    );
    z-index: 1;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

/* Logo Container */
.logo-container {
    margin-bottom: 2rem;
    animation: fadeIn 1.5s ease-out;
}

.owl-logo {
    width: 250px;
    height: 250px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite;
}

/* Business Name */
.business-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    color: var(--cream);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

/* Tagline */
.tagline {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--cream);
    font-weight: 300;
    margin-bottom: 3rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

/* CTA Button */
.cta-button {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, var(--tan) 0%, #C89B6A 100%);
    color: var(--dark-purple);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #E5BC8E 0%, var(--tan) 100%);
}

.cta-button:active {
    transform: translateY(-2px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(45, 27, 78, 0.9);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background: linear-gradient(135deg, var(--cream) 0%, #FFFAF2 100%);
    padding: 2.5rem;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: slideIn 0.4s ease-out;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--purple-dark);
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: var(--purple-light);
    color: var(--white);
    transform: rotate(90deg);
}

/* Modal Header */
.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--purple-dark);
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: var(--purple-medium);
    font-size: 1.1rem;
    font-style: italic;
}

/* Contact Info */
.contact-info {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--purple-dark);
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item .icon {
    width: 24px;
    height: 24px;
    margin-right: 1rem;
    color: var(--purple-medium);
    flex-shrink: 0;
}

.contact-item a {
    color: var(--purple-dark);
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-word;
}

.contact-item a:hover {
    color: var(--purple-light);
}

/* Order Form */
.order-form {
    margin-top: 1.5rem;
}

/* Form Sections */
.form-section {
    margin-bottom: 2.5rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--purple-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--purple-light);
}

/* Form Rows for Two-Column Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row .form-group-small {
    grid-column: span 1;
}

/* Form Groups */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--purple-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid #E0D4E8;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    background: var(--white);
    color: var(--dark-purple);
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9B8AA8;
    opacity: 1;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--purple-dark);
    box-shadow: 0 0 0 4px rgba(75, 45, 115, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Mailing List Checkbox */
.checkbox-group {
    margin-bottom: 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #F8F3FF 0%, #F0E8FF 100%);
    border: 2px solid var(--purple-light);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    background: linear-gradient(135deg, #F0E8FF 0%, #E8DCFF 100%);
    border-color: var(--purple-dark);
}

.mailing-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--purple-dark);
    flex-shrink: 0;
}

.checkbox-text {
    color: var(--purple-dark);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}

/* Bread Grid Layout */
.bread-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.bread-card {
    background: var(--white);
    border: 2px solid #E0D4E8;
    border-radius: 12px;
    padding: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.bread-card:hover {
    border-color: var(--purple-light);
    box-shadow: 0 4px 12px rgba(75, 45, 115, 0.12);
    transform: translateY(-2px);
}

.bread-image-container {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: linear-gradient(135deg, #F5E6D3 0%, #E8D5C4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.bread-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Fallback for missing images */
.bread-image-container::after {
    content: '🍞';
    position: absolute;
    font-size: 3rem;
    opacity: 0.3;
    pointer-events: none;
}

.bread-image-container img[src] {
    position: relative;
    z-index: 1;
}

.bread-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 1rem 1rem 0 1rem;
}

.bread-checkbox {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: var(--purple-dark);
}

.bread-name {
    flex: 1;
    font-weight: 600;
    color: var(--purple-dark);
    cursor: pointer;
    margin: 0;
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.bread-price {
    font-size: 1.1rem;
    color: var(--tan);
    font-weight: 700;
}

.bread-card-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem 1rem 1rem;
    border-top: 1px solid #F0EBF4;
    margin: 0 1rem;
}

.qty-label {
    font-size: 0.875rem;
    color: var(--purple-medium);
    font-weight: 500;
}

.bread-quantity {
    width: 70px;
    padding: 0.5rem;
    border: 2px solid #E0D4E8;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    text-align: center;
    background: var(--white);
    color: var(--dark-purple);
    transition: all 0.3s ease;
    font-weight: 600;
}

.bread-quantity:enabled {
    background: var(--cream);
    border-color: var(--purple-dark);
}

.bread-quantity:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #F8F6FA;
}

.bread-quantity:focus {
    outline: none;
    border-color: var(--purple-dark);
    box-shadow: 0 0 0 3px rgba(75, 45, 115, 0.1);
}

/* Order Info Notice */
.order-info-notice {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #FFF9E6 0%, #FFF3D6 100%);
    border-left: 4px solid #D4A574;
    border-radius: 8px;
    animation: slideDown 0.3s ease-out;
}

.info-icon {
    width: 24px;
    height: 24px;
    color: #B8860B;
    flex-shrink: 0;
    margin-top: 2px;
}

.order-info-notice p {
    margin: 0;
    color: #5D4E37;
    font-size: 0.95rem;
    line-height: 1.5;
}

.order-info-notice strong {
    color: #4A3C2A;
    font-weight: 600;
}

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

/* Order Summary / Cart */
.order-summary {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #F8F6FA 0%, #F0EBF4 100%);
    border: 2px solid var(--purple-light);
    border-radius: 12px;
    animation: slideDown 0.3s ease-out;
}

.summary-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--purple-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.summary-items {
    margin-bottom: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #E0D4E8;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item-name {
    font-weight: 500;
    color: var(--purple-dark);
}

.summary-item-qty {
    color: var(--purple-medium);
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.summary-item-price {
    font-weight: 600;
    color: var(--tan);
}

.summary-totals {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--purple-dark);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 1rem;
    color: var(--purple-dark);
}

.summary-total {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--purple-dark);
    margin-top: 0.5rem;
}

.summary-total span {
    color: var(--purple-dark);
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple-light) 100%);
    color: var(--cream);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(75, 45, 115, 0.4);
}

.submit-btn:active {
    transform: translateY(-1px);
}

/* Modal Footer */
.modal-footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--purple-medium);
    font-style: italic;
    font-size: 0.95rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        padding: 1rem;
    }

    .owl-logo {
        width: 200px;
        height: 200px;
    }

    .business-name {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }

    .cta-button {
        font-size: 1.2rem;
        padding: 1rem 2rem;
    }

    .modal-content {
        padding: 2rem 1.5rem;
        width: 95%;
    }

    .modal-header h2 {
        font-size: 2rem;
    }

    .close-btn {
        top: 0.5rem;
        right: 0.5rem;
    }

    /* Form responsive adjustments */
    .form-row {
        grid-template-columns: 1fr;
    }

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

    .section-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .owl-logo {
        width: 150px;
        height: 150px;
    }

    .business-name {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .tagline {
        font-size: 1rem;
    }

    .cta-button {
        font-size: 1rem;
        padding: 0.9rem 1.8rem;
    }

    .modal-content {
        padding: 1.5rem 1rem;
    }

    .modal-header h2 {
        font-size: 1.7rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.7rem;
        font-size: 0.95rem;
    }
}

/* Scrollbar Styling */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: var(--cream);
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--purple-light);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--purple-dark);
}
