/* CSS Variables are now dynamically loaded from theme.css.php */
/* Only non-color variables remain here */
:root {
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Open Sans', sans-serif;
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --shadow: rgba(0, 0, 0, 0.1);
    --box-shadow: 0 4px 6px var(--shadow);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Override default container for custom sections if needed */
.custom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--warm-white) 0%, var(--light-cream) 100%);
    box-shadow: var(--box-shadow);
    z-index: 1000;
}

.navbar-brand h1 {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.tagline {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    margin: 0 0.5rem;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

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

.navbar-toggler {
    border: none;
    outline: none;
}

/* News Section Styling */
.featured-news {
    background: linear-gradient(135deg, var(--light-cream) 0%, var(--warm-white) 100%);
}

.news-image-container {
    overflow: hidden;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    height: 250px;
}

.news-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-featured-img:hover {
    transform: scale(1.05);
}

.featured-news .card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--warm-white);
}

.featured-news .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.featured-news .card-title {
    font-family: var(--font-primary);
    font-weight: 600;
}

.featured-news .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 500;
    transition: var(--transition);
}

.featured-news .btn-primary:hover {
    background-color: var(--dark-brown);
    border-color: var(--dark-brown);
    transform: translateY(-2px);
}

.featured-news .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 500;
    transition: var(--transition);
}

.featured-news .btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--light-cream) 0%, var(--warm-white) 50%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 80px; /* Account for fixed navbar */
    padding-bottom: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%23CD853F" opacity="0.3"/><circle cx="80" cy="40" r="1.5" fill="%23DAA520" opacity="0.4"/><circle cx="60" cy="80" r="1" fill="%238B4513" opacity="0.2"/><circle cx="40" cy="60" r="1.5" fill="%23D2B48C" opacity="0.3"/></svg>') repeat;
    animation: float 20s infinite linear;
    pointer-events: none;
    z-index: 1;
}

.hero .container-fluid,
.hero .row,
.hero .col-lg-6 {
    position: relative;
    z-index: 2;
}

.hero .row {
    min-height: auto;
    padding: 2rem 0;
}

/* Tagline Section */
.tagline-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--light-cream) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0 !important;
}

.tagline-section h3 {
    font-family: var(--font-primary);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.tagline-section .btn {
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.tagline-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px var(--shadow);
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-image-container {
    position: relative;
    z-index: 2;
    max-width: 100%;
    height: auto;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

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

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--dark-brown);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px var(--shadow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.hero-img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px var(--shadow);
}

.about-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition);
}

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

.hero-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: var(--box-shadow);
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: var(--warm-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about h2 {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.about p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

.features {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature p {
    color: var(--text-light);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.about-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(45deg, var(--accent-color), var(--gold-accent));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: var(--box-shadow);
}

/* Collections Section */
.collections {
    background: linear-gradient(135deg, var(--light-cream) 0%, var(--warm-white) 100%);
}

.section-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.collection-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.collection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow);
}

.collection-image {
    height: 200px;
    overflow: hidden;
}

.collection-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.collection-card:hover .collection-img {
    transform: scale(1.1);
}

.collection-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.collection-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    color: var(--primary-color);
    font-family: var(--font-primary);
    font-size: 1.3rem;
}

.collection-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Gallery Section */
.gallery {
    padding: 80px 0;
    background-color: var(--warm-white);
}

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

.gallery-item {
    aspect-ratio: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px var(--shadow);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay h6 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8),
                 1px 1px 2px rgba(0, 0, 0, 0.9),
                 0 0 8px rgba(0, 0, 0, 0.6);
}

.gallery-overlay small {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8),
                 0 0 6px rgba(0, 0, 0, 0.7);
}

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

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent-color), var(--gold-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    text-align: center;
    padding: 1rem;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-brown) 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta .btn-primary {
    background-color: var(--gold-accent);
    color: var(--dark-brown);
}

.cta .btn-primary:hover {
    background-color: white;
    transform: translateY(-2px);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: var(--light-cream);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: var(--font-primary);
}

.contact-item p {
    color: var(--text-light);
    line-height: 1.8;
}

.contact-item a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

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

.social-links a {
    display: inline-block;
    margin-right: 1rem;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--dark-brown);
    transform: translateY(-2px);
}

/* Contact Directions Styles */
.contact-directions {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-directions h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-family: var(--font-primary);
}

.directions-content p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

.visit-tips {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--light-cream);
    border-radius: var(--border-radius);
}

.visit-tips h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.visit-tips ul {
    margin: 0;
    padding-left: 1.5rem;
}

.visit-tips li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-family: var(--font-primary);
}

.footer-section p {
    color: #ccc;
    line-height: 1.8;
}

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

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

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #999;
}

/* Bootstrap Responsive Overrides */
@media (max-width: 768px) {
    .hero {
        padding-top: 60px;
    }

    .hero .row {
        padding: 1rem 0;
    }

    .hero-title {
        font-size: 2.5rem !important;
    }

    .hero-content {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .display-4 {
        font-size: 2rem !important;
    }

    .display-3 {
        font-size: 2.5rem !important;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .navbar-brand h1 {
        font-size: 1.5rem;
    }

    .tagline {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 60px;
    }

    .hero-title {
        font-size: 2rem !important;
    }

    .hero-subtitle {
        font-size: 1.2rem !important;
    }

    .display-4 {
        font-size: 1.8rem !important;
    }

    .display-3 {
        font-size: 2rem !important;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .hero-buttons .btn {
        width: 200px;
        text-align: center;
    }

    .navbar-brand h1 {
        font-size: 1.3rem;
    }
}

/* Smooth scrolling offset for fixed header */
section {
    scroll-margin-top: 80px;
}

/* Loading animation for placeholders */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

.hero-placeholder,
.about-placeholder,
.collection-placeholder,
.gallery-placeholder {
    animation: pulse 2s infinite;
}