/* ==========================================================================
   1. FONTS & ROOT VARIABLES
   ========================================================================== */

@font-face {
    font-family: 'PumpedUpKicks';
    src: url('fonts/pumped-up-kicks/pumped-up-kicks.woff2') format('woff2'),
         url('fonts/pumped-up-kicks/pumped-up-kicks.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --white: #ffffff;
    --cream: #fffdd0;
    --gray: #b7a6c9;
    --blue: #4b6fc5;
    --black: #000000;
    --green: #a1cd53;
    --text-main: #333333;
    --font-heading: "Chelsea Market", sans-serif;
    --font-body: "DM Sans", sans-serif;
}

/* ==========================================================================
   2. GLOBAL BASE STYLES & TYPOGRAPHY
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
    background-color: var(--green);
    color: var(--text-main);
}

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

/* Standard Links */
a {
    color: var(--green);
    text-decoration: none;
}

a:hover {
    color: var(--blue);
    text-decoration: underline;
}

/* Headings Base Group */
h1, h2, h3 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
}

h1 {
    padding: 10px 20px;
    background-color: var(--blue);
    color: var(--white);
}

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

h3 {
    color: var(--blue);
}

/* Typography Utility Classes */
.large-text {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    color: var(--white);
}

.mid-text {
    font-size: 1.2rem;
}

/* ==========================================================================
   3. HEADER
   ========================================================================== */

.site-header {
    width: 100%;
    padding: 20px 0;
    background-color: var(--black);
    display: flex;
    align-items: center;
}

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

.header-logo img {
    width: auto;
    display: block;
}

.header-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.contact-item {
    color: var(--green);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.contact-item:hover {
    color: var(--green);
    background-color: var(--blue);
    text-decoration: none;
}

/* ==========================================================================
   4. SWIPER SLIDER
   ========================================================================== */

.mySwiper {
    position: relative;
    width: 100vw;
    max-width: 100%;
    height: 500px;
    --swiper-navigation-color: var(--white);
    --swiper-pagination-color: var(--blue);
    --swiper-pagination-bullet-inactive-color: var(--white);
    --swiper-pagination-bullet-inactive-opacity: 1.0;
}

.mySwiper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background-image: url("images/header.png");
    background-repeat: repeat-x;
    background-position: top left;
    z-index: 10;
    pointer-events: none;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   5. BENEFITS GRID
   ========================================================================== */

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 16px;
}

.benefit-item {
    background-color: var(--white);
    padding: 24px 24px 10px 24px;
    border-radius: 10px;
}

.benefit-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--blue);
    margin-top: 0;
    margin-bottom: 12px;
}

/* ==========================================================================
   6. GALLERY GRID & LIGHTBOX
   ========================================================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    justify-content: center;
    padding: 16px 0;
}

.gallery-item {
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
}

.gallery-thumb {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-thumb {
    transform: scale(1.05);
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 4px;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

.lightbox.active img {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
}

/* ==========================================================================
   7. SIDEBAR LAYOUT & FORM STYLES
   ========================================================================== */

.sidebar-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    background-color: var(--white);
}

.sidebar-aside,
.sidebar-content {
    padding: 20px;
}

/* Forms */
input,
textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 15px 20px;
    font-family: inherit;
    font-size: 1rem;
    color: #2d3748;
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.25s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--green);
    background-color: var(--white);
}

input::placeholder,
textarea::placeholder {
    color: #a0aec0;
    opacity: 1;
}

/* Form Submission Status */
#FormStatus {
    display: none;
    padding: 10px 20px;
    margin-bottom: 10px;
    text-align: center;
}

.FormStatusSuccess {
    background-color: var(--green);
    color: var(--black);
}

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

button {
    display: block;
    margin-left: auto;
    margin-right: 0;
    padding: 15px 35px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    background-color: var(--blue);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
}

button:hover,
button:focus {
    outline: none;
    background-color: var(--green);
}

button:active {
    transform: scale(0.98);
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */

footer {
    position: relative;
    background-color: var(--black);
    color: var(--white);
    height: 300px;
    padding: 1rem 0 0 0;
    text-align: right;
}

footer .container {
    padding: 1rem 40px;
}

footer h2 {
    background-color: var(--black);
    color: var(--blue);
    font-size: 2rem;
}

footer a {
    color: var(--green);
    font-weight: 400;
}

footer a:hover {
    color: var(--blue);
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* ==========================================================================
   9. MEDIA QUERIES (RESPONSIVE)
   ========================================================================== */

@media (max-width: 768px) {
    .site-header {
        height: auto;
    }

    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .header-contact {
        align-items: center;
    }

    .sidebar-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-aside {
        padding: 20px 20px 0 20px;
    }

    .sidebar-content {
        padding: 0 20px 20px 20px;
    }

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

    .benefits-grid {
        grid-template-columns: 1fr;
        padding: 10px 0;
    }
    
    .mySwiper {
        height: 240px;
    }
}

