/* =========================
   GLOBAL RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

.social-icon {
    width: 30px;
    height: 30px;
}

body { 
    line-height: 1.5; 
    color: #000;
    background-image: url('../images/backsplash.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}


html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}


main {
    flex: 1 0 auto;       
    display: flex;        
    justify-content: center;
    width: 100%;
}

/* =========================
   BUTTONS
========================= */
button {
    background: #fff;
    color: #000;
    border: none;
    border-radius: 18px;
    padding: 8px 15px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
    transition: box-shadow 0.15s;
}

button:hover {
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

/* =========================
   HEADER
========================= */
.site-header {
    width: 100%;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: white;
    background: rgba(0,0,0,0.4);
    position: relative;
    z-index: 1;
}

.header-content h1 { 
    font-size: 2rem; 
    margin-bottom: 10px; 
}

.header-content p { 
    font-size: 1rem; 
    line-height: 1.4; 
    max-width: 600px; 
    margin: 0 auto 15px auto; 
}

.header-bg {
    width: 100%;
    height: auto;
    display: block;
}

/* =========================
   NAVIGATION
========================= */
.horizontalNavigation {
    width: 100%;
    margin-bottom: 20px;
}

.horizontalNavigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px 0;
}

.horizontalNavigation li { margin: 0 10px; }

.horizontalNavigation a {
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
    text-decoration: none;
}

.horizontalNavigation a:hover { color: #ffd700; }

.menu-icon {
    display: none;
    width: 40px;
    height: 40px;
    background: url('../images/menu-icon.png') no-repeat center/contain;
    border: none;
    cursor: pointer;
}

/* =========================
   GRID LAYOUT HOME PAGE
========================= */

main.gridLayout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    width: 90%;
    max-width: 1100px;
    margin: 20px auto;
    position: relative;
    z-index: 2;
}

/* image grid */
.imageGrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.imageGrid figure {
    width: 100%;
    padding-top: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.imageGrid figure img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#centerColumn,
#rightColumn {
    color: #000;
    text-align: left;
}

#rightColumn {
    padding: 15px;
    background: rgba(255,255,255,0.7);
    border-radius: 10px;
}

#rightColumn h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

#rightColumn p {
    font-size: 1rem;
    line-height: 1.4;
}

/* =========================
   CONTACT FORM
========================= */
#rightColumn form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#rightColumn form input,
#rightColumn form textarea,
#rightColumn form select {
    width: 100%;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

#rightColumn form fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

#rightColumn form fieldset label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

#rightColumn form legend {
    font-weight: bold;
    margin-bottom: 5px;
}

#rightColumn form input[type="checkbox"],
#rightColumn form input[type="radio"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

#rightColumn form .form-buttons {
    display: flex;
    gap: 10px;
}

#rightColumn form .form-buttons button {
    flex: 1;
    padding: 8px;
    border-radius: 18px;
    border: none;
    font-weight: bold;
    cursor: pointer;
}

#rightColumn form .form-buttons button:hover {
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

#sizeValue {
    font-weight: bold;
}

/* =========================
   PRICING TABLE
========================= */
.responsive-table {
    width: 700px;
    max-width: 90%;
    margin: 40px auto;
    border-collapse: collapse;
    background: rgba(255,255,255,0.95);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.responsive-table th,
.responsive-table td {
    padding: 12px;
    border-bottom: 1px solid #ccc;
    text-align: left;
}

.responsive-table th {
    background: #333;
    color: white;
    font-weight: bold;
}

/* Mobile table formatting */
@media (max-width: 700px) {
    .responsive-table {
        width: 100%;
    }

    .responsive-table thead {
        display: none;
    }

    .responsive-table tr {
        display: block;
        margin-bottom: 10px;
        border: 1px solid #ccc;
        border-radius: 8px;
        padding: 10px;
        background: rgba(255,255,255,0.95);
    }

    .responsive-table td {
        display: flex;
        justify-content: space-between;
        padding: 8px;
        border: none;
    }

    .responsive-table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #333;
    }
}

/* =========================
   FOOTER 
========================= */
footer {
    width: 100%;
    text-align: center;
    padding: 15px 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-radius: 0 0 5px 5px;
    margin-top: auto;
}

/* =========================
   MEDIA QUERIES
========================= */
@media (max-width: 900px) {
    main.gridLayout {
        grid-template-columns: 1fr;
        width: 95%;
    }

    .imageGrid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

@media (max-width: 600px) {
    .menu-icon { 
        display: block; 
        margin: 10px auto; 
    }

    .horizontalNavigation ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(0,0,0,0.85);
        text-align: center;
    }

    .horizontalNavigation ul.active { 
        display: flex; 
    }

    .horizontalNavigation li { 
        margin: 10px 0; 
    }

    /* Home page grid on mobile */
    main.gridLayout { 
        grid-template-columns: 1fr; 
        width: 95%; 
        margin: 10px auto; 
    }

    .imageGrid { 
        grid-template-columns: 1fr; 
        gap: 10px; 
    }

    #rightColumn h2 { 
        font-size: 1.5rem; 
        text-align: center; 
    }

    #rightColumn p { 
        font-size: 0.95rem; 
        text-align: center; 
    }

    main {
        width: 95%;
        margin: 10px auto 30px auto;
        padding: 0 12px 20px 12px;
    }

    main article {
        margin-bottom: 18px;
    }

    main p {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }

    button { 
        width: 100%; 
    }

    .site-header { 
        padding: 20px 10px; 
    }

    .header-content h1 { 
        font-size: 1.5rem; 
    }

    .header-content p { 
        font-size: 0.95rem; 
    }

    #rightColumn form .form-buttons {
        flex-direction: column;
    }
}
