/*
Theme Name: E&J Wedding
Theme URI: https://example.com/
Author: Emma & Jordan (with Gemini)
Author URI: https://example.com/
Description: A modern, minimalist wedding theme for Emma and Jordan.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: wedding, modern
*/

/* --- CSS Variables (Our Colors & Fonts) --- */
:root {
    --color-background: #ffffff; /* White background */
    --color-text: #333333;       /* Dark grey for text (softer than pure black) */
    --color-heading: #0a0a0a;    /* Pure black for main headings */
    --color-accent: #0a0a0a;     /* Black accent for links/buttons */
    
    --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display: 'Playfair Display', serif; /* A nice serif for just the names */
}

/* --- Global Styles --- */
body {
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-primary);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    padding-top: 200px; 
}

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

a {
    color: var(--color-accent);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.3s ease;
}

a:hover {
    border-bottom: 2px solid var(--color-accent);
}

h1, h2, h3 {
    font-family: var(--font-primary);
    color: var(--color-heading);
    font-weight: 700;
    line-height: 1.2;
}

/* --- Header & Navigation (Sticky) --- */
.site-header {
    padding: 20px 0; 
    text-align: center;
    border-bottom: 1px solid #eee;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    background-color: var(--color-background);
}

.site-title a {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--color-heading);
    text-decoration: none;
}
.site-title a:hover {
    border-bottom: none;
}

/* --- Navigation Menu --- */
.main-navigation {
    width: 100%;
    display: block;
    text-align: center;
    margin-top: 10px;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-block;
}

.main-navigation li {
    display: inline-block;
    margin: 0 15px;
}

.main-navigation a {
    display: block;
    padding: 5px 0; 
    font-family: var(--font-primary);
    color: var(--color-text);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-bottom: 2px solid transparent;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--color-heading);
    border-bottom: 2px solid var(--color-accent);
}

/* ===============================================
HERO SECTION (DEFAULT: IMAGE RIGHT / TEXT LEFT)
===============================================
*/

.hero-welcome {
    background-color: var(--color-background);
    padding: 0;
    border-bottom: 1px solid #eee;
    overflow: hidden;
    position: relative;
    min-height: 80vh; 
    display: flex;
    align-items: center;
}

.hero-welcome .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}

.hero-image-wrapper {
    position: absolute;
    right: -40vw;
    left: auto;
    top: 50%;
    transform: translateY(-50%); 
    width: 100vw;
    height: 100vw;
    max-width: 1200px;
    max-height: 1200px;
    border-radius: 50%;
    overflow: hidden;
    background-size: 70%; 
    background-position: -20% 30%; 
    filter: grayscale(60%); 
    background-repeat: no-repeat;
    border: 5px solid var(--color-accent);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 1;
    background-image: url('https://emmajordanwedding.co.uk/wp-content/uploads/2025/11/herobanner2cropped.png'); 
}

.hero-text {
    flex: 0 0 50%;
    max-width: 500px;
    text-align: left;
    margin-right: auto;
    margin-left: 0;
    padding-left: 20px; 
    padding-right: 40px; 
    padding-top: 20px;
    padding-bottom: 20px;
    z-index: 3;
}

.hero-text h1 {
    font-family: var(--font-display);
    font-size: 4.5rem;
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1;
}

.hero-text p {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.hero-text .wedding-date {
    font-size: 1.3rem;
    color: #666;
}

/* ===============================================
END HERO SECTION
===============================================
*/

/* --- Three-Link CTA Section (Homepage) --- */
.cta-links-wrapper {
    background-color: #f7f7f7;
    padding: 30px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.cta-links-wrapper .container {
    max-width: 900px;
    padding: 0 20px;
    margin: 0 auto;
}

.cta-navigation {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
}

.cta-link {
    flex-grow: 1;
    text-align: center;
    padding: 15px 10px;
    border: 2px solid var(--color-accent);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-bottom: 2px solid var(--color-accent) !important; 
}

.cta-link:hover {
    background-color: var(--color-accent);
    color: var(--color-background);
}

/* --- Content Area --- */
.content-area {
    padding: 40px 0;
}

.post {
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.post-title {
    font-size: 2rem;
    margin-top: 0;
}

/* --- Venue Details Block --- */
.venue-details-block {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 40px 0;
    gap: 40px;
    border-bottom: none;
}

.venue-image-map {
    flex: 0 0 50%;
    height: 300px;
    background-color: #f7f7f7;
    border: 1px solid #ddd;
    background-size: cover;
    background-position: center;
}

.venue-content {
    flex: 0 0 50%;
    padding-top: 5px;
}

.cta-map-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    text-transform: uppercase;
    font-weight: 700;
    border: 2px solid var(--color-accent) !important;
}

/* --- Footer --- */
.site-footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 40px;
    border-top: 1px solid #eee;
    color: #777;
    font-size: 0.9rem;
}

/* ===============================================
PAGE SPECIFIC HERO OVERRIDES
=============================================== */

/* --- A. Details Page Overrides --- */
body.page-details div#page .hero-image-wrapper { 
    background-image: url('https://emmajordanwedding.co.uk/wp-content/uploads/2025/11/detailshero.webp') !important;
    filter: none !important; 
    background-position: 50% 50%; 
}

body.page-details div#page .hero-text { 
    color: white !important; 
}

/* --- B. Newcastle Page Overrides --- */
body.page-newcastle div#page .hero-image-wrapper { 
    background-image: url('https://emmajordanwedding.co.uk/wp-content/uploads/2025/11/newcastlehero.jpg') !important;
    right: auto !important;
    left: -40vw !important; 
}

body.page-newcastle div#page .hero-content { 
    justify-content: flex-end !important; 
}

body.page-newcastle div#page .hero-text { 
    margin-right: 0 !important;
    margin-left: auto !important;
    color: var(--color-heading) !important;
}

/* ===============================================
WOOCOMMERCE PAGES & PRODUCTS PADDING FIX
=============================================== */

body.woocommerce-page,
body.woocommerce,
body.single-product {
    padding-top: 260px !important;
}

.woocommerce div.product {
    margin-top: 20px;
}

/* Hide SKU & Categories */
.woocommerce .product_meta,
.woocommerce span.sku_wrapper,
.woocommerce span.posted_in {
    display: none !important;
}

/* Hide Amazon Pay and Onelink buttons */
div[id*="amazon"],
div[class*="amazon"],
button[id*="amazon"],
a[class*="amazon-payments"],
div[id*="onelink"],
div[class*="onelink"],
button[id*="onelink"],
.wc-stripe-payment-request-payment-method-amazon_pay,
.wc-stripe-payment-request-payment-method-onelink {
    display: none !important;
}

/* Hide review stars and tab */
.woocommerce .woocommerce-product-rating,
.woocommerce #reviews,
.woocommerce .reviews_tab {
    display: none !important;
}

/* Style Add to Cart / Purchase Buttons */
.woocommerce #respond input#submit.alt, 
.woocommerce a.button.alt, 
.woocommerce button.button.alt, 
.woocommerce input.button.alt {
    background-color: var(--color-accent) !important;
    color: #ffffff !important;
    border-radius: 0 !important;
    padding: 12px 24px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* --- Responsive Adjustments --- */

@media (max-width: 992px) {
    .hero-welcome {
        min-height: 70vh;
    }
    .hero-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    body {
        padding-top: 160px !important;
    }

    body.woocommerce-page,
    body.woocommerce,
    body.single-product {
        padding-top: 220px !important;
    }

    .hero-text {
        flex: 1 1 100%;
        max-width: 100%;
        text-align: center;
        padding: 0;
        margin: 0 auto;
    }
    .hero-text h1 {
        font-size: 3.5rem;
    }

    .venue-details-block {
        flex-direction: column;
    }
    .venue-image-map,
    .venue-content {
        flex: 1 1 100%;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .cta-navigation {
        flex-direction: column;
    }
    .cta-link {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .hero-welcome {
        min-height: 60vh;
    }

    body {
        padding-top: 130px !important;
    }

    body.woocommerce-page,
    body.woocommerce,
    body.single-product {
        padding-top: 190px !important;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }
}