/* ROOT CLASSES */
:root{
    /* Header and footer */
    --Ascent: #567C42;
    --Nav-Bar-White: #F4FFED;
    --systems2-Footer-Hover: #E8F58C;

    /* general colors */
    --systems2-White: #E9F3FF;
    --systems2-Black: #111215;
    --systems2-primary: #324676;
    --systems2-secondary: #B7D7FE;
    --Color-Option-1: #90C86B;
    --Buttons-2nd-Accent: #1E4B7C;
    --Buttons-hover: #0D2439;
}

*{
font-family: "Palaquin", sans-serif;
}

/* GENERAL PAGE SET UP */

html{
    background-color: var(--systems2-White);
}

p{
    /* typography */
    font-family: Palanquin;
    font-size: 28px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
}

strong{

    /* typography */
    font-family: Palanquin;
    font-size: 28px;
    font-style: normal;
    font-weight: 700;
    line-height: 135%;
}

a:hover{
    cursor: pointer;
}

.abtn{
    color: var(--systems2-White);

    display: flex;
    padding: 13px 61px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: auto;
    text-align: center;

    /* strong */
    font-family: Palanquin;
    font-size: 28px;
    text-decoration: none;
    font-style: normal;
    font-weight: 700;
    line-height: 135%; /* 43.2px */
    max-width: 300px;

    border-radius: 10px;
    background: var(--Buttons-2nd-Accent);
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    transition: 1s ease;
}

.abtn:hover{
    background: var(--Color-Option-1);
}

body{
    max-width: 1440px;
}

h1{
    margin: 0;
    color: var(--systems2-White);

    /* h2 header Palanquin */
    font-family: Palanquin;
    font-size: 48px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%; /* 57.6px */
}

h2{
    /* h2 header Palanquin */
    font-family: Palanquin;
    font-size: 48px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%; /* 57.6px */
}

/* General Naviagation */
/* header */

header{
    padding: 20px;
    background-color: var(--Ascent);
    display: flex;
    flex-direction: column;
}

.logoandham{
    display: flex;
    justify-content: space-around;
    align-items: center;
}

nav {
    display: none;
}

/* when open */
nav.open {
    display: block;
}

header .logo{
    width: 240px;
    height: 90px;
}

header ul{
    list-style: none;
    padding: 0;
}

header li a{
    display: block;
    font-size: 32px;
    color: var(--Nav-Bar-White);
    text-decoration: none;
    line-height: 200%;
}

header li a:hover{
    color: var(--systems2-Footer-Hover);
}

/* FOOTER */

/* INFORMATION FOOTER */

footer .topfooter{
    background-color: var(--Ascent);
    padding: 10px
}

footer img{
    max-width: 300px;
}

footer p{
    font-size: 24px;
    color: var(--Nav-Bar-White);
    margin: 0;
    margin: 20px 10px 20px 10px;
}

footer p a{
    color: var(--Nav-Bar-White);
}

footer p a:hover, footer ul li a:hover{
    color: var(--systems2-Footer-Hover);
}

footer p .smalltext{
    font-size: 20px;
}

footer ul li{
    /* strong */
    font-family: Palanquin;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 175%;
}

footer ul{
    list-style: none;
    padding: 0;
    margin: 20px 10px 20px 10px;
}

footer ul li a{
color: var(--Nav-Bar-White);
text-decoration: none;
}

/* BOTTOM FOOTER */
footer .bottomfooter{
    background-color: var(--systems2-Black);
    padding: 10px;
}

footer .bottomfooter p{
    margin: 0;
    color: var(--systems2-White);
    font-weight: 300;
}

footer .bottomfooter p a{
    margin: 0;
    color: var(--systems2-White);
    font-weight: 300;
}

footer .bottomfooter p a:hover{
    color: var(--systems2-Footer-Hover);
}

/* INDEX PAGE */
/* HERO SECTION */

.hero{
    padding: 20px;
    padding-bottom: 40px;
}

.hero p{
    color: var(--systems2-White);

    /* strong */
    font-family: Palanquin;
    font-size: 32px;
    font-style: normal;
    font-weight: 500;
    line-height: 135%; /* 43.2px */
}

#indexhero{
    background: linear-gradient(rgba(30, 75, 124, 0.40), rgba(30, 75, 124, 0.40)),
    url(/images/constructionworkerssmall.jpg) no-repeat;
    background-position: center;
    background-size: cover;
}

/* SPECIFIC HERO PAGES */

#abouthero{
    background: linear-gradient(rgba(30, 75, 124, 0.40), rgba(30, 75, 124, 0.40)),
    url(/images/couplehappyfromsavingssmall.jpg) no-repeat;
    background-position: center;
    background-size: cover;
}

#contacthero{
    background: linear-gradient(rgba(30, 75, 124, 0.40), rgba(30, 75, 124, 0.40)),
    url(/images/insurrancewomansmall.jpg) no-repeat;
    background-position: center;
    background-size: cover;
}

#quotehero{
    background: linear-gradient(rgba(30, 75, 124, 0.40), rgba(30, 75, 124, 0.40)),
    url(/images/couplehappyfromsavingssmall.jpg) no-repeat;
    background-position: center;
    background-size: cover;
}

#businesshero{
    background: linear-gradient(rgba(30, 75, 124, 0.40), rgba(30, 75, 124, 0.40)),
    url(/images/storefrontsmall.jpg) no-repeat;
    background-position: center;
    background-size: cover;
}

#constructionhero{
    background: linear-gradient(rgba(30, 75, 124, 0.40), rgba(30, 75, 124, 0.40)),
    url(/images/constructionworkerscovered.jpeg) no-repeat;
    background-position: right;
    background-size: cover;
}

#contacthero h1{
    margin-top: 60px;
}

#contacthero p{
    margin-bottom: 80px;
}

/* //end SPECIFIC PAGES */

.CTA{
    border-radius: 10px;
    background: var(--Buttons-gradient, linear-gradient(270deg, #1E4B7C 0%, #0D2439 100%));
    box-shadow: 9px 10px 6.1px 0 rgba(0, 0, 0, 0.62);
    display: flex;
    margin: auto;
    padding: 20px 61px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-align: center;

    max-width: 300px;

    text-decoration: none;
    color: var(--systems2-White);

    /* strong */
    font-family: Palanquin;
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: 135%; /* 43.2px */

    /* animation */
    transition: 1s ease;
}

.CTA:hover{
    background: var(--systems2-White);
    color: var(--systems2-Black);
}


/* FEATURED SECTION */

.featured img{
    border-radius: 16px;
    max-width: 100%;
}

.featured article{
    border-radius: 0 48px;
    border: 9px solid var(--systems2-primary);
    padding: 20px;
    margin: 20px
}

.featured article p{
    color: var(--systems2-primary);
}

.featured article strong{
    /* strong */
    font-family: Palanquin;
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: 135%; /* 43.2px */
}

.card1{
    background: var(--Color-Option-1);
}

.card2{
    background: var(--systems2-secondary);
}

/* MISSION SECTION */

.missionbgimage{
    background: linear-gradient(0deg, var(--Mission-statement-level, rgba(30, 75, 124, 0.70)) 0%, 
    var(--Mission-statement-level, rgba(30, 75, 124, 0.70)) 100%), 
    url(/images/paperworkwithwritingsmall.jpg) lightgray 50% / cover no-repeat;

    padding: 40px;
}

.mission h2{
    text-align: center;

    color: var(--systems2-White);
}

.lightbluebg{
    background-color: var(--systems2-secondary);
    padding: 40px;

    color: var(--Buttons-hover);
}

.lightbluebg p{
    margin: 0;

    /* small text */
    font-family: Palanquin;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%; /* 31.2px */
}

.mission a{
    margin: 40px auto 40px auto;
}

.missionbtn{
    margin-left: 20px;
    margin-right: 20px;
}

.mission .darkbluebg{
    background: var(--systems2-primary);
    /* remove after partner section */
    background-color: var(--systems2-Black);
    padding: 20px;
}

.callout{
    color: var(--systems2-White);
    margin: 0;

    /* h3 header Palanquin */
    font-family: Palanquin;
    font-size: 40px;
    font-style: normal;
    font-weight: 400;
    line-height: 50px; /* 125% */
}

/* PARTNERS SECTION */
.partners{
    display: none;
    background-color: var(--systems2-Black);
    padding: 20px;
}

.partners h2{
    margin: 0;

    color: var(--systems2-White);
}

.partners p{
    color: var(--systems2-White);
}

/* TESTIMONIALS SECTION */

.testimonials{
    background-color: var(--systems2-primary);
    padding: 20px;
}

.testimonials h2{
    margin: 0;

    color: var(--systems2-White);
}

.testimonials .quoterow {
    display: grid;
    grid-template-columns: auto 300px auto;
    align-items: stretch;
}

.testimonials .testimonialquotemarkleft{
    grid-column: 1;
    color: var(--systems2-White);
    font-size: 36px;
    align-self: start;
}

.testimonials .testimonialmiddle{
    padding: 10px;
    grid-column: 2/4;
    color: var(--systems2-White);
    font-size: 32px;
}

.testimonials .testimonialquotemarkright{
    grid-column: 5;
    align-self: end;
    color: var(--systems2-White);
    font-size: 36px;
}

.testimonials .leftaligned{
    color: var(--systems2-White);
    text-align: right;

    font-family: Palanquin;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
}

.testimonial-slider {
    position: relative;
}

.testimonial-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;

    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;

    background: var(--systems2-White);
    color: var(--systems2-primary);

    font-size: 36px;
    line-height: 1;
    font-weight: 700;

    display: flex;
    justify-content: center;
    align-items: center;

    cursor: pointer;
    z-index: 2;

    transition: 0.3s ease;
}

.testimonial-arrow:hover {
    background: var(--Color-Option-1);
    color: var(--systems2-Black);
}

.testimonial-arrow-left {
    left: 0;
}

.testimonial-arrow-right {
    right: 0;
}

.testimonialmiddle,
.testimonials .leftaligned {
    opacity: 1;
    transition: opacity 0.45s ease;
}

.testimonialmiddle.fade-out,
.testimonials .leftaligned.fade-out {
    opacity: 0;
}

.testimonial-slider {
    position: relative;
    transition: height 0.45s ease;
    overflow: visible;
}

.quoterow {
    transition: opacity 0.45s ease;
}

.testimonial-slider {
    position: relative;
    transition: height 0.45s ease;
    overflow: visible;
}

.testimonial-height-wrap {
    overflow: hidden;
    transition: height 0.45s ease;
}

.testimonialmiddle,
.testimonials .leftaligned {
    opacity: 1;
    transition: opacity 0.45s ease;
}

.testimonialmiddle.fade-out,
.testimonials .leftaligned.fade-out {
    opacity: 0;
}

.testimonialmiddle p {
    margin: 0 0 24px 0;
}

.testimonialmiddle p:last-child {
    margin-bottom: 0;
}

/* CTA SECTION */

.CTAsection{
    background-color: var(--systems2-secondary);
    padding: 20px;
}

.CTAsection h2{
    margin-top: 0;
}

.CTAsection .CTA{
    margin-bottom: 40px;
}

/* CONTACT US SECTION  */

.contactsection{
    padding: 20px;
    background: linear-gradient(0deg, rgba(233, 243, 255, 0.50) 0%, rgba(233, 243, 255, 0.50) 100%), 
    url(/images/constructionmanonphonesmall.jpg) lightgray 50% / cover no-repeat;
}

/* SPECIFIC CONTACT US SECTIONS */

#contactsectionbusiness{
    background: linear-gradient(0deg, rgba(233, 243, 255, 0.50) 0%, rgba(233, 243, 255, 0.50) 100%), 
    url(/images/storefrontwomanonphonesmall.jpg) lightgray 50% / cover no-repeat;
}

#contactsectionconstruction{
    background: linear-gradient(0deg, rgba(233, 243, 255, 0.50) 0%, rgba(233, 243, 255, 0.50) 100%), 
    url(/images/constructionworkeronphoneinsacramento.jpg) lightgray 50% / cover no-repeat;
}

.contactsection h2{
    margin-top: 0;
    margin-bottom: 0;
}


/* FORMS */
/* GENERAL LAYOUT */
.contact-form{
    background: var(--systems2-Black);
    margin: 20px auto;
    padding: 20px;
    max-width: 300px;
    border-radius: 16px 48px;
    border: 6px solid var(--systems2-secondary);
}

/* HEADINGS */
.contact-form h2 {
    color: var(--systems2-White);
    margin: 0;
}

.form-intro {
    color: var(--systems2-White);
}

/* LABELS */
.contact-form label {
    display: block;

    margin-bottom: 6px;
    margin-top: 20px;

    color: var(--systems2-White);

    /* strong */
    font-family: Palanquin;
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: 135%; /* 43.2px */
}

/* INPUTS */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: none;
    background: var(--systems2-White);
    color: var(--systems2-primary);
    font-family: Palanquin;
    font-size: 20px;
    box-sizing: border-box;
}

/* TEXTAREA HEIGHT */
.contact-form textarea {
    resize: none;
}

/* DIVIDER LINE */
form hr {
    height: 6px;
    background:  var(--Color-Option-1);
    margin: 36px 0;
    border-radius: 2px;
}

/* PRIVACY TEXT */
.privacy-note {
    color: var(--systems2-White);

    /* small text */
    font-family: Palanquin;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%; /* 31.2px */
}

/* BUTTON */
.contact-form button{
    border: none;
    margin: 40px 20px;
}

.contact-form button:active, .contact-form button:hover {
    box-shadow: 0 2px 0 #1d3f61;
    border: none;
}

/* FIELDSETS */
fieldset .checkbox-option {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    margin-bottom: 10px;
    color: var(--systems2-White);
    cursor: pointer;
}

.checkbox-option input[type="checkbox"] {
    width: 28px;
    height: 28px;
    margin: 2px 0 0 0;
    accent-color: var(--Color-Option-1);
}

.checkbox-option span {
    max-width: 200px; /* adjust to match your layout */
    font-weight: 300;
}

/* remove default fieldset styling */
fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

/* remove legend weird spacing */
legend {
    padding: 0;
    display: block;

    margin-bottom: 6px;
    margin-top: 20px;

    color: var(--systems2-White);

    /* strong */
    font-family: Palanquin;
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: 135%; /* 43.2px */
}

.input-error {
    outline: 4px solid #ff6b6b;
}

.form-error {
    color: #ff6b6b;
    background: transparent;
    font-size: 18px;
    margin: 8px 0 0 0;
}

/* constrain the whole checkbox section */
.insurance-group {
    max-width: 280px; /* adjust as needed */
}

.insurance-group {
    width: 100%;
}

/* turnstile */

.cf-turnstile{
    display: flex;
    justify-content: center;
}


/* CONTACT CARD ON CONTACT US PAGE */
/* CONTACT DETAILS CARD */
.contact-details-card {
    background: var(--systems2-Black);
    margin: 20px auto;
    padding: 20px;
    max-width: 300px;
    border-radius: 16px 48px;
    border: 6px solid var(--systems2-secondary);
}

/* EACH ROW */
.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

/* ICON */
.contact-icon-link img {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    margin-top: 6px;
}

/* TEXT CONTAINER */
.contact-detail-text h2 {
    margin: 0;
    color: var(--systems2-White);

    /* match your smaller header style */
    font-family: Palanquin;
    font-size: 28px;
    font-weight: 500;
    line-height: 130%;
}

.contact-detail-text p {
    margin: 4px 0 0 0;
    color: var(--systems2-White);

    font-family: Palanquin;
    font-size: 24px;
    font-weight: 400;
    line-height: 130%;
}

/* LINKS */
.contact-detail-text a {
    color: var(--systems2-White);
    text-decoration: none;
}

.contact-detail-text a:hover {
    color: var(--systems2-Footer-Hover);
}

.contact-detail-text .smalltext{
    font-size: 15px;
}

/* SPECIAL: "Get a Quote" row */
.contact-detail-text h2 a {
    text-decoration: underline;
}

.contact-icon-link {
    display: inline-flex;
    border-radius: 40px;
    transition: background-color 0.25s ease;
    padding: 5px;
}

.contact-icon-link {
    position: relative;
    display: inline-flex;
    border-radius: 8px;
    overflow: hidden;
}

/* the expanding color */
.contact-icon-link::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, var(--Color-Option-1) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.4s ease;
    z-index: 0;
}

/* bring icon above the effect */
.contact-icon-link img {
    position: relative;
    z-index: 1;
    transition: transform 0.25s ease;
}

/* hover trigger */
.contact-icon-link:hover::before {
    transform: scale(2.5);
}

.contact-icon-link:hover img {
    transform: scale(1.1);
}

/* about us page */
.about-stats {
    background: var(--systems2-White);
    padding: 40px 20px;
}

.about-stats ul {
    list-style: none;
    margin: 0;
    padding: 0;

    display: grid;
    gap: 40px;
}

.about-stats li {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 16px;
    align-items: start;
}

.about-stats img {
    width: 48px;
    height: 48px;
    display: block;
}

.about-stats p {
    margin: 0;
    color: var(--systems2-Black);
    line-height: 1.3;
}

.about-stats strong {
    font-weight: 700;
    line-height: 1.3;
    color: var(--systems2-Black);
}

.promise {
    color: var(--systems2-White);
}

.promisedrkbg{
    background-color: var(--Buttons-2nd-Accent);
    padding: 60px 20px;
}

.promise h2 {
    text-align: center;
    margin: 0;
}

.promisedulsection{
    padding: 20px 60px;
    background: linear-gradient(rgba(30, 75, 124, 0.65), rgba(30, 75, 124, 0.65)),
    url(/images/familyimage.jpg) center/cover no-repeat;
}

.promise ul {
    list-style: none;
    padding: 0;
    margin: 0;

    display: grid;
    gap: 28px;
}

.promise li {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 16px;
    align-items: start;
}

.promise img {
    width: 32px;
    height: 32px;
    margin-top: 4px;
}

.promise p {
    margin: 0;
    font-size: 28px;
    line-height: 1.3;
}

.promise strong {
    font-weight: 700;
}

/* Meet Teddie Section */

.meet-teddie {
    background: var(--systems2-Black);
    color: var(--systems2-White);
    padding: 40px 20px;
    position: relative;
}

.meet-teddie h2 {
    margin: 0 0 500px 0;
    color: var(--systems2-secondary);
}

.meet-teddie img {
    position: absolute;
    top: 130px;
    left: 0;
    width: calc(100% - 20px);
    max-width: 340px;
    height: auto;

    border-radius: 0 48px 16px 0;
    border-top: 6px solid var(--systems2-secondary);
    border-right: 6px solid var(--systems2-secondary);
    border-bottom: 6px solid var(--systems2-secondary);
}

.meet-teddie-content {
    margin-top: 275px;
}
.meet-teddie p {
    margin: 0 0 32px 0;
    color: var(--systems2-White);
}

.meet-teddie strong {
    color: var(--systems2-White);
}

.meet-teddie a {
    color: var(--systems2-White);
    text-decoration: none;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.meet-teddie a:hover {
    color: var(--systems2-Footer-Hover);
}

.smalltext{
    font-size: 16px;
}

/* trust section */

.trust {
    position: relative;
    padding: 60px 20px 650px 20px; /* bottom space for image */

    background:
        linear-gradient(rgba(233, 243, 255, 0.85), rgba(233, 243, 255, 0.85)),
        url(/images/localsacramentoconstructionsmall.jpg) center/cover no-repeat;
}

/* heading */
.trust h2 {
    margin: 0 0 24px 0;
    color: var(--systems2-primary);
    font-size: 42px;
    line-height: 1.2;
}

/* paragraph */
.trust p {
    margin: 0;
    color: var(--systems2-Black);
    font-size: 28px;
    line-height: 1.3;
}

/* bottom image card */
.trust img {
    position: absolute;
    right: 0;
    bottom: 60px;

    width: calc(100% - 40px);
    max-width: 420px;
    height: auto;

    border-radius: 16px 0 0 48px;
    border-top: 6px solid var(--systems2-primary);
    border-bottom: 6px solid var(--systems2-primary);
    border-left: 6px solid var(--systems2-primary);
}

/* BUSINESS PAGE */
/* business cards */
.darkbluebg{
    background-color: var(--Buttons-2nd-Accent);
    padding: 20px;
}

.darkbluebg h2{
    margin: 0;
    color: var(--systems2-White);
}

.policy-list {
    display: grid;
}

.policy-card {
    margin: 20px;
    border-radius: 0 48px;
    border: 9px solid var(--systems2-primary);
    overflow: hidden;
}

.policy-card:first-child{
    margin-top: 40px;
}

.policy-card:last-child{
    margin-bottom: 40px;
}

/* clickable header */
.policy-header {
    width: 100%;
    background: none;
    border: none;
    padding: 20px;
    text-align: left;
    cursor: pointer;
}

/* top layout */
.policy-top {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.policy-icon {
    width: 60px;
    height: 60px;
}

.policy-title {
    font-size: 32px;
    font-weight: 500;
    line-height: 1.1;
}

.policy-description {
    display: block;
    font-size: 26px;
    margin-bottom: 28px;
}

.policy-link {
    display: block;
    text-align: center;
    font-size: 24px;
    color: var(--Buttons-2nd-Accent);
    text-decoration: underline;
}

/* hidden by default */
.policy-details {
    display: none;
    padding: 0 20px 20px 20px;

    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 20px;
    transition:
        max-height 0.4s ease,
        opacity 0.3s ease,
        padding 0.3s ease;
}

.policy-details br{
    line-height: 1.7em;
}

/* open state */
.policy-card.open .policy-details {
    display: block;
    max-height: 800px; /* raise if needed */
    opacity: 1;
    padding: 0 20px 20px 20px;
}

.policy-card.open .policy-link {
    display: none;
}

/* expanded text */
.policy-details p {
    margin: 0 0 24px 0;
    font-size: 24px;
}

.policy-details strong {
    font-weight: 700;
}

/* CTA */
.policy-cta {
    display: inline-block;
    margin-top: 10px;
    font-weight: 700;
    text-decoration: none;
}

/* smaller version */
.ctasmall {
    padding: 12px 20px;
    font-size: 22px;
    max-width: 260px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.25);
}


/* Count on us */
.coverage-trust {
    background: var(--systems2-Black);
    color: var(--systems2-White);
    padding: 40px 20px 60px 20px;
}

.coverage-trust h2 {
    margin: 0 0 32px 0;
    color: var(--systems2-secondary);
    max-width: 10ch;
}

.coverage-trust img {
    display: block;
    width: calc(100% + 20px);
    max-width: 420px;
    height: auto;
    margin: 0 0 32px -20px;

    border-top: 6px solid var(--systems2-secondary);
    border-right: 6px solid var(--systems2-secondary);
    border-bottom: 6px solid var(--systems2-secondary);
    border-radius: 0 48px 16px 0;
}

.coverage-trust p {
    margin: 0 0 32px 0;
    color: var(--systems2-White);
}

.coverage-trust p:last-of-type {
    margin-bottom: 0;
}

/* FAQs */
.faq {
    background: var(--systems2-White);
}

/* hide heading visually but keep for accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

/* list reset */
.faq-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* each item */
.faq-item {
    border-bottom: 3px solid var(--systems2-primary);
}

/* question button */
.faq-question {
    width: 100%;
    padding: 40px 60px 40px 40px;

    background: none;
    border: none;
    cursor: pointer;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;

    text-align: left;

    font-family: Palanquin;
    font-size: 32px;
    font-weight: 300;
    line-height: 1.3;

    color: var(--systems2-primary);

    position: relative; /* 👈 important */
    z-index: 1;
}

.faq-question::before {
    content: "";

    position: absolute;
    inset: 0;

    opacity: 0.15; /* faded look */

    z-index: -1; /* 👈 puts it behind text */
}

.icon-coi .faq-question::before {
    background: url("images/businesstime.png") top/200px no-repeat;
}

.icon-tools .faq-question::before {
    background: url("images/tools.png") top/200px no-repeat;
}

.icon-cost .faq-question::before {
    background: url("/images/costs.png") top/200px no-repeat;
}

/* default (closed) */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 40px;
    transition:
        max-height 0.4s ease,
        opacity 0.3s ease,
        padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 300px; /* raise if needed */
    opacity: 1;
    padding: 0 40px 40px 40px;
}

.faq-answer p {
    margin: 0;
    font-size: 24px;
    line-height: 1.4;
    color: var(--systems2-Black);
}

/* constuction page */
/* item discriptions */
.contractors {
    padding: 40px 20px;
}

/* heading */
.contractors h2 {
    margin: 0 0 24px 0;
    color: var(--systems2-primary);
    max-width: 12ch;
}

/* paragraphs */
.contractors p {
    margin: 0 0 24px 0;
    color: var(--systems2-Black);
}

.contractors-intro {
    margin-top: 32px;
}

/* list */
.contractor-list {
    list-style: none;
    padding: 0;
    margin: 0;

    display: grid;
    gap: 16px;
}

/* list item */
.contractor-list li {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 16px;
    align-items: center;
}

/* icon */
.contractor-list img {
    width: 32px;
    height: 32px;
    display: block;
}

/* text */
.contractor-list span {
    font-family: Palanquin;
    font-size: 26px;
    font-weight: 600;
    color: var(--systems2-primary);
}

/* why us */
.why-us {
    background: var(--systems2-secondary);
    padding-bottom: 40px;
}

.why-us-header {
    padding: 40px 20px;
    background:
        linear-gradient(rgba(30, 75, 124, 0.7), rgba(30, 75, 124, 0.7)),
        url(/images/insurrancewomanexplaining.jpg) center/cover no-repeat;
}

.why-us-header h2 {
    margin: 0;
    color: var(--systems2-White);
}

.why-us-cards {
    display: grid;
    gap: 20px;
    padding: 20px;
}

.why-card {
    border: 4px solid var(--systems2-Black);
    border-radius: 20px;
    overflow: hidden;
    background: var(--systems2-White);
}

.why-card img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
}

#insurancewomanoncomputer{
    object-position: top;
}

.why-card h3 {
    margin: 0;
    padding: 16px 16px 8px;
    color: var(--systems2-Black);
    font-size: 28px;
    line-height: 1.15;
}

.why-card p {
    margin: 0;
    padding: 0 16px 20px;
    color: var(--systems2-Black);
    font-size: 24px;
    line-height: 1.3;
}

.why-card-green {
    background: var(--Color-Option-1);
}

.why-card-blue {
    background: var(--systems2-secondary);
    border-color: var(--systems2-primary);
}

.why-card-cream {
    background: var(--systems2-White);
    border-color: var(--systems2-primary);
}

.coverage-trust #foreman{
    border-radius: 16px 0 0 48px;
    border-top: 6px solid var(--systems2-primary);
    border-bottom: 6px solid var(--systems2-primary);
    border-left: 6px solid var(--systems2-primary);
    border-right: none;

    margin: 0 -20px 32px auto;
}

.privacy-note a{
    color: var(--systems2-secondary);
}

.privacy-note a:hover{
    color: var(--systems2-Footer-Hover);
}

/* LEGAL DOCUMENTS */

.legaldocuments h1, .legaldocuments p, .legaldocuments h2, .legaldocuments h3, .legaldocuments ul li, .legaldocuments ol li{
    font-family: Palanquin;
    color: var(--systems2-Black);
}

.legaldocuments{
    padding: 20px;
    max-width: 600px;
    margin: auto;
}

.legaldocuments h1{
    text-align: left;
    font-size: 48px;
}

.legaldocuments h2{
    font-size: 32px;
}

.legaldocuments ul li, .legaldocuments ol li{
    font-size: 20px;
}

.legaldocuments p{
    font-size: 20px;
}
.legaldocuments p strong{
    font-size: 24px;
}

.legaldocuments h3{
    font-size: 32px;
    font-weight: 300;
}

.legaldocuments a{
    color: var(--Buttons-2nd-Accent);
}

.legaldocuments a:hover{
    color: var(--Color-Option-1);
}

.honeypot {
    position: absolute;
    left: -9999px;
}

@media (min-width: 600px) {

    /* GENERAL ELEMENTS */
    body{
        margin-left: auto;
        margin-right: auto;
    }

    /* HEADER AND NAV */
    header{
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
    }

    .navhamburger{
        display: none;
    }

    nav{
        display: block;
    }

    nav ul{
        display: flex;
        flex-wrap: wrap;
        gap: 40px;
        justify-content: space-around;
        align-items: center;
    }

    nav ul li a{
        font-size: 28px;
    }

    .navCTA{
        border-radius: 10px;
        background: var(--Buttons-gradient, linear-gradient(270deg, #1E4B7C 0%, #0D2439 100%));
        box-shadow: 9px 10px 6.1px 0 rgba(0, 0, 0, 0.62);
        display: flex;
        margin: auto;
        padding: 16px 61px;
        justify-content: center;
        align-items: center;
        gap: 10px;

        max-width: 300px;

        text-decoration: none;
        color: var(--systems2-White);

        /* strong */
        font-family: Palanquin;
        font-size: 28px;
        font-style: normal;
        font-weight: 700;
        line-height: 135%; /* 43.2px */

        /* animation */
        transition: 1s ease;
    }

    .navCTA:hover{
        background: var(--systems2-White);
        color: var(--systems2-Black);
    }

    /* FOOTER */
    .topfooter {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "logo links"
            "info contact";
        row-gap: 0;
        column-gap: 40px;
        align-items: start;
    }

    .topfooter img {
        grid-area: logo;
        width: 220px;
        height: auto;
    }

    .topfooter .fc1 {
        grid-area: info;
    }

    .topfooter .fc2 {
        grid-area: links;
    }

    .topfooter .fc3 {
        grid-area: contact;
    }

    .bottomfooter{
        text-align: center;
    }

    /* HERO SECTION */
    h1{
        text-align: center;
        font-size: 96px;
        font-weight: 400;
    }

    .hero {
        min-height: 700px;
        display: flex;
        flex-direction: column;
        justify-content: center;   /* vertical centering */
        align-items: center;       /* horizontal centering */
        text-align: center;
        padding: 40px 20px;
        box-sizing: border-box;
    }

    .hero p{
        text-align: center;
        max-width: 1000px;
    }

    .CTA{
        margin-top: 0;
    }

    /* SPECIFIC PAGES HERO SECTION */
    #indexhero{
        background: linear-gradient(rgba(30, 75, 124, 0.40), rgba(30, 75, 124, 0.40)),
        url(/images/constructionworkers.jpeg) no-repeat;
        background-position: center;
        background-size: cover;
    }

    #contacthero{
    background: linear-gradient(rgba(30, 75, 124, 0.40), rgba(30, 75, 124, 0.40)),
    url(/images/insurancewomandesktop.jpg) no-repeat;
    background-position: center;
    background-size: cover;
    }

    #abouthero{
        background: linear-gradient(rgba(30, 75, 124, 0.40), rgba(30, 75, 124, 0.40)),
        url(/images/insurancewomanexplainingclearly.jpg) no-repeat;
        background-position: center;
        background-size: cover;
    }

    #abouthero h1{
        max-width: 1100px;
    }

    #abouthero p{
        max-width: 800px;
    }

    #businesshero{
        background: linear-gradient(rgba(30, 75, 124, 0.60), rgba(30, 75, 124, 0.60)),
        url(/images/storefront.jpg) no-repeat;
        background-position: center;
        background-size: cover;
    }

    #constructionhero{
        background: linear-gradient(rgba(30, 75, 124, 0.40), rgba(30, 75, 124, 0.40)),
        url(/images/constructionworkerscoveredlg.jpg) no-repeat;
        background-position: center;
        background-size: cover;
    }

    #constructionhero .CTA{
        margin: 0;
    }

    #businesshero .CTA{
        margin: 0;
    }

    #constructionhero h1{
        font-size: 80px;
    }


    /* FEATURED SECTION ON INDEX PAGE */

    .featured{
        display: flex;
        flex-wrap: wrap;
        gap: 40px;
        justify-content: space-around;
        margin-bottom: 80px;
    }

    .fcards{
        flex: 1;
    }

    .card3{
        background-color: var(--systems2-White);
    }

    /* MISSION SECTION ON INDEX PAGE */

    .mission{
        background-color: var(--systems2-secondary);
    }

    .missionbgimage{
        height: 480px;
        background: linear-gradient(0deg, var(--Mission-statement-level, rgba(30, 75, 124, 0.70)) 0%, 
        var(--Mission-statement-level, rgba(30, 75, 124, 0.70)) 100%), 
        url(/images/paperworkwithwriting.jpg) lightgray 50% / cover no-repeat;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .darkbluebg{
        display: flex;
        justify-content: center;
        gap: 40px;
    }

    .lightbluebg p{
        max-width: 700px;
        margin: auto;
    }


    /* TESTIMONIAL SECTION */

    .testimonials {
        padding: 40px 40px 60px 40px;
        display: flex;
        flex-direction: column;
        gap: 52px;
        text-align: center;
    }

    .testimonials .quoterow {
        display: grid;
        grid-template-columns: auto 600px auto;
        align-items: stretch;
    }

    .testimonials h2 {
        margin-top: 40px;
        font-size: 64px;
    }

    .testimonials div {
        display: grid;
        grid-template-columns: 1fr minmax(600px, 900px) 1fr;
        align-items: stretch;
        margin: 0 auto 0 auto;
        max-width: 600px;
        width: 100%;
    }

    .testimonials .testimonialquotemarkleft {
        grid-column: 1;
        justify-self: start;
        align-self: start;   /* top */
        font-size: 48px;
        line-height: 1;
        margin: 0;
    }

    .testimonials .testimonialmiddle {
        grid-column: 2;
        text-align: left;
        font-size: 32px;
    }

    .testimonials .testimonialquotemarkright {
        grid-column: 3;
        justify-self: end;
        align-self: end;     /* bottom */
        font-size: 48px;
        line-height: 1;
        margin: 0;
    }

    .testimonial-arrow-left {
        left: -60px;
    }

    .testimonial-arrow-right {
        right: -60px;
    }

    .testimonialmiddle p {
        margin: 0 0 24px 0;
    }

    .testimonialmiddle p:last-child {
        margin-bottom: 0;
    }

    /* CTA SECTION */
    .CTAsection{
        height: 600px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 40px;
    }

    .CTAsection h2{
        text-align: center;
    }


    /* CONTACT US SECTION */

    .contactsection{
        height: 500px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;

        background: linear-gradient(0deg, rgba(233, 243, 255, 0.50) 0%, rgba(233, 243, 255, 0.50) 100%), 
        url(/images/constructionmanonphonelg.jpg) lightgray 50% / cover no-repeat;
    }

    .contactsection h2{
        text-align: center;
    }

    .contactsection p{
        text-align: center;
        max-width: 700px;
    }

    .contactsection .abtn{
        margin-top: 0;
        margin-bottom: 0;
    }

    #contactsectionbusiness{
        background: linear-gradient(0deg, rgba(233, 243, 255, 0.50) 0%, rgba(233, 243, 255, 0.50) 100%), 
        url(/images/storefrontwomanonphone.jpg) lightgray 50% / cover no-repeat;
        background-position: top;
    }

    #contactsectionconstruction{
        background: linear-gradient(0deg, rgba(233, 243, 255, 0.50) 0%, rgba(233, 243, 255, 0.50) 100%), 
        url(/images/constructionworkerinsacramentolg.jpg) lightgray 50% / cover no-repeat;
        background-position: top;
    }

    /* FORM SETTINGS */

    .contact-form{
        max-width: 700px;
    }

    #quoteform{
        margin-right: auto;
        margin-left: auto;
    }

    .contact-form h2 {
        text-align: center;
    }

    .form-intro {
        text-align: center;
    }

    /* INPUTS */
    #first-name{
        max-width: 250px;
    }

    #last-name{
        max-width: 300px;
    }

    #business-name{
        max-width: 450px;
    }

    #phone-number{
        max-width: 250px;
    }

    #email-address{
        max-width: 550px;
    }

    .checkbox-option input[type="checkbox"] {
        width: 28px;
        height: 28px;
        margin: 2px 0 0 40px;
        accent-color: var(--Color-Option-1);
    }

    .checkbox-option span {
        max-width: 500px; /* adjust to match your layout */
    }

    .contact-form button{
    margin: 40px auto;
    }

    .formexterior {
        padding: 60px 20px;
    }

    #quoteformexterior{
        background:
            linear-gradient(rgba(233, 243, 255, 0.6), rgba(233, 243, 255, 0.6)),
            url(/images/tools.jpg) center / cover no-repeat;
    }

    #contactusformexterior{
        background:
            linear-gradient(rgba(233, 243, 255, 0.6), rgba(233, 243, 255, 0.6)),
            url(/images/constructionman.jpg) center / cover no-repeat;
    }

    #quotehero{
        background: linear-gradient(rgba(30, 75, 124, 0.40), rgba(30, 75, 124, 0.40)),
        url(/images/couplehappyfromsavings.jpg) no-repeat;
        background-position: center;
        background-size: cover;
    }

    #quotehero h1{
        max-width: 1200px;
    }

    #quotehero p{
        max-width: 800px;
    }

    .contactusforms{
        padding: 20px;
        position: relative;
    }

    .contact-form{
        margin: 0
    }

    .contact-details-card{
        margin: 20px 20px 20px auto;
    }

    .contact-details-card{
        max-width: 500px;
    }

    /* ABOUT HARRIS AND ASSOCIATES */

    .about-stats ul{
        display: flex;
        justify-content: center;
    }

    .about-stats ul li{
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 400px;
        text-align: center;
    }

    .about-stats img {
        width: 100px;
        height: 100px;
    }

    /* PROMISE SECTION */

    .promisedulsection{
        padding: 80px 40px;
        height: 500px;
    }

    .promisedulsection ul{
        display: grid;
        grid-template-columns: 500px 500px;
        justify-content: center;
        grid-template-rows: repeat(2, 1fr);
        gap: 40px 80px;
        align-items: center;
        height: 100%;
    }

    .promise li {
        display: flex;
        gap: 24px;
        align-items: center;
    }

    .promise img {
        width: 100px;
        height: 100px;
    }

    /* MEET TEDDIE SECTION */

    .meet-teddie h2 {
        margin: 0 0 20px 320px;
    }

    .meet-teddie img {
        max-width: 300px;
        height: 500px;
        object-fit: cover;
        object-position: top;
    }

    .meet-teddie-content {
        margin: 0 0 0 320px;
    }

    /* BUILT ON TRUST SECTION */

    .trust {
        padding: 60px 20px 120px 20px;
        background:
            linear-gradient(rgba(233, 243, 255, 0.85), rgba(233, 243, 255, 0.85)),
            url(/images/localsacramentoconstruction.jpg) center/cover no-repeat;
    }

    /* heading */
    .trust h2 {
        margin: 0 50vw 40px 20px;
        text-align: right;
    }

    /* paragraph */
    .trust p {
        text-align: right;
        margin-right: 50vw;
        margin-left: 32px;
    }

    /* bottom image card */
    .trust img {
        max-width: 300px;
        height: 500px;
        object-fit: cover;
        object-position: top;
    }

    /* BUSINESS PAGE */
    /* CARDS */
    .businesspage .darkbluebg{
        background-color: var(--Buttons-2nd-Accent);
        padding: 20px;
        height: 225px;
    }

    .constructionpage .darkbluebg{
        background-color: var(--Buttons-2nd-Accent);
        padding: 20px;
        height: 225px;
    }

    .constructionpage .darkbluebg h2{
        margin: auto;
    }

    .businesspage .darkbluebg h2{
        margin: auto;
    }

    /* POLICIES */
    .policy-list {
        display: flex;
        flex-wrap: wrap;
        gap: 24px;
        padding: 20px;
        justify-content: center;
    }

    .policy-card {
        margin: 20px;
        border-radius: 0 48px;
        flex: 1;
        border: none;
        overflow: hidden;
        flex-wrap: wrap;

        margin: 0;
        flex: 0 1 calc(50% - 12px);
        box-sizing: border-box;
    }

    .policy-card:first-child{
        margin-top: 20px;
    }

    .policy-card:last-child{
        margin-bottom: 20px;
    }

    .card1,
    .card2,
    .card3 {
        background: var(--systems2-White);
    }

    .policy-description{
        font-weight: 300;
    }

    /* COUNT ON US SECTION */
    .coverage-trust{
        position: relative;
    }

    .coverage-trust h2 {
        margin: 0 0 32px 320px;
    }

    .coverage-trust img {
        position: absolute;
        max-width: 300px;
        height: 500px;
        object-fit: cover;
        object-position: top;
    }

    .coverage-trust p:last-child{
        margin-bottom: 100px;
    }

    .constructionpage .coverage-trust h2 {
        margin: 0 0 32px 20px;
    }

    .constructionpage .coverage-trust img {
        width: 40vw;
        max-height: 500px;
        object-fit: cover;
        object-position: top;
        right: 20px;
        top: 40px;
    }

    .coverage-trust p {
        margin: 0 0 32px 320px;
        max-width: 50%;
    }

    .coverage-trust p:last-child{
        margin-bottom: 100px;
    }

    /* FAQS */

    .faq-answer{
        max-width: 600px;
        margin: auto;
    }

    .faq-question{
        flex-direction: row;
        justify-content: center;
        gap: 28px;
    }

    .icon-coi .faq-question::before,
    .icon-tools .faq-question::before,
    .icon-cost .faq-question::before {
        background: var(--systems2-White);
    }

    /* CONSTRUCTION PAGE */
    .contractors{
        display: flex;
        gap: 72px;
        padding: 48px;
    }

    .contractors div{
        flex: 1;
    }

    .contractors h2{
        max-width: 600px;
    }
}

@media (min-width: 840px){
    .topfooter {
        grid-template-columns: 1.2fr 1fr 1fr;
        grid-template-areas:
            "logo links contact"
            "info links contact";
    }

    .topfooter .fc1 {
        grid-area: info;
    }

    .testimonials .leftaligned{
        margin-right: 15vw;
    }

/* MEET TEDDIE SECTION */

    .meet-teddie h2 {
        margin: 0 0 20px 50vw;
    }

    .meet-teddie img {
        max-width: 40vw;
    }

    .meet-teddie-content {
        margin: 0 0 0 50vw;
        max-width: 400px;
    }

/* BUILT ON TRUST SECTION */

    .trust{
         padding: 60px 20px 300px 20px;
    }

    /* heading */
    .trust h2 {
        margin-right: 50vw;
    }

    /* paragraph */
    .trust p {
        margin-right: 50vw;
    }

    /* bottom image card */
    .trust img {
        max-width: 40vw;
    }

    /* COUNT ON US SECTION */

    .coverage-trust h2 {
        margin: 0 0 20px 50%;
    }

    .coverage-trust img {
        max-width: 40%;
    }

    .coverage-trust p {
        margin-left: 50%;
        max-width: 400px;
    }

    .constructionpage .coverage-trust h2{
        margin-left: 20px;
    }

    .constructionpage .coverage-trust img{
        margin-left: 0;
        top: 40px;
        right: 20px;
        max-height: 500px;
    }

    .constructionpage .coverage-trust p{
        margin-left: 20px;
        max-width: 40%;
    }

    /* WHY US */

    .why-us-header{
        height: 500px;
        background:
        linear-gradient(rgba(30, 75, 124, 0.7), rgba(30, 75, 124, 0.7)),
        url(/images/insurrancewomanexplaininglg.jpg) center/cover no-repeat;
    }

    .why-us-cards{
        display: flex;
    }

    .why-card{
        flex: 1;
    }
    
}

@media (min-width: 900px){
    .contact-form{ margin-top: -160px;}
}

@media (min-width: 1000px){
    .featured{
        margin-top: -120px;
        margin-bottom: 80px;
    }

    .policy-list {
        display: flex;
        flex-wrap: nowrap;
        gap: 24px;
        padding: 20px;
    }

    .policy-card {
        margin: 20px;
        border-radius: 0 48px;
        flex: 1;
        border: none;
    }

}

@media (min-width: 1200px){

    .meet-teddie img {
        max-width: 600px;
    }

    .meet-teddie h2{
        margin: 0 0 20px 50%;
    }

    .meet-teddie-content {
        margin: 0 0 0 50%;
    }
}