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

:root {
    /* Brand Palette */
    --emerald-portal: #2e6d5a;
    --golden-ochre: #d9a441;
    --black: #000000;
    --midnight-conversation: #343a3f;
    --soft-sage: #a9cbb7;
    --warm-cream: #f5f0eb;

    /* Legacy variables mapped to brand palette */
    --primary-color: #2e6d5a;
    --primary-dark: #1f4a3d;
    --primary-light: #a9cbb7;
    --secondary-color: #2c2c2c;
    --accent-color: #d9a441;
    --accent-hover: #c49437;
    --text-color: #000000;
    --text-light: #595959; /* WCAG AAA compliant - 7.15:1 contrast on white */
    --bg-color: #ffffff;
    --bg-light: #fafbfc;
    --bg-cream: #f5f0eb;
    --border-color: #e1e8ed;
    --shadow-subtle: 0 1px 3px rgba(46, 109, 90, 0.08);
    --shadow: 0 4px 12px rgba(46, 109, 90, 0.12);
    --shadow-hover: 0 8px 24px rgba(46, 109, 90, 0.18);
    --shadow-elevated: 0 12px 32px rgba(46, 109, 90, 0.22);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-quick: all 0.2s ease;
}

body {
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Times New Roman', Times, serif;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--midnight-conversation);
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3rem;
    font-weight: 600;
}
h2 {
    font-size: 2.5rem;
    font-weight: 500;
}
h3 {
    font-size: 1.75rem;
    font-weight: 500;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover, a:focus {
    color: var(--accent-hover);
    text-decoration: none;
}

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

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

/* Header Navigation */
.header {
    background-color: #faf8f5;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    margin-bottom: 0;
    padding: 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-image {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-quick);
}

.logo-link:hover .logo-image {
    opacity: 0.8;
}

.logo-text {
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
    font-size: 1rem;
    color: var(--primary-color);
    display: none;
}

.nav-menu {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-left: auto;
    flex-wrap: wrap;
}

.nav-link {
    font-family: 'Times New Roman', Times, serif;
    font-weight: 500;
    color: var(--midnight-conversation);
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition-quick);
    display: none;
}

.nav-link:hover {
    color: var(--emerald-portal);
}

.btn-subscribe,
.btn-follow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    padding: 0.625rem 1rem;
    border-radius: 1px;
    transition: var(--transition-smooth);
    font-family: 'Times New Roman', Times, serif;
    font-weight: 500;
    font-size: 0.875rem;
    flex-shrink: 0;
    text-decoration: none;
}

.btn-subscribe {
    background-color: var(--emerald-portal);
    color: var(--bg-color);
    border: none;
    box-shadow: var(--shadow-subtle);
}

.btn-subscribe:hover {
    background-color: var(--primary-dark);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    color: var(--bg-color);
}

.btn-follow {
    background-color: transparent;
    color: var(--golden-ochre);
    border: 1px solid var(--golden-ochre);
}

.btn-follow:hover {
    background-color: var(--golden-ochre);
    color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.btn-text {
    display: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-cream) 100%);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-light) 50%, transparent 100%);
}

.hero h1 {
    color: var(--emerald-portal);
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.hero h2 {
    color: var(--midnight-conversation);
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--text-color);
    font-family: 'Times New Roman', Times, serif;
    font-style: italic;
}

.hero-description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--black);
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

/* Catalog Section */
.catalog {
    padding: 6rem 0;
    background-color: #000000;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.75rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    position: relative;
    padding-bottom: 1.5rem;
}

.catalog .section-title {
    color: var(--bg-color);
}

.catalog .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
}

.about .section-title {
    color: var(--emerald-portal);
}

.about .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

.artwork-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.artwork-card {
    background: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
}

.artwork-card:hover, .artwork-card:focus-within {
    transform: translateY(-8px);
    box-shadow: var(--shadow-elevated);
    border-color: var(--primary-light);
}

.artwork-image-container {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background-color: var(--bg-light);
    overflow: hidden;
}

.artwork-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

/* Price Tooltip */
.price-tooltip {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--golden-ochre);
    color: var(--bg-color);
    padding: 0.5rem 1rem;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 3px;
    z-index: 10;
    font-family: 'Quicksand', sans-serif;
    box-shadow: var(--shadow);
}

/* SOLD Badge */
.sold-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--bg-color);
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    border-radius: 3px;
    box-shadow: var(--shadow-elevated);
    z-index: 10;
    transform: rotate(-5deg);
    border: 1px solid var(--bg-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.artwork-info {
    padding: 2rem;
}

.artwork-title {
    font-size: 1.5rem;
    color: var(--emerald-portal);
    margin-bottom: 0.75rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.artwork-description {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-weight: 400;
}

.artwork-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.artwork-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: var(--bg-color);
    font-weight: 600;
    border-radius: 3px;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    font-family: 'Times New Roman', Times, serif;
    box-shadow: var(--shadow-subtle);
    letter-spacing: 0.02em;
}

.btn:hover, .btn:focus {
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-color) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--bg-color);
}

/* Primary Button - Emerald Portal */
.btn-primary {
    background: var(--emerald-portal);
    color: var(--bg-color);
}

.btn-primary:hover, .btn-primary:focus {
    background: var(--primary-dark);
    color: var(--bg-color);
}

/* Secondary Button - Outline style */
.btn-secondary {
    background: transparent;
    border: 1px solid var(--golden-ochre);
    color: var(--golden-ochre);
    border-radius: 1px;
}

.btn-secondary:hover, .btn-secondary:focus {
    background: var(--golden-ochre);
    color: var(--bg-color);
}

/* Outline Button - Emerald Portal outline */
.btn-outline {
    background: transparent;
    border: 1px solid var(--emerald-portal);
    color: var(--emerald-portal);
    padding: 0.75rem 1.5rem;
}

.btn-outline:hover, .btn-outline:focus {
    background: var(--emerald-portal);
    color: var(--bg-color);
}

.qr-code-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.qr-code {
    border: 1px solid var(--primary-light);
    padding: 0.75rem;
    border-radius: 3px;
    background: var(--bg-color);
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-smooth);
}

.qr-code:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.qr-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* About Section */
.about {
    padding: 6rem 0;
    background-color: var(--warm-cream);
    position: relative;
}

.about-content {
    max-width: 900px;
    margin: 0 auto 4rem;
    text-align: center;
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

/* Ambassador Card */
.ambassador-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-color);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-elevated);
    border: 1px solid var(--border-color);
    text-align: center;
}

.ambassador-card h3 {
    color: var(--midnight-conversation);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.ambassador-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-family: 'Times New Roman', Times, serif;
    font-style: italic;
}

.ambassador-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 0;
}

/* Sticky Coupon Banner */
.coupon-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--emerald-portal) 0%, var(--primary-dark) 100%);
    padding: 1rem 1.5rem;
    border-radius: 3px;
    box-shadow: var(--shadow-elevated);
    border: 1px solid var(--golden-ochre);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 320px;
    animation: slideIn 0.4s ease-out;
}

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

.coupon-banner.hidden { display: none; }

.coupon-banner-content { flex: 1; }

.coupon-banner-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--soft-sage);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.coupon-banner-code {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.coupon-banner-code span {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--golden-ochre);
    font-family: 'Times New Roman', Times, serif;
    letter-spacing: 0.05em;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    padding: 0.35rem 0.6rem;
    border-radius: 3px;
    cursor: pointer;
    color: var(--bg-color);
    font-size: 0.75rem;
    font-weight: 600;
    transition: var(--transition-quick);
    font-family: 'Quicksand', sans-serif;
}

.copy-btn:hover { background: rgba(255, 255, 255, 0.25); }
.copy-btn.copied { background: var(--golden-ochre); color: var(--emerald-portal); }

.coupon-banner-discount {
    font-size: 0.75rem;
    color: var(--bg-color);
    margin-top: 0.25rem;
}

.close-coupon {
    background: transparent;
    border: none;
    color: var(--soft-sage);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1.25rem;
    line-height: 1;
    transition: var(--transition-quick);
}

.close-coupon:hover { color: var(--bg-color); }

/* Who Collects Art Section */
.collectors {
    padding: 6rem 0;
    background: var(--bg-color);
}

.collectors .section-title {
    color: var(--emerald-portal);
}

.collectors .section-title::after {
    background: var(--golden-ochre);
}

.collectors-intro {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--black);
}

.collector-profiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.collector-card {
    background: var(--warm-cream);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.collector-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.collector-icon {
    width: 48px;
    height: 48px;
    background: var(--emerald-portal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.collector-icon svg {
    width: 24px;
    height: 24px;
    color: var(--bg-color);
}

.collector-card h3 {
    font-size: 1.35rem;
    color: var(--midnight-conversation);
    margin-bottom: 0.75rem;
}

.collector-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.collectors-cta {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.collectors-cta p {
    color: var(--black);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Newsletter Section */
.newsletter {
    background: var(--warm-cream);
    padding: 5rem 0;
    text-align: center;
}

.newsletter h2 {
    color: var(--midnight-conversation);
    margin-bottom: 1rem;
}

.newsletter-description {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.newsletter-btn {
    font-size: 1rem;
    padding: 1rem 2.5rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--bg-color);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.footer-info h3 {
    color: var(--bg-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-info p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.contact-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 3px;
    margin-top: 1rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.contact-info p {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.contact-info a {
    color: var(--accent-color);
    font-weight: 500;
}

.contact-info a:hover {
    color: var(--accent-hover);
}

.footer-cta {
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    padding: 2rem;
    border-radius: 3px;
}

.footer-cta h3 {
    color: var(--bg-color);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.footer-cta p {
    margin-bottom: 1.5rem;
    color: var(--primary-light);
}

.footer-cta .btn {
    background: var(--accent-color);
    color: var(--bg-color);
}

.footer-cta .btn:hover {
    background: var(--accent-hover);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 2rem;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: var(--primary-light);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Responsive Design */
@media (min-width: 640px) {
    .logo-text {
        display: inline-block;
    }

    .nav-link {
        display: inline-block;
    }

    .btn-text {
        display: inline;
    }

    .btn-subscribe,
    .btn-follow {
        padding: 0.625rem 1rem;
    }
}

@media (min-width: 768px) {
    .nav-wrapper {
        padding: 1rem 0;
    }

    .logo-image {
        height: 48px;
    }

    .nav-menu {
        gap: 1rem;
    }
}

@media (min-width: 1024px) {
    .nav-wrapper {
        padding: 1.5rem 0;
    }

    .nav-menu {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

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

    .artwork-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .ambassador-card {
        padding: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .artwork-grid {
        grid-template-columns: 1fr;
    }

    .artwork-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        text-align: center;
    }

    .logo-image {
        height: 32px;
    }

    .nav-menu {
        gap: 0.5rem;
    }
}

/* Accessibility - WCAG AAA Compliance */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Skip Link for Keyboard Navigation */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--emerald-portal);
    color: var(--bg-color);
    padding: 1rem 2rem;
    z-index: 9999;
    border-radius: 3px;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 10px;
}

/* Focus styles for keyboard navigation - WCAG AAA requires visible focus */
a:focus-visible,
button:focus-visible,
.artwork-card:focus-within,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--emerald-portal);
    outline-offset: 3px;
}

/* High contrast focus for buttons */
.btn:focus-visible {
    outline: 3px solid var(--black);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(46, 109, 90, 0.3);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .coupon-banner {
        animation: none;
    }
}

/* Print styles */
@media print {
    .nav, .footer {
        display: none;
    }

    .artwork-card {
        break-inside: avoid;
    }
}

.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: var(--text-light);
}

