/*
Theme Name: Jewel Box Child Theme
Theme URI: https://wordpress.org/themes/twentytwentyfour/
Description: A child theme for Twenty Twenty-Four customized for Jewel Box
Author: Cline
Author URI: https://example.com
Template: twentytwentyfour
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jewelbox-child
*/

/* ======= GLOBAL VARIABLES ======= */
:root {
    /* Color Scheme */
    --black: #000000;
    --off-white: #F5F2EA;
    --forest-green: #1E3A2E;
    --gold: #C9A95D;
    --silver: #D2D2D2;
    --copper: #C6836D;
    --pale-gold: #DBCB92;
    --deep-black: #0D0D0D;
    --blush: #E7C8C0;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Spacing */
    --spacing-small: 1rem;
    --spacing-medium: 2rem;
    --spacing-large: 3rem;
    --spacing-xlarge: 5rem;
    
    /* Transitions */
    --transition-standard: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* ======= BASE STYLES ======= */
body {
    font-family: var(--font-body);
    background-color: var(--black);
    color: var(--off-white);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--gold);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: var(--gold);
    transition: var(--transition-standard);
}

a:hover {
    color: var(--pale-gold);
}

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

/* ======= BUTTONS ======= */
.wp-block-button__link,
.wp-element-button,
.cta-button,
.elementor-button {
    background-color: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 0.8rem 2.5rem;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition-standard);
    font-family: var(--font-body);
    border-radius: 0;
    text-decoration: none;
    display: inline-block;
}

.wp-block-button__link:hover,
.wp-element-button:hover,
.cta-button:hover,
.elementor-button:hover {
    background-color: var(--gold);
    color: var(--black);
    text-decoration: none;
}

.is-style-outline .wp-block-button__link {
    border-color: var(--gold);
    color: var(--gold);
}

.is-style-outline .wp-block-button__link:hover {
    background-color: var(--gold);
    color: var(--black);
}

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

/* Template areas */
.jewelbox-template-area,
.jewelbox-exclusive-area {
    width: 100%;
    margin: 0;
    padding: 0;
}

.jewelbox-main,
.jewelbox-exclusive-main {
    margin: 0;
    padding: 0;
}

/* Elementor Section Styling */
.elementor-section {
    position: relative;
}

/* Hero Section Styling for Elementor */
.elementor-section.jewel-hero {
    background-color: var(--black);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Typography for Elementor */
.elementor-widget-heading .elementor-heading-title {
    font-family: var(--font-heading);
}

.elementor-widget-text-editor {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.8;
}

/* ======= CUSTOM JEWELBOX ELEMENTS ======= */

/* Hero Section Elements */
.hero-subtitle {
    text-transform: uppercase;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    color: var(--gold);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--off-white);
}

.hero-title span {
    display: block;
    color: var(--gold);
}

.hero-description {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--off-white);
    margin-bottom: 2rem;
}

/* Section Titles and Content */
.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--gold);
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -15px;
    width: 40px;
    height: 1px;
    background-color: var(--gold);
}

.attribute-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--gold);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.attribute-title::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 1px;
    background-color: var(--gold);
    margin-right: 10px;
}

.attribute-text {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    padding-left: 15px;
}

/* Feature Cards */
.focus-card {
    position: relative;
    height: 400px;
    overflow: hidden;
    border: 1px solid rgba(201, 169, 93, 0.2);
    transition: var(--transition-slow);
}

.focus-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(13, 13, 13, 0.95), rgba(13, 13, 13, 0.7) 60%, transparent);
    transform: translateY(70px);
    transition: var(--transition-slow);
}

.focus-card:hover .card-overlay {
    transform: translateY(0);
}

.card-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--gold);
    opacity: 0.7;
    margin-bottom: 1rem;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--off-white);
}

.card-text {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--silver);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.1s;
}

.focus-card:hover .card-text {
    opacity: 1;
    transform: translateY(0);
}

/* Form Styling */
.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container input[type="tel"],
.wpforms-container textarea,
.elementor-field-textual {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--gold);
    padding: 0.5rem 0;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--off-white);
    width: 100%;
}

.wpforms-container input[type="text"]:focus,
.wpforms-container input[type="email"]:focus,
.wpforms-container input[type="tel"]:focus,
.wpforms-container textarea:focus,
.elementor-field-textual:focus {
    outline: none;
    border-bottom-color: var(--off-white);
}

.wpforms-container .wpforms-submit-container {
    text-align: center;
}

.wpforms-container button.wpforms-submit,
.elementor-button {
    font-family: var(--font-body);
    background-color: var(--gold);
    color: var(--black);
    border: none;
    padding: 1rem 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-standard);
    width: 100%;
}

.wpforms-container button.wpforms-submit:hover,
.elementor-button:hover {
    background-color: var(--off-white);
}

/* ======= ANIMATION EFFECTS ======= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fadeIn {
    animation: fadeIn 1.2s ease forwards;
}

.fade-in-element {
    transition: opacity 0.8s ease, transform 0.8s ease;
    opacity: 0;
    transform: translateY(20px);
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ======= SPECIAL EFFECTS ======= */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.section {
    position: relative;
    overflow: hidden;
}

/* ======= FOOTER STYLING ======= */
.jewel-box-footer {
    background-color: var(--deep-black);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(201, 169, 93, 0.3);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-logo h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.footer-logo span {
    display: block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--off-white);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.footer-info p {
    font-size: 0.8rem;
    color: var(--silver);
}

/* ======= RESPONSIVE STYLES ======= */
@media screen and (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .focus-card {
        height: 350px;
    }
    
    /* Disable parallax on tablets for better performance */
    .parallax-section {
        background-attachment: scroll;
    }
}

@media screen and (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .focus-card {
        height: 300px;
    }
    
    .elementor-column {
        width: 100% !important;
    }
}

/* ======= CUSTOM ELEMENTOR WIDGET STYLES ======= */

/* Jewel Box Hero Section */
.elementor-widget-jewelbox-hero .elementor-widget-container {
    padding: 0;
}

/* Jewel Box Feature Card */
.elementor-widget-jewelbox-feature-card .elementor-widget-container {
    height: 100%;
}

/* Jewel Box Contact Form */
.elementor-widget-jewelbox-contact-form .elementor-widget-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Make sure Elementor section heights work correctly */
.elementor-section-height-full {
    min-height: 100vh;
}

/* Fix for Elementor column gaps */
.elementor-column-gap-default > .elementor-row > .elementor-column > .elementor-element-populated,
.elementor-column-gap-default > .elementor-column > .elementor-element-populated {
    padding: 10px;
}
