:root {
    --purple: #6d2cb4;
    --blue: #003c73;
    --gold: #cda618;
    --white: #ffffff;
    --black: #0a0a0a;
    --gray-light: #f5f5f5;
    --gray-medium: #666;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --halloween-orange: #FF6600;
    --halloween-green: #38761d;
    --halloween-red: #cc0000;
    --halloween-purple: #550055;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--black);
    background-color: var(--white);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-header {
    height: 60px;
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s;
    position: relative;
}

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

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

        nav a.active::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            right: 0;
            height: 2px;
            background: var(--gold);
        }

    nav a.cta-header.active {
        background: var(--gold);
        color: var(--black);
    }

        nav a.cta-header.active::after {
            content: none;
        }

.cta-header {
    background: var(--gold);
    color: var(--black);
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
}

    .cta-header:hover {
        background: #e0b820;
        color: var(--black);
    }

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 5px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('./alfred-back.webp') center/cover;
        filter: brightness(0.4);
        z-index: 0;
    }

    .hero::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(109, 44, 180, 0.7) 0%, rgba(0, 60, 115, 0.7) 100%);
        z-index: 1;
    }

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gold);
    color: var(--black);
}

    .btn-primary:hover {
        background: #e0b820;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(205, 166, 24, 0.4);
    }

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

    .btn-secondary:hover {
        background: white;
        color: var(--purple);
    }

.btn-purple {
    background: var(--purple);
    color: white;
}

    .btn-purple:hover {
        background: #8844d4;
    }

.btn-blue {
    background: var(--blue);
    color: white;
}

    .btn-blue:hover {
        background: #005ca8;
    }

.btn-text-link {
    color: var(--purple);
    font-weight: 600;
    text-decoration: none;
}

    .btn-text-link:hover {
        color: var(--blue);
        text-decoration: underline;
    }

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

.full-width-section {
    padding: 0;
    margin: 0 auto;
    max-width: 1400px;
}

section {
    padding: 80px 0;
}

    section.blue-bg {
        background: linear-gradient(135deg, rgba(0, 60, 115, 0.05) 0%, rgba(109, 44, 180, 0.05) 100%);
    }

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

    .section-header h2 {
        font-size: 36px;
        color: var(--black);
        margin-bottom: 15px;
    }

    .section-header p {
        font-size: 18px;
        color: var(--gray-medium);
        max-width: 700px;
        margin: 0 auto;
    }

/* --- SQUARE, FULL-WIDTH, ALTERNATING CARDS FOR .four-service-grid --- */
.four-service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: 40px 0;
    box-shadow: var(--shadow-hover);
    border-radius: 20px;
    overflow: hidden;
    width: 100vw;
    max-width: 100vw;
    left: 50%;
    right: 50%;
    position: relative;
    transform: translateX(-50%);
    min-height: 600px;
}

    .four-service-grid .service-block,
    .four-service-grid .index-card {
        width: 100%;
        height: 100%;
        min-width: 0;
        min-height: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        border-radius: 0;
        box-shadow: none;
        padding: 60px 40px;
    }

/* Force correct backgrounds and text color */
.four-service-grid .service-block.purple { background: linear-gradient(135deg, var(--purple) 0%, #8844d4 100%) !important; color: #fff; }
.four-service-grid .service-block.blue { background: linear-gradient(135deg, var(--blue) 0%, #005ca8 100%) !important; color: #fff; }
.four-service-grid .index-card.gold { background: linear-gradient(135deg, var(--gold) 0%, #ffe066 100%) !important; color: var(--black); }
.four-service-grid .index-card.purple-alt { background: linear-gradient(135deg, #8844d4 0%, var(--purple) 100%) !important; color: #fff; }

@media (max-width: 1200px) {
    .four-service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

        .four-service-grid .service-block,
        .four-service-grid .index-card {
            aspect-ratio: unset;
            min-height: 400px;
        }
}

@media (max-width: 768px) {
    .four-service-grid {
        grid-template-columns: 1fr;
        max-width: 100vw;
        padding: 0;
    }

        .four-service-grid .service-block,
        .four-service-grid .index-card {
            aspect-ratio: unset;
            min-height: 350px;
            border-radius: 15px;
            box-shadow: var(--shadow);
        }
}

/* --- GOLD BUTTONS, BLACK ON HOVER --- */
.four-service-grid .btn,
.four-service-grid .btn.btn-primary {
    background: var(--gold) !important;
    color: var(--black) !important;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    transition: background 0.2s, color 0.2s;
}

    .four-service-grid .btn:hover,
    .four-service-grid .btn.btn-primary:hover {
        background: var(--black) !important;
        color: var(--gold) !important;
    }

/* --- Remove min-height from .service-block/.index-card for perfect squares --- */
.service-block, .index-card {
    min-height: unset;
}

    /* Unified Block Styling */
    .service-block h3, .index-card h3 {
        font-size: 28px;
        margin-bottom: 15px;
        line-height: 1.2;
    }

    .service-block p, .index-card p {
        font-size: 15px;
        margin-bottom: 20px;
        line-height: 1.6;
        opacity: 0.95;
    }

    .service-block ul, .index-card ul {
        list-style: none;
        margin: 20px 0 30px;
        padding: 0;
    }

    .service-block li, .index-card li {
        padding: 8px 0;
        padding-left: 25px;
        position: relative;
        font-size: 14px;
    }

        .service-block li::before, .index-card li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: var(--gold);
            font-weight: bold;
            font-size: 18px;
        }

    .index-card.gold li::before {
        color: var(--black);
    }

    .index-card.purple-alt li::before {
        color: var(--gold);
    }

/* Service Meta Section */
.service-meta {
    margin-top: auto;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.25);
}

.service-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.service-price {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.service-turnaround {
    font-size: 13px;
    opacity: 0.85;
    margin-bottom: 20px;
}

/* Button Styling within Blocks - ALL GOLD WITH BLACK HOVER */
.service-block .btn, .index-card .btn {
    width: 100%;
    text-align: center;
    padding: 14px 30px;
    font-size: 15px;
    background: var(--gold);
    color: var(--black);
}

    .service-block .btn:hover, .index-card .btn:hover {
        background: var(--black);
        color: var(--gold);
        transform: none;
        box-shadow: none;
    }

.services-split {
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
    padding: 0 20px;
    margin-top: 60px;
    margin-bottom: 60px;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

/* Centered three-up grid variant (for locations index) */
.card-grid.centered {
  grid-template-columns: repeat(3, 360px);
  justify-content: center;
}

/* Blog Grid - 4 Columns */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.blog-grid .card {
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 30px;
}

.blog-grid .card h3 {
  text-align: left;
  margin: 0 0 15px 0;
  line-height: 1.3;
  font-size: 20px;
}

.blog-grid .card h3 a {
  color: var(--purple);
  text-decoration: none;
  transition: color 0.3s;
}

.blog-grid .card h3 a:hover {
  color: var(--gold);
}

.blog-grid .card p {
  text-align: left;
  flex-grow: 1;
  margin-bottom: 15px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-medium);
}

.blog-grid .card small {
  display: block;
  margin-top: auto;
  padding-top: 15px;
  color: var(--gold);
  font-weight: 600;
  font-size: 13px;
}

@media (max-width: 1200px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-grid.centered {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
  .card-grid.centered {
    grid-template-columns: 1fr;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    text-align: center;
    height: 100%;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-hover);
    }

    .card h3 {
        font-size: 22px;
        margin: 20px 0 15px;
        color: var(--purple);
    }

    .card .icon {
        font-size: 48px;
        color: var(--gold);
    }

    .card p {
        color: var(--gray-medium);
    }

/* Content Sections */
.content-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.content-image {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
    color: white;
    text-align: center;
    padding: 80px 20px;
    border-radius: 20px;
    margin: 60px auto;
    max-width: 1200px;
    box-shadow: var(--shadow);
}

    .cta-section h2 {
        font-size: 36px;
        margin-bottom: 20px;
    }

    .cta-section p {
        font-size: 18px;
        margin-bottom: 30px;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
        opacity: 0.95;
    }

/* Forms */
.form-section {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: var(--black);
    }

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    font-family: 'Open Sans', sans-serif;
}

    .form-control:focus {
        outline: none;
        border-color: var(--purple);
    }

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.checkbox-item {
    display: flex;
    align-items: center;
}

    .checkbox-item input {
        margin-right: 8px;
    }

/* Footer */
footer {
    background: var(--black);
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--gold);
    font-family: 'Montserrat', sans-serif;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

    .footer-col a:hover {
        color: var(--gold);
    }

.footer-col p {
    color: #ccc;
    line-height: 1.8;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* Halloween Styles */
.coloring-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.coloring-card {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 250px;
    transition: transform 0.3s;
}

    .coloring-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-hover);
    }

    .coloring-card img {
        width: 100%;
        height: auto;
        border-radius: 10px;
        margin-bottom: 15px;
        border: 3px solid var(--gold);
    }

.prize-block {
    background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
    color: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 40px;
}

.prize-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 700px;
    margin: 20px auto 0;
    text-align: left;
}

.full-rules-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.rules-toggle-btn {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background: var(--purple);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

    .rules-toggle-btn:hover {
        background: var(--blue);
    }

.full-rules-content {
    background: white;
    padding: 20px;
    border: 2px solid var(--purple);
    border-radius: 10px;
    margin-top: 10px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s ease-in-out;
    box-shadow: var(--shadow);
    color: var(--black);
}

    .full-rules-content p {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .full-rules-content ul {
        list-style-type: disc;
        margin-left: 20px;
    }

#confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2000;
    overflow: hidden;
}

.confetti {
    position: absolute;
    top: -20px;
    opacity: 0;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        opacity: 0.8;
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        opacity: 0.5;
        transform: translate(var(--end-x), 100vh) rotate(720deg);
    }
}

.halloween-rules-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch;
}

.full-width-rules-wrapper {
    max-width: 1400px;
    padding: 0 20px;
    margin: 0 auto;
}

.halloween-card {
    padding: 40px 25px;
    line-height: 1.5;
    border-radius: 15px;
    color: white;
    text-align: center;
    height: 100%;
    box-shadow: var(--shadow-hover);
    transition: transform 0.3s;
}

    .halloween-card h4 {
        font-family: 'Montserrat', sans-serif;
        font-weight: 700;
        margin-bottom: 15px;
        font-size: 20px;
    }

    .halloween-card p, .halloween-card ul {
        font-size: 16px;
        text-align: center;
    }

    .halloween-card ul {
        list-style: none;
        padding-left: 0;
        max-width: 250px;
        margin: 0 auto 10px;
    }

        .halloween-card ul li {
            text-align: left;
        }

.card-how-to {
    background: var(--halloween-orange);
}

.card-facebook {
    background: var(--halloween-purple);
}

.card-dates {
    background: var(--halloween-green);
}

.card-eligibility {
    background: var(--halloween-red);
}

/* Responsive */
@media (max-width: 992px) {
    .four-service-grid, .halloween-rules-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .four-service-grid {
        border-radius: 20px;
        padding: 0 20px;
        box-shadow: none;
    }

        .four-service-grid .service-block, .four-service-grid .index-card {
            border-radius: 15px;
            box-shadow: var(--shadow);
        }

    .content-two-col {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: var(--shadow);
    }

        nav ul.active {
            display: flex;
        }

    nav a {
        font-size: 16px;
        display: block;
        padding: 10px;
    }

        nav a.active::after {
            display: none;
        }

    .hero {
        height: 500px;
    }

        .hero h1 {
            font-size: 32px;
        }

        .hero p {
            font-size: 16px;
        }

    .section-header h2 {
        font-size: 28px;
    }

    .service-block {
        padding: 40px 30px;
    }

        .service-block h3 {
            font-size: 26px;
        }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .four-service-grid, .halloween-rules-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
        box-shadow: none;
    }

        .four-service-grid .service-block, .four-service-grid .index-card {
            border-radius: 15px;
            box-shadow: var(--shadow);
        }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 60px 0;
    }

    .form-section {
        padding: 30px 20px;
    }

    .prize-details-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .cta-section {
        padding: 60px 20px;
    }

        .cta-section h2 {
            font-size: 28px;
        }
}

@media (max-width: 480px) {
    .hero {
        height: 450px;
    }

        .hero h1 {
            font-size: 26px;
        }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .section-header p {
        font-size: 16px;
    }
}

/* Admin Dashboard Styles */
.tabs {
  display: flex;
  gap: 10px;
  margin: 30px 0 20px;
  border-bottom: 2px solid var(--gray-light);
}

.tab-link {
  padding: 12px 24px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-weight: 600;
  color: var(--gray-medium);
  transition: all 0.3s;
}

.tab-link:hover {
  color: var(--purple);
}

.tab-link.active {
  color: var(--purple);
  border-bottom-color: var(--purple);
}

.tab-content {
  display: none;
  padding: 20px 0;
}

.tab-content.active {
  display: block;
}

.sub-tabs {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}

.sub-tab-link {
  padding: 10px 20px;
  background: var(--gray-light);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  color: var(--gray-medium);
  transition: all 0.3s;
}

.sub-tab-link:hover {
  background: var(--purple);
  color: white;
}

.sub-tab-link.active {
  background: var(--purple);
  color: white;
}

.sub-tab-content {
  display: none;
}

.sub-tab-content.active {
  display: block;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.cta-button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--purple);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.cta-button:hover {
    background: var(--blue);
    transform: translateY(-2px);
}

.admin-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.submit-button {
    width: 100%;
    padding: 14px;
    background: var(--purple);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-button:hover {
    background: var(--blue);
}
