/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 12, 2026
    Project:    Concept Site - Hickory Hollow RV Park (fictional business)
    Filename:   styles.css

    Theme: the camp host's map. The header is a piece of a topo map:
    pale green with brown contour lines (repeating radial gradients
    centered off the edge) and a tree symbol by the name. The hero
    sits under a band of evening sky with stars. The signature is a
    loop map of the campground: a gravel loop road drawn as a thick
    rounded ring, numbered pull-through sites outside it, back-in
    sites inside under the trees, the bathhouse in the middle and the
    entrance at the bottom. Hookups are explained with a drawn power
    pedestal (meter, 50/30/20 amp outlets) next to a water spigot and
    sewer cap. The footer is a starry night.

    Mobile-first; media queries at 576px, 768px, 992px and 1200px.

    Colors (WebAIM contrast checked, AA):
      #0D1F12 text on #F7FAF3 page (16.8:1)
      #137638 green text (5.8:1 on the page)
      #FFFFFF on #15803D buttons (5.0:1)
      #A84E0F orange text (5.6:1 on the page)
*/

/* ----- Browser reset (universal) ----- */

/* Border-box sizing and no default spacing. */
* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

/* ----- Page defaults (element) ----- */

/* Pale map-paper page. */
body {
    background-color: #F7FAF3;
    color: #0D1F12;
    font-family: "Lato", Arial, sans-serif;
    font-size: 1.03rem;
    line-height: 1.6;
}

/* Photos never spill out. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Friendly slab headings. */
h1,
h2 {
    font-family: "Bree Serif", Georgia, serif;
    font-weight: 400;
    line-height: 1.1;
}

/* Section titles. */
h2 {
    font-size: clamp(1.8rem, 4.8vw, 2.7rem);
    color: #137638;
    margin-bottom: 10px;
}

/* Links in green. */
a {
    color: #137638;
}

/* Orange outline for keyboard users. */
a:focus-visible,
button:focus-visible,
.menu-check:focus-visible + .topo-row .menu-icon {
    outline: 3px solid #A84E0F;
    outline-offset: 3px;
}

/* ----- Topo map header (class) ----- */

/* Map green with brown contour lines spreading from two hills. */
.topo {
    position: relative;
    background-color: #E6EFD9;
    background-image: repeating-radial-gradient(ellipse at 85% 120%, transparent 0px, transparent 12px, rgba(146, 102, 56, 0.35) 12px, rgba(146, 102, 56, 0.35) 13px), repeating-radial-gradient(ellipse at 10% -40%, transparent 0px, transparent 14px, rgba(146, 102, 56, 0.25) 14px, rgba(146, 102, 56, 0.25) 15px);
    border-bottom: 3px solid #137638;
    padding: 14px 16px;
}

/* Hidden checkbox that keeps focus. */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Logo and menu in a row. */
.topo-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo on a cream label like a map legend. */
.logo {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0px 8px;
    background-color: #F7FAF3;
    border: 2px solid #0D1F12;
    padding: 4px 12px;
    font-family: "Bree Serif", Georgia, serif;
    font-size: 1.3rem;
}

/* Small part of the name. */
.logo .sub {
    font-family: "Lato", Arial, sans-serif;
    font-size: 0.75rem;
    color: #137638;
    font-weight: 700;
}

/* Map tree symbol: a green circle on a trunk. */
.tree {
    width: 18px;
    height: 24px;
    background-image: radial-gradient(circle at 50% 35%, #15803D 0px, #15803D 8px, transparent 9px), linear-gradient(90deg, transparent 42%, #6B4E2E 42%, #6B4E2E 58%, transparent 58%);
}

/* Menu button. */
.menu-icon {
    background-color: #15803D;
    color: #FFFFFF;
    font-weight: 700;
    padding: 4px 12px;
    cursor: pointer;
}

/* Nav hidden on phones until opened. */
.topo-nav {
    display: none;
}

/* Open menu shows the nav. */
.menu-check:checked ~ .topo-nav {
    display: block;
}

/* Nav list. */
.topo-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 10px;
}

/* Nav links on small cream labels. */
.topo-nav a {
    display: inline-block;
    background-color: #F7FAF3;
    color: #0D1F12;
    font-weight: 700;
    text-decoration: none;
    padding: 0px 8px;
}

/* Hover: green. */
.topo-nav a:hover {
    color: #137638;
}

/* ----- Concept note (class) ----- */

/* Small note. */
.concept {
    font-size: 0.8rem;
    padding: 6px 16px;
}

/* ----- Evening hero (class) ----- */

/* Dusk-blue band. */
.evening {
    background-color: #1E2A44;
    color: #FFFFFF;
    padding: 0px 16px 56px 16px;
}

/* Starry sky strip across the top. */
.sky {
    height: 70px;
    margin: 0px -16px 20px -16px;
    background-color: #12192B;
    background-image: radial-gradient(circle, #FFFFFF 0px, #FFFFFF 1px, transparent 2px), radial-gradient(circle, #FDE68A 0px, #FDE68A 1px, transparent 2px), linear-gradient(180deg, #12192B, #1E2A44);
    background-size: 53px 29px, 37px 41px, 100% 100%;
    background-position: 0px 0px, 19px 11px, 0px 0px;
}

/* Words then photo. */
.evening-row {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

/* Headline. */
.evening-text h1 {
    font-size: clamp(2rem, 5.5vw, 3.3rem);
    margin-bottom: 14px;
}

/* Hero words. */
.evening-text p {
    margin-bottom: 22px;
}

/* Campground photo. */
.evening-row img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border: 6px solid #F7FAF3;
}

/* Campfire-orange button. */
.fire-btn,
button {
    display: inline-block;
    background-color: #F97316;
    color: #0D1F12;
    font-family: "Lato", Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    box-shadow: 0px 0px 14px rgba(249, 115, 22, 0.55);
    padding: 12px 26px;
    cursor: pointer;
}

/* Button hover. */
.fire-btn:hover,
button:hover {
    background-color: #FDBA74;
}

/* ----- Loop map (class) ----- */

/* Section spacing. */
.loop {
    padding: 56px 16px;
}

/* Intro. */
.intro {
    max-width: 44rem;
    margin-bottom: 22px;
}

/* Map area with trees dotted around. */
.map {
    position: relative;
    max-width: 640px;
    height: 400px;
    background-color: #D9E8C8;
    background-image: radial-gradient(circle, #8DB874 0px, #8DB874 6px, transparent 7px);
    background-size: 38px 34px;
    border: 2px solid #0D1F12;
}

/* Gravel loop road: a thick rounded ring. */
.road {
    position: absolute;
    top: 54px;
    left: 54px;
    right: 54px;
    bottom: 54px;
    border: 20px solid #C8BFAF;
    border-radius: 70px;
    box-shadow: inset 0px 0px 0px 2px #8C8273, 0px 0px 0px 2px #8C8273;
}

/* Inside the loop: shade. */
.inner {
    width: 100%;
    height: 100%;
    border-radius: 50px;
    background-color: #C3DBAE;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Bathhouse box in the middle. */
.bath {
    background-color: #FFFFFF;
    border: 2px solid #0D1F12;
    padding: 6px 12px;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
}

/* Site list holds absolutely placed sites. */
.sites {
    list-style: none;
}

/* One numbered site pad. */
.site {
    position: absolute;
    width: 40px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #0D1F12;
    border: 2px solid #0D1F12;
    border-radius: 4px;
}

/* Pull-through pads in orange. */
.pt {
    background-color: #FDBA74;
}

/* Back-in pads in white. */
.bi {
    background-color: #FFFFFF;
}

/* Sites 1 to 4 along the top outside. */
.st1 {
    top: 12px;
    left: 18%;
}

/* Site 2. */
.st2 {
    top: 12px;
    left: 36%;
}

/* Site 3. */
.st3 {
    top: 12px;
    left: 54%;
}

/* Site 4. */
.st4 {
    top: 12px;
    left: 72%;
}

/* Sites 5 and 6 down the right outside. */
.st5 {
    top: 38%;
    right: 8px;
}

/* Site 6. */
.st6 {
    top: 60%;
    right: 8px;
}

/* Sites 7 to 10 inside along the top. */
.st7 {
    top: 92px;
    left: 24%;
}

/* Site 8. */
.st8 {
    top: 92px;
    left: 38%;
}

/* Site 9. */
.st9 {
    top: 92px;
    left: 52%;
}

/* Site 10. */
.st10 {
    top: 92px;
    left: 66%;
}

/* Sites 11 and 12 inside along the bottom. */
.st11 {
    bottom: 92px;
    left: 30%;
}

/* Site 12. */
.st12 {
    bottom: 92px;
    left: 58%;
}

/* Entrance at the bottom. */
.gate {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #F7FAF3;
    padding: 0px 8px;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Legend. */
.legend {
    margin-top: 14px;
    font-weight: 700;
}

/* Legend chip. */
.chip {
    display: inline-block;
    width: 16px;
    height: 14px;
    vertical-align: middle;
    border: 2px solid #0D1F12;
}

/* Pull-through chip. */
.c-pt {
    background-color: #FDBA74;
}

/* Back-in chip. */
.c-bi {
    background-color: #FFFFFF;
}

/* ----- Hookups (ID) ----- */

/* Pale band. */
#hookups {
    display: flex;
    flex-direction: column;
    gap: 30px;
    background-color: #ECF2E2;
    padding: 56px 16px;
}

/* Pedestal and pipes side by side. */
.pedestal-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 30px;
}

/* Gray power pedestal post. */
.pedestal {
    width: 110px;
    height: 260px;
    background-image: linear-gradient(90deg, #9CA3AF, #D1D5DB 50%, #9CA3AF);
    border: 2px solid #374151;
    border-radius: 10px 10px 0px 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-top: 14px;
}

/* Round meter. */
.meter {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: #F1F5F9;
    border: 4px solid #374151;
    background-image: linear-gradient(90deg, transparent 46%, #0D1F12 46%, #0D1F12 54%, transparent 54%);
    background-size: 100% 4px;
    background-repeat: no-repeat;
    background-position: 0px 60%;
}

/* One outlet box. */
.outlet {
    width: 70px;
    height: 40px;
    background-color: #374151;
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 50 amp outlet orange edge. */
.o50 {
    border-left: 6px solid #F97316;
}

/* 30 amp outlet green edge. */
.o30 {
    border-left: 6px solid #4ADE80;
}

/* 20 amp outlet white edge. */
.o20 {
    border-left: 6px solid #FFFFFF;
}

/* Water and sewer stack. */
.pipes {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

/* Blue water spigot. */
.spigot {
    width: 70px;
    padding: 18px 0px 6px 0px;
    text-align: center;
    background-image: linear-gradient(180deg, #2563EB 0px, #2563EB 10px, transparent 10px), linear-gradient(90deg, transparent 40%, #9CA3AF 40%, #9CA3AF 60%, transparent 60%);
    font-size: 0.8rem;
    font-weight: 700;
}

/* Sewer cap: a dark round lid at ground level. */
.sewer {
    width: 70px;
    height: 40px;
    border-radius: 50%;
    background-color: #4B5563;
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hookup list. */
.hook-list {
    list-style: none;
    margin-bottom: 20px;
}

/* One hookup line. */
.hook-list li {
    padding: 8px 0px;
    border-bottom: 1px solid #C9D6B9;
}

/* Hookup name. */
.hook-list strong {
    color: #137638;
}

/* Two photos. */
.hook-photos {
    display: flex;
    gap: 10px;
}

/* Each photo. */
.hook-photos img {
    width: 50%;
    height: 200px;
    object-fit: cover;
}

/* ----- Book a site (class) ----- */

/* Green band. */
.stay {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background-color: #15803D;
    padding: 56px 16px;
}

/* Tent photo. */
.stay img {
    height: 260px;
    object-fit: cover;
}

/* Form box. */
.stay-form fieldset {
    border: none;
    background-color: #F7FAF3;
    padding: 24px;
}

/* Form title. */
.stay-form legend {
    font-family: "Bree Serif", Georgia, serif;
    font-size: 1.5rem;
    float: left;
    width: 100%;
}

/* Labels. */
.stay-form label {
    display: block;
    font-weight: 700;
    margin-top: 12px;
}

/* Inputs. */
.stay-form input {
    width: 100%;
    font-family: "Lato", Arial, sans-serif;
    font-size: 1rem;
    padding: 9px;
    border: 2px solid #5B675E;
}

/* Submit spacing. */
.stay-form button {
    margin-top: 18px;
}

/* ----- Night sky footer (class) ----- */

/* Stars over a dark sky. */
.night {
    background-color: #12192B;
    background-image: radial-gradient(circle, #FFFFFF 0px, #FFFFFF 1px, transparent 2px), radial-gradient(circle, #FDE68A 0px, #FDE68A 1px, transparent 2px);
    background-size: 61px 37px, 43px 53px;
    background-position: 0px 0px, 21px 13px;
    color: #FFFFFF;
    font-size: 0.82rem;
    text-align: center;
    padding: 30px 16px;
}

/* ----- Small tablets (576px and up) ----- */

@media (min-width: 576px) {

    /* Taller photo. */
    .evening-row img {
        height: 360px;
    }
}

/* ----- Tablets (768px and up) ----- */

@media (min-width: 768px) {

    /* Pedestal beside the words. */
    #hookups {
        flex-direction: row;
        align-items: center;
    }

    /* Pedestal column. */
    .pedestal-wrap {
        flex: 0 0 280px;
    }

    /* Photo beside the form. */
    .stay {
        flex-direction: row;
    }

    /* Each half. */
    .stay img,
    .stay-form {
        width: 50%;
    }

    /* Photo fills its half. */
    .stay img {
        height: auto;
    }
}

/* ----- Laptops (992px and up) ----- */

@media (min-width: 992px) {

    /* No menu button. */
    .menu-icon {
        display: none;
    }

    /* Logo left, nav right. */
    .topo {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Nav always shown. */
    .topo-nav {
        display: block;
    }

    /* Nav in a row. */
    .topo-nav ul {
        flex-direction: row;
        gap: 14px;
        padding-top: 0px;
    }

    /* Words beside the photo. */
    .evening {
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Row layout. */
    .evening-row {
        flex-direction: row;
        align-items: center;
    }

    /* Each half. */
    .evening-text,
    .evening-row img {
        flex: 1 1 50%;
        min-width: 0px;
    }

    /* Sky strip reaches the edges. */
    .sky {
        margin-left: -40px;
        margin-right: -40px;
    }

    /* Wider sections. */
    .loop,
    #hookups,
    .stay {
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* ----- Wide screens (1200px and up) ----- */

@media (min-width: 1200px) {

    /* Content in a 1140px column. */
    .evening,
    .loop,
    #hookups,
    .stay {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }

    /* Sky reaches the edges at this width too. */
    .sky {
        margin-left: calc((100vw - 1140px) / -2);
        margin-right: calc((100vw - 1140px) / -2);
    }
}
