/*
Theme Name: M&M Royal Wedding V5
Theme URI: https://mishynamike.com
Author: Mcpotar
Description: A luxurious royal wedding theme for Michael and Michelle Mupotaringa. Respects individual video block settings for autoplay and looping, and is 100% editable via the block editor.
Version: 1.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mm-royal-wedding-v5
*/

:root {
    --primary-color: #f5e4b8;
    --secondary-color: #b18f60;
    --accent-color: #7e5549;
    --dark-color: #3a2b20;
    --light-color: #f5e4b8;
    --bg-color: #fdfaf1;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--dark-color);
    margin: 0;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

/* Header */
header {
    background: #fff;
    padding: 20px 0;
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
}

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

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Block-based Hero Styling (Respects Admin-controlled Video Settings) */
.wp-block-cover.royal-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Ensure the video background is styled but respects block-level settings */
.wp-block-cover.royal-hero .wp-block-cover__video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

/* Overlay for text and buttons */
.wp-block-cover.royal-hero .wp-block-cover__inner-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.wp-block-cover.royal-hero h1 {
    font-size: 4rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin: 0;
}

.wp-block-cover.royal-hero p {
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Buttons */
.wp-block-button__link {
    background-color: var(--secondary-color) !important;
    color: #fff !important;
    padding: 12px 30px !important;
    border-radius: 5px !important;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}

.wp-block-button__link:hover {
    background-color: var(--accent-color) !important;
}

/* General Content */
.entry-content {
    margin-top: 0;
}

.entry-content img, 
.entry-content video {
    max-width: 100%;
    height: auto;
}

/* Footer */
footer {
    background: var(--dark-color);
    color: #fff;
    text-align: center;
    padding: 40px 0;
    margin-top: 50px;
}
