/* Base styles */
:root {
    --white: #ffffff;
    --off-white: #f8f8f8;
    --dark-gray: #333333;
    --medium-gray: #666666;
    --light-gray: #eeeeee;
    --dark-gold: #b8860b;
    --gold-highlight: #d4af37;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--white);
    color: var(--dark-gray);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
}

a {
    text-decoration: none;
    color: var(--dark-gray);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--dark-gold);
}

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

/* Header styles */
header {
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
}

.transparent-header {
    background-color: transparent;
    box-shadow: none;
}

/* Header styles for transparent state */
header.transparent-header {
    background-color: transparent;
    box-shadow: none;
}

/* Navigation links - consistent weight and color in both states */
.desktop-nav ul li a {
    color: var(--dark-gray);
    font-weight: 400; /* Consistent font weight for all states */
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

/* Explicitly set text for transparent header navigation links */
header.transparent-header .desktop-nav ul li a {
    color: var(--dark-gray); /* Keep consistent with solid header */
    font-weight: 400; /* Match the weight of solid header links */
    text-shadow: 0px 0px 3px rgba(255, 255, 255, 0.7); /* Enhance readability */
}

/* Icons styling */
.desktop-nav a i {
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.desktop-nav a:hover i {
    color: var(--dark-gold);
}

/* Same for social media icons */
header.transparent-header .desktop-nav ul li a i {
    color: var(--dark-gray);
    text-shadow: 0px 0px 3px rgba(255, 255, 255, 0.7);
}

/* Active link state */
.desktop-nav a.active {
    color: var(--dark-gold);
    font-weight: 400; /* Keep consistent with other links */
}

/* Mobile menu hamburger lines */
.mobile-menu-toggle span {
    background-color: var(--dark-gray);
}

header.transparent-header .mobile-menu-toggle span {
    background-color: var(--dark-gray);
    box-shadow: 0px 0px 3px rgba(255, 255, 255, 0.7);
}

.solid-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
}

.signature {
    max-width: 220px;
    height: auto;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-nav {
    width: 100%;
    background-color: var(--white);
    padding: 1rem 0;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 100px 20px 40px;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-icons {
    display: flex;
    justify-content: center;
    gap: 50px;
    padding-top: 20px;
    border-top: 1px solid var(--text-color);
}

.mobile-nav-icons a {
    color: var(--text-color);
    font-size: 32px !important;
    transition: color 0.3s ease;
}

.mobile-nav-icons a:hover {
    color: var(--accent-color);
}

/* Main content styles */
main {
    min-height: calc(100vh - 200px);
}

/* Add padding top for pages with solid header */
.content-padding-top {
    padding-top: 120px;
}

/* Hero section */
.hero-section {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hero-image {
    height: 100%;
    width: 100%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Intro section */
.intro-section {
    padding: 6rem 5%;
    text-align: center;
    background-color: var(--white);
}

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

.intro-section h2 {
    font-size: 2.5rem;
    color: var(--dark-gold);
    margin-bottom: 1rem;
}

/* Urbanist heading */
.urbanist-heading {
    font-family: 'Urbanist', sans-serif;
    font-weight: 500;
    letter-spacing: 3px;
}

.intro-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    background-color: var(--dark-gold);
    color: var(--white);
    padding: 0.8rem 2rem;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--gold-highlight);
    color: var(--white);
}

.cta-button.secondary {
    background-color: transparent;
    border: 1px solid var(--dark-gold);
    color: var(--dark-gold);
}

.cta-button.secondary:hover {
    background-color: var(--dark-gold);
    color: var(--white);
}

/* Gallery styles */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-item-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-title {
    opacity: 1;
}

.category-title {
    text-align: center;
    margin: 2rem 0;
    color: var(--dark-gold);
    font-size: 2rem;
    letter-spacing: 2px;
}

/* Main heading styles - apply to all h1 elements with artwork-title class */
.artwork-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 400 !important; /* Using !important to override any local settings */
    color: #333;
    margin: 0 0 1.5rem 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Fix for any specific overrides that might be happening on artist-circle page */
.artist-right-column .artwork-title {
    font-weight: 400 !important;
    /* Ensure these match the standard values */
    font-size: 2.5rem;
    letter-spacing: 2px;
}

/* Artwork category section */
.artwork-categories {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.category-button {
    background: var(--white);
    border: 1px solid var(--light-gray);
    padding: 0.5rem 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-button:hover,
.category-button.active {
    background: var(--dark-gold);
    color: var(--white);
    border-color: var(--dark-gold);
}

/* About/Artist page */
.bio-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.bio-image {
    width: 100%;
}

.bio-content h2 {
    color: var(--dark-gold);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.bio-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Commissions page */
.commission-process {
    max-width: 900px;
    margin: 0 auto;
}

.process-step {
    margin-bottom: 3rem;
}

.process-step h3 {
    color: var(--dark-gold);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.commission-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Contact form */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info h2 {
    color: var(--dark-gold);
    margin-bottom: 1.5rem;
}

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

.contact-form {
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--light-gray);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

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

.form-submit {
    background-color: var(--dark-gold);
    color: var(--white);
    border: none;
    padding: 0.8rem 2rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-submit:hover {
    background-color: var(--gold-highlight);
}

/* Footer styles */
footer {
    background-color: var(--white);
    padding: 2rem 5%;
    text-align: center;
    font-size: 0.9rem;
    color: var(--medium-gray);
    position: relative;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 1px;
    background-color: var(--dark-gold);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-nav {
    margin-bottom: 1rem;
}

.footer-nav a {
    margin: 0 1.5rem;
    font-size: 0.8rem;
    color: var(--medium-gray);
}

.footer-nav a:hover {
    color: var(--dark-gold);
}

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

.lightbox.active {
    display: flex;
}

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

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Media Queries */
@media (max-width: 992px) {
    .bio-container {
        grid-template-columns: 1fr;
    }
    
    .bio-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .intro-section h2 {
        font-size: 2rem;
    }
    
    .intro-section p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 5%;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        top: 1.5rem;
        right: 5%;
        z-index: 1001;
    }
    
    .mobile-nav {
        width: 100%;
        background-color: var(--white);
        padding: 1rem 0;
        text-align: center;
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .mobile-nav.active {
        display: block;
    }
    
    .mobile-nav ul {
        list-style: none;
    }
    
    .mobile-nav li {
        margin-bottom: 1rem;
    }
    
    .mobile-nav a {
        font-size: 1rem;
        letter-spacing: 1px;
        color: var(--dark-gray) !important;
        font-weight: 400; /* Consistent font weight */
    }
    
    .artwork-categories {
        flex-direction: column;
        align-items: center;
    }
    
    .category-button {
        width: 100%;
        max-width: 300px;
    }
    
    .intro-section {
        padding: 4rem 5%;
    }
}

@media (max-width: 480px) {
    .gallery-container {
        grid-template-columns: 1fr;
    }
    
    .signature {
        max-width: 180px;
    }
    
    .solid-header {
        padding: 0.8rem 5%;
    }
    
    .mobile-menu-toggle {
        top: 1.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-button {
        width: 100%;
    }
    
    .intro-section h2 {
        font-size: 1.8rem;
    }
    
    .intro-section p {
        font-size: 1rem;
    }
}

/* Series Showcase Section Styles */
.series-showcase {
    max-width: 1200px;
    margin: 0 auto 5rem;
    padding: 0 5%;
}

.series-container {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin: 4rem 0;
}

.series-image {
    flex: 0.8;
    max-width: 40%;
    display: flex;
    justify-content: center;
}

.series-image img {
    width: 337.5px; /* 3:4 ratio where height is 450px (337.5 x 450) */
    height: 450px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.series-image img:hover {
    transform: scale(1.02);
}

.series-content {
    flex: 1.2;
}

.series-title {
    color: var(--dark-gold);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.series-title:hover {
    color: var(--gold-highlight);
}

.series-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.series-link {
    display: inline-block;
    color: var(--dark-gold);
    font-weight: 500;
    border-bottom: 1px solid transparent;
    padding-bottom: 3px;
    transition: all 0.3s ease;
}

.series-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.series-link:hover {
    border-bottom: 1px solid var(--dark-gold);
}

.series-link:hover i {
    transform: translateX(5px);
}

/* Image positioning variants */
.image-left {
    flex-direction: row;
}

.image-right {
    flex-direction: row-reverse;
}

/* Series divider */
.series-divider {
    width: 60%;
    height: 1px;
    background-color: var(--dark-gray);
    margin: 4rem auto;
    opacity: 0.3;
}

/* Responsive design for series sections */
@media (max-width: 992px) {
    .series-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .image-left, .image-right {
        flex-direction: column;
    }
    
    .series-image {
        max-width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .series-image img {
        /* Maintain 3:4 ratio */
        width: 337.5px;
        height: 450px;
    }
    
    .series-title {
        font-size: 1.8rem;
    }
}

/* Desktop Dropdown Styles - FIXED VERSION */

/* Reset the dropdown positioning */
.desktop-nav .dropdown {
    position: relative;
    display: inline-block;
}

/* Make sure dropdown menu is hidden by default */
.desktop-nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    max-width: 250px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
    z-index: 1000;
    padding: 10px 0;
    border-radius: 3px;
    border-top: 2px solid var(--dark-gold);
    /* Ensure display is block for vertical arrangement */
    display: block;
}

/* Only show dropdown on hover */
.desktop-nav .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Force the dropdown list items to stack vertically */
.desktop-nav .dropdown-menu li {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Style the dropdown menu links */
.desktop-nav .dropdown-menu a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 20px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    color: var(--dark-gray);
    font-weight: 400;
    text-align: left;
    white-space: nowrap;
}

.desktop-nav .dropdown-menu a:hover {
    background-color: rgba(184, 134, 11, 0.05);
    color: var(--dark-gold);
    padding-left: 25px;
}

/* Active state for submenu items */
.desktop-nav .dropdown-menu a.active {
    color: var(--dark-gold);
    background-color: rgba(184, 134, 11, 0.05);
}

/* Ensure dropdown ul has correct display */
.desktop-nav .dropdown-menu ul {
    display: block;
    width: 100%;
}

/* Mobile Submenu Styles */
.mobile-nav .mobile-submenu {
    padding: 0;
    margin: 0 0 15px 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-nav .mobile-submenu.active {
    max-height: 500px;
}

.mobile-nav .mobile-submenu ul {
    padding: 0 0 0 20px;
    margin: 0;
}

.mobile-nav .mobile-submenu li {
    margin-bottom: 8px;
}

.mobile-nav .mobile-submenu a {
    font-size: 0.9rem;
    color: var(--medium-gray);
    padding: 5px 0;
}

.mobile-nav .mobile-submenu a:hover,
.mobile-nav .mobile-submenu a.active {
    color: var(--dark-gold);
}

/* Transparent header adjustments for dropdown */
header.transparent-header .desktop-nav .dropdown-menu {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
}

/* Additional responsive adjustments for mobile menu with submenu */
@media (max-width: 768px) {
    .mobile-nav {
        padding-top: 80px;
    }
}