body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    background-color: #f0e6d6; /* Closer match to image background */
    color: #1a1a1a; /* Improved contrast: was #333, now darker for better accessibility (WCAG AA compliant) */
    box-sizing: border-box;
}

img {
    max-width: 195px;
    height: auto;
    display: block;
    margin: 0 auto;
}

header img {
    width: 120px; /* Reduced from 250px to more reasonable size */
    display: inline-block;
    margin: 0 10px;
}

header {
    padding-bottom: 10px; /* Add padding to separate images from nav */
    text-align: center; /* Center hero images */
}

p {
    font-size: 1.1em; /* Increase font size by 1px */
    font-weight: bold; /* Make text bold */
}

h1, h2, h3, p {
    color: inherit;
}

h1, h2, p, ul {
    text-align: center;
    margin: 0 20px;
}

h1 {
    font-size: 3em; /* Larger font size */
    font-weight: bold;
    margin: 20px 0;
    padding: 10px 0;
    color: #d2691e; /* Use a color that matches the bull's brown */
}

h2 {
    font-size: 2.5em; /* Larger font size for section headers */
    color: #4a7c59; /* Match color scheme */
}

/* Ensure proper heading hierarchy */
#services h2 {
    font-size: 2.5em;
    color: #ffffff; /* White header for Our Services */
}

#faq h2,
#contact h2,
#blog h2 {
    font-size: 2.5em;
    color: #4a7c59;
}

/* Service and FAQ subsection headings */
.service-block h3,
.faq-section > div:first-child {
    font-size: 1.5em;
    color: #004d7a;
}

p, ul li {
    color: #404040; /* Improved contrast: was #666, now darker for better accessibility (WCAG AA compliant) */
}

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

nav {
    width: 100%;
    background-color: #4a7c59;
    padding: 0;
}

nav .nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

nav a:visited {
    color: #fff;
    text-decoration: none;
    padding: 14px 20px;
    display: block;
    transition: background-color 0.3s ease;
}

nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
    width: 100%;
}

nav ul li {
    margin-right: 20px;
}

nav ul li:last-child {
    margin-right: 0;
    margin-left: auto; /* Push Call Us to the right */
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 14px 20px;
    display: block;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: #d2691e; /* Match site orange */
}

@media (min-width: 768px) {
    /* layout alignment for larger screens */
    h1, h2, p, ul {
        max-width: 600px;
        margin: 0 auto; /* Center text blocks on wider screens */
    }
}

@media (min-width: 1024px) {
    /* wider container for headings and paragraphs */
    h1, h2, p, ul {
        max-width: 800px;
        margin: 0 auto; /* Center text blocks on wider screens */
    }
}

p, ul {
    margin: 20px 0;
    line-height: 1.6;
}

section {
    width: 100%;
    padding: 60px 20px;
    margin: 0;
    box-sizing: border-box;
}

.section-background {
    width: 100%;
    margin: 0;
    padding: 0;
}

.section-foreground, .dafaq {
    max-width: 1512px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 20px;
}

#services .section-foreground {
    width: 80%;
}

#services {
    background-color: #d2691e; /* Match the welcome text color */
}

#faq {
    background-color: #4a7c59; /* Darker green for better contrast with white header */
    min-width: 100%;
}

#locations {
    background-color: #bbdefb; /* Light blue */
}

#contact {
    background-color: #d7ccc8; /* Earthy wood tone */
}

#blog {
    background-color: #e0f7fa;
}

#blog h2 {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 20px;
}

#blog article {
    margin-bottom: 20px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#blog article {
    text-align: center; /* Center excerpt paragraphs under H2 */
}

#blog article .blog-excerpt {
    display: inline-block;
    text-align: left;
}

/* Recenter blog excerpts under H2 like the H1 treatment */
#blog article .blog-excerpt {
    display: block;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding: 0 20px;
}

@media (min-width: 1024px) {
    #blog article .blog-excerpt {
        margin-left: auto; /* override prior 5in shift */
        margin-right: auto;
    }
}

@media (max-width: 1023px) {
    #blog article .blog-excerpt {
        margin-left: 0;
    }
}

#blog article .blog-toggle {
    color: #004d7a;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

#blog article .blog-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(21, 156, 228, 0.4);
}

#blog article .blog-content {
    display: none; /* Hidden until expanded */
    text-align: left; /* Keep paragraphs left-aligned inside a centered container */
    margin-top: 10px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

#blog h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

#blog p {
    font-size: 1em;
    line-height: 1.6;
}

.cta {
    background-color: #ff7043;
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    transition: background-color 0.3s ease;
    display: inline-block;
    margin: 20px 0;
}

.cta:hover {
    background-color: #d84315;
}

.cta-text {
    flex: 1;
    text-align: left;
}

.cta-text p {
    color: #004d7a; /* Font color matching Gwen's shirt */
    text-decoration: none;
}

.cta-text p:visited {
    color: #004d7a; /* Ensure color remains after click */
    text-decoration: none;
}

.qr-code {
    margin-left: 20px;
    width: 100px;
    height: 100px;
}

footer {
    position: relative;
    background-color: #4a7c59;
    padding: 20px 0;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:visited {
    color: #fff;
}

footer p {
    text-align: center;
}

.services {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-bottom: 60px; /* Increased margin for more spacing */
}

.service-block {
    display: inline-block;
    width: 20%;
    margin: 1.5%;
    vertical-align: top;
    background-color: #fff;
    padding: 12px;
    box-shadow: 0 14px 4px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
}

.service-block h3 {
    font-size: 1.2em; /* Smaller font size for service titles */
    margin-bottom: 10px;
    color: #004d7a;

}

.service-block p {
    font-size: 0.8em; /* Smaller text size for service descriptions */
    color: #404040; /* Improved contrast for accessibility */
}

a {
    color: #004d7a;
    text-decoration: none;
}

a:visited {
    color: #004d7a; /* Ensure lavender color remains after click */
}

/* FAQ question card styling to match Tree Trimming color and white background */
.faq-section {
    background-color: #ffffff;
    color: #004d7a;
    border: 1px solid #dddddd;
}

.faq-section div:first-child {
    font-weight: 700;
}

.faq-content {
    display: none;
    padding: 10px;
    background-color: #f9f9f9;
    border-top: 1px solid #ccc;
}

.faq-section.active .faq-content {
    display: block;
} 

@media (max-width: 768px) {
    .service-block {
        width: 100%;
        margin-bottom: 20px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .service-block {
        width: 45%;
        margin-bottom: 20px;
    }
}

@media (min-width: 1025px) {
    .service-block {
        width: 30%;
        margin-bottom: 20px;
    }
} 

@media (min-width: 1025px) {
    .section-foreground {
        min-width: 51%;
    }
} 

.footer-text {
    font-size: 1.2em;
    color: #ffffff;
    background-color: #4a7c59;
    padding: 20px;
    text-align: center;
    max-width: 1200px; /* Constrain footer content */
    margin: 0 auto; /* Center footer content */
}

.footer-link {
    color: #d4a017;
} 

.cta-link {
    background-color: #d2691e;
    color: #ffffff;
    font-weight: 700;
    text-align: center;
    padding: 10px 18px;
    border-radius: 9999px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    font-size: 1.125rem; /* Larger font */
    margin-left: 10px; /* Shift 10px to the right */
}

.cta-link:hover {
    background-color: #b75712;
    color: #ffffff;
} 

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #e8f5e9;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

form label {
    margin-bottom: 10px;
    font-weight: bold;
}

form input, form textarea {
    width: 100%;
    max-width: 400px;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button {
    background-color: #4a7c59;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #3b5f47;
} 

#scrollToTop {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    background-color: #4a7c59;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#scrollToTop:hover {
    background-color: #3b5f47;
} 

/* Section heading accessibility: larger and white */
#services .section-foreground > h2 {
    color: #ffffff;
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 16px;
}

#faq .dafaq > h2,
#contact > h2,
#blog > h2 {
    color: #ffffff;
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 16px;
}

/* Override Blog heading color for light background */
#blog > h2 {
    color: #004d7a;
}

/* Make Our Service Area same size and color as others */
#contact .section-foreground > h3 {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 16px;
    color: #004d7a;
}

/* Responsive improvements */
@media (max-width: 600px) {
    header img {
        width: 150px;
    }

    h1 {
        font-size: 2rem;
    }

    nav .nav-content {
        padding: 8px 12px;
    }

    nav ul {
        flex-wrap: wrap;
        gap: 8px;
    }

    nav ul li {
        margin-right: 8px;
    }

    nav ul li:last-child {
        margin-left: auto;
    }

    .section-foreground, .dafaq {
        padding: 24px 16px;
    }
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: 8px;
    top: 8px;
    width: auto;
    height: auto;
    padding: 8px 12px;
    background: #000;
    color: #fff;
    z-index: 1000;
    border-radius: 4px;
}

/* FAQ accessibility */
.faq-section[role="button"] {
    outline: none;
}

.faq-section[role="button"]:focus {
    box-shadow: 0 0 0 3px rgba(21, 156, 228, 0.4);
} 

/* Desktop centering with padding for small screens */
.hero-intro {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
}

/* Desktop only */
@media (min-width: 1024px) {
  main > h1,
  main > h1 + p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
} 

/* Smooth slide animations for FAQ and Blog content */
.faq-content {
    display: block; /* override earlier display: none */
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: height 300ms ease, opacity 250ms ease;
    padding: 0 10px; /* start collapsed with horizontal padding only */
    border-top: 1px solid #ccc;
    box-sizing: border-box;
}

.faq-content.open {
    opacity: 1;
    padding: 10px; /* add vertical padding when open */
}

#blog article .blog-content {
    display: block; /* override earlier display: none */
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: height 300ms ease, opacity 250ms ease;
}

#blog article .blog-content.open {
    opacity: 1;
} 

/* Reduce top spacing above Our Services heading on desktop */
@media (min-width: 1024px) {
    #services .section-foreground {
        padding-top: 16px;
    }
} 

/* Make service boxes equal height using CSS Grid */
@media (min-width: 769px) {
    #services .section-foreground {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 24px;
    }

    #services .section-foreground .service-block {
        width: auto; /* override inline-block widths */
        margin: 0;   /* grid uses gap */
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    #services .section-foreground {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    #services .section-foreground .service-block {
        width: auto;
        margin: 0;
        display: flex;
        flex-direction: column;
    }
} 

/* Services grid: 1 col mobile, 2 cols tablet, 3 cols desktop, header spans */
@media (min-width: 769px) and (max-width: 1023px) {
    #services .section-foreground {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    #services .section-foreground > h2 {
        grid-column: 1 / -1;
        margin-bottom: 16px;
    }
    #services .section-foreground .service-block {
        width: auto;
        margin: 0;
        display: flex;
        flex-direction: column;
        height: 100%;
    }
}

@media (min-width: 1024px) {
    #services .section-foreground {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
    #services .section-foreground > h2 {
        grid-column: 1 / -1;
        margin-bottom: 16px;
        text-align: center;
    }
    #services .section-foreground .service-block {
        width: auto;
        margin: 0;
        display: flex;
        flex-direction: column;
        height: 100%;
    }
} 

/* Static width for FAQ questions on desktop, centered */
@media (min-width: 1024px) {
    #faq .dafaq .faq-section {
        width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
} 

/* FAQ Option A — Clean + Spacious */
#faq .dafaq > h3 {
    margin-bottom: 12px;
}

.faq-section div:first-child {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.faq-section {
    padding: 16px 18px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.faq-content {
    line-height: 1.7;
} 

/* Services: narrower columns and more row spacing */
@media (min-width: 769px) and (max-width: 1023px) {
    #services .section-foreground {
        column-gap: 20px;
        row-gap: 28px;
    }
}

@media (min-width: 1024px) {
    #services .section-foreground {
        max-width: 1000px;
        width: 90%;
        margin-left: auto;
        margin-right: auto;
        grid-template-columns: repeat(3, minmax(220px, 1fr));
        column-gap: 20px;
        row-gap: 32px;
    }
} 

/* Services layout refinements: smaller container, smaller min card width, larger row gaps */
@media (max-width: 768px) {
    #services .section-foreground {
        gap: 24px; /* ensure vertical spacing when stacked */
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    #services .section-foreground {
        grid-template-columns: repeat(2, minmax(192px, 1fr));
        column-gap: 24px;
        row-gap: 36px; /* increase vertical spacing between rows */
    }
}

@media (min-width: 1024px) {
    #services .section-foreground {
        max-width: 860px; /* smaller container constraint */
        width: 90%;
        margin-left: auto;
        margin-right: auto;
        grid-template-columns: repeat(3, minmax(172px, 1fr)); /* smaller min width */
        column-gap: 24px;
        row-gap: 44px; /* more space between top and bottom rows */
    }
} 

/* Smooth scrolling for in-page anchors */
html { scroll-behavior: smooth; } 

@media (min-width: 1025px) {
    nav .nav-content {
        width: 51%;
        margin-left: auto;
        margin-right: auto;
    }
}

nav ul li:last-child {
    margin-left: auto; /* keep CTA pushed to the right */
    padding-left: 16px; /* extra spacing from previous item */
} 

/* Contact Us header color */
#contact > h2 {
    color: #d2691e;
}

/* Improved form styling */
#contact .section-foreground form {
    max-width: 560px;
    width: 100%;
    margin: 0 auto 16px auto;
    padding: 24px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* New row for City/State/ZIP */
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: minmax(0, 1fr) auto auto;
        column-gap: 10px;
        align-items: end;
        justify-content: start;
    }
}

.form-col--state input {
    padding: 10px; /* slightly smaller padding to fit compact width */
    width: calc(2ch + 22px); /* 2 chars + padding */
    text-transform: uppercase;
}

.form-col--zip input {
    padding: 10px; /* slightly smaller padding to fit compact width */
    width: calc(5ch + 22px); /* 5 chars + padding */
}

#contact .section-foreground form label {
    width: 100%;
    text-align: left;
    margin: 8px 0 6px 0;
}

#contact .section-foreground form input,
#contact .section-foreground form textarea {
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
    box-sizing: border-box; /* prevent overflow from padding/borders */
}

#contact .section-foreground form input:focus,
#contact .section-foreground form textarea:focus {
    border-color: #d2691e;
    box-shadow: 0 0 0 3px rgba(210,105,30,0.18);
}

#contact .section-foreground form button {
    margin-top: 8px;
    padding: 12px 18px;
    border-radius: 9999px;
    font-weight: 700;
} 

/* Contact CTA block */
.contact-cta {
    max-width: 720px;
    width: 100%;
    margin: 12px auto 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    text-align: center;
}

.contact-cta h3 {
    color: #d2691e;
    margin-top: 0;
    margin-bottom: 12px;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
}

.contact-list li {
    margin: 6px 0;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #d2691e;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.social-icon:hover {
    background: #b75712;
    transform: translateY(-1px);
} 

/* Contact two-column layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Contact: equal columns and unified widths on desktop */
@media (min-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr; /* equal columns */
        column-gap: 24px;
        align-items: start;
    }
    #contact .section-foreground form,
    .contact-cta {
        max-width: 100%; /* let columns share available width */
        width: 100%;
    }
}

/* Enhance CTA typography */
.contact-cta h3 {
    color: #d2691e;
    font-size: 1.8rem;
    font-weight: 800;
}

.contact-cta .contact-list li strong {
    color: #004d7a;
}

.contact-cta .contact-list li,
.contact-cta .footer-link {
    font-size: 1.05rem;
} 

/* iPhone safe areas */
:root { --safe-top: env(safe-area-inset-top); --safe-bottom: env(safe-area-inset-bottom); --safe-left: env(safe-area-inset-left); --safe-right: env(safe-area-inset-right); }

/***** Mobile nav hamburger and drawer *****/
.hamburger {
    display: none;
    background: transparent;
    border: 0;
    padding: 10px;
    margin-right: 8px;
}
.hamburger .hamburger-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    opacity: 0;
    transition: opacity .25s ease;
    z-index: 1000;
}
.menu-overlay.open { opacity: 1; }

.mobile-menu {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 80%;
    max-width: 320px;
    background: #4a7c59;
    transform: translateX(100%);
    transition: transform .25s ease;
    z-index: 1001;
    padding: calc(10px + var(--safe-top)) 16px 16px 16px;
}
.mobile-menu.open { transform: translateX(0%); }
.mobile-menu nav ul { list-style: none; padding: 0; margin: 20px 0 0 0; }
.mobile-menu nav ul li { margin: 0 0 8px 0; }
.mobile-menu nav ul li a { color: #fff; display: block; padding: 12px 8px; border-radius: 6px; }
.mobile-menu nav ul li a:hover { background: #d2691e; }

body.menu-open { overflow: hidden; }

/* Show hamburger and keep CTA; hide other links on small screens */
@media (max-width: 768px) {
    .hamburger { display: inline-block; }
    nav .nav-content { display: flex; align-items: center; justify-content: space-between; }
    nav .nav-content > ul { flex: 1; display: flex; align-items: center; }
    nav .nav-content > ul li { display: none; }
    nav .nav-content > ul li:last-child { /* CTA */ display: inline-block; margin-left: auto; }
}

/* Mobile: center hamburger + CTA at top */
@media (max-width: 768px) {
    nav .nav-content { justify-content: center; gap: 10px; }
    nav .nav-content > ul li:last-child { margin-left: 0; }
}

/* Slide-in drawer: horizontal links */
.mobile-menu nav ul { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.mobile-menu nav ul li { margin: 0; }
.mobile-menu nav ul li a { padding: 10px 12px; border-radius: 9999px; background: rgba(255,255,255,0.08); }
.mobile-menu nav ul li a:hover { background: #d2691e; }

/* iPhone polish */
@supports (padding: max(0px)) {
    nav { padding-top: max(0px, var(--safe-top)); }
} 

/* Mobile CTA as full-width next to hamburger */
@media (max-width: 768px) {
    nav .nav-content { justify-content: space-between; gap: 6px; padding: 6px 8px; }
    @supports (padding: max(0px)) {
        nav .nav-content { padding-left: max(6px, var(--safe-left)); padding-right: max(6px, var(--safe-right)); }
    }
    nav .nav-content > ul { flex: 1; }
    nav .nav-content > ul li { display: none; }
    nav .nav-content > ul li:last-child { display: block; flex: 1; }
    nav .nav-content > ul li:last-child .cta-link {
        display: block;
        width: 100%;
        margin-left: 6px; /* tighter spacing from hamburger */
        padding: 12px 18px; /* larger tap target */
        font-size: 1.2rem; /* larger font on mobile */
        box-sizing: border-box; /* prevent border from causing overflow */
    }
} 

/* Base CTA adjustments */
.cta-link { box-sizing: border-box; } 

/* Even tighter mobile CTA spacing */
@media (max-width: 768px) {
    nav .nav-content { gap: 4px; padding: 4px 6px; }
    .hamburger { margin-left: max(4px, var(--safe-left)); }
    nav .nav-content > ul li:last-child .cta-link {
        margin-left: 4px;
        padding: 9px 14px;
        font-size: 1.18rem;
    }
}

/* Tighter section spacing */
section { padding: 32px 16px; }
.section-foreground, .dafaq { padding: 22px 16px; }
#services .section-foreground > h2,
#faq .dafaq > h2,
#contact > h2,
#blog > h2 { margin-top: 2px; } 

/* Match Contact container width to Services on desktop */
@media (min-width: 1024px) {
    #contact .section-foreground {
        max-width: 860px;
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
} 

/* Contact: stack CTA above form and make form full-width */
#contact .section-foreground form,
.contact-cta { max-width: 100%; width: 100%; }

.contact-grid { grid-template-columns: 1fr; row-gap: 16px; }

@media (min-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
}

/* Tighten CTA spacing */
.contact-cta { padding: 16px; }
.contact-cta h3 { margin-bottom: 8px; } 

/* Contact CTA layout refinements */
.contact-cta-inner { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.contact-cta-logo { width: 216px; height: 216px; border-radius: 8px; overflow: hidden; }
.contact-cta-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.contact-cta .contact-list { text-align: left; }

/* Facebook icon: left-aligned alongside details, subtle size */
.contact-cta .social-icons { display: flex; justify-content: flex-start; gap: 8px; }
.social-icon--fb { background: transparent; border-radius: 6px; width: auto; height: auto; padding: 0; }
.social-icon--fb img, .social-icon--fb svg { width: 28px; height: 28px; display: block; }

/* Mobile: stack logo on top, then text; keep icons under text left-aligned */
@media (max-width: 768px) {
    .contact-cta-inner { grid-template-columns: 1fr; align-items: start; justify-items: center; }
    .contact-cta-logo { width: 200px; height: 200px; margin: 0 auto 8px; }
    .contact-cta-details { width: 100%; }
    .contact-cta .contact-list { text-align: left; }
    .contact-cta .social-icons { justify-content: flex-start; }
} 

/* Hover color for phone/email links */
.footer-link:hover { color: #d2691e; } 

/* Contact CTA bull logo - restored to original size */
.contact-cta-logo { width: 216px; height: 216px; border-radius: 8px; overflow: hidden; }
.contact-cta-logo img { width: 100%; height: 100%; object-fit: contain; }

/* Facebook base logo only and right-aligned */
.social-icons { justify-content: flex-end; gap: 8px; }
.social-icon--fb { background: transparent; border-radius: 0; width: auto; height: auto; padding: 0; }
.social-icon--fb img, .social-icon--fb svg { width: 32px; height: 32px; display: block; } 

/* Contact form alignment and sizing */
#contact .section-foreground { box-sizing: border-box; }
#contact .section-foreground form { box-sizing: border-box; width: 100%; margin: 0; padding-left: 16px; padding-right: 16px; }

/* Prevent form-row from causing overflow; align tighter */
.form-row { column-gap: 8px; }
@media (min-width: 640px) {
    .form-row { column-gap: 8px; grid-template-columns: minmax(0, 1fr) auto auto; }
}

/* Ensure map respects container width (already 100%), keep visual alignment consistent */
#map { width: 100%; display: block; } 

/* Align CTA card edges with container like the form */
#contact .section-foreground .contact-cta { box-sizing: border-box; width: 100%; margin: 0; padding-left: 16px; padding-right: 16px; }
.contact-cta-inner { max-width: 100%; overflow: hidden; }

/* Picture element support for WebP images with fallbacks */
picture {
    display: inline-block;
}

picture img {
    display: block;
    width: inherit;
    height: inherit;
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Form help text and error messages removed - keeping form layout clean */

/* Improved focus indicators for better keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
.faq-section:focus,
.blog-toggle:focus {
    outline: 3px solid #004d7a;
    outline-offset: 2px;
}

/* High contrast focus for better visibility */
@media (prefers-contrast: high) {
    a:focus,
    button:focus,
    input:focus,
    textarea:focus,
    select:focus,
    .faq-section:focus,
    .blog-toggle:focus {
        outline: 4px solid #000;
        outline-offset: 2px;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Fieldset styling removed - keeping original form layout */ 