/* GLOBAL */
body {
    margin: 0;
    background: #1a1a1a;
    font-family: 'Georgia', serif;
    color: #f5efe6;
}

/* Mobile-friendly settings */
* {
    -webkit-text-size-adjust: 100%;
    box-sizing: border-box;
}

input, select, textarea, button {
    font-size: 16px; /* Prevents auto-zoom on mobile */
}

/* SNOW CANVAS */
#snow-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1000;
}

/* CHRISTMAS LIGHTS */
.christmas-lights {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    pointer-events: none;
    z-index: 2999;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    padding-top: 5px;
}

.light {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    box-shadow: 
        0 0 20px currentColor, 
        0 0 35px currentColor,
        0 0 50px currentColor;
    animation: twinkle 1.5s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.light.red { 
    background: #ff3333;
    color: #ff3333;
    animation-delay: 0s;
}
.light.green { 
    background: #33ff33;
    color: #33ff33;
    animation-delay: 0.3s;
}
.light.blue { 
    background: #3333ff;
    color: #3333ff;
    animation-delay: 0.6s;
}
.light.yellow { 
    background: #ffff33;
    color: #ffff33;
    animation-delay: 0.9s;
}
.light.purple { 
    background: #ff33ff;
    color: #ff33ff;
    animation-delay: 1.2s;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
}

/* HEADER LAYOUT FIX */
.christmas-header {
    background:
        linear-gradient(135deg, #0f4d0f 0%, #8b1d16 100%),
        url('https://www.transparenttextures.com/patterns/wood-pattern.png');
    background-blend-mode: overlay;
    padding: 15px 25px;
    position: sticky;
    top: 0;
    z-index: 3000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);

    display: flex;
    align-items: center;
    justify-content: space-between;
}
/* Header groups: left (logo + title) and right (controls) */
.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* LOGO */
.christmas-logo {
    width: 110px;
}

/* TITLE */
.header-title {
    color: #ffffff;
    font-size: 1.4rem;
    margin: 0;
    pointer-events: none;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Music button visual state */
.music-btn[aria-pressed="true"] {
    color: #ffff44;
}

@media (max-width: 768px) {
    .christmas-header {
        padding: 12px 15px;
    }
    
    .christmas-logo {
        width: 70px;
    }
    
    .header-title {
        font-size: 1rem;
    }
    
    .music-btn {
        font-size: 1.3rem;
        margin-left: 8px;
    }
    
    .volume-slider {
        width: 50px;
        margin-left: 6px;
    }
    
    .holiday-icon {
        display: none;
    }
}

@media (max-width: 480px) {
    .christmas-header {
        flex-wrap: wrap;
        padding: 10px 12px;
    }
    
    .header-left {
        gap: 8px;
    }
    
    .christmas-logo {
        width: 55px;
    }
    
    .header-title {
        font-size: 0.9rem;
    }
    
    .header-right {
        gap: 8px;
    }
}
.hamburger span {
    display: block;
    height: 4px;
    background: #ffffff;
    border-radius: 4px;
    transition: 0.3s;
}
/* Hamburger container */
.hamburger {
    width: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
}

/* DROPDOWN MENU */
.dropdown-menu {
    position: absolute;
    right: 15px;
    top: 65px;
    background: linear-gradient(135deg, #0f4d0f 0%, #8b1d16 100%);
    border: 2px solid #228b22;
    border-radius: 8px;
    padding: 15px 20px;
    display: none;
    flex-direction: column;
    width: 200px;
    animation: fadeIn 0.4s ease-in-out;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.dropdown-menu a,
.dropdown-menu button {
    color: #ffffff;
    padding: 10px 0;
    text-decoration: none;
    text-align: left;
    transition: 0.2s;
}

.dropdown-menu a:hover {
    color: #90ee90;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* NAVIGATION */
.header-nav a {
    color: #f7e7ce;
    margin-left: 20px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: 0.3s ease-in-out;
}
.header-nav a:hover {
    color: #ffdfb0;
}

/* MUSIC BUTTON */
.music-btn {
    font-size: 1.6rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #f2e2d3;
    margin-left: 20px;
}

/* VOLUME SLIDER */
.volume-slider {
    width: 80px;
    height: 4px;
    margin-left: 10px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, #ff3333 0%, #228b22 100%);
    outline: none;
    border-radius: 5px;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: white;
    border: 2px solid #ff3333;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: all 0.2s;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(255,51,51,0.5);
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: white;
    border: 2px solid #ff3333;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: all 0.2s;
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(255,51,51,0.5);
}

@media (max-width: 768px) {
    .volume-slider {
        width: 60px;
    }
}

/* HERO */
.hero {
    /* Layered background: subtle dark gradient, site logo watermark, then festive photo pattern */
    background:
        linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.7)),
        url("rustic_city_logo.jpg"),
        url('/mnt/data/A_photograph_presents_a_close-up_view_of_an_old_re.png');
    /* Sizes for each layer: gradient covers, logo is a fixed watermark, photo tiles */
    background-size: cover, 420px, 350px;
    background-repeat: no-repeat, no-repeat, repeat;
    background-position: center, center, center;
    padding: 150px 20px;
    text-align: center;
    min-height: min(100vh, 720px);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #ff3333;
    text-shadow: 0 0 20px rgba(255, 51, 51, 0.8), 2px 2px 4px #000;
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    color: #90ee90;
    text-shadow: 1px 1px 3px #000;
}

/* SECTION GENERAL */
.deals {
    padding: 110px 40px 90px;
    background:
        linear-gradient(rgba(20,10,5,.55), rgba(20,10,5,.65)),
        url("/mnt/data/A_photograph_presents_a_close-up_view_of_an_old_re.png");
    background-size: 350px;
    background-repeat: repeat;
    border-bottom: 4px solid #5a4636;
    text-align: center;
}

.packages {
    padding: 110px 40px 90px;
    background:
        linear-gradient(rgba(20, 10, 5, 0.55), rgba(20, 10, 5, 0.65)),
        url("rusticbrick.png");
    background-size: 350px;
    background-repeat: repeat;
    background-position: center;
    text-align: center;
}

.hosting {
    padding: 80px 40px;
    text-align: center;
}

.deals h2 {
    font-size: 2.4rem;
    color: #ff3333;
    margin-bottom: 25px;
    text-shadow: 0 0 15px rgba(255, 51, 51, 0.6);
}

.packages h2 {
    font-size: 2.4rem;
    color: #228b22;
    margin-bottom: 25px;
    text-shadow: 0 0 15px rgba(34, 139, 34, 0.6);
}

.hosting h2 {
    font-size: 2.4rem;
    color: #ff3333;
    margin-bottom: 25px;
    text-shadow: 0 0 15px rgba(255, 51, 51, 0.6);
}

/* GRID */
.deals-grid, .package-grid, .hosting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 40px auto;
}

/* CARDS */
.deal-card, .package, .hosting-card {
    background:
        url('https://www.transparenttextures.com/patterns/dark-wood.png'),
        linear-gradient(145deg, #1a1a1a 0%, #2d1f1f 100%);
    border: 2px solid #8b1d16;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 0 12px rgba(139, 29, 22, 0.5);
    transition: 0.3s ease-in-out;
}

.deal-card:hover, .package:hover, .hosting-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 0 25px rgba(255, 51, 51, 0.6),
        0 0 40px rgba(34, 139, 34, 0.4);
    border-color: #228b22;
}

.deal-card h3 {
    color: #ff3333;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 51, 51, 0.5);
}

.package h3 {
    color: #228b22;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(34, 139, 34, 0.5);
}

.hosting-card h3 {
    color: #ff3333;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 51, 51, 0.5);
}

.deal-card ul, .package ul, .hosting-card ul {
    list-style: none;
    padding: 0;
    color: #f2e4d6;
    font-size: 1rem;
}

.deal-card li, .package li, .hosting-card li {
    margin: 6px 0;
}

/* BUTTONS */
.select-btn, .submit-btn {
    background: linear-gradient(135deg, #c41e3a 0%, #0f4d0f 100%);
    border: none;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 15px;
    transition: 0.3s;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(196, 30, 58, 0.4);
}

.select-btn:hover, .submit-btn:hover {
    background: linear-gradient(135deg, #ff3333 0%, #228b22 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 51, 51, 0.5);
}

/* HOSTING INTRO */
.hosting .intro {
    font-size: 1.2rem;
    color: #f1e7d7;
    margin-bottom: 30px;
}

/* CONTACT MODAL */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.modal-content {
    background: #3b3028;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 450px;
    border: 2px solid #725542;
}

.modal-content input, .modal-content textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border-radius: 6px;
    border: none;
    background: #2e2621;
    color: #f7eddc;
}

/* Honeypot: visually hidden but present in DOM for bot detection */
.hp-field {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* MOBILE RESPONSIVE STYLES */
@media (max-width: 768px) {
    .hero {
        padding: 100px 15px;
        min-height: auto;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .deals, .packages, .hosting {
        padding: 50px 15px;
    }
    
    .deals h2, .packages h2, .hosting h2 {
        font-size: 2rem;
    }
    
    .deals-grid, .packages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card {
        padding: 20px;
    }
    
    .card h3 {
        font-size: 1.3rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 12px;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .deals, .packages, .hosting {
        padding: 40px 12px;
    }
    
    .deals h2, .packages h2, .hosting h2 {
        font-size: 1.6rem;
    }
    
    .card {
        padding: 15px;
    }
    
    .card h3 {
        font-size: 1.1rem;
    }
    
    .card p, .card li {
        font-size: 0.9rem;
    }
    
    .price {
        font-size: 1.6rem;
    }
    
    .select-btn, .submit-btn {
        padding: 10px 16px;
        font-size: 0.95rem;
    }
    
    .christmas-lights {
        height: 60px;
    }
    
    .light {
        width: 12px;
        height: 12px;
    }
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 40px;
    background: #2a221c;
    margin-top: 60px;
    border-top: 3px solid #8b1d16;
}

.footer p {
    margin: 0;
    color: #f7e7ce;
}

@media (max-width: 480px) {
    .footer {
        padding: 30px 15px;
        margin-top: 40px;
    }
}
