/* Brand colors */
:root {
    --bs-primary: #2C5F2D;
    --bs-primary-rgb: 44, 95, 45;
}

/* Base / responsive safeguards */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background-color: #FFFFFF !important;
}

h1 {
    font-size: clamp(1.5rem, 5vw, 2.5rem) !important;
    word-break: break-word;
}

h2 {
    font-size: clamp(1.2rem, 4vw, 2rem) !important;
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

/* Brand colors shared across sections */
.text-primary {
    color: #2C5F2D !important;
}

.btn-primary {
    background-color: #2C5F2D !important;
    border-color: #2C5F2D !important;
    color: #FFFFFF !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #1F4520 !important;
    border-color: #19381A !important;
    color: #FFFFFF !important;
}

/* ============================================================
   Navigation / COMPEAN wordmark
   ============================================================ */
#mainNav,
#mainNav.navbar-shrink {
    background-color: #212529 !important;
}

#mainNav .navbar-brand,
#mainNav.navbar-shrink .navbar-brand {
    color: #FFFFFF !important;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.3rem, 2.4vw, 1.85rem) !important;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.2 !important;
    text-transform: uppercase;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
}

/* Segmented O in the navigation wordmark */
#mainNav .navbar-brand .brand-o-mark {
    display: inline-block;
    width: 0.78em;
    height: 0.78em;
    margin: 0 0.025em;
    border-radius: 50%;
    background: conic-gradient(
        from 280deg,
        #55a66a 0deg 75deg,
        #FFFFFF 75deg 360deg
    );
    -webkit-mask: radial-gradient(circle, transparent 0 38%, #000 43%);
    mask: radial-gradient(circle, transparent 0 38%, #000 43%);
    vertical-align: -0.06em;
}

#mainNav .navbar-nav .nav-item .nav-link,
#mainNav .navbar-nav .nav-item .nav-link.active {
    color: #FFFFFF !important;
    text-decoration: none !important;
}

#mainNav .navbar-nav .nav-item .nav-link:hover,
#mainNav .navbar-nav .nav-item .nav-link:focus-visible {
    color: #FFFFFF !important;
    text-decoration: underline !important;
    text-decoration-color: #55a66a !important;
    text-decoration-thickness: 2px;
    text-underline-offset: 7px;
}

/* ============================================================
   Homepage — white hero with COMPEAN tagline
   ============================================================ */
header.masthead {
    background-image: none !important;
    background-color: #FFFFFF !important;
    background-blend-mode: normal !important;
    text-align: center;
    padding: 10rem 1.5rem 5.5rem !important;
    border-bottom: 1px solid #E8E1D8;
}

/* Business name above homepage tagline */
header.masthead .masthead-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #2C5F2D;
    margin-bottom: 1.5rem;
}


header.masthead h1.masthead-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.1rem, 3.8vw, 3rem) !important;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.025em;
    text-transform: none !important;
    color: #212529;
    max-width: 850px;
    margin: 0 auto 1.5rem;
}

header.masthead .headline-accent {
    color: #2C5F2D;
}

header.masthead .masthead-description {
    font-family: 'Roboto Slab', serif;
    font-size: 1.08rem;
    line-height: 1.8;
    color: #5F6B73;
    max-width: 650px;
    margin: 0 auto 2.5rem;
}

header.masthead .btn-primary {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: none !important;
    padding: 1rem 1.8rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

header.masthead .btn-primary:hover {
    background-color: #1F4520 !important;
    border-color: #1F4520 !important;
}

/* ============================================================
   Services — cream background
   ============================================================ */
#services {
    background-color: #F8F5EE !important;
}

/* ============================================================
   About the founder — white background
   ============================================================ */
#team {
    background-color: #FFFFFF !important;
    padding-bottom: 2rem !important;
}

#team .section-heading {
    color: #212529;
    margin-bottom: 3rem;
}

#team .about-founder-row {
    max-width: 1050px;
    margin: 0 auto;
}

#team .about-founder-profile {
    text-align: center;
}

#team .about-founder-photo {
    width: 190px;
    height: 190px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid #EAEAEA;
}

#team .about-founder-profile h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #212529;
    margin: 1.25rem 0 0.4rem;
}

#team .about-founder-role {
    font-family: 'Roboto Slab', serif;
    font-size: 0.95rem;
    color: #6C757D;
    margin-bottom: 0;
}

#team .about-founder-bio {
    padding-left: 1.5rem;
}

#team .about-founder-bio p {
    font-family: 'Roboto Slab', serif;
    font-size: 1.05rem;
    line-height: 1.85;
    color: #5F6B73;
    text-align: left;
    margin-bottom: 1.5rem;
}

#team .about-founder-bio p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   Contact — cream background / Formspree form
   ============================================================ */
#contact {
    background-color: #F8F5EE !important;
    padding-top: 4rem !important;
}

#contact .section-heading {
    color: #2C5F2D !important;
}

#contact .section-subheading {
    color: #6C757D !important;
    max-width: 760px;
    margin: 0 auto 3.5rem;
    line-height: 1.7;
}

#contact textarea.form-control {
    min-height: 170px;
    height: 170px;
    resize: vertical;
}

/* Footer */
.footer-logo {
    width: 190px;
    max-width: 100%;
    height: auto;
}

/* ============================================================
   Tablet: founder profile stacks above biography
   ============================================================ */
@media (max-width: 991px) {
    #team .about-founder-profile {
        margin-bottom: 2.5rem;
    }

    #team .about-founder-bio {
        padding-left: 0;
    }

    #team .about-founder-photo {
        width: 170px;
        height: 170px;
    }
}


/* ==========================================
   MOBILE — HOMEPAGE, ABOUT & CONTACT
   ========================================== */

@media (max-width: 767px) {

    /* Homepage */
    header.masthead {
        padding: 8.5rem 1.25rem 4.5rem !important;
    }

    header.masthead .masthead-eyebrow {
        font-size: 0.85rem;
        letter-spacing: 0.06em;
    }

    header.masthead h1.masthead-heading {
        font-size: clamp(2rem, 8vw, 2.65rem) !important;
        line-height: 1.2;
    }

    header.masthead .masthead-description {
        font-size: 1rem;
        line-height: 1.7;
    }

    /* About the Founder */
    #team {
        padding-top: 3rem !important;
        padding-bottom: 2rem !important;
    }

    #team .section-heading {
        margin-bottom: 2rem;
    }

    #team .about-founder-photo {
        width: 145px;
        height: 145px;
    }

    #team .about-founder-profile {
        margin-bottom: 1.75rem;
    }

    #team .about-founder-bio p {
        font-size: 1rem;
        line-height: 1.65;
        margin-bottom: 1rem;
    }

    /* Contact */
    #contact {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    #contact .section-subheading {
        max-width: 100%;
        padding: 0 0.5rem;
    }

}
