/* ===================================
   Modern Art Website - Kathleen B. Bonnell
   Mobile-First Responsive Design
   =================================== */

/* Font Face */
@font-face {
    font-family: 'UniversLTW01-47LightCn';
    src: url('fonts/296c59c2-74b0-41c1-bcfd-23d22a713f86.eot?#iefix');
    src: url('fonts/296c59c2-74b0-41c1-bcfd-23d22a713f86.eot?#iefix') format('embedded-opentype'),
         url('fonts/609beecf-8d23-4a8c-bbf5-d22ee8db2fc9.woff') format('woff'),
         url('fonts/a6595b8d-d4a3-4f01-bf21-0b53617d4b1c.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

:root {
    /* Color Palette - Elegant Rose & Gold */
    --primary-color: #996666;
    --secondary-color: #d4af37;
    --accent-color: #e8b4b8;
    --text-dark: #ffffff;
    --text-light: #cccccc;
    --bg-light: #1a1a1a;
    --bg-white: #222222;
    --border-color: #444444;
    --success-color: #28a745;
    --error-color: #dc3545;
    
    /* Typography */
    --font-primary: 'UniversLTW01-47LightCn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-secondary: 'UniversLTW01-47LightCn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Transitions */
    --transition-speed: 0.3s;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed);
}

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

sup {
    font-size: 0.6em;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
    margin-bottom: var(--spacing-sm);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-link {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
}

.text-link:hover {
    color: var(--secondary-color);
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(34, 34, 34, 0.85);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    box-shadow: 
        0 2px 20px rgba(0, 0, 0, 0.3),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    padding: var(--spacing-sm) 0;
    overflow: visible;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-speed);
}

.navbar.scrolled {
    background: rgba(34, 34, 34, 0.95);
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.5),
        inset 0 -1px 0 rgba(255, 255, 255, 0.15);
}

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

.logo img {
    height: 50px;
    width: auto;
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #996666;
    transition: all var(--transition-speed);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--bg-white);
    list-style: none;
    padding: var(--spacing-xxl) var(--spacing-lg);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right var(--transition-speed);
    overflow-y: auto;
}

.nav-menu.active {
    right: 0;
}

.nav-menu li {
    margin-bottom: var(--spacing-md);
}

.nav-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-dark);
    display: block;
    padding: var(--spacing-xs);
    transition: color var(--transition-speed);
}

.nav-link:hover,
.nav-link.active {
    color: #996666;
}

.cart-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, var(--primary-color), #885555);
    color: var(--bg-white) !important;
    padding: 0.4rem 0.9rem !important;
    border-radius: 18px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(153, 102, 102, 0.3);
}

.cart-link:hover {
    background: linear-gradient(135deg, #885555, var(--primary-color));
    box-shadow: 0 3px 10px rgba(153, 102, 102, 0.5);
}

.cart-link::after {
    display: none !important;
}

.cart-link i {
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }

    .nav-menu {
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        padding: 0;
        box-shadow: none;
        display: flex;
        gap: var(--spacing-lg);
        flex-direction: row;
    }
    
    .nav-menu li {
        margin-bottom: 0;
    }

    .nav-link {
        font-size: 1rem;
        padding: var(--spacing-xs) 0;
        position: relative;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background-color: #996666;
        transition: width var(--transition-speed);
    }

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

/* Hero Section */
.hero {
    padding: var(--spacing-xl) 0;
    background: var(--bg-white);
    scroll-margin-top: 50px; /* Offset for sticky navbar */
}

.hero-content {
    display: grid;
    gap: var(--spacing-lg);
}

.hero-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-text h1 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.callout-box {
    background-color: #2a2a2a;
    border-left: 4px solid var(--accent-color);
    padding: var(--spacing-md);
    border-radius: 5px;
    margin-top: var(--spacing-lg);
}

.callout-box p {
    margin-bottom: var(--spacing-sm);
}

.callout-box p:last-child {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr 1.5fr;
        align-items: center;
    }
}

/* Section Header */
.section-header {
    padding: var(--spacing-xl) 0;
    text-align: center;
    scroll-margin-top: 50px; /* Offset for sticky navbar */
}

.section-header-img {
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
    border-radius: 10px;
}

.section-header h2 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.color-note {
    max-width: 800px;
    margin: 0 auto;
    font-style: italic;
    color: var(--text-light);
}

/* Product Sections */
.product-section {
    padding: var(--spacing-xxl) 0;
    scroll-margin-top: 50px; /* Offset for sticky navbar */
}

.product-section.alt-bg {
    background-color: var(--bg-light);
}

.product-layout {
    display: grid;
    gap: var(--spacing-xl);
    align-items: start;
}

@media (min-width: 768px) {
    .product-layout {
        grid-template-columns: 1fr 1fr;
    }

    .product-layout.reverse {
        direction: rtl;
    }

    .product-layout.reverse > * {
        direction: ltr;
    }
}

.product-image img {
    border-radius: 10px;
    border: 2px solid rgba(153, 102, 102, 0.3);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all var(--transition-speed);
}

.product-image img:hover {
    transform: scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(153, 102, 102, 0.3);
}

.product-info h2 {
    color: var(--secondary-color);
    margin-bottom: var(--spacing-sm);
}

.product-info h3 {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: var(--spacing-md);
}

/* Accordion Toggle Button */
.accordion-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-color);
    color: var(--bg-white);
    border: none;
    padding: var(--spacing-md);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    margin-top: var(--spacing-md);
    transition: all var(--transition-speed);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10;
}

.accordion-toggle:hover {
    background-color: #885555;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(153, 102, 102, 0.4);
}

.accordion-toggle:active {
    transform: translateY(0);
}

.accordion-title {
    flex: 1;
    text-align: left;
}

.accordion-icon {
    font-size: 1.5rem;
    font-weight: 700;
    transition: transform var(--transition-speed);
    min-width: 30px;
    text-align: center;
}

.accordion-toggle.active .accordion-icon {
    transform: rotate(45deg);
}

/* Product Options */
.product-options {
    margin-top: 0;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, margin-top 0.4s ease-out;
}

.accordion-content.active {
    max-height: 5000px;
    margin-top: var(--spacing-md);
    transition: max-height 0.6s ease-in, margin-top 0.4s ease-in;
}

.option-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    transition: all var(--transition-speed);
    display: grid;
    gap: var(--spacing-md);
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Options with images */
.option-item:has(img) {
    margin-bottom: var(--spacing-md);
}

@media (min-width: 576px) {
    .option-item:has(img) {
        grid-template-columns: 120px 1fr;
        align-items: start;
    }
    
    /* Compact layout for options without images */
    .option-item:not(:has(img)) {
        padding: var(--spacing-sm) var(--spacing-md);
    }
}

.product-section.alt-bg .option-item {
    background-color: var(--bg-white);
}

.option-item:hover {
    transform: translateY(-2px);
    border-color: rgba(153, 102, 102, 0.3);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(153, 102, 102, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.option-image {
    width: 100%;
    border-radius: 5px;
    border: 1.5px solid rgba(153, 102, 102, 0.25);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all var(--transition-speed);
}

.option-image:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.option-content {
    display: flex;
    flex-direction: column;
}

.option-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

/* More compact title for options without images */
.option-item:not(:has(img)) .option-title {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.option-details {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

/* Inline layout for compact options */
.option-item:not(:has(img)) .option-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--spacing-md);
    align-items: center;
}

@media (max-width: 575px) {
    .option-item:not(:has(img)) .option-content {
        grid-template-columns: 1fr;
    }
}

.option-item:not(:has(img)) .option-info-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    align-items: center;
}

.option-item:not(:has(img)) .option-details {
    margin-bottom: 0;
}

.option-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xs);
}

.option-number {
    font-family: monospace;
    color: var(--text-light);
    font-size: 0.9rem;
}

.option-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: var(--spacing-sm) 0;
}

/* Inline price for compact options */
.option-item:not(:has(img)) .option-price {
    margin: 0;
    font-size: 1.2rem;
}

.option-note {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-light);
}

.option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

/* Buttons aligned for compact options */
.option-item:not(:has(img)) .option-buttons {
    margin-top: 0;
    justify-content: flex-end;
}

@media (max-width: 575px) {
    .option-item:not(:has(img)) .option-buttons {
        justify-content: flex-start;
        margin-top: var(--spacing-sm);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all var(--transition-speed);
    text-decoration: none;
}

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

.btn-primary:hover {
    background-color: #885555;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(153, 102, 102, 0.5);
}

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

.btn-secondary:hover {
    background-color: #c49f2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.5);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* About Section */
.about-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--bg-light);
    scroll-margin-top: 50px; /* Offset for sticky navbar */
}

.about-layout {
    display: grid;
    gap: var(--spacing-xl);
    align-items: center;
}

@media (min-width: 768px) {
    .about-layout {
        grid-template-columns: 1fr 2fr;
    }
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text h2 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

/* Contact Section */
.contact-section {
    padding: var(--spacing-xxl) 0;
    scroll-margin-top: 50px; /* Offset for sticky navbar */
}

.contact-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.contact-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
}

.contact-layout {
    display: grid;
    gap: var(--spacing-xl);
}

@media (min-width: 768px) {
    .contact-layout {
        grid-template-columns: 1.5fr 1fr;
    }
}

.contact-info h3 {
    color: var(--secondary-color);
    margin-bottom: var(--spacing-md);
}

.contact-details {
    margin-bottom: var(--spacing-lg);
}

.contact-item {
    margin-bottom: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.contact-item strong {
    color: var(--text-dark);
}

.contact-item a {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: var(--spacing-md);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.3rem;
    color: var(--text-dark);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.social-link:hover::before {
    opacity: 1;
}

.social-link.facebook {
    color: #b19cd9;
    border-color: #b19cd9;
}

.social-link.facebook:hover {
    background: linear-gradient(135deg, #b19cd9, #9370db);
    color: var(--bg-white);
    border-color: #b19cd9;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(177, 156, 217, 0.5);
}

.social-link.linkedin {
    color: #b19cd9;
    border-color: #b19cd9;
}

.social-link.linkedin:hover {
    background: linear-gradient(135deg, #b19cd9, #9370db);
    color: var(--bg-white);
    border-color: #b19cd9;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(177, 156, 217, 0.5);
}

.social-link i {
    position: relative;
    z-index: 1;
}

/* Contact Form */
.contact-form {
    background-color: var(--bg-light);
    padding: var(--spacing-lg);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--font-secondary);
    background-color: #2a2a2a;
    color: var(--text-dark);
    transition: border-color var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.form-message {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    border-radius: 5px;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Footer */
.footer {
    background-color: #111111;
    color: var(--text-light);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.footer-content p {
    margin-bottom: var(--spacing-sm);
}

.footer .text-link {
    color: var(--accent-color);
}

.footer .text-link:hover {
    color: var(--secondary-color);
}

.special-note {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-md);
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: var(--accent-color);
    background: rgba(34, 34, 34, 0.8);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10001;
    padding: 0;
    width: 60px;
    height: 60px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close:hover {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    background: rgba(34, 34, 34, 0.95);
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

/* PayPal Forms (Hidden) */
#paypalForms {
    display: none;
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--bg-light);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Images */
@media (max-width: 767px) {
    .section-header-img {
        max-width: 100%;
    }
}

/* Modern: Scroll-triggered fade-in animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Smooth Animations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .fade-in {
        opacity: 1;
        transform: none;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .mobile-menu-toggle,
    .option-buttons,
    .footer,
    .lightbox {
        display: none !important;
    }
    
    body {
        background-color: white;
    }
    
    .product-section,
    .about-section,
    .contact-section {
        page-break-inside: avoid;
    }
}
