/* ===========================
   FIESTA - Event Planning Website
   Color Palette: Purple & Silver
   =========================== */

:root {
    --primary-purple: #e0d1ee;
    --dark-purple: #4a148c;
    --light-purple: #f3e5f5;
    --silver: #757575;
    --light-silver: #f5f5f5;
    --dark-gray: #212121;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    animation: fadeIn 0.6s ease-in;
}

html {
    scroll-behavior: smooth;
}

/* ===========================
   HEADER & NAVIGATION
   =========================== */

header {
    background-color: var(--primary-purple);
    color: var(--dark-gray);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s ease;
}

.nav-links a:hover {
    color: var(--dark-purple);
    transform: translateY(-2px);
}

.nav-links a.active {
    color: var(--dark-purple);
    border-bottom: 2px solid var(--dark-purple);
}

/* ===========================
   MAIN CONTAINER
   =========================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* ===========================
   HERO SECTION / WELCOME
   =========================== */

.hero {
    background-color: var(--light-purple);
    color: var(--dark-gray);
    padding: 5rem 3rem;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 4rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
    color: var(--dark-purple);
}

.hero .motto {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--dark-purple);
}

.hero .intro {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--dark-gray);
}

/* ===========================
   SECTIONS
   =========================== */

section {
    margin-bottom: 4rem;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section h2 {
    font-size: 2rem;
    color: var(--dark-purple);
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--primary-purple);
    padding-bottom: 1rem;
}

section h3 {
    font-size: 1.5rem;
    color: var(--dark-purple);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

/* ===========================
   DISCOUNTS & NEWS CARDS
   =========================== */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 2.5rem;
}

.card {
    background-color: transparent;
    border: 2px solid var(--primary-purple);
    border-radius: 15px;
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(107, 70, 193, 0.15);
}

.card h3 {
    color: var(--dark-purple);
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--dark-gray);
    line-height: 1.6;
}

/* ===========================
   PACKAGES
   =========================== */

.packages-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.package {
    background-color: var(--white);
    border: 3px solid var(--primary-purple);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.package:hover {
    box-shadow: 0 5px 20px rgba(107, 70, 193, 0.3);
    transform: translateY(-5px);
}

.package-name {
    font-size: 1.5rem;
    color: var(--dark-purple);
    font-weight: bold;
    margin-bottom: 1rem;
}

.package-price {
    font-size: 2rem;
    color: var(--dark-purple);
    font-weight: bold;
    margin-bottom: 1rem;
}

.package-price small {
    font-size: 1rem;
    color: var(--silver);
}

.package-features {
    text-align: left;
    margin: 1.5rem 0;
    list-style: none;
}

.package-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light-silver);
    color: var(--dark-gray);
}

.package-features li:last-child {
    border-bottom: none;
}

.btn {
    display: inline-block;
    background-color: var(--primary-purple);
    color: var(--dark-purple);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn:hover {
    background-color: var(--dark-purple);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(74, 20, 140, 0.4);
}

.btn-secondary {
    background-color: var(--silver);
    color: var(--dark-gray);
}

.btn-secondary:hover {
    background-color: var(--light-silver);
    color: var(--dark-gray);
}

/* ===========================
   FORMS
   =========================== */

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
    font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--silver);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 5px rgba(107, 70, 193, 0.3);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.error-message {
    color: #DC2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

input.invalid,
textarea.invalid {
    border: 2px solid #DC2626 !important;
    background-color: #FEF2F2;
}

.success-message {
    background-color: #D1FAE5;
    color: #065F46;
    padding: 1rem;
    border-radius: 15px;
    margin-bottom: 1rem;
}

.error-message-box {
    background-color: #FEE2E2;
    color: #7F1D1D;
    padding: 1rem;
    border-radius: 15px;
    margin-bottom: 1rem;
}

/* ===========================
   GALLERY
   =========================== */

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    animation: zoomIn 0.6s ease-out;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* ===========================
   CONTACT SECTION
   =========================== */

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-item {
    background-color: var(--light-silver);
    padding: 1.5rem;
    border-radius: 15px;
}

.contact-item h3 {
    color: var(--dark-purple);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--dark-gray);
}

/* ===========================
   ADMIN PANEL
   =========================== */

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.admin-table thead {
    background-color: var(--primary-purple);
    color: var(--dark-gray);
}

.admin-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--light-silver);
}

.admin-table tbody tr {
    transition: background-color 0.3s ease;
}

.admin-table tbody tr:hover {
    background-color: var(--light-silver);
}

.admin-table tbody tr:nth-child(even) {
    background-color: var(--white);
}

/* ===========================
   FOOTER
   =========================== */

footer {
    background-color: var(--dark-gray);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

footer p {
    margin-bottom: 0.5rem;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem;
    }

    .logo {
        font-size: 1.5rem;
        width: 100%;
        text-align: center;
    }

    .nav-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        text-align: center;
        justify-content: center;
        width: 100%;
    }

    .nav-links li {
        flex: 1 1 auto;
        min-width: 80px;
    }

    .nav-links a {
        display: block;
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .container {
        padding: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .packages-container,
    .cards-grid,
    .gallery-container {
        grid-template-columns: 1fr;
    }

    .admin-table {
        font-size: 0.875rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 0.75rem;
    }

    .logo {
        font-size: 1.3rem;
        text-align: center;
    }

    .nav-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.25rem;
        justify-content: space-around;
    }

    .nav-links li {
        flex: 1 1 auto;
        min-width: 60px;
    }

    .nav-links a {
        font-size: 0.8rem;
        padding: 0.4rem 0.5rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    section h2 {
        font-size: 1.5rem;
    }
}
