/* ===================================
   SWEET CHERRY TREE CARE - STYLES.CSS
   =================================== */

/* 1. GLOBALS & BASE SETTINGS */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    background-color: #E5E7EB; 
    color: #1A1A1A; 
    font-family: 'Inter', sans-serif; 
    line-height: 1.6; 
}

.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

h1, h2, .nav-links, .outline-btn, .section-title, .cta-title, .faq-question { 
    font-family: 'Barlow', sans-serif; 
}

h2.section-title { 
    font-size: 1.7rem; margin-bottom: 25px; color: #1A1A1A; font-weight: 700;
}

.caps { letter-spacing: 1.2px; }
.centered { text-align: center; display: block; width: 100%; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.content-wrapper { max-width: 900px; margin: 0 auto; }

/* 2. NAVIGATION & DIVIDERS */
header { padding: 20px 0 10px; }
nav { display: flex; justify-content: flex-start; align-items: center; } 
.nav-links { list-style: none; display: flex; gap: 40px; }
.nav-links a { text-decoration: none; color: #1A1A1A; font-weight: 700; font-size: 1.1rem; transition: 0.3s; }

.header-divider-line {
    height: 1px;
    background-color: #1A1A1A;
    opacity: 0.1;
    width: 100%;
    margin: 0;
}

/* 3. HOVER LOGIC */
.nav-links a:hover, 
.hero-phone:hover, 
.footer-contact-links a:hover {
    color: #DC4B00;
}

.faq-question:hover {
    color: #1A1A1A;
}

.hover-icon:hover {
    filter: brightness(0) saturate(100%) invert(27%) sepia(94%) saturate(2219%) 
            hue-rotate(8deg) brightness(98%) contrast(101%);
}

/* 4. HERO SECTION (Banner) - Centered Version */
.hero { 
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 35px;
    padding: 80px 0 100px;
}

.hero .logo-link {
    justify-self: end;
}

.main-logo { width: 270px; display: block; }

.hero-divider { 
    width: 1px; 
    height: 75px; 
    background-color: #1A1A1A; 
    opacity: 0.2; 
}

.hero-contact-stack {
    justify-self: start;
}

.hero-phone { 
    font-family: 'Inter', sans-serif; 
    font-size: 2.2rem; 
    font-weight: 700; 
    text-decoration: none; 
    color: #1A1A1A; 
    transition: 0.3s; 
}

/* 5. ABOUT & OWNERS BLOCK */
.text-section { padding-bottom: 20px; } 
.about-content p { margin-bottom: 25px; line-height: 1.85; font-size: 1rem; }
.owners-section { padding-top: 20px; }
.owner-flex { display: flex; gap: 60px; padding-top: 10px; }
.owner-item { display: flex; align-items: center; gap: 25px; }
.isa-badge { width: 140px; }
.owner-info h3 { font-size: 1.15rem; margin-bottom: 4px; }

/* 6. FAQ SECTION */
.faq-section { max-width: 900px; padding: 120px 20px 80px; } 
.faq-item { border-top: 1px solid #ccc; }
.faq-item:last-child { border-bottom: 1px solid #ccc; }
.faq-question {
    background: none; border: none; width: 100%; text-align: left;
    padding: 24px 0; font-size: 1.25rem; font-weight: 700;
    cursor: pointer; color: #1A1A1A; display: flex;
    justify-content: space-between; align-items: center; transition: 0.3s;
}
.arrow {
    width: 10px; height: 10px; border-right: 2px solid #1A1A1A;
    border-bottom: 2px solid #1A1A1A; transform: rotate(45deg);
    transition: 0.3s ease; margin-right: 10px;
}
.faq-question.active .arrow { transform: rotate(-135deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-in-out; }
.faq-inner { padding-bottom: 25px; }

/* 7. FOOTER & CTA */
.cta { 
    background-color: #012E2E; 
    color: #FAFAFA; 
    text-align: center; 
    padding: 45px 0; 
    position: relative;
    overflow: hidden; 
}

.cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/maple-leaf-light.svg');
    background-repeat: no-repeat;
    background-position: 87% 20%;
    background-size: 250px;
    opacity: 0.9;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.cta-title { font-size: 1.8rem; margin-bottom: 15px; position: relative; z-index: 2; }

.outline-btn { 
    display: inline-block; padding: 12px 32px; border: 2px solid #FAFAFA; 
    color: #FAFAFA; text-decoration: none; font-weight: 700; transition: 0.3s; 
    position: relative; z-index: 2;
}
.outline-btn:hover { background-color: #FAFAFA; color: #012E2E; }

footer { background-color: #E5E7EB; padding: 60px 0 20px; text-align: center; }
.footer-logo { width: 125px; margin-bottom: 25px; display: inline-block; } 

.footer-contact-links, .footer-text, .copyright { font-size: 1rem; }
.footer-contact-links { margin-bottom: 10px; }
.footer-contact-links a { text-decoration: none; font-weight: 400; color: #1A1A1A; transition: 0.3s; }
.footer-text { margin-bottom: 20px; }
.footer-socials { margin: 30px 0; }
.connect-text { font-size: 1.3rem; margin-bottom: 15px; }

.icons { display: flex; justify-content: center; gap: 10px; } 
.icons img { width: 32px; height: auto; display: block; }
.footer-divider { width: 100%; height: 1px; background-color: #1A1A1A; opacity: 0.15; margin: 40px 0 20px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; }
.copyright { opacity: 0.8; text-align: left; }
.footer-badge { width: 100px; height: auto; }

/* 8. MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    nav { 
        justify-content: center; 
    } 

    .hero { 
        display: flex;
        flex-direction: column; 
        text-align: center; 
        gap: 20px; 
        padding: 60px 0 80px; 
    }

    .hero-divider { 
        width: 60px; 
        height: 1px;
        margin: 0 auto; 
        display: block; 
        opacity: 0.2;
    }

    .hero-phone { 
        font-size: 1.8rem; 
    }

    .owner-flex { 
        flex-direction: column; 
        gap: 40px; 
    }
    
    /* FOOTER MOBILE - Centered text, Left-aligned badge */
    .footer-top { 
        display: flex; 
        flex-direction: column; 
        align-items: center;
        text-align: center;
    }

    .icons { 
        justify-content: center;
    }

    .footer-bottom { 
        flex-direction: column; 
        gap: 20px; 
        align-items: center;
        text-align: center; 
    }

   @media (max-width: 480px) {
    .contact-divider {
        display: none;
    }
}
   
    .footer-badge { 
        margin-left: 0; 
        display: block; 
        align-self: flex-start;
        max-width: 160px; 
    }
}

   @media (max-width: 1400px) {
    .cta::before {
        opacity: 0;
    }
}

    .internal-page .services-grid {
        grid-template-columns: 1fr;
    }

/* ================================
   INTERNAL SERVICES PAGE OVERRIDES
   ================================ */

/* 1. BALANCED LAYOUT */
.internal-page main .container {
    max-width: 1250px; 
}

.internal-page .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 50px; 
    padding: 30px 0 60px;
}

/* 2. HEADER TWEAKS - Centered Divider */
.internal-page .hero {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 35px;
    padding: 80px 0 100px;
}

.internal-page .logo-link {
    justify-self: end;
}

.internal-page .main-logo {
    width: 200px;
}

.internal-page .hero-contact-stack {
    justify-self: start;
}

.internal-page .hero-phone {
    font-size: 1.6rem;
}

.internal-page .hero-divider {
    height: 50px;
    width: 1px;
    background-color: #1A1A1A;
    opacity: 0.2;
}

/* 3. COMPACT TYPOGRAPHY & LISTS */
.internal-page .service-name {
    margin-bottom: 10px; 
    font-size: 1.3rem;
    color: #1A1A1A;
}

.internal-page .service-item p {
    line-height: 1.5; 
}

.internal-page .service-list {
    padding-left: 18px;
    margin-top: 5px;
}

.internal-page .service-list li {
    margin-bottom: 6px; 
    line-height: 1.4;
}

/* 4. MOBILE CLEANUP */
@media (max-width: 768px) {
    .internal-page .hero {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 60px 0 80px;
    }

    .internal-page .hero-divider {
        width: 60px !important;
        height: 1px !important;
        margin: 0 auto;
    }

    .internal-page .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px 15px 70px;
    }
}

/* ========================
   QUOTE PAGE & FORM STYLES
   ======================== */

.hero-contact-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-email {
    text-decoration: none;
    color: #1A1A1A;
    font-weight: 500;
    font-size: 1.1rem;
    transition: 0.3s;
}

.hero-email:hover {
    color: #DC4B00;
}

.form-section {
    padding-bottom: 100px;
}

.form-intro {
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quote-form input, 
.quote-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(0,0,0,0.1);
    background-color: #F9FAFB;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    border-radius: 4px;
}

.quote-form input:focus, 
.quote-form textarea:focus {
    outline: 2px solid #012E2E;
    background-color: #FFFFFF;
}

.quote-submit {
    background-color: #012E2E;
    color: #FAFAFA;
    border: none;
    padding: 18px;
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.quote-submit:hover {
    background-color: #DC4B00;
}

@media (max-width: 768px) {
    .hero-contact-stack {
        align-items: center;
    }
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.quote-submit {
    width: auto;
    align-self: center;
    padding: 12px 30px;
    min-width: 180px;
    margin-top: 15px;
}

/* ========================
   THANK YOU PAGE OVERRIDES
   ======================== */

.thank-you-page main .container {
    max-width: 800px;
    text-align: center;
    padding-bottom: 120px;
}

/* 2. TYPOGRAPHY */
.thank-you-text {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: #1A1A1A;
}

/* 3. THE BUTTON */
.dark-btn {
    display: inline-block;
    background-color: #012E2E;
    color: #FAFAFA !important;
    border: 2px solid #012E2E;
    padding: 12px 30px; 
    min-width: 180px;   
    text-decoration: none;
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    transition: 0.3s;
}

.dark-btn:hover {
    background-color: #DC4B00;
    border-color: #DC4B00;
    color: #FAFAFA !important;
}

/* ========================
   404 ERROR PAGE OVERRIDES
   ======================== */

.error-page main .container {
    max-width: 800px;
    text-align: center;
    padding-bottom: 120px;
}

/* 2. TYPOGRAPHY */
.error-text {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: #1A1A1A;
}

/* 3. BUTTON (Matches your Send Message button size) */
.error-page .dark-btn {
    display: inline-block;
    background-color: #012E2E;
    color: #FAFAFA !important;
    border: 2px solid #012E2E;
    padding: 12px 30px;
    min-width: 180px;
    text-decoration: none;
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    transition: 0.3s ease;
}

.error-page .dark-btn:hover {
    background-color: #DC4B00;
    border-color: #DC4B00;
    color: #FAFAFA !important;
}
