body {
    background-image: url('/images/Trees.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
    background: rgba(255,255,255,0.85); /* semi-transparent white */
    box-shadow: 0 1px 6px rgba(0,0,0,0.15);
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 56px;
    width: auto;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.site-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
}

.site-nav a {
    color: #111;
    text-decoration: none;
    margin-left: 18px;
    font-weight: 600;
}

main.container {
    margin-top: 86px; /* space for fixed header */
    padding: 20px;
}

.hero {
    /* Let the hero size itself to the image's natural height instead of forcing a 60vh fixed size */
    display: flex;
    align-items: center;
    justify-content: center;
    background-position: center;
    border-radius: 8px;
    position: relative;
    overflow: visible; /* allow image to define dimensions */
    padding: 36px 0; /* vertical space around the image */
}

.hero-overlay {
    /* Center a narrower translucent panel over the hero */
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(1100px, 80%);
    margin: auto;
    background: rgba(255,255,255,0.62); /* slightly stronger for legibility */
    border-radius: 10px;
}

.hero-content {
    position: relative; /* above overlay */
    text-align: center;
    z-index: 2;
    width: min(1000px, 78%); /* match the overlay size + a little padding */
    margin: 0 auto; /* center content within hero */
    padding: 24px; /* padding so text doesn't touch the overlay edges */
}

.hero h1 { margin: 0; margin-bottom: 8px; }

.placeholder-truck {
    /* Default behavior: a nicely sized image (previous half-size) used elsewhere */
    max-width: 48%;
    width: auto;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    display: inline-block;
    object-fit: contain;
}

/* When the natural-size class is used we prefer the image's natural dimensions
   but we still cap it so it won't overflow very small screens. */
.placeholder-truck.natural-size {
    /* Respect the image's natural size but keep it constrained so it doesn't overflow or occupy too much page space */
    max-width: 65%;   /* keep it fairly large but not full width */
    width: auto;      /* use natural width up to max-width */
    height: auto;     /* preserve aspect ratio */
    max-height: 40vh; /* cap height so it doesn't take more than about half the viewport (prevents multi-page appearance) */
}

/* Keep a responsive fallback to make sure very large images still fit on smaller screens */
@media (max-width: 1200px) {
    .placeholder-truck.natural-size {
        max-width: 85%;
    }
}

/* Responsive: keep image readable on smaller devices */
@media (max-width: 900px) {
    .placeholder-truck { max-width: 70%; }
}

@media (max-width: 480px) {
    .placeholder-truck { max-width: 90%; }
}

/* On small screens the overlay should become full-width */
@media (max-width: 720px) {
    .hero-overlay {
        left: 0;
        transform: none;
        width: 100%;
        border-radius: 0;
    }
    .hero-content {
        width: 92%;
        padding: 12px;
    }
}

.service-hero {
    height: 42vh;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.service-card {
    background: rgba(255,255,255,0.85);
    padding: 14px;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.service-card h3 { margin-top: 0; margin-bottom: 6px; }

.lead { font-size: 1.05rem; margin-top: 6px; }

.contact-info {
    margin-top: 20px;
    padding: 15px 0;
}

.phone-number {
    display: inline-block;
    background: rgba(34, 139, 34, 0.95);
    color: white;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.phone-number:hover {
    background: rgba(76, 175, 80, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}
