/* ==========================================================================
   1. GLOBAL VARIABLES & STYLES (Traditional Festive Theme)
   ========================================================================== */
:root {
    --burgundy: #6B1D2F;
    --emerald: #0B4F35;
    --gold: #D4AF37;
    --charcoal: #1A2521;
    --cream: #FDFBF7;
    --frosted-mint: #F0F5F2;
    --white: #FFFFFF;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px; /* Protects section headings from slipping behind the fixed header */
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: var(--charcoal);
    background-color: var(--cream);
    line-height: 1.6;
}

/* Add this near the top of your style.css under global rules */
img {
    max-width: 100%;  /* Crucial: Prevents any image from scaling past the edge of the phone window */
    height: auto;     /* Maintains perfect proportional rendering ratios */
}


/* Ensure padding behaves predictably across all structural elements */
section, main, div, form, article, header, footer {
    box-sizing: border-box;
}

section {
    padding: 80px 30px; /* Safe gutters to keep content away from device glass edges */
}

/* Base Headings Setup */
h1, h2, h3, h4 {
    font-family: 'Georgia', 'Times New Roman', serif;
}

/* ==========================================================================
   2. FIXED HEADER NAVIGATION (Flexbox Alignment Layer)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--burgundy);
    border-bottom: 3px solid var(--gold);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between; /* Logo left, horizontal links right */
    align-items: center;            /* Perfectly aligns them on the same vertical line */
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 30px;
    height: 70px;
}

/* Brand Branding Blocks */
.logo {
    display: flex;
    align-items: center;
    color: var(--white);
    font-family: 'Georgia', serif;
    font-size: 1.4rem;
    font-weight: bold;
}

.logo-img {
    height: 45px;
    width: auto;
    margin-right: 12px;
    vertical-align: middle;
}

/* Right Side Link Elements */
.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
	flex-wrap: wrap; /* Allows links to safely stack if the mobile screen width is exceptionally narrow */
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--gold);
}

/* Main Layout Offset for Fixed Header */
main {
    display: block;
    margin-top: 70px;
}

/* ==========================================================================
   3. UNIFIED SPLIT LAYOUT (Hero & About Sections)
   ========================================================================== */
.split-container {
    display: flex;
    flex-direction: column; /* Stacked layout by default on mobile phones */
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    padding: 20px 0;
}

.split-text-box, .split-image-box {
    width: 100%;
}

/* Background Color Rules for Split Sections */
.hero-section {
    background-color: var(--burgundy);
    color: var(--white);
}

.hero-section h1 {
    font-size: 2.8rem;
    margin-top: 0;
    color: var(--white);
}

.about-section {
    background-color: var(--cream);
}

.about-section h2 {
    color: var(--burgundy);
    font-size: 2.5rem;
    margin-top: 0;
}

/* Image Scaling Logic */
.responsive-img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
}


/* --- IMAGE TYPE 2: About Image (1200x1600 Portrait) --- */
.responsive-portrait-img {
    width: 100%;            /* Allows the image to expand to the width of its box */
    max-width: 450px;       /* Keeps the portrait image proportions perfectly contained */
    height: auto;           /* FIX: Removes the fixed 550px height so the bottom is never cut off */
    aspect-ratio: 3 / 4;    /* FIX: Locks in your exact 1200x1600 proportion across all devices */
    object-fit: contain;    /* FIX: Ensures the entire photo scales safely inside its box boundaries */
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: block;
    margin: 0 auto;
}


/* Primary Hero Dynamic Call to Action Link Button */
.cta-button {
    display: inline-block;
    background-color: var(--emerald);
    color: var(--white);
    padding: 12px 26px;
    border: 2px solid var(--gold);
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.2s, transform 0.2s;
}

.cta-button:hover {
    background-color: var(--white);
    color: var(--burgundy);
    border-color: var(--gold);
    transform: translateY(-2px);
}

/* ==========================================================================
   4. SERVICES GRID SECTIONS (4-Column Adaptive Frame)
   ========================================================================== */
.services-section {
    background-color: var(--frosted-mint);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    color: var(--burgundy);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-subtitle {
    font-style: italic;
    color: var(--emerald);
    font-size: 1.1rem;
    margin: 0;
}

.services-grid {
    display: grid;
    /* CSS Grid Automatically flows columns down when layout shrinks */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--cream);
    padding: 40px 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--emerald);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-top-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(107, 29, 47, 0.15);
    border-top-color: var(--burgundy);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--charcoal);
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--charcoal);
    margin: 0;
}

/* --- Package Button Style inside Cards --- */
.view-details-btn {
    background-color: transparent;
    color: var(--emerald);
    border: 2px solid var(--emerald);
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.2s ease;
}
.view-details-btn:hover {
    background-color: var(--emerald);
    color: var(--white);
}

/* --- Backdrop Shadow Layer --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 37, 33, 0.6); /* Semi-transparent charcoal screen */
    backdrop-filter: blur(5px);               /* Softly blurs background elements */
    z-index: 2000;                            /* Forces it over your header navigation */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;                     /* Click-through protection when hidden */
    transition: opacity 0.3s ease;
}

/* Toggle state triggered by Javascript */
.modal-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

/* --- Card Pop-up Content Frame --- */
.modal-content {
    background-color: var(--white);
    padding: 40px;
    max-width: 550px;
    width: 90%;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    border-top: 6px solid var(--burgundy);    /* Theme alignment header stripe */
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}
/* --- Backdrop Shadow Layer --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 37, 33, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    
    /* FIX: Enable natural vertical scrolling inside the overlay container */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Smooth iOS momentum scrolling */
    
    /* Mobile First layout style */
    display: block; 
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px 15px; /* Creates a safe outer frame gutter */
}

/* Toggle state triggered by Javascript */
.modal-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

/* --- Card Pop-up Content Frame --- */
.modal-content {
    background-color: var(--white);
    
    /* FIX: Push it slightly down from the absolute top edge so it clears ALL browser URL bars */
    margin: 30px auto; 
    
    padding: 35px 25px 25px 25px; /* Balanced layout breathing room */
    max-width: 550px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    border-top: 6px solid var(--burgundy);
    position: relative;
    
    /* Smooth scaling transition animation */
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.is-active .modal-content {
    transform: scale(1);
}

/* FIX: Redesigned Close Icon Target for Mobile Fingers */
.close-modal-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2.2rem;       /* Slightly larger box target area */
    line-height: 1;
    cursor: pointer;
    color: #888;
    padding: 5px 10px;       /* Adds padding around 'X' so it is easy to press */
    transition: color 0.2s;
    z-index: 10;             /* Keeps the close button layered safely on top */
}

.close-modal-btn:hover {
    color: var(--burgundy);
}

#modal-title {
    color: var(--burgundy);
    margin-top: 15px;        /* Moves title down slightly to give the X icon room */
    font-size: 1.8rem;
}

/* ================= DESKTOP MODAL ADJUSTMENTS ================= */
@media (min-width: 768px) {
    .modal-overlay {
        /* On large screens, revert to a centered presentation style */
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
    }
    
    .modal-content {
        margin: 0;
        padding: 40px;
    }
}

#modal-features-list {
    padding-left: 20px;
    margin-bottom: 25px;
}
#modal-features-list li {
    margin-bottom: 8px;
    color: var(--charcoal);
}

/* Accent Pricing Banner Box */
.modal-pricing-box {
    background-color: var(--frosted-mint);
    padding: 15px 20px;
    border-left: 4px solid var(--emerald);
    border-radius: 4px;
    font-size: 1.1rem;
}
#modal-price {
    color: var(--emerald);
    font-weight: bold;
}

/* --- FAQ Section Configuration --- */
.faq-section {
    background-color: var(--frosted-mint); /* Alternates background color cleanly */
    padding: 80px 30px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Spacing between accordion panels */
    margin-top: 30px;
}

/* --- The Details Wrap Block --- */
.faq-item {
    background-color: var(--white);
    border: 1px solid rgba(11, 79, 53, 0.15);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: box-shadow 0.3s ease;
}

/* Adds a nice glow shadow when open */
.faq-item[open] {
    box-shadow: 0 4px 15px rgba(107, 29, 47, 0.1);
    border-color: rgba(107, 29, 47, 0.2);
}

/* --- Clickable Question Header --- */
.faq-item summary {
    padding: 20px 25px;
    font-family: 'Georgia', serif;
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--burgundy);
    cursor: pointer;
    list-style: none; /* Hides default browser arrow symbol */
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: background-color 0.2s ease;
}

/* Custom indicator symbol using a pseudo-element */
.faq-item summary::after {
    content: "+";
    font-size: 1.1rem;
    color: var(--emerald);
    transition: transform 0.2s ease;
}

/* Behavior tweaks when open */
.faq-item[open] summary {
    background-color: var(--cream);
    border-bottom: 1px solid rgba(107, 29, 47, 0.1);
}

.faq-item[open] summary::after {
    content: "-";
    color: var(--burgundy);
}

.faq-item summary:hover {
    background-color: var(--cream);
}

/* Hides default summary triangles in Safari browser configurations */
.faq-item summary::-webkit-details-marker {
    display: none;
}

/* --- Slide Down Answer Block --- */
.faq-answer {
    padding: 20px 25px;
    background-color: var(--white);
}

.faq-answer p {
    margin: 0;
    font-size: 1rem;
    color: var(--charcoal);
    line-height: 1.6;
}

/* ==========================================================================
   5. BOOKING FORM & ANTI-SPAM TRAP
   ========================================================================== */
.booking-section {
    background-color: var(--cream);
}

.booking-container {
    max-width: 750px;
    margin: 0 auto;
}

.booking-header {
    text-align: center;
    margin-bottom: 40px;
}

.booking-header h2 {
    color: var(--burgundy);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.santa-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(11, 79, 53, 0.1);
}

fieldset {
    border: none;
    padding: 0;
    margin: 0 0 30px 0;
}

legend {
    color: var(--burgundy);
    font-size: 1.25rem;
    font-weight: bold;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 5px;
    margin-bottom: 20px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    font-family: inherit;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: var(--cream);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
}

.form-group-row {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Hidden Anti-Spam Trap Element Layout */
.hidden-honeypot {
    display: none !important;
    visibility: hidden;
}

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

.booking-btn {
    background-color: var(--emerald);
    color: var(--white);
    border: 2px solid var(--gold);
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(11, 79, 53, 0.2);
    transition: background-color 0.2s, transform 0.2s;
}

.booking-btn:hover {
    background-color: var(--burgundy);
    transform: translateY(-2px);
}

/* ==========================================================================
   6. STYLIZED FOOTER MODULE
   ========================================================================== */
.site-footer {
    background-color: var(--charcoal);
    color: var(--frosted-mint);
    padding: 60px 30px 20px 30px;
    border-top: 4px solid var(--emerald);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-brand, .footer-links, .footer-contact {
    width: 100%;
}

.footer-logo {
    font-family: 'Georgia', serif;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--gold);
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-brand p {
    font-size: 0.95rem;
    margin: 0;
    max-width: 400px;
    color: #b0c2ba;
}

.site-footer h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 5px;
    display: inline-block;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a, .footer-contact a {
    color: var(--frosted-mint);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover, .footer-contact a:hover {
    color: var(--gold);
}

.footer-contact p {
    margin: 0 0 12px 0;
    font-size: 0.95rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(240, 245, 242, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #b0c2ba;
    margin: 0;
}

/* --- Badges Alignment Frame --- */
.footer-badges-row {
    display: flex;
    flex-direction: column; /* Stacked layout elements on small mobile viewports */
    gap: 20px;
    margin-top: 25px;
}

/* Base parameters for both container links */
.custom-badge-link {
    display: inline-block;
    width: 300px;
    height: 100px;
    text-decoration: none;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Ensure the GigSalad raw image fills its container correctly */
.gigsalad-img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* --- Facebook Custom Crafted Matching Badge --- */
.facebook-badge {
    background-color: #FFFFFF;
    border: 4px solid #E4E6EB; /* Light border framing to copy the GigSalad design look */
    border-radius: 12px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge-icon-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #F0F2F5;
    border-radius: 50%;
}

.badge-text-wrap {
    display: flex;
    flex-direction: column;
    text-align: left;
    font-family: Arial, sans-serif;
}

.badge-title {
    font-size: 0.75rem;
    color: #65676B;
    margin-bottom: 2px;
}

.badge-action-text {
    font-size: 1.05rem;
    color: #050505;
    line-height: 1.2;
}

.badge-action-text fill-blue {
    color: #1877F2;
}

/* Small interactive pill button inside the badge */
.badge-btn {
    align-self: flex-start;
    background-color: #1877F2;
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 14px;
    border-radius: 20px;
    margin-top: 6px;
    line-height: 1;
}

/* Global Hover Effects for Both Badges */
.custom-badge-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ================= DESKTOP LAYOUT RESPONSIVENESS ================= */
@media (min-width: 600px) {
    .footer-badges-row {
        flex-direction: row; /* Badges snap perfectly side-by-side once on a tablet or desktop width screen */
        flex-wrap: wrap;
    }
}


/* ==========================================================================
   7. MEDIA QUERIES (Desktop Layout Conversions)
   ========================================================================== */
   @media (min-width: 600px) 
   {
   .form-group-row {
   flex-direction: row;
   gap: 20px;
   }.form-group-row .form-group 
   {
   flex: 1;
   }
   }
   @media (max-width: 600px) 
   {
   .nav-links {gap: 15px;}
   .nav-links a {font-size: 0.9rem;
   }
   .logo span {
   display: none; /* Collapses text logo on tiny phone widths to prevent clutter */
   }}
   @media (min-width: 768px) {
   /* Responsive Row Conversions */
   .split-container {
   flex-direction: row;
   }
   .flex-reverse {
   flex-direction: row-reverse;
   }
   .split-text-box, 
   .split-image-box {width: 50%;}
   /* Footer Conversions */.footer-container {
   flex-direction: row;
   justify-content: space-between;}
   .footer-brand {
   flex: 2;
   }
   .footer-links, 
   .footer-contact {
   flex: 1;
   }
   }
