/*
Theme Name: Heirloom Collective
Theme URI: https://example.com/heirloom
Author: Matt Lindley
Author URI: https://example.com
Description: A custom WordPress theme for luxury event design.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: heirloom
*/

:root {
    --primary: #B49667;
    --background-light: #FDF9F9;
    --background-dark: #1A1616;
    --blush: #E8CFCF;
    --sage: #96A388;
}

body {
    font-family: 'Lora', serif;
    background-color: var(--background-light);
    color: #333;
    line-height: 1.6;
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-malibu {
    font-family: 'Playfair Display', serif;
}

.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-outline {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid white;
    color: white;
    text-decoration: none;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.4);
}

.section {
    padding: 6rem 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: #444;
    margin-bottom: 2rem;
}

.divider {
    width: 3rem;
    height: 1px;
    background: var(--primary);
    margin: 0 auto 2rem;
}

.aesthetic-text {
    font-size: 1.5rem;
    font-style: italic;
    color: #555;
    margin-bottom: 3rem;
}

.gold-border {
    border: 1px solid var(--primary);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: rgba(232, 207, 207, 0.2);
}

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

    .hero h1 {
        font-size: 2.5rem;
    }
}

.p-24 {
    padding: 6rem;
}

.p-12 {
    padding: 3rem;
}

.text-sage {
    color: var(--sage);
}

.text-primary {
    color: var(--primary);
}

.bg-blush {
    background-color: var(--blush);
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(253, 249, 249, 0.9);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid rgba(180, 150, 103, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    color: var(--primary);
    text-decoration: none;
}

.flex-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.flex-menu a {
    color: #444;
    text-decoration: none;
    transition: color 0.3s;
}

.flex-menu a:hover {
    color: var(--primary);
}

.nav-mobile-toggle {
    display: none;
    color: var(--primary);
}

.site-footer {
    background: #f9f9f9;
    border-top: 1px solid rgba(180, 150, 103, 0.1);
    padding: 5rem 1.5rem 2.5rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto 5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.footer-col h4,
.footer-col h5 {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.footer-col p,
.footer-col ul {
    font-size: 0.85rem;
    color: #666;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.65rem;
    color: #999;
}

.social-links a {
    margin-left: 1.5rem;
    color: #999;
    text-decoration: none;
    text-transform: uppercase;
}

.newsletter-form {
    display: flex;
    border-bottom: 1px solid rgba(180, 150, 103, 0.4);
    padding-bottom: 0.5rem;
}

.newsletter-form input {
    background: transparent;
    border: none;
    width: 100%;
}

.newsletter-form button {
    background: transparent;
    border: none;
    color: var(--primary);
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--background-light);
        padding: 2rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        text-align: center;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active {
        display: block;
    }

    .flex-menu {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav-mobile-toggle {
        display: block;
    }
}

.page-title,
.post-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: #333;
}

.post-header {
    margin-bottom: 4rem;
}

.post-meta-top {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.post-meta-bottom {
    font-size: 0.85rem;
    color: #888;
}

.post-featured-image {
    margin-top: 3rem;
    padding: 10px;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.entry-content {
    max-width: 800px;
    margin: 4rem auto;
    text-align: left;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.post-navigation {
    margin-top: 5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(180, 150, 103, 0.2);
}

.nav-links {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: bold;
}

.nav-links a {
    color: var(--primary);
    text-decoration: none;
}

.post-excerpt-article {
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid #eee;
}

.excerpt-title a {
    color: #333;
    text-decoration: none;
}

.small {
    font-size: 0.8rem;
}

.italic {
    font-style: italic;
}

.font-bold {
    font-weight: bold;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-widest {
    letter-spacing: 0.2em;
}

.is-elementor {
    padding: 0;
    max-width: none;
    margin: 0;
}

.is-elementor article {
    max-width: none;
    padding: 0;
    margin: 0;
}

/* Page specific styles */
.search-header-spaced {
    text-align: center;
    margin-bottom: 4rem;
}

.excerpt-content-spaced {
    margin-top: 1.5rem;
}

.search-no-results {
    text-align: center;
    padding: 4rem 0;
}

.search-no-results p {
    margin-bottom: 2rem;
}

.error-404-main {
    text-align: center;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.error-404-title {
    font-size: 6rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.error-404-subtitle {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.error-404-text {
    max-width: 600px;
    margin-bottom: 3rem;
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
    background: transparent;
}

/* Premium Inquiry Form */
.contact-form-container {
    max-width: 600px;
    margin: 4rem auto;
    background: #fff;
    padding: 4rem;
    border: 1px solid rgba(180, 150, 103, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.inquiry-form {
    font-family: 'Lora', serif;
    width: 100%;
}

.inquiry-form .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .inquiry-form .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.inquiry-form .form-group {
    position: relative;
    margin-bottom: 3rem;
}

.inquiry-form .form-row .form-group {
    margin-bottom: 0;
}

.inquiry-form label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #a8a29e;
    margin-bottom: 0.5rem;
}

.inquiry-form input,
.inquiry-form textarea {
    width: 100%;
    background: transparent;
    border: none !important;
    border-bottom: 1px solid rgba(180, 150, 103, 0.3) !important;
    padding: 0 0 0.5rem 0;
    font-family: inherit;
    font-size: 16px;
    color: #44403c;
    transition: border-color 0.3s;
    outline: none;
    border-radius: 0;
}

.inquiry-form input:focus,
.inquiry-form textarea:focus {
    border-color: #B49667 !important;
}

.inquiry-form input::placeholder,
.inquiry-form textarea::placeholder {
    color: #d6d3d1;
    font-style: italic;
}

.inquiry-form textarea {
    min-height: 100px;
    resize: none;
}

.inquiry-form .submit-group {
    padding-top: 1.5rem;
}

.inquiry-form .btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 3.5rem;
    background-color: #B49667;
    color: white;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    border: none;
    cursor: pointer;
    transition: all 0.5s;
    font-family: sans-serif;
}

.inquiry-form .btn-submit:hover {
    background-color: #292524;
}

.inquiry-form .btn-submit .icon {
    font-family: 'Material Icons';
    font-size: 18px;
    transition: transform 0.3s;
}

.inquiry-form .btn-submit:hover .icon {
    transform: translateX(4px);
}

/* Fallback Template UI Utilities */
.header-fallback {
    text-align: center;
    margin-bottom: 4rem;
}

.meta-fallback {
    font-style: italic;
    font-size: 0.875rem;
    color: var(--sage);
    margin-top: 1rem;
}

.navigation-fallback {
    margin-top: 4rem;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--sage);
    padding-top: 2rem;
}

.article-fallback {
    margin-bottom: 4rem;
}

.feedback-success {
    display: block !important;
    margin-top: 1.5rem;
    text-align: center;
    font-style: italic;
    color: var(--sage);
}

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

/* Restored Social Media Gallery Effect (Elementor-Aware) */
.social-gallery-grid {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

.social-gallery-grid .e-con-inner {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
}

.social-gallery-grid .elementor-widget-container,
.social-gallery-grid .elementor-image-gallery {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
}

.social-gallery-grid .gallery {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

@media (min-width: 768px) {
    .social-gallery-grid .gallery {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* Target both custom implementation and Elementor Gallery items */
.social-gallery-grid .gallery-item,
.social-item-hover .gallery-item {
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
    cursor: pointer;
    position: relative;
    margin: 0 !important;
    /* Reset Elementor figure margins */
    max-width: none !important;
    /* Override Elementor constraints */
    width: 100% !important;
}

/* Ensure images fill the square container and apply grayscale */
.social-item-hover .gallery-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    filter: grayscale(100%) !important;
    transition: filter 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Hover State: Restore color and zoom */
.social-item-hover .gallery-item:hover img {
    filter: grayscale(0%) !important;
    transform: scale(1.08) !important;
}

/* Fix for Elementor's wrapper around images to prevent overflow issues */
.social-item-hover .gallery-item .gallery-icon {
    height: 100%;
}