/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 11, 2026
    Project:    Concept Site - Tall Pine Tree Care (fictional business)
    Filename:   styles.css

    Layout plan: mobile-first. Base rules are the phone layout; media
    queries at 576px, 768px, 992px and 1200px add to it in ascending order.
    Layout uses Flexbox and positioning (sticky photo column, absolute
    banner). The hero photo is a CSS background with a dark overlay so the
    white text always has enough contrast.

    Colors (WebAIM checked, AA):
      #1D3322 moss   #8BBF5A leaf   #5B3B26 bark   #F2C14E sap   #F4F1E6 cream
*/

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

/* border-box sizing and zero default spacing so every box starts clean. */
* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

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

/* Warm cream page with dark green text and the Manrope body font. */
body {
    background-color: #F4F1E6;
    color: #1D2A20;
    font-family: Manrope, system-ui, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.6;
}

/* Responsive images: never wider than their box, proportions kept. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Headings in the soft serif Fraunces for a friendly, old-tree feel. */
h1,
h2,
h3 {
    font-family: Fraunces, Georgia, serif;
    line-height: 1.05;
}

/* Section titles in deep moss green. */
h2 {
    color: #1D3322;
    font-size: clamp(2.2rem, 5vw, 4rem);
    margin: 8px 0px 16px 0px;
}

/* Keyboard focus ring in sap yellow on every interactive element. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid #F2C14E;
    outline-offset: 3px;
}

/* ----- Shared pieces (class) ----- */

/* Small bold label above each section title. */
.eyebrow {
    color: #5B3B26;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* Rounded pill buttons. em padding grows with the button's text size. */
.button {
    display: inline-block;
    padding: 0.85em 1.4em;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    margin: 0px 8px 10px 0px;
}

/* Leaf green button with dark text for the main action. */
.button-leaf {
    background-color: #8BBF5A;
    color: #102010;
}

/* Lighter green on hover. */
.button-leaf:hover {
    background-color: #A9D67F;
}

/* Outlined white button for the second action. */
.button-outline {
    border: 2px solid #FFFFFF;
    color: #FFFFFF;
}

/* Fill the outline button with a see-through white on hover. */
.button-outline:hover {
    background-color: #FFFFFF26;
}

/* ----- Hero header (ID and class) ----- */

/* The full-screen photo header. The linear-gradient is a dark layer drawn
   on top of the photo so white text passes contrast anywhere on it.
   position: relative lets the concept banner be placed inside it. */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #FFFFFF;
    background-color: #0B160D;
    background-image: linear-gradient(0deg, #0B160DF0 0%, #0B160DB0 55%, #0B160D80 100%), url("images/hero.jpg");
    background-size: cover;
    background-position: center;
}

/* The concept banner sits across the very top of the photo. */
.concept-banner {
    background-color: #0B160DCC;
    color: #FFFFFF;
    font-size: 0.75rem;
    text-align: center;
    padding: 6px 12px;
}

/* "Concept design" in sap yellow so it is read first. */
.concept-banner strong {
    color: #F2C14E;
}

/* Logo on the left, storm button on the right. */
.top-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
}

/* Business name in the serif font with a leaf-green tree icon. */
.logo {
    font-family: Fraunces, Georgia, serif;
    font-size: 1.5rem;
    font-weight: 800;
}

/* The tree icon in leaf green. */
.logo i {
    color: #8BBF5A;
}

/* The nav is hidden on phones; the hero buttons and storm button are the
   main actions there. It appears at 992px. */
.site-nav {
    display: none;
}

/* Yellow storm button with a pulsing red dot. */
.storm-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #F2C14E;
    color: #1D1D1D;
    font-weight: 800;
    padding: 10px 16px;
    border-radius: 999px;
    text-decoration: none;
}

/* Darker yellow on hover. */
.storm-button:hover {
    background-color: #E0A92A;
}

/* "Storm damage?" is hidden on phones so the button fits; shown at 576px. */
.storm-words {
    display: none;
}

/* The red dot. The pulse animation draws a fading ring around it to
   signal an emergency line. */
.pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #C0392B;
    animation: pulse 1.6s infinite;
}

/* The ring grows from 0 to 12px and fades out, then repeats. */
@keyframes pulse {
    0% {
        box-shadow: 0px 0px 0px 0px #C0392B88;
    }
    70% {
        box-shadow: 0px 0px 0px 12px #C0392B00;
    }
}

/* Headline and side text stack at the bottom of the hero on phones. */
.hero-content {
    padding: 0px 20px 60px 20px;
}

/* Huge two-line headline. */
.hero h1 {
    font-size: clamp(3.2rem, 8vw, 7.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0px 0px 18px 0px;
}

/* Second line in leaf green italics. */
.hero h1 span {
    color: #8BBF5A;
    font-style: italic;
    font-weight: 600;
}

/* Paragraph next to the headline, slightly faded white. */
.hero-side p {
    font-size: 1.1rem;
    color: #FFFFFFE6;
    margin: 0px 0px 20px 0px;
}

/* ----- Services (class) ----- */

/* Space around the services section. */
.services {
    padding: 64px 20px;
}

/* The arch-shaped photo: a very large top radius rounds the top into an
   arch, like a tree canopy. */
.arch-photo {
    width: 100%;
    max-height: 340px;
    object-fit: cover;
    border-radius: 200px 200px 24px 24px;
    margin: 24px 0px 0px 0px;
}

/* The numbered list of services. A CSS counter would be new, so the
   numbers come from the ordered list itself and are styled with ::marker. */
.service-list {
    padding: 0px 0px 0px 44px;
    margin: 40px 0px 0px 0px;
}

/* Each service is one list row with a line under it. */
.service-list li {
    padding: 22px 0px;
    border-bottom: 1px solid #1D332222;
}

/* Big leaf-green numbers on the service list. */
.service-list li::marker {
    color: #5E9A2E;
    font-family: Fraunces, Georgia, serif;
    font-size: 1.6rem;
}

/* Service name. */
.service-list h3 {
    color: #1D3322;
    font-size: 1.5rem;
}

/* Service description in a softer green-grey. */
.service-list p {
    color: #465346;
}

/* Small pill tag under each service. */
.tag {
    display: inline-block;
    background-color: #1D332214;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 999px;
    margin: 8px 0px 0px 0px;
}

/* ----- How a removal goes (ID) ----- */

/* Dark green band for the step-by-step timeline. */
#how {
    background-color: #1D3322;
    color: #E8EFE3;
    padding: 64px 20px;
}

/* White section title on the dark band. */
#how h2 {
    color: #FFFFFF;
}

/* Sap yellow label on the dark band. */
#how .eyebrow {
    color: #F2C14E;
}

/* On phones the timeline runs down the page. The dashed left border is
   the timeline line. */
.timeline {
    list-style: none;
    border-left: 3px dashed #8BBF5A;
    margin: 36px 0px 0px 22px;
}

/* Each step is offset from the line; position: relative lets the number
   dot be placed on the line. */
.timeline li {
    position: relative;
    padding: 0px 0px 28px 34px;
}

/* Step title. */
.timeline h3 {
    color: #FFFFFF;
    font-size: 1.25rem;
}

/* Step description in a muted light green. */
.timeline p {
    color: #C9D6C2;
    font-size: 0.95rem;
}

/* The round dot on the line for each step, placed with absolute
   positioning over the dashed border. */
.timeline li::before {
    content: "";
    position: absolute;
    left: -13px;
    top: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #8BBF5A;
    border: 4px solid #1D3322;
}

/* Two photos stacked on phones, side by side from 576px. */
.photo-pair {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 40px 0px 0px 0px;
}

/* Rounded photo corners and a fixed crop height. */
.photo-pair img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 24px;
}

/* ----- Firewood (ID) ----- */

/* Warm tan band; photo above text on phones. */
#firewood {
    background-color: #EFE6D3;
    padding: 64px 20px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Square rounded firewood photo. */
#firewood img {
    border-radius: 24px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* The two rick sizes as white cards in a row. */
.rick-options {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    list-style: none;
    margin: 20px 0px 0px 0px;
}

/* One rick option card. flex: 1 lets the two cards share the row. */
.rick-options li {
    flex: 1 1 150px;
    background-color: #FFFFFF;
    border-radius: 16px;
    padding: 16px 20px;
}

/* Rick size name in big bark-brown serif. */
.rick-options strong {
    display: block;
    color: #5B3B26;
    font-family: Fraunces, Georgia, serif;
    font-size: 1.6rem;
}

/* ----- Estimate form (ID and class) ----- */

/* Text column above the form on phones. */
#estimate {
    padding: 64px 20px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

/* Town names as white pills in a wrapping row. */
.area-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 20px 0px 0px 0px;
}

/* One town pill. */
.area-list li {
    background-color: #FFFFFF;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600;
}

/* White rounded form card with a soft shadow. */
.estimate-form {
    background-color: #FFFFFF;
    padding: 28px;
    border-radius: 28px;
    box-shadow: 0px 30px 60px #1D332218;
}

/* Labels above each field. */
.estimate-form label {
    display: block;
    font-weight: 600;
    margin: 12px 0px 4px 0px;
}

/* Rounded text fields. */
.estimate-form input[type="text"],
.estimate-form input[type="tel"],
.estimate-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #1D332255;
    border-radius: 14px;
    font-family: inherit;
    font-size: 1rem;
    background-color: #FBFAF5;
}

/* The job-type checkboxes sit in a wrapping row of pills. */
.job-types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border: none;
    margin: 16px 0px 0px 0px;
}

/* The fieldset legend reads like a label. */
.job-types legend {
    font-weight: 600;
    margin: 0px 0px 6px 0px;
}

/* Each checkbox label is drawn as a pill. */
.job-types label {
    border: 1.5px solid #1D332255;
    border-radius: 999px;
    padding: 6px 14px;
    margin: 0px;
    font-size: 0.9rem;
}

/* Full-width dark green submit button. */
.estimate-form button {
    width: 100%;
    margin: 18px 0px 0px 0px;
    background-color: #1D3322;
    color: #FFFFFF;
    border: none;
    padding: 1em;
    border-radius: 999px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
}

/* Lighter green on hover. */
.estimate-form button:hover {
    background-color: #2F5A3A;
}

/* ----- Footer (class) ----- */

/* Near-black footer with light text. */
.site-footer {
    background-color: #0B160D;
    color: #FFFFFFB3;
    font-size: 0.875rem;
    padding: 28px 20px;
}

/* ===== Small screens and up: 576px ===== */

@media (min-width: 576px) {

    /* Show "Storm damage?" in the button now that it fits. */
    .storm-words {
        display: inline;
    }

    /* The two photos sit side by side. */
    .photo-pair {
        flex-direction: row;
    }

    /* Each photo takes half the row. */
    .photo-pair img {
        flex: 1 1 0px;
        min-width: 0px;
        height: 280px;
    }
}

/* ===== Medium screens and up: 768px ===== */

@media (min-width: 768px) {

    /* Each service row puts the tag on the right of the text. */
    .service-list li {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px 20px;
    }

    /* The service text block takes the room the tag leaves. */
    .service-list li p:not(.tag) {
        flex-basis: 100%;
    }

    /* Firewood photo and text side by side. */
    #firewood {
        flex-direction: row;
        align-items: center;
    }

    /* Firewood columns split the row evenly. */
    #firewood img,
    #firewood div {
        flex: 1 1 0px;
        min-width: 0px;
    }

    /* Footer lines on one row, at the edges. */
    .site-footer {
        display: flex;
        justify-content: space-between;
        gap: 20px;
    }
}

/* ===== Large screens and up: 992px ===== */

@media (min-width: 992px) {

    /* Show the navigation links in the top bar. */
    .site-nav {
        display: block;
    }

    /* Links in a row with space between them. */
    .site-nav ul {
        display: flex;
        gap: 26px;
        list-style: none;
    }

    /* White nav links, underlined on hover. */
    .site-nav a {
        color: #FFFFFF;
        font-weight: 600;
        text-decoration: none;
    }

    /* Underline on hover so the active link is clear. */
    .site-nav a:hover {
        text-decoration: underline;
    }

    /* Wider side padding everywhere. */
    .top-bar,
    .hero-content,
    .services,
    #how,
    #firewood,
    #estimate,
    .site-footer {
        padding-left: 5vw;
        padding-right: 5vw;
    }

    /* Headline on the left, paragraph and buttons on the right. */
    .hero-content {
        display: flex;
        align-items: flex-end;
        gap: 40px;
        padding-bottom: 90px;
    }

    /* Headline column is wider than the side text. */
    .hero-content h1 {
        flex: 1.4 1 0px;
        margin: 0px;
    }

    /* Side text column. */
    .hero-side {
        flex: 1 1 0px;
    }

    /* Intro column and service list side by side. */
    .services {
        display: flex;
        gap: 6vw;
        padding-top: 100px;
        padding-bottom: 100px;
    }

    /* position: sticky keeps the intro and arch photo in view while the
       service list scrolls past. */
    .services-intro {
        flex: 0.8 1 0px;
        position: sticky;
        top: 40px;
        align-self: flex-start;
    }

    /* The service list takes the larger share. */
    .service-list {
        flex: 1.2 1 0px;
        margin: 0px;
    }

    /* The timeline turns sideways: five steps in a row with the dashed
       line running across the top instead of down the side. */
    .timeline {
        display: flex;
        gap: 22px;
        border-left: none;
        border-top: 3px dashed #8BBF5A;
        margin: 60px 0px 0px 0px;
    }

    /* Each step shares the row and sits under its dot. */
    .timeline li {
        flex: 1 1 0px;
        padding: 30px 0px 0px 0px;
    }

    /* Dots move from the left line to the top line. */
    .timeline li::before {
        left: 0px;
        top: -13px;
    }

    /* Estimate text and form side by side. */
    #estimate {
        flex-direction: row;
        gap: 6vw;
    }

    /* The two estimate columns split the row. */
    #estimate > div,
    .estimate-form {
        flex: 1 1 0px;
    }
}

/* ===== Extra large screens and up: 1200px ===== */

@media (min-width: 1200px) {

    /* The hero fills the whole window on big screens. */
    .hero {
        min-height: 100vh;
    }

    /* Taller photos on the widest screens. */
    .photo-pair img {
        height: 340px;
    }
}
