/*
 * File: style.css
 * Project: Morgan Tree Services
 * Author: Thomas Morgan Offord
 * Last updated: 2026-01-17
 * Purpose: Mobile-first responsive stylesheet with accessible UI components.
 */

/* =========================
   Root variables
   ========================= */
:root {
    --brand-green: #4a8c45;
}

/* =========================
   Global resets & typography
   ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #000;
}

h1,
h2,
h3,
h4 {
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    color: var(--brand-green);
}

/* =========================
   H2 Headings Responsive Scaling
   ========================= */
h2 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* Large Mobile (600–767px) */
@media (min-width: 600px) {
    h2 {
        font-size: clamp(2.2rem, 5vw, 2.8rem);
    }
}

/* Tablet (768–1023px) */
@media (min-width: 768px) {
    h2 {
        font-size: clamp(2.5rem, 4.5vw, 3rem);
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    h2 {
        font-size: clamp(3rem, 3.5vw, 3.5rem);
    }
}

/* Large Desktop (1280px+) */
@media (min-width: 1280px) {
    h2 {
        font-size: clamp(3.2rem, 3vw, 4rem);
    }
}

/* =========================
   HERO SECTION (MOBILE-FIRST)
   ========================= */

/* -------------------------
   Base: Mobile (0–599px)
   ------------------------- */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    min-height: 60vh;
    text-align: center;
}

.hero-logo {
    width: 80vw;
    max-width: 280px;
    height: auto;
    margin-bottom: 1rem;
}

.hero-text {
    width: 90vw;
    max-width: 32rem;
}

.hero h1 {
    font-size: clamp(2rem, 7vw, 2.6rem);
    line-height: 1.15;
    white-space: normal;
    margin-bottom: 0.75rem;
}

.hero p {
    font-size: clamp(1rem, 4.5vw, 1.3rem);
    margin-bottom: 1.5rem;
}

/* =========================
   CTA BUTTONS
   -------------------------
   Mobile default: vertical
   ========================= */
.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
    align-items: center;
}

.call-button {
    background: #275f24;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    text-align: center;
    padding: 1rem 2rem;
    font-size: clamp(1.8rem, 2vw, 2.5rem);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.call-button:hover {
    background: #1a661a;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.call-button:active {
    transform: scale(0.98);
}

.call-button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

/* Icon container — scales with font-size; color via `fill` */
.call-button .icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.75rem;
    width: 1.5em;
    height: 1.5em;
    fill: white;
}

/* Phone icon */
.phone-icon {
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.62 10.79a15.053 15.053 0 006.59 6.59l2.2-2.2a1 1 0 011.11-.21c1.2.48 2.5.73 3.83.73a1 1 0 011 1V20a1 1 0 01-1 1C10.4 21 3 13.6 3 4a1 1 0 011-1h3.5a1 1 0 011 1c0 1.33.25 2.63.73 3.83a1 1 0 01-.21 1.11l-2.2 2.2z"/></svg>') no-repeat center / contain;
    background-color: white;
}

/* Email icon */
.email-icon {
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 4H4a2 2 0 00-2 2v12a2 2 0 002 2h16a2 2 0 002-2V6a2 2 0 00-2-2zm0 2l-8 5-8-5h16zm0 12H4V8l8 5 8-5v10z"/></svg>') no-repeat center / contain;
    background-color: white;
}

/* -------------------------
   Large Mobile (600–767px)
   ------------------------- */
@media (min-width: 600px) {
    .hero-logo {
        max-width: 340px;
    }

    .hero-text {
        max-width: 38rem;
    }

    .hero h1 {
        font-size: clamp(2.4rem, 6vw, 3rem);
    }

    .hero p {
        font-size: 1.4rem;
    }
}

/* -------------------------
   Tablet (768–1023px)
   ------------------------- */
@media (min-width: 768px) {
    .hero {
        min-height: 65vh;
    }

    .hero-logo {
        max-width: 420px;
    }

    .hero-text {
        max-width: 48rem;
    }

    .hero h1 {
        font-size: clamp(3rem, 5.5vw, 4rem);
        line-height: 1.1;
    }

    .hero p {
        font-size: 1.7rem;
    }
}

/* -------------------------
   Large Tablet / Small Laptop (1024–1279px)
   ------------------------- */
@media (min-width: 1024px) {
    .hero {
        min-height: 68vh;
    }

    .hero-logo {
        max-width: 520px;
    }

    .hero-text {
        max-width: 60rem;
    }

    .hero h1 {
        font-size: clamp(3.8rem, 5vw, 4.8rem);
        line-height: 1.08;
    }

    .hero p {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }

    .call-button {
        padding: 1rem 2.5rem;
        font-size: clamp(2rem, 2.5vw, 2.5rem);
    }
}

/* -------------------------
   Desktop (1280px+)
   ------------------------- */
@media (min-width: 1280px) {
    .hero {
        min-height: 70vh;
        width: 100vw;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .hero-logo {
        max-width: 600px;
        width: 100%;
        height: auto;
        margin-bottom: 1rem;
    }

    .hero-text {
        width: 100%;
        max-width: 90vw;
    }

    .hero h1 {
        font-size: clamp(4.5rem, 9vw, 8rem);
        line-height: 1.05;
        margin: 0 auto;
    }

    .hero p {
        font-size: 3rem;
    }

    .cta-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 2.5rem;
    }

    .call-button {
        padding: 1rem 2.5rem;
        font-size: clamp(2.2rem, 2.5vw, 2.5rem);
    }
}

/* =========================
   ABOUT SECTION (MOBILE-FIRST)
   ========================= */

/* -------------------------
   Base: Mobile (0–599px)
   ------------------------- */
#about {
    padding: 2rem 1rem;
    text-align: center;
    width: 90vw;
    max-width: 32rem;
    margin: 0 auto;
}

#about p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #ffffff;
    line-height: 1.5;
    margin: 0 auto 1rem;
}

/* -------------------------
   Large Mobile (600–767px)
   ------------------------- */
@media (min-width: 600px) {
    #about {
        width: 85vw;
        max-width: 38rem;
    }
}

/* -------------------------
   Tablet (768–1023px)
   ------------------------- */
@media (min-width: 768px) {
    #about {
        width: 80vw;
        max-width: 48rem;
        padding: 3rem 2rem;
    }

    #about p {
        font-size: clamp(1.1rem, 2vw, 1.3rem);
    }
}

/* -------------------------
   Large Tablet / Small Laptop (1024–1279px)
   ------------------------- */
@media (min-width: 1024px) {
    #about {
        width: 75vw;
        max-width: 60rem;
        padding: 4rem 3rem;
    }

    #about p {
        font-size: clamp(1.2rem, 1.5vw, 2rem);
    }
}

/* -------------------------
   Desktop (1280px+)
   ------------------------- */
@media (min-width: 1280px) {
    #about {
        width: 70vw;
        max-width: 70rem;
        padding: 5rem 4rem;
    }

}

/*
 * =========================
 * SERVICES SECTION (MOBILE-FIRST)
 * =========================
 */

/* -------------------------
   Base: Mobile (0–599px)
   ------------------------- */
#services {
    padding: 2rem 1rem;
    text-align: center;
}

/* Grid layout for services */
.services-grid {
    display: grid;
    grid-template-columns: 100%;
    gap: 1rem;
    justify-content: center;
}

/* Wrapper for individual service panel */
.service-panel-wrapper {
    width: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Individual service panel styling */
.service-panel {
    width: 100%;
    border: none;
    background: none;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Service panel image */
.service-panel img {
    width: 100%;
    height: 250px;
    /* default card height */
    object-fit: cover;
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Service title overlay */
.service-panel span {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 0.75rem;
    font-weight: bold;
    font-size: clamp(1rem, 3vw, 2.2rem);
    line-height: 1.3;
    color: #ffffff;
    background: var(--brand-green);
    border-radius: 5px;
    text-align: center;
    pointer-events: none;
    white-space: nowrap;
}

/* =========================
   Expanded Service Panel
   ========================= */
.service-panel-wrapper.expanded .service-panel img {
    width: 80%;
    height: auto;
    max-height: 800px;
    /* allow natural height with limit */
    object-fit: cover;
    border-radius: 10px;
    margin-top: 1.5rem;
}

.service-panel-wrapper.expanded span {
    display: none;
}

.service-panel-wrapper.expanded {
    grid-column: 1 / -1;
    /* span full width when expanded */
}

/* Text inside service panel */
.service-panel-wrapper .service-text {
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-align: center;
}

.service-panel-wrapper .service-text h3 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 0.5rem;
    color: var(--brand-green);
}

.service-panel-wrapper .service-text p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.5;
}

/* Hover effects for pointer devices */
@media (hover: hover) and (pointer: fine) {
    .service-panel:hover img {
        transform: scale(1.03);
        transition: transform 0.3s ease;
    }
}

/* -------------------------
   Small Tablet (600–767px)
   ------------------------- */
@media (min-width: 600px) {
    .services-grid {
        grid-template-columns: repeat(2, 48%);
        gap: 1rem;
    }

    .service-panel img {
        height: 280px;
        /* taller overview card */
    }

    .service-panel-wrapper.expanded .service-panel img {
        max-height: 750px;
        height: auto;
    }
}

/* -------------------------
   Large Tablet (768–1023px)
   ------------------------- */
@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 48%);
        gap: 1rem;
    }

    .service-panel img {
        height: 320px;
        /* taller overview card */
    }

    .service-panel-wrapper.expanded .service-panel img {
        max-height: 850px;
        height: auto;
    }

    .service-panel-wrapper .service-text p {
        font-size: clamp(1.1rem, 2vw, 1.3rem);
    }
}

/* -------------------------
   Desktop (1024–1279px)
   ------------------------- */
@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 31%);
        gap: 1rem;
    }

    .service-panel img {
        height: 360px;
        /* taller overview card */
    }

    .service-panel-wrapper.expanded .service-panel img {
        max-height: 900px;
        height: auto;
    }

    .service-panel-wrapper .service-text p {
        font-size: clamp(1.2rem, 1.5vw, 1.6rem);
    }
}

/* -------------------------
   Large Desktop (1280px+)
   ------------------------- */
@media (min-width: 1280px) {
    .services-grid {
        grid-template-columns: repeat(3, 31%);
        gap: 1rem;
    }

    .service-panel img {
        height: 400px;
        /* tallest overview card */
    }

    .service-panel-wrapper.expanded .service-panel img {
        max-height: 1000px;
        height: auto;
    }
}

/*
 * =========================
 * GALLERY SECTION (MOBILE-FIRST)
 * =========================
 */

/* -------------------------
   Base: Mobile (0–599px)
   ------------------------- */
#gallery {
    padding: 2rem 1rem;
    text-align: center;
}

/* Gallery grid layout */
.gallery {
    display: grid;
    grid-template-columns: 100%;
    gap: 1rem;
    justify-content: center;
}

.gallery figure {
    margin: 0;
}

/* Gallery images */
.gallery img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.gallery img:hover {
    transform: scale(1.03);
}

/* Image captions */
.gallery figcaption {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.95rem;
    color: #ffffff;
}

/* =========================
   GALLERY SET CARD (OVERVIEW)
 * ========================= */
.gallery-set-grid {
    display: grid;
    grid-template-columns: 100%;
    gap: 1rem;
    margin: 0 auto 3rem;
    justify-content: center;
}

.gallery-set-card {
    position: relative;
    cursor: pointer;
    text-align: center;
}

.gallery-set-card img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    height: 250px;
    /* taller overview cards */
}

.gallery-set-card:hover img {
    transform: scale(1.03);
}

/* Title overlay for gallery set cards */
.gallery-set-title {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 0.75rem;
    font-weight: bold;
    font-size: clamp(1rem, 3vw, 2.2rem);
    line-height: 1.3;
    color: #ffffff;
    background: var(--brand-green);
    border-radius: 5px;
    text-align: center;
    pointer-events: none;
    white-space: nowrap;
}

/* =========================
   EXPANDED GALLERY SET
   ========================= */
.gallery-set {
    margin-bottom: 3rem;
}

.gallery-set h3 {
    margin-bottom: 1rem;
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    color: var(--brand-green);
    text-align: center;
}

.gallery-set-content {
    display: none;
    margin: 2rem auto 3rem;
    width: 100%;
}

.gallery-set-content.active {
    display: block;
}

.gallery-set-box {
    position: relative;
    border: 2px solid rgba(74, 140, 69, 0.6);
    border-radius: 14px;
    padding: 1.5rem;
    background: #0b0b0b;
    width: 90vw;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Images grid inside expanded set */
.gallery-set-images {
    display: grid;
    grid-auto-flow: row;
    /* stack vertically by default */
    grid-template-columns: 1fr;
    gap: 1rem;
}

.gallery-set-images img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    border-radius: 8px;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

/* Description text for gallery set */
.gallery-set-description {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.5;
    color: #eaeaea;
    text-align: center;
}

/* Back button for expanded gallery */
.gallery-set-back {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 10;
}

.gallery-set-back:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Utility hidden class */
.hidden {
    display: none !important;
}

/* =========================
   MEDIA QUERIES
   ========================= */

/* Mobile (0–599px) */
@media (max-width: 599px) {
    .gallery-set-images {
        grid-template-columns: 1fr;
    }

    .gallery-set-images img {
        height: 250px;
        /* slightly taller on small mobile */
    }

    .gallery-set-box {
        padding: 1rem;
    }
}

/* Small Tablet (600–767px) */
@media (min-width: 600px) and (max-width: 767px) {
    .gallery {
        grid-template-columns: repeat(2, 48%);
        gap: 1rem;
        justify-content: center;
    }

    .gallery-set-card img {
        height: 280px;
    }

    .gallery-set-images img {
        height: 300px;
    }

    .gallery-set-grid {
        grid-template-columns: repeat(2, 48%);
        justify-content: center;
    }
}

/* Large Tablet (768–1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .gallery {
        grid-template-columns: repeat(2, 48%);
    }

    .gallery-set-card img {
        height: 320px;
    }

    .gallery-set-images {
        grid-template-columns: 1fr;
        /* stack vertically */
        grid-auto-flow: row;
    }

    .gallery-set-images img {
        height: 320px;
    }

    .gallery-set {
        margin-bottom: 4rem;
    }

    .gallery-set-grid {
        grid-template-columns: repeat(2, 48%);
        justify-content: center;
    }

    .gallery-set-description {
        font-size: clamp(1.1rem, 2vw, 1.3rem);
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {

    /* Expanded content full width */
    .gallery-set-content {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
    }

    .gallery-set-box {
        width: 95vw;
        max-width: none;
        margin: 0 auto;
        padding: 2rem;
    }

    .gallery-set-images {
        grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
        gap: 1.5rem;
    }

    .gallery-set-images img {
        height: 40vh;
        min-height: 360px;
        max-height: 520px;
    }

    .gallery-set-description {
        max-width: 900px;
        margin: 2rem auto 0;
        font-size: clamp(1.2rem, 1.5vw, 1.6rem);
    }

    .gallery-set-grid {
        grid-template-columns: repeat(3, 31%);
    }
}

/* Large Desktop (1280px+) */
@media (min-width: 1280px) {
    .gallery-set-box {
        width: 96vw;
        padding: 2.5rem;
    }

    .gallery-set-images {
        grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
        gap: 2rem;
    }

    .gallery-set-images img {
        height: 45vh;
        max-height: 600px;
    }

    .gallery-set-description {
        max-width: 1000px;
    }

    .gallery-set-card img {
        height: 400px;
    }

    .gallery-set-grid {
        grid-template-columns: repeat(3, 31%);
    }
}

/* =========================
   LIGHTBOX OVERLAY
   ========================= */
.lightbox {
    position: fixed;
    inset: 0;
    /* shorthand for top/right/bottom/left:0 */
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox.hidden {
    display: none;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.lightbox img.dragging {
    cursor: grabbing;
    transition: none;
}

/* Lightbox navigation buttons */
.lightbox-prev,
.lightbox-next,
.lightbox-close {
    position: absolute;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 10000;
}

.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
}

/*
 * =========================
 * TESTIMONIALS SECTION (MOBILE-FIRST)
 * =========================
 */

#testimonials {
    padding: 2rem 1rem;
    text-align: center;
}

/* Grid layout for testimonial cards */
.testimonials-grid {
    display: grid;
    grid-template-columns: 100%;
    gap: 1rem;
}

/* Individual testimonial card */
.testimonial {
    background: #111;
    color: #ffffff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

/* Hover effect for testimonial card */
.testimonial:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.25);
}

/* Testimonial quote */
.testimonial blockquote {
    margin: 0;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.5;
    flex-grow: 1;
}

/* Author name */
.testimonial h4 {
    margin-top: 1rem;
    font-weight: bold;
    color: var(--brand-green);
    font-size: clamp(1.1rem, 2vw, 1.3rem);
}

/* Author citation */
.testimonial cite {
    font-style: normal;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    color: #ccc;
    margin-top: auto;
}

/* -------------------------
   Responsive testimonial columns
   ------------------------- */
@media (min-width: 600px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 48%);
        gap: 1rem;
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 48%);
        gap: 1.5rem;
    }

    .testimonial blockquote {
        font-size: clamp(1.1rem, 2vw, 1.3rem);
    }

    .testimonial h4 {
        font-size: clamp(1.2rem, 2.2vw, 1.4rem);
    }

    .testimonial cite {
        font-size: clamp(1rem, 1.8vw, 1.1rem);
    }
}

@media (min-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 31%);
        gap: 2rem;
    }

    .testimonial blockquote {
        font-size: clamp(1.2rem, 1.5vw, 1.6rem);
    }

    .testimonial h4 {
        font-size: clamp(1.3rem, 1.5vw, 2rem);
    }

    .testimonial cite {
        font-size: clamp(1.05rem, 1.2vw, 1.4rem);
    }
}

/*
 * =========================
 * CONTACT SECTION
 * =========================
 */
#contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem 1rem;
    width: 100%;
    gap: 1.5rem;
}

#contact p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    max-width: 40rem;
    color: #ffffff;
    line-height: 1.5;
}

/* Contact links (phone/email) */
#contact a {
    color: var(--brand-green);
    text-decoration: none;
    font-weight: bold;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    transition: color 0.3s ease, transform 0.2s ease;
}

#contact a:hover {
    color: #7fd88c;
    text-decoration: underline;
    transform: translateY(-2px);
}

/* Tablet */
@media (min-width: 768px) {
    #contact {
        padding: 3rem 2rem;
    }

    #contact p {
        font-size: clamp(1.1rem, 2vw, 1.3rem);
    }

    #contact address {
        font-size: clamp(1.1rem, 2vw, 1.3rem);
    }
}

/* Desktop */
@media (min-width: 1024px) {
    #contact p {
        font-size: clamp(1.2rem, 1.5vw, 1.6rem);
    }

    #contact address {
        font-size: clamp(1.2rem, 1.5vw, 1.6rem);
    }
}

/* Large Desktop */
@media (min-width: 1280px) {
    #contact {
        padding: 4rem 3rem;
    }

    #contact p {
        font-size: clamp(1.3rem, 1.2vw, 1.8rem);
    }

    #contact address {
        font-size: clamp(1.3rem, 1.2vw, 1.8rem);
    }
}

/* =========================
   FOOTER
 * ========================= */
footer {
    background: #000;
    border-top: 1px solid rgba(74, 140, 69, 0.3);
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
}

/* =========================
   RESPONSIVE ADJUSTMENTS
 * ========================= */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .call-button {
        display: inline-block;
        font-size: 1rem;
        padding: 0.75rem 1.25rem;
    }

    .service-detail-content {
        flex-direction: column;
        gap: 1rem;
    }

    .service-detail-content img,
    .service-text {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .call-button {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
}

/* =========================
   PRINT STYLES
 * ========================= */
@media print {
    body {
        background: white;
        color: black;
        font-size: 12pt;
    }

    .hero,
    .gallery,
    footer {
        display: none;
    }

    .section {
        box-shadow: none;
        border-radius: 0;
        margin: 0;
        padding: 1rem 0;
    }

    a {
        color: black;
        text-decoration: none;
    }

    a[href^="tel:"]::after {
        content: " (" attr(href) ")";
    }

    a[href^="mailto:"]::after {
        content: " (" attr(href) ")";
    }
}

/* =========================
   SKIP LINK (ACCESSIBILITY)
 * ========================= */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--brand-green);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    font-weight: bold;
}

.skip-link:focus {
    top: 6px;
}