/*
Author: Gerald Pender
Date: March 29, 2026
File Name: styles.css
*/

/* =========================
CSS RESET
========================= */
/*
This reset removes default spacing and borders applied by browsers.
It ensures consistency across different browsers like Chrome, Edge, and Safari.
*/

body, header, nav, main, footer, img, h1, h3, ul, aside, figure, figcaption, video {
    margin: 0;
    padding: 0;
    border: 0;
}

/* =========================
GLOBAL STYLES
========================= */

body {
    background-color: #f6eee4;
}

img, video {
    max-width: 100%;
    display: block;
}

/* =========================
MOBILE STYLES (DEFAULT)
========================= */

/*
Mobile-first design means we style for small screens first,
then use media queries to adjust for larger devices.
*/

/* Show mobile, hide desktop/tablet */
.mobile, .mobile-tablet {
    display: block;
}

.tab-desk, .desktop, #nav-links {
    display: none;
}
/*
#nav-links is hidden by default so the hamburger menu controls when it appears.
*/

/* Header styles */
.mobile h1, .mobile h3 {
    padding: 2%;
    text-align: center;
}

.mobile h1 {
    font-family: 'Emblema One', cursive;
}

.mobile h3 {
    font-family: 'Lora', serif;
}

/* =========================
MOBILE NAVIGATION (NEW)
========================= */

/*
These styles control the hamburger menu navigation.
The links are stacked vertically and centered for easy tapping.
*/

.mobile-nav a {
    color: #fff;
    text-align: center;
    font-size: 2em;
    text-decoration: none;
    padding: 3%;
    display: block;
}

/*
The nav-icon (hamburger button) is positioned in the top-left corner.
It stays fixed so users can always access the menu.
*/
.mobile-nav a.nav-icon {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    color: #f6eee4;
    padding: 2%;
}

/*
This styles the hamburger icon itself (☰).
*/
.nav-icon div {
    height: 40px;
    width: 40px;
    color: #2a1f14;
}

/* =========================
NAVIGATION (UPDATED)
========================= */

nav {
    background-color: #2a1f14;
}

/*
Moved nav ul styles to tablet section per instructions.
*/

/*
Mobile nav li styles simplified:
Removed display, font-size, and border-top as instructed.
*/
nav li {
    font-family: Geneva, Arial, sans-serif;
    font-weight: bold;
}

/*
Removed padding from mobile nav links and moved to tablet styles.
*/
nav li a {
    display: block;
    color: #f6eee4;
    text-decoration: none;
}

/* =========================
MAIN CONTENT
========================= */

main {
    padding: 2%;
    font-family: 'Lora', serif;
}

main p {
    font-size: 1.25em;
}

main h3 {
    padding-top: 2%;
}

main ul {
    list-style-type: square;
}

.link {
    color: #4d3319;
    text-decoration: none;
    font-weight: bold;
    font-style: italic;
}

.action {
    font-size: 1.75em;
    font-weight: bold;
    text-align: center;
}

.round {
    border-radius: 6px;
}

/* =========================
LAYOUT ELEMENTS
========================= */

aside {
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    text-shadow: 4px 4px 10px #c5a687;
}

figure {
    border: 4px solid #2a1f14;
    box-shadow: 6px 6px 10px #c5a687;
    max-width: 400px;
    margin: 2% auto;
}

figcaption {
    padding: 2%;
    border-top: 4px solid #2a1f14;
}

#info ul {
    margin-left: 10%;
}

/* =========================
CONTACT + FORM
========================= */

#contact, #form h2 {
    text-align: center;
}

.tel-link {
    background-color: #2a1f14;
    padding: 2%;
    width: 80%;
    margin: 0 auto;
}

.tel-link a {
    color: #f6eee4;
    text-decoration: none;
    font-weight: bold;
}

/* FAQ STYLES (NEW) */
#questions p {
    cursor: pointer;
}
/*
Cursor pointer tells users the text is clickable.
*/

#answer {
    text-align: center;
    font-weight: bold;
    width: 80%;
    margin: 0 auto;
}

#answer h2 {
    display: none;
}
/*
The answer heading is hidden until JavaScript makes it visible.
*/

/* =========================
FORM STYLES
========================= */

fieldset, input, textarea  { 
    margin-bottom: 2%;
}

fieldset legend {
    font-weight: bold;
    font-size: 1.25em;
}

label {
    display: block;
    padding-top: 2%;
}

form #submit {
    margin: 0 auto;
    display: block;
    padding: 2%;
    background-color: #78593a;
    color: #f6eee4;
    font-size: 1.25em;
    border-radius: 10px;
}

/* =========================
FOOTER
========================= */

footer {
    text-align: center;
    font-size: 0.85em;
    background-color: #2a1f14;
    color: #f6eee4;
    padding: 1% 0;
}

footer a {
    color: #f6eee4;
    text-decoration: none;
}

/* =========================
TABLET MEDIA QUERY
========================= */

@media screen and (min-width: 620px), print {

    .tab-desk {
        display: block;
    }

    .mobile, .mobile-nav {
        display: none;
    }
    /*
    Mobile nav is hidden on larger screens because
    standard navigation is used instead.
    */

    nav ul {
        list-style-type: none;
        text-align: center;
    }

    nav li {
        display: inline-block;
        font-size: 1.25em;
        font-family: Geneva, Arial, sans-serif;
        font-weight: bold;
    }

    nav li a {
        padding: 0.5em;
    }

    .grid {
        display: grid;
        grid-template-columns: auto auto;
        grid-gap: 10px;
    }

    aside {
        grid-column: 1 / span 2;
    }

    form {
        width: 70%;
        margin: 0 auto;
    }

}

/* =========================
DESKTOP MEDIA QUERY
========================= */

@media screen and (min-width: 1000px), print {

    .desktop {
        display: block;
    }

    .mobile-tablet {
        display: none;
    }

    nav li {
        font-size: 1.5em;
    }

    nav li a {
        padding: 0.5em 1.5em;
    }

    nav li a:hover {
        color: #2a1f14;
        background-color: #f6eee4;
        opacity: 0.5;
    }

    #info ul {
        margin-left: 5%;
    }

    .grid {
        grid-template-columns: auto auto auto;
        grid-gap: 30px;
    }

    aside {
        grid-column: 1 / span 3;
        font-size: 2em;
    }

    table {
        border: 1px solid #2a1f14;
        border-collapse: collapse;
        margin: 0 auto;
    }

    caption {
        font-size: 1.5em;
        font-weight: bold;
        padding: 1%;
    }

    th, td {
        border: 1px solid #2a1f14;
        padding: 1%;
    }

    th {
        background-color: #2a1f14;
        color: #fff;
        font-size: 1.15em;
    }

    tr:nth-child(odd) {
        background-color: #deccba;
    }

    form {
        width: auto;
    }

    .form-grid {
        display: grid;
        grid-template-columns: auto auto;
        grid-gap: 20px; 
    }

    .btn {
        grid-column: 1 / span 2;
    }

}

/* =========================
LARGE DESKTOP
========================= */

@media screen and (min-width: 1921px), print {

    body {
        background: linear-gradient(#f6eee4, #78593a);
    }

    #wrapper {
        width: 1920px;
        margin: 0 auto;
    }

    main {
        background-color: #f6eee4;
    }

    .grid {
        grid-template-columns: auto auto auto auto;
    }

    aside {
        grid-column: 1 / span 4;
        font-size: 3em;
    }

}

/* =========================
PRINT STYLES
========================= */

@media print {

    body {
        background-color: #fff;
        color: #000;
    }

}