/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 12, 2026
    Project:    Concept Site - Bluff Point Marina & Boat Repair (fictional business)
    Filename:   styles.css

    Theme: the marina office. The header logo is an orange and white
    life ring (a repeating-conic-gradient donut). The hero is the aerial
    dock photo: on phones the photo sits on top with the navy panel
    below it, from tablets up the panel floats over the photo. Three
    quick facts (slip price, fuel hours, fall booking) sit in the panel. The signature is a dock map from above: a
    wooden main walk with finger piers and numbered slips on both
    sides, open slips in white with prices, leased slips grayed. Fall
    service is one trip around a compass rose (an eight-point star made
    with clip-path), steps 1 to 4 at N, E, S and W. The footer is
    edged with twisted rope.

    Mobile-first; media queries at 576px, 768px, 992px and 1200px.

    Colors (WebAIM contrast checked, AA):
      #04202F text on #F2F8FC page (16.8:1)
      #075985 navy text and buttons (7.4:1; white on it 7.8:1)
      #A24B0E orange text (5.8: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) ----- */

/* Lake-air page. */
body {
    background-color: #F2F8FC;
    color: #04202F;
    font-family: "Archivo", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

/* Photos never spill out. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Wide heavy headings. */
h1,
h2 {
    font-weight: 800;
    line-height: 1.06;
}

/* Section titles. */
h2 {
    font-size: clamp(1.7rem, 4.6vw, 2.6rem);
    color: #075985;
    margin-bottom: 10px;
}

/* Links in navy. */
a {
    color: #075985;
}

/* Orange outline for keyboard users. */
a:focus-visible,
button:focus-visible,
.menu-check:focus-visible + .flag-row .menu-icon {
    outline: 3px solid #A24B0E;
    outline-offset: 3px;
}

/* ----- Signal flag header (class) ----- */

/* White header. */
.flagline {
    position: relative;
    background-color: #FFFFFF;
    padding: 10px 16px;
    border-bottom: 2px solid #04202F;
}

/* Hidden checkbox that keeps focus. */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Logo and menu in a row. */
.flag-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo with the life ring. */
.logo {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0px 10px;
    font-weight: 800;
    font-size: 1.4rem;
    color: #075985;
}

/* Small part of the name. */
.logo .sub {
    font-weight: 400;
    font-size: 0.8rem;
    color: #04202F;
}

/* Life ring: orange and white bands on a donut. */
.ring {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-image: radial-gradient(circle, #FFFFFF 0px, #FFFFFF 9px, transparent 10px), repeating-conic-gradient(#F97316 0deg 45deg, #FFFFFF 45deg 90deg);
    border: 2px solid #04202F;
}

/* Menu button. */
.menu-icon {
    background-color: #075985;
    color: #FFFFFF;
    font-weight: 600;
    border-radius: 4px;
    padding: 4px 12px;
    cursor: pointer;
}

/* Nav hidden on phones until opened. */
.flag-nav {
    display: none;
}

/* Open menu shows the nav. */
.menu-check:checked ~ .flag-nav {
    display: block;
}

/* Nav list. */
.flag-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 10px;
}

/* Nav links. */
.flag-nav a {
    color: #04202F;
    font-weight: 600;
    text-decoration: none;
}

/* Hover: orange. */
.flag-nav a:hover {
    color: #A24B0E;
}

/* ----- Concept note (class) ----- */

/* Small note. */
.concept {
    font-size: 0.8rem;
    padding: 6px 16px;
}

/* ----- Harbor hero (class) ----- */

/* Phones: photo on top, navy panel below. */
.harbor {
    position: relative;
    background-color: #04202F;
}

/* Aerial photo, a short band on phones. */
.harbor img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Navy panel. */
.harbor-text {
    position: relative;
    background-color: #04202F;
    color: #FFFFFF;
    padding: 22px 16px 28px 16px;
    border-top: 6px solid #F97316;
}

/* Where line above the headline. */
.harbor-text .where {
    color: #FDBA74;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Headline. */
.harbor-text h1 {
    font-size: clamp(2.1rem, 5.5vw, 3.2rem);
    margin-bottom: 12px;
}

/* Hero words. */
.harbor-text p {
    margin-bottom: 16px;
}

/* Three quick facts in a row. */
.facts {
    list-style: none;
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

/* One fact card. */
.facts li {
    flex: 1 1 0px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    padding: 8px;
    font-size: 0.78rem;
    line-height: 1.3;
}

/* Big part of a fact. */
.facts strong {
    display: block;
    color: #FDBA74;
    font-size: 1.15rem;
}

/* Orange buoy button. */
.buoy-btn,
button {
    display: inline-block;
    background-color: #F97316;
    color: #04202F;
    font-family: "Archivo", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    border: none;
    border-radius: 30px;
    box-shadow: inset 0px -6px 0px rgba(255, 255, 255, 0.35);
    padding: 12px 26px;
    cursor: pointer;
}

/* Button hover. */
.buoy-btn:hover,
button:hover {
    background-color: #FFFFFF;
}

/* ----- Slip map (class) ----- */

/* Water-colored band. */
.slips {
    background-color: #2C7DA0;
    background-image: repeating-linear-gradient(170deg, transparent 0px, transparent 18px, rgba(255, 255, 255, 0.08) 18px, rgba(255, 255, 255, 0.08) 20px);
    color: #FFFFFF;
    padding: 56px 16px;
}

/* Title white on the water. */
.slips h2 {
    color: #FFFFFF;
}

/* Intro. */
.intro {
    max-width: 44rem;
    margin-bottom: 24px;
}

/* The dock: two rows of slips on either side of the walk. */
.dock {
    display: flex;
    flex-direction: column;
}

/* One side of slips. */
.side {
    display: flex;
    gap: 0px;
}

/* One slip: a finger pier on each side (borders), number, length, price. */
.slip {
    flex: 1 1 25%;
    min-height: 120px;
    border-left: 6px solid #A87B4F;
    border-right: 6px solid #A87B4F;
    background-color: rgba(255, 255, 255, 0.92);
    color: #04202F;
    padding: 8px;
    font-size: 0.85rem;
    text-align: center;
}

/* Slip number. */
.slip strong {
    display: block;
    font-size: 1.2rem;
}

/* Price. */
.slip span {
    display: block;
    font-weight: 800;
    color: #A24B0E;
}

/* Leased slips grayed out. */
.taken {
    background-color: #CBD5E1;
}

/* Leased word in dark gray. */
.taken span {
    color: #374151;
    font-weight: 400;
}

/* Slips on the bottom side open upward toward the walk. */
.side-b .slip {
    border-top: none;
}

/* Main wooden walk. */
.walk {
    background-color: #A87B4F;
    background-image: repeating-linear-gradient(90deg, transparent 0px, transparent 22px, #7C5A36 22px, #7C5A36 24px);
    color: #FFFFFF;
    font-weight: 800;
    text-align: center;
    padding: 10px;
    text-shadow: 0px 1px 2px #04202F;
}

/* Legend under the dock. */
.legend {
    margin-top: 14px;
    font-weight: 600;
}

/* Open chip. */
.open-chip,
.taken-chip {
    display: inline-block;
    width: 14px;
    height: 14px;
    vertical-align: middle;
    border: 1px solid #04202F;
}

/* Open chip white. */
.open-chip {
    background-color: #FFFFFF;
}

/* Leased chip gray. */
.taken-chip {
    background-color: #CBD5E1;
}

/* ----- Compass rose (ID) ----- */

/* Section spacing. */
#compass {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 56px 16px;
}

/* Rose with labels around it. */
.rose-wrap {
    position: relative;
}

/* The compass rose: a ring with an eight-point star. */
.rose {
    width: 180px;
    height: 180px;
    margin: 0px auto 16px auto;
    border-radius: 50%;
    border: 3px solid #075985;
    background-image: repeating-conic-gradient(#075985 0deg 1deg, transparent 1deg 15deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Eight-point star: navy and orange halves. */
.star {
    width: 150px;
    height: 150px;
    background-image: conic-gradient(#075985 0deg 45deg, #F97316 45deg 90deg, #075985 90deg 135deg, #F97316 135deg 180deg, #075985 180deg 225deg, #F97316 225deg 270deg, #075985 270deg 315deg, #F97316 315deg 360deg);
    clip-path: polygon(50% 0%, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0% 50%, 42% 42%);
}

/* One service point. */
.pt {
    background-color: #FFFFFF;
    border-left: 6px solid #F97316;
    padding: 8px 12px;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

/* Service name. */
.pt strong {
    display: block;
    color: #075985;
    font-size: 1.05rem;
}

/* Compass words. */
.compass-text p {
    margin-bottom: 18px;
}

/* Two photos. */
.compass-photos {
    display: flex;
    gap: 10px;
}

/* Each photo. */
.compass-photos img {
    width: 50%;
    height: 200px;
    object-fit: cover;
}

/* ----- Reserve (class) ----- */

/* Navy band. */
.reserve {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background-color: #075985;
    padding: 56px 16px;
}

/* Dock photo. */
.reserve img {
    height: 260px;
    object-fit: cover;
}

/* Form box. */
.res-form fieldset {
    border: none;
    background-color: #FFFFFF;
    padding: 24px;
    border-radius: 8px;
}

/* Form title. */
.res-form legend {
    font-weight: 800;
    font-size: 1.35rem;
    float: left;
    width: 100%;
}

/* Labels. */
.res-form label {
    display: block;
    font-weight: 600;
    margin-top: 12px;
}

/* Inputs. */
.res-form input,
.res-form select {
    width: 100%;
    font-family: "Archivo", Arial, sans-serif;
    font-size: 1rem;
    padding: 9px;
    border: 2px solid #536A78;
    border-radius: 6px;
}

/* Submit spacing. */
.res-form button {
    margin-top: 18px;
}

/* ----- Rope footer (class) ----- */

/* Navy footer with a twisted rope along its top edge. */
.rope {
    position: relative;
    background-color: #04202F;
    color: #FFFFFF;
    font-size: 0.82rem;
    text-align: center;
    padding: 34px 16px 26px 16px;
}

/* Twisted rope: slanted tan strands. */
.rope::before {
    content: "";
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    height: 12px;
    background-image: repeating-linear-gradient(60deg, #D6B98C 0px, #D6B98C 5px, #A8885A 5px, #A8885A 8px);
}

/* ----- Small tablets (576px and up) ----- */

@media (min-width: 576px) {

    /* Taller slips. */
    .slip {
        min-height: 140px;
        font-size: 0.95rem;
    }
}

/* ----- Tablets (768px and up) ----- */

@media (min-width: 768px) {

    /* Tablets and up: the panel floats over the full photo. */
    .harbor {
        min-height: 580px;
        display: flex;
        align-items: flex-end;
    }

    /* Photo fills the hero. */
    .harbor img {
        position: absolute;
        top: 0px;
        left: 0px;
        height: 100%;
    }

    /* Floating see-through panel. */
    .harbor-text {
        background-color: rgba(4, 32, 47, 0.9);
        margin: 0px 16px 26px 16px;
        padding: 26px;
        max-width: 620px;
    }

    /* Photo beside the form. */
    .reserve {
        flex-direction: row;
    }

    /* Each half. */
    .reserve img,
    .res-form {
        width: 50%;
    }

    /* Photo fills its half. */
    .reserve img {
        height: auto;
    }
}

/* ----- Laptops (992px and up) ----- */

@media (min-width: 992px) {

    /* No menu button. */
    .menu-icon {
        display: none;
    }

    /* Logo left, nav right. */
    .flagline {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Nav always shown. */
    .flag-nav {
        display: block;
    }

    /* Nav in a row. */
    .flag-nav ul {
        flex-direction: row;
        gap: 26px;
        padding-top: 0px;
    }

    /* Rose beside the words. */
    #compass {
        flex-direction: row;
        align-items: center;
    }

    /* Rose area with labels placed around it. */
    .rose-wrap {
        flex: 0 0 520px;
        height: 400px;
    }

    /* Rose in the middle. */
    .rose {
        position: absolute;
        top: 110px;
        left: 167px;
        margin: 0px;
    }

    /* Labels placed at the compass points. */
    .pt {
        position: absolute;
        width: 150px;
        margin: 0px;
    }

    /* North. */
    .n {
        top: 0px;
        left: 185px;
    }

    /* East. */
    .e {
        top: 150px;
        right: 0px;
    }

    /* South. */
    .s {
        bottom: 0px;
        left: 185px;
    }

    /* West. */
    .w {
        top: 150px;
        left: 0px;
    }

    /* Words column. */
    .compass-text {
        flex: 1 1 auto;
    }

    /* Panel further in. */
    .harbor-text {
        margin: 0px 40px 50px 40px;
    }

    /* Wider sections. */
    .slips,
    #compass,
    .reserve {
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* ----- Wide screens (1200px and up) ----- */

@media (min-width: 1200px) {

    /* Content in a 1140px column. */
    .slips,
    #compass,
    .reserve {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }

    /* Panel lines up with the column. */
    .harbor-text {
        margin-left: calc((100% - 1140px) / 2);
    }
}
