/*
Theme Name: Bubu Dudu Wedding Theme
Description: Professional wedding website theme with RSVP system and customizable layouts created by yours truly. 
Author: Bubu Dudu
Version: 1.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: wedding
*/

/* ==========================================================================
   BASIC RESET & FOUNDATION
   ========================================================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* ==========================================================================
   BASIC TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

p {
    margin: 0 0 1rem 0;
}

a {
    color: #667eea;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

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

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   RESPONSIVE IMAGES
   ========================================================================== */

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

/* ==========================================================================
   BASIC LAYOUT (Fallback for non-Elementor pages)
   ========================================================================== */

.site-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.site-main {
    min-height: 50vh;
    padding: 2rem 0;
}

.site-footer {
    background: #f8f9fa;
    padding: 2rem 0;
    text-align: center;
    color: #6c757d;
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

/* Focus styles */
button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999999;
    padding: 8px 16px;
    background: #000;
    color: #fff;
    text-decoration: none;
}

.skip-link:focus {
    left: 6px;
    top: 7px;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .site-main {
        padding: 1rem 0;
    }
}

/* ==========================================================================
   WORDPRESS CORE STYLES
   ========================================================================== */

/* Alignments */
.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1.5em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5em;
}

/* Clear floats */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ==========================================================================
   ELEMENTOR COMPATIBILITY
   ========================================================================== */

/* Remove default WordPress margins for Elementor pages */
.elementor-page {
    margin: 0 !important;
    padding: 0 !important;
}

/* Remove body margins on Elementor pages */
.elementor-page body {
    margin: 0 !important;
    padding: 0 !important;
}

/* Remove theme container constraints for Elementor pages */
.elementor-page .site-main {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

/* Ensure full width for Elementor page containers */
.elementor-page .container,
.elementor-page .content-area,
.elementor-page .site-content,
.elementor-page .main-content {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

/* Elementor sections full width */
.elementor-section-wrap {
    margin: 0 !important;
    padding: 0 !important;
}

/* Support for stretched sections within Elementor */
.elementor-page .elementor-section {
    margin: 0 !important;
}

/* Override any theme grid or layout constraints on Elementor pages */
.elementor-page .wrap,
.elementor-page .wrapper,
.elementor-page .main-wrapper {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

/* ==========================================================================
   CUSTOM STYLES
   ========================================================================== */

/* Add your custom wedding theme styles here */
/* This file can be expanded with your specific design elements */