/*
Theme Name: Drawings by H
Theme URI: https://drawingsbyh.co.uk
Author: Your Name
Author URI: https://drawingsbyh.co.uk
Description: A custom theme for Drawings by H, showcasing beautiful pet portraits and artwork with a modern, artistic design.
Version: 2.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: drawingsbyh
*/

:root {
    --primary-color: #8B7355;      /* Rich sandstone brown */
    --secondary-color: #A67B5B;    /* Warm sandstone */
    --accent-color: #F5F1ED;       /* Light sandstone cream */
    --background-color: #FDFCFA;   /* Very light sandstone */
    --text-color: #5D4E37;         /* Dark sandstone */
    --light-text: #8B7355;         /* Medium sandstone */
    --border-color: #E8E0D8;       /* Soft sandstone border */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-secondary: 'Cormorant Garamond', Georgia, serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --max-width: 1200px;
    --container-padding: 2rem;
}

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

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.3;
    margin: 0 0 1rem 0;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p {
    margin: 0 0 1.5rem 0;
    color: var(--light-text);
}

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

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

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

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

/* Header */
.site-header {
    padding: 0;
    border-bottom: 1px solid var(--border-color);
    background: #195861 !important;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(139, 115, 85, 0.1);
}

/* Header Flex Layout */
.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    padding: 0.5rem 0;
}

.site-branding-flex {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: -1rem;
}

.logo-placeholder {
    width: 48px;
    height: 48px;
    background: var(--border-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 8px;
    border: 2px dashed var(--primary-color);
    letter-spacing: 2px;
}

.site-logo {
    height: 100%;
    display: flex;
    align-items: center;
}

.site-logo img {
    height: 50px !important;
    width: auto;
    max-width: 80px !important;
}

/* Force header background - override any conflicting styles */
.site-header,
.site-header * {
    background-color: #195861 !important;
    background: #195861 !important;
}

.site-header .header-flex {
    background-color: #195861 !important;
    background: #195861 !important;
}

.site-header .site-branding-flex {
    background-color: transparent !important;
    background: transparent !important;
}

.site-header .main-navigation {
    background-color: transparent !important;
    background: transparent !important;
}

/* Additional aggressive overrides */
header.site-header {
    background-color: #195861 !important;
    background: #195861 !important;
}

body .site-header {
    background-color: #195861 !important;
    background: #195861 !important;
}

/* Force logo size */
.custom-logo {
    height: 50px !important;
    width: auto !important;
    max-width: 80px !important;
    max-height: 50px !important;
}

.site-title-text {
    display: flex;
    align-items: center;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* Nav menu already styled, but ensure right alignment */
.main-navigation {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: #B89B7E;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-menu a:hover {
    color: #fff;
}

.header-btn.button {
    background: #B89B7E !important; /* Same color as nav text */
    color: #195861 !important; /* Same color as header background */
    border-radius: 50px !important; /* Fully rounded circle */
    padding: 0.6rem 1.6rem;
    font-size: 1rem;
    font-weight: 600;
    border: none !important;
    margin-left: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.header-btn.button:hover {
    background: #A68B6E !important; /* Slightly darker on hover */
    color: #195861 !important; /* Keep header color text */
    transform: scale(1.05);
}

@media (max-width: 900px) {
    .header-flex {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    .main-navigation {
        margin-left: 0;
    }
    .nav-menu {
        justify-content: flex-end;
        gap: 1rem;
    }
    .site-branding-flex {
        justify-content: flex-start;
    }
}

/* Hero Section */
.hero-section {
    padding: 8rem 0 6rem 0;
    text-align: center;
    background: linear-gradient(135deg, #F5F1ED 0%, #FDFCFA 100%);
}

.hero-content h1 {
    font-size: 6rem;
    margin-bottom: 2rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--primary-color);
    line-height: 1.05;
}

.hero-content p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    color: var(--light-text);
}

/* Services Section */
.services-section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-header p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--light-text);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    padding: 4rem 0;
}

.service-card {
    text-align: center;
    padding: 2rem;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.service-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(139, 115, 85, 0.15);
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-card p {
    margin-bottom: 2rem;
    color: var(--light-text);
}

/* Featured Gallery */
.featured-gallery {
    padding: 4rem 0;
    background: var(--accent-color);
}

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

/* Buttons */
.button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.button:hover {
    background: transparent;
    color: var(--primary-color);
}

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

.button-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
    padding: 4rem 0;
    justify-items: center;
    align-items: start;
    max-width: 1100px; /* 6 x 180px + gaps */
    margin-left: auto;
    margin-right: auto;
}

.gallery-item {
    max-width: 180px;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    background: transparent !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    opacity: 1;
    transform: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(139, 115, 85, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover effect for featured gallery items */
.gallery-item:hover {
    transform: scale(1.05);
    z-index: 2;
}

.gallery-item:hover img {
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.gallery-title {
    text-align: center;
    margin-top: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 400;
}

/* Placeholder Images */
.placeholder-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #F5F1ED 0%, #E8E0D8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    font-style: italic;
}

/* Page Templates */
.page-header {
    text-align: center;
    padding: 4rem 0;
    background: var(--accent-color);
}

.page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 0;
}

/* Commission Page */
.commission-info {
    background: var(--accent-color);
    padding: 4rem 0;
}

.commission-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

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

/* Contact Form */
.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    width: 100%;
    margin: 0 auto;
    align-items: start;
    box-sizing: border-box;
}
.contact-form p {
    margin: 0;
}
.contact-form input,
.contact-form textarea,
.contact-form button {
    width: 100%;
    box-sizing: border-box;
}
.contact-form p:nth-of-type(1) { grid-column: 1; }
.contact-form p:nth-of-type(2) { grid-column: 2; }
.contact-form p:nth-of-type(3) { grid-column: 1 / 3; }
.contact-form p:nth-of-type(4) { grid-column: 1 / 3; }
.contact-form p:nth-of-type(5) { grid-column: 1 / 3; }
.contact-form input[type="submit"] { width: 100%; }

@media (max-width: 900px) {
    .contact-form {
        display: block;
        max-width: 100%;
    }
    .contact-form p {
        margin-bottom: 1.2rem;
    }
}

/* Easel clamp (top bar) */
.contact-form::before,
.contact-form::after {
    display: none !important;
    background: #F5F1ED !important;
    border-radius: 18px !important;
    box-shadow: 0 12px 36px rgba(139, 115, 85, 0.18), 0 2px 0 #A67B5B !important;
    padding: 2.5rem 2rem 2rem 2rem !important;
    max-width: 420px !important;
    margin: 4rem auto 2rem auto !important;
    position: relative !important;
    border: 2.5px solid #A67B5B !important;
    font-family: 'Cormorant Garamond', 'Playfair Display', serif !important;
    z-index: 2 !important;
}

/* Easel front legs */
.contact-form::after {
    content: '';
    position: absolute !important;
    bottom: -80px !important;
    left: 50% !important;
    width: 160px !important;
    height: 80px !important;
    z-index: 1 !important;
    pointer-events: none !important;
    background: none !important;
    /* Draw two legs using a linear-gradient background */
    background:
        linear-gradient(75deg, #A67B5B 0 6px, transparent 6px 100%),
        linear-gradient(-75deg, #A67B5B 0 6px, transparent 6px 100%) !important;
    background-repeat: no-repeat !important;
    background-size: 50% 100% !important;
    background-position: left bottom, right bottom !important;
}

/* Easel shelf */
.easel-shelf {
    position: absolute !important;
    left: 50% !important;
    bottom: -32px !important;
    width: 120px !important;
    height: 18px !important;
    background: #A67B5B !important;
    border-radius: 0 0 12px 12px !important;
    transform: translateX(-50%) !important;
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.10) !important;
    z-index: 2 !important;
    border: 2px solid #8B7355 !important;
}

/* Contact Form 7 fields styled to match theme */
.contact-form .wpcf7-form-control {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.2rem;
    border: 1.5px solid #A67B5B;
    border-radius: 8px;
    font-size: 1.1rem;
    background: #FDFCFA;
    color: var(--text-color);
    font-family: var(--font-primary);
    transition: border-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 8px rgba(139, 115, 85, 0.06);
}

.contact-form .wpcf7-form-control:focus {
    border-color: #8B7355;
    outline: none;
    box-shadow: 0 0 0 2px #A67B5B33;
    background: #fff;
}

.contact-form label {
    font-family: var(--font-display);
    color: #8B7355;
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
    display: block;
    font-weight: 500;
}

.contact-form input[type="submit"],
.contact-form button[type="submit"],
.contact-form .wpcf7-submit {
    background: #8B7355;
    color: #fff;
    border: none;
    border-radius: 2rem;
    padding: 0.9rem 2.2rem;
    font-size: 1.1rem;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(139, 115, 85, 0.10);
    transition: background 0.2s, color 0.2s;
    margin-top: 0.5rem;
}

.contact-form input[type="submit"]:hover,
.contact-form button[type="submit"]:hover,
.contact-form .wpcf7-submit:hover {
    background: #A67B5B;
    color: #fff;
}

/* Responsive: adjust easel legs and shelf on mobile */
@media (max-width: 600px) {
    .contact-form::after {
        width: 100px !important;
        height: 60px !important;
    }
    .easel-shelf {
        width: 80px !important;
    }
    .contact-form::before {
        width: 50px !important;
    }
}

/* Contact Info */
.contact-info {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info h2 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.social-contact {
    margin-top: 2rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.social-link .dashicons {
    font-size: 1.2rem;
}

/* Footer */
.site-footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
}

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

.footer-branding h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.footer-branding p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: white;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.site-footer a {
    color: white;
}

.site-footer a:hover {
    color: var(--accent-color);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* 404 Error Page Styles */
.error-404-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
}

.error-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.error-title {
    font-size: 8rem;
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1;
}

.error-subtitle {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.error-message {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.error-search {
    background: var(--accent-color);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.error-search h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.error-search .search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 400px;
    margin: 0 auto;
}

.error-search .search-field {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.error-search .search-submit {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.error-search .search-submit:hover {
    background: var(--secondary-color);
}

@media (max-width: 768px) {
    .error-title {
        font-size: 6rem;
    }
    
    .error-subtitle {
        font-size: 2rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .error-search .search-form {
        flex-direction: column;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .hero-section {
        padding: 4rem 0 3rem 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--background-color);
        border-top: 1px solid var(--border-color);
        padding: 1rem 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-menu {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr !important;
    }
    
    .services-grid {
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
}

/* Remove forced block display for gallery grid and items */
.services-grid, .service-card, .featured-gallery, .gallery-grid, .gallery-item {
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    color: var(--primary-color) !important;
}

/* Responsive Design for Gallery Grid */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }
  .gallery-page .gallery-item, .home .featured-gallery .gallery-item {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr !important;
  }
  .gallery-page .gallery-item, .home .featured-gallery .gallery-item {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

/* Alternating Feature Rows */
.features-section {
    margin: 5rem 0 0 0;
}
.feature-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin: 4rem 0;
}
.feature-row .feature-text {
    flex: 1;
    min-width: 260px;
}
.feature-row .feature-image {
    flex: 1;
    text-align: center;
}
.feature-row .feature-image img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(139, 115, 85, 0.1);
    height: auto;
}
.feature-row.reverse {
    flex-direction: row-reverse;
}
@media (max-width: 900px) {
    .feature-row, .feature-row.reverse {
        flex-direction: column !important;
        gap: 2rem;
        text-align: center;
    }
    .feature-row .feature-text, .feature-row .feature-image {
        min-width: 0;
    }
}

/* Homepage Featured Works: 5-column grid, responsive */
.home .featured-gallery .gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 2rem !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding-top: 2rem !important;
}

@media (max-width: 900px) {
  .home .featured-gallery .gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 600px) {
  .home .featured-gallery .gallery-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Gallery Page: 3 columns, as many rows as needed */
.gallery-page-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 375px) !important;
    gap: 2.5rem !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    justify-content: center !important;
    align-items: start !important;
}

@media (max-width: 1300px) {
    .gallery-page-grid {
        grid-template-columns: repeat(2, 375px) !important;
    }
}

@media (max-width: 900px) {
    .gallery-page-grid {
        grid-template-columns: 1fr !important;
        max-width: 450px !important;
    }
}

.gallery-page-item {
    padding: 0 !important;
    width: 375px !important;
    height: auto !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
    transition: transform 0.25s cubic-bezier(.4,2,.6,1);
    justify-content: center !important;
}

.gallery-page-item img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    margin: 0 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
    transition: transform 0.25s ease;
    display: block !important;
}

.gallery-page .gallery-title {
    text-align: center !important;
    font-family: var(--font-display) !important;
    font-size: 1.22rem !important; /* slightly larger */
    color: var(--primary-color) !important;
    font-weight: 400 !important;
    margin-top: 0.7rem !important;
    margin-bottom: 0 !important;
    padding-bottom: 0.7rem !important; /* more space below text */
    flex: 0 0 auto;
}

/* Image hover effect: scale and enhance shadow */
.gallery-page-item:hover {
    transform: scale(1.05);
    z-index: 2;
}

.gallery-page-item:hover img {
    box-shadow: 0 8px 30px rgba(0,0,0,0.2) !important;
}

/* Lightbox Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.lightbox-title {
    color: white;
    font-size: 1.2rem;
    margin-top: 1rem;
    text-align: center;
    font-family: var(--font-display);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    opacity: 0.7;
}

@media (max-width: 900px) {
  .home .featured-gallery .gallery-grid {
    flex-wrap: wrap !important;
    justify-content: center !important;
  }
  .home .featured-gallery .gallery-item {
    width: 45vw !important;
    height: 45vw !important;
    max-width: 300px !important;
    min-width: 160px !important;
  }
}
@media (max-width: 600px) {
  .home .featured-gallery .gallery-grid {
    flex-direction: column !important;
    align-items: center !important;
  }
  .home .featured-gallery .gallery-item {
    width: 90vw !important;
    height: 90vw !important;
    max-width: 400px !important;
    min-width: 160px !important;
  }
}

/* Modern card style for contact form */
.contact-form-col .contact-form {
  border: 2px solid #e2c9b0;
  border-radius: 12px;
  background: #fff8f3;
  box-shadow: 0 4px 24px rgba(184,92,43,0.07);
  padding: 32px 24px 24px 24px;
  margin-bottom: 0;
  position: relative;
}

@media (max-width: 700px) {
  .contact-grid {
    flex-direction: column;
    gap: 32px;
  }
  .contact-form-col .contact-form {
    padding: 24px 10px 18px 10px;
  }
}

/* --- Contact Section: Two Large Equal Squares, Side by Side --- */
.contact-content {
  max-width: 100vw;
  margin: 3rem auto 1rem auto;
  padding: 0;
  display: flex;
  justify-content: center;
}

/* Contact grid: align heights, force large square for both boxes */
.contact-grid {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  gap: 4vw;
  width: 100%;
}
.contact-sidebox, .contact-form-col {
  min-width: 320px;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1 650px;
}

.contact-sidebox {
  background: #fff8f3;
  border: 2px solid #e2c9b0;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(184,92,43,0.07);
  padding: 1.5rem 1.2rem;
  width: 100%;
  height: 100%;
  min-height: 650px;
  max-height: 650px;
  min-width: 650px;
  max-width: 650px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.sidebox-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.sidebox-inner h3 {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: #8B7355;
  margin: 0 0 1rem 0;
  font-weight: 700;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  padding: 0.8rem 1.5rem;
  background: #8B7355;
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  gap: 0.7rem;
  box-shadow: 0 2px 8px rgba(139, 115, 85, 0.10);
  margin-bottom: 0.5rem;
}
.sidebox-inner p {
  text-align: center;
  margin: 0;
  font-size: 1rem;
  color: #8B7355;
}

/* Contact form box: large square, no scroll needed */
.contact-form-col {
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  width: 100%;
  height: 100%;
  min-height: 650px;
  max-height: 650px;
  min-width: 650px;
  max-width: 650px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.contact-form-box {
  position: relative;
  overflow: visible;
  padding: 40px 24px;
  background: #f5e6d3;
  border-radius: 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  height: 100%;
}
.contact-form-box > .wpcf7,
.contact-form-box > form,
.contact-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.contact-form-box input,
.contact-form-box textarea {
  width: 100%;
  box-sizing: border-box;
  font-size: 1.1rem;
}
.contact-form-box input[type="submit"],
.contact-form-box button[type="submit"],
.contact-form-box .wpcf7-submit {
  width: 100%;
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .contact-grid {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }
  .contact-sidebox, .contact-form-col, .contact-form-box {
    width: 95vw;
    min-width: 0;
    min-height: 0;
    max-width: 100vw;
    max-height: none;
    padding: 1.2rem 0.5rem;
    height: auto;
  }
}

/* --- Contact Page: Two-Column Layout with Balanced Boxes --- */
.contact-page-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
  gap: 40px;
}

.contact-columns {
  display: flex;
  gap: 40px;
  width: 100%;
  max-width: 1000px;
  align-items: stretch;
  justify-content: center;
  min-height: 0;
}

.contact-form-box,
.instagram-box {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  border-radius: 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  padding: 40px 32px;
}

.contact-form-box {
  background: #f5e6d3;
}

.instagram-box {
  background: #fff7ed;
}

.instagram-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: auto 0;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  width: 100%;
  margin: 0 auto;
  align-items: start;
  box-sizing: border-box;
}
.contact-form p {
  margin: 0;
}
.contact-form input,
.contact-form textarea,
.contact-form button {
  width: 100%;
  box-sizing: border-box;
}
.contact-form p:nth-of-type(1) { grid-column: 1; }
.contact-form p:nth-of-type(2) { grid-column: 2; }
.contact-form p:nth-of-type(3) { grid-column: 1 / 3; }
.contact-form p:nth-of-type(4) { grid-column: 1 / 3; }
.contact-form p:nth-of-type(5) { grid-column: 1 / 3; }

@media (max-width: 900px) {
  .contact-page-container {
    flex-direction: column;
    gap: 32px;
    align-items: center;
    padding: 24px 0;
  }
  .contact-columns {
    flex-direction: column;
    gap: 32px;
    align-items: center;
    max-width: 100vw;
  }
  .contact-form-box,
  .instagram-box {
    max-width: 98vw;
    min-width: 0;
    width: 100%;
    margin: 0 auto;
    border-radius: 24px;
    padding: 20px 8px;
    height: auto;
  }
  .contact-form {
    display: block;
    max-width: 100%;
  }
  .contact-form p {
    margin-bottom: 1.2rem;
  }
}

@media (max-width: 600px) {
  .contact-page-container {
    padding: 20px 0;
  }
  .contact-columns {
    gap: 24px;
  }
  .contact-form-box,
  .instagram-box {
    width: 95vw;
  }
  .contact-form-box {
    padding: 24px 16px;
  }
  .instagram-content {
    padding: 24px 16px;
  }
  .instagram-title {
    font-size: 1.8rem;
  }
  .instagram-text {
    font-size: 1rem;
    }
}

/* Pricing Page Styles */
.pricing-content {
    padding: 4rem 0;
}

.pricing-section {
    margin-bottom: 4rem;
}

.pricing-section h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2rem;
}

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

.pricing-item {
    background: var(--accent-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(139, 115, 85, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 115, 85, 0.15);
}

.pricing-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.pricing-size {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.pricing-price {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

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

.pricing-info {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    text-align: center;
}

.pricing-cta {
    text-align: center;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .pricing-cta .button {
        width: 100%;
        max-width: 300px;
    }
} 