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

    Theme: rain and where it goes. The header is a gutter run: a
    teal trough with a rolled front lip, and a downspout drops off its
    right end. Rain streaks (a repeating-linear-gradient at a slant)
    fall over the hero photo. The signature section turns one inch of
    rain on a 1,500 sq ft roof into 935 gallons: a clear rain gauge
    tube filled to the 1" line beside seventeen 55-gallon rain barrels.
    Gutter shapes are drawn as cut-away cross sections (borders and
    border-radius), and the footer is a puddle with ripples.

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

    Colors (WebAIM contrast checked, AA):
      #0A1F1D text on #F2FAF9 page (16.3:1)
      #0F736B teal text (5.6:1 on the page)
      #FFFFFF on #0F766E buttons (5.5:1)
      #B72F46 red-pink text (5.5:1 on the page)
      #0A1F1D on #F43F5E accent (5.3:1)
*/

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

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

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

/* Pale rain-teal page. */
body {
    background-color: #F2FAF9;
    color: #0A1F1D;
    font-family: "Outfit", Arial, sans-serif;
    font-size: 1.02rem;
    line-height: 1.6;
}

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

/* Heavy rounded headings. */
h1,
h2,
h3 {
    font-weight: 800;
    line-height: 1.08;
}

/* Section titles. */
h2 {
    font-size: clamp(1.6rem, 4.5vw, 2.6rem);
    color: #0F736B;
    margin-bottom: 12px;
}

/* Links in teal. */
a {
    color: #0F736B;
}

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

/* ----- Gutter header (class) ----- */

/* Trough: teal, a rolled lip along the bottom edge, room for the downspout. */
.gutter-bar {
    position: relative;
    background-image: linear-gradient(180deg, #0F766E 0%, #0F766E 78%, #0A5A54 78%, #0A5A54 86%, #45958F 86%, #45958F 100%);
    color: #FFFFFF;
    padding: 14px 70px 22px 16px;
}

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

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

/* Logo. */
.logo {
    font-weight: 800;
    font-size: 1.6rem;
    line-height: 1;
}

/* Logo second line. */
.logo span {
    display: block;
    font-weight: 400;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* Menu button. */
.menu-icon {
    border: 2px solid #FFFFFF;
    border-radius: 20px;
    padding: 3px 12px;
    font-weight: 600;
    cursor: pointer;
}

/* Downspout: a pipe falling from the right end of the trough. */
.downspout {
    position: absolute;
    right: 22px;
    top: 100%;
    width: 26px;
    height: 46px;
    background-image: linear-gradient(90deg, #0A5A54, #45958F 50%, #0A5A54);
    border-radius: 0px 0px 6px 6px;
    z-index: 2;
}

/* Nav hidden on phones until opened. */
.run {
    display: none;
}

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

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

/* Nav links white. */
.run a {
    color: #FFFFFF;
    font-weight: 600;
    text-decoration: none;
}

/* Underline on hover. */
.run a:hover {
    text-decoration: underline;
}

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

/* Small note, kept clear of the downspout. */
.concept {
    font-size: 0.8rem;
    padding: 6px 70px 6px 16px;
}

/* ----- Storm hero (class) ----- */

/* Photo with rain and words over it. */
.storm {
    position: relative;
    background-color: #0A1F1D;
    min-height: 560px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

/* Photo fills the hero, darkened by the base color. */
.storm img {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

/* Slanted rain streaks over the photo. */
.rain {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(100deg, transparent 0px, transparent 22px, rgba(255, 255, 255, 0.28) 22px, rgba(255, 255, 255, 0.28) 23px), repeating-linear-gradient(104deg, transparent 0px, transparent 37px, rgba(255, 255, 255, 0.18) 37px, rgba(255, 255, 255, 0.18) 38px);
}

/* Words above the rain. */
.storm-text {
    position: relative;
    color: #FFFFFF;
    padding: 40px 16px 48px 16px;
    max-width: 640px;
}

/* Headline. */
.storm h1 {
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    margin-bottom: 14px;
}

/* Hero paragraph. */
.storm-text p {
    margin-bottom: 22px;
}

/* Pink pill button. */
.drip-btn,
button {
    position: relative;
    display: inline-block;
    background-color: #F43F5E;
    color: #0A1F1D;
    font-family: "Outfit", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    border: none;
    border-radius: 30px;
    padding: 13px 26px;
    cursor: pointer;
}

/* A drop hanging under the hero button. */
.drip-btn::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -12px;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    background-color: #F43F5E;
    border-radius: 0px 50% 50% 50%;
    transform: rotate(45deg);
}

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

/* ----- Gallons (ID) ----- */

/* Gauge and words stack on phones. */
#gallons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 60px 16px;
}

/* Gauge column. */
.gauge-col {
    text-align: center;
}

/* Clear plastic rain gauge tube with tick marks. */
.gauge {
    position: relative;
    width: 70px;
    height: 300px;
    margin: 0px auto;
    border: 3px solid #0A1F1D;
    border-top: none;
    border-radius: 0px 0px 14px 14px;
    background-color: #FFFFFF;
    background-image: repeating-linear-gradient(0deg, transparent 0px, transparent 9px, #CFD9D8 9px, #CFD9D8 10px);
    background-size: 18px 100%;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Inch labels on the tube. */
.mark {
    position: absolute;
    right: 6px;
    font-size: 0.78rem;
    font-weight: 800;
    border-top: 2px solid #0A1F1D;
    padding-left: 8px;
    z-index: 2;
}

/* 3 inch mark. */
.m3 {
    top: 0px;
}

/* 2 inch mark. */
.m2 {
    top: 33%;
}

/* 1 inch mark. */
.m1 {
    top: 66%;
}

/* Water filled to the 1 inch line. */
.water {
    position: absolute;
    left: 0px;
    bottom: 0px;
    width: 100%;
    height: 34%;
    background-image: linear-gradient(180deg, #45958F, #0F766E);
}

/* Gauge caption. */
.gauge-label {
    margin-top: 8px;
    font-weight: 600;
}

/* Words column. */
.gallon-text {
    max-width: 640px;
}

/* Barrel rows. */
.barrels {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 8px;
    margin: 20px 0px 10px 0px;
}

/* One teal rain barrel with two hoops. */
.barrels li {
    width: 40px;
    height: 54px;
    border-radius: 8px / 14px;
    background-color: #0F766E;
    background-image: linear-gradient(180deg, transparent 22%, #0A5A54 22%, #0A5A54 28%, transparent 28%, transparent 72%, #0A5A54 72%, #0A5A54 78%, transparent 78%);
}

/* The last barrel is only partly full. */
.barrels .part {
    background-color: #E0EFEE;
    background-image: linear-gradient(180deg, #E0EFEE 0%, #E0EFEE 70%, #0F766E 70%);
    border: 2px solid #0F766E;
}

/* Count line. */
.count {
    font-size: 1.2rem;
}

/* Count number pink. */
.count strong {
    color: #B72F46;
}

/* ----- Gutter shapes (class) ----- */

/* Tinted band. */
.profiles {
    background-color: #E0EFEE;
    padding: 60px 16px;
}

/* Cross-section cards stack on phones. */
.cuts {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 26px;
}

/* One card. */
.cut {
    background-color: #FFFFFF;
    border-top: 6px solid #0F766E;
    padding: 20px;
}

/* Card title. */
.cut h3 {
    font-size: 1.35rem;
    margin: 12px 0px 6px 0px;
}

/* Price line. */
.price {
    margin-top: 8px;
    font-weight: 800;
    color: #B72F46;
}

/* Shared shape: a metal profile seen end-on, holding water. */
.shape {
    height: 90px;
    border: 6px solid #5A6866;
    border-top: none;
    background-image: linear-gradient(180deg, transparent 55%, #45958F 55%);
}

/* 5 inch K-style: flat back, sloped front. */
.k5 {
    width: 100px;
    border-radius: 0px 0px 6px 30px;
    border-right-width: 10px;
}

/* 6 inch K-style: the same shape, bigger. */
.k6 {
    width: 124px;
    height: 104px;
    border-radius: 0px 0px 6px 34px;
    border-right-width: 10px;
}

/* Half-round: a half circle. */
.half {
    width: 124px;
    height: 62px;
    border-radius: 0px 0px 62px 62px;
}

/* Two photos side by side. */
.profile-photos {
    display: flex;
    gap: 10px;
}

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

/* ----- Estimate (class) ----- */

/* Photo then form. */
.estimate {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 60px 16px;
}

/* House photo. */
.estimate img {
    height: 280px;
    object-fit: cover;
}

/* Form box. */
.est-form fieldset {
    border: 3px solid #0F766E;
    border-radius: 14px;
    padding: 22px;
    background-color: #FFFFFF;
}

/* Form title. */
.est-form legend {
    font-weight: 800;
    font-size: 1.3rem;
    color: #0F736B;
    padding: 0px 8px;
}

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

/* Inputs. */
.est-form input,
.est-form select {
    width: 100%;
    font-family: "Outfit", Arial, sans-serif;
    font-size: 1rem;
    padding: 9px;
    border: 2px solid #5A6866;
    border-radius: 8px;
}

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

/* ----- Puddle footer (class) ----- */

/* Dark water with oval ripples. */
.puddle {
    background-color: #0A1F1D;
    background-image: repeating-radial-gradient(ellipse 60% 30% at 50% 50%, transparent 0px, transparent 18px, rgba(69, 149, 143, 0.25) 18px, rgba(69, 149, 143, 0.25) 20px);
    color: #FFFFFF;
    font-size: 0.82rem;
    text-align: center;
    padding: 30px 16px;
}

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

@media (min-width: 576px) {

    /* Taller photos. */
    .profile-photos img {
        height: 280px;
    }
}

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

@media (min-width: 768px) {

    /* Gauge beside the words. */
    #gallons {
        flex-direction: row;
        justify-content: center;
        gap: 50px;
    }

    /* Cards in a row. */
    .cuts {
        flex-direction: row;
    }

    /* Each card. */
    .cut {
        flex: 1 1 30%;
    }

    /* Photo beside the form. */
    .estimate {
        flex-direction: row;
        align-items: stretch;
    }

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

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

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

@media (min-width: 992px) {

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

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

    /* Nav always shown. */
    .run {
        display: block;
    }

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

    /* Words further in. */
    .storm-text {
        padding: 60px 40px 70px 40px;
    }

    /* Wider sections. */
    .profiles,
    .estimate {
        padding-left: 40px;
        padding-right: 40px;
    }
}

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

@media (min-width: 1200px) {

    /* Content in a 1140px column. */
    .profiles,
    .estimate {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }

    /* Hero words line up with the column. */
    .storm-text {
        padding-left: calc((100% - 1140px) / 2);
        max-width: none;
        width: 60%;
    }
}
