@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600&display=swap');

/* Main styles for Bridge City Imagery */

:root {
    /* Colors */
    --color-background: #F8F6F4; /* Soft off-white */
    --color-text: #333333;       /* Dark grey for text */
    --color-primary: #A07D5E;    /* Muted warm brown/tan */
    --color-secondary: #6C7A89;  /* Muted cool grey-blue */
    --color-accent: #D9BFA9;     /* Lighter warm accent */
    --color-white: #FFFFFF;

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-size-base: 16px;
    --line-height-base: 1.6;

    /* Spacing */
    --spacing-unit: 1rem; /* Approx 16px */
}

/* Subtle background texture */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="4" height="4" viewBox="0 0 4 4"%3E%3Cpath fill="%239C92AC" fill-opacity="0.08" d="M1 3h1v1H1V3zm2-2h1v1H3V1z"%3E%3C/path%3E%3C/svg%3E');
    opacity: 0.3; /* Adjust opacity as needed */
    z-index: -1; /* Place behind content */
    pointer-events: none; /* Allow clicks through */
}


html {
    box-sizing: border-box;
    font-size: var(--font-size-base);
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-primary);
    font-weight: var(--font-weight-medium); /* Use Medium for body text */
    line-height: var(--line-height-base);
    margin: 0;
    position: relative; /* Needed for pseudo-element */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-semibold); /* Use Semi-Bold for headings */
    line-height: 1.2;
    margin-bottom: calc(var(--spacing-unit) * 0.75);
}

h1 { font-size: 2.5rem; } /* Approx 40px */
h2 { font-size: 2rem; }   /* Approx 32px */
h3 { font-size: 1.5rem; } /* Approx 24px */

p {
    margin-bottom: var(--spacing-unit);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover, a:focus {
    color: var(--color-secondary);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility Classes */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: calc(var(--spacing-unit) * 2) 0;
    padding-top: 0px;
}

/* Header & Hero Section */
.full-page-header {
    min-height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../assets/hero-placeholder.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect (will be overridden on mobile) */
    display: flex;
    flex-direction: column;
    color: var(--color-white);
    position: relative; /* For absolute positioning of nav/content */
    transition: min-height 0.6s ease-out; /* Add transition here */
}

.main-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-unit) calc(var(--spacing-unit) * 2);
    display: flex;
    padding-top: 30px;
    /* justify-content: space-between; Align items to the start */
    align-items: center;
    z-index: 10;
    /* background-color: rgba(0, 0, 0, 0.2); Removed background */
}

/* Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
    margin: 0 0 0 calc(var(--spacing-unit) * 2.5); /* Add margin to the left of nav links */
    padding: 0;
}

.nav-links li {
    margin-right: calc(var(--spacing-unit) * 1.5); /* Use margin-right now */
    margin-left: 0; /* Remove left margin */
}

.nav-links a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: var(--font-weight-medium); /* Use Medium weight for nav links */
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
    text-transform: uppercase; /* Make nav links uppercase */
    letter-spacing: 1.5px; /* Increased letter spacing */
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--color-accent); /* Lighter accent on hover */
    text-decoration: none; /* Remove default underline */
}

.nav-links a:hover::after,
.nav-links a:focus::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Submenu Styles */
.nav-item-services {
    position: relative; /* For submenu positioning */
}

.submenu {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%; /* Position below parent */
    left: 0;
    background-color: rgba(51, 51, 51, 0.9); /* Darker background for submenu */
    list-style: none;
    padding: calc(var(--spacing-unit) * 0.5) 0;
    margin: 0;
    min-width: 180px; /* Minimum width */
    border-radius: 0 0 4px 4px; /* Rounded bottom corners */
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 11; /* Ensure submenu is above hero content */
}

.nav-item-services:hover .submenu,
.nav-item-services:focus-within .submenu { /* Show on hover/focus */
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.submenu li {
    margin: 0;
}

.submenu a {
    display: block;
    padding: calc(var(--spacing-unit) * 0.5) var(--spacing-unit);
    color: var(--color-white);
    font-size: 0.9rem;
    text-transform: none; /* Submenu items not uppercase */
    letter-spacing: normal;
    font-weight: var(--font-weight-medium);
    white-space: nowrap; /* Prevent wrapping */
}

.submenu a::after {
    display: none; /* No underline effect for submenu */
}

.submenu a:hover,
.submenu a:focus {
    background-color: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
}


.logo {
    height: 110px; /* Default height for horizontal logo */
    width: auto;
    vertical-align: middle; /* Helps align with nav text */
}

/* Base Hero Content Styling (Applies to original and service-specific) */
.hero-content,
.service-hero-content {
    margin-top: auto; /* Push content down */
    margin-bottom: auto; /* Push content up */
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 4); /* Default padding */
    max-width: 900px; /* Allow slightly wider content */
    width: 100%; /* Ensure it takes width for alignment */
    transition: padding 0.5s ease-out; /* Add transition for padding */
}

/* Left align hero content */
.left-align-hero {
    text-align: left;
    margin-left: 0; /* Align container to left */
    margin-right: auto; /* Push container to left */
}


.hero-content h1 {
    font-size: 3rem; /* Larger for hero */
    margin-bottom: var(--spacing-unit);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero-content .sub-headline,
.service-hero-content .sub-headline {
    font-size: 1.25rem; /* Keep consistent */
    margin-bottom: calc(var(--spacing-unit) * 1.5); /* Keep consistent */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Service-Specific Hero Content Visibility */
.service-hero-content {
    display: none; /* Hidden by default */
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

body.service-detail-active.commercial-active #service-hero-content-commercial,
body.service-detail-active.multifamily-active #service-hero-content-multifamily {
    display: block; /* Show the relevant one */
    opacity: 1;
}

/* Adjust padding for service hero content when hero is short */
body.service-detail-active .service-hero-content {
    padding-top: calc(var(--spacing-unit) * 5); /* Increased top padding significantly */
    padding-bottom: 0; /* Removed bottom padding */
}


.cta-button {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: calc(var(--spacing-unit) * 0.75) calc(var(--spacing-unit) * 1.5);
    border-radius: 4px;
    font-weight: var(--font-weight-semibold); /* Semi-bold buttons */
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none; /* Remove underline from button link */
}

.cta-button:hover, .cta-button:focus {
    background-color: var(--color-secondary);
    color: var(--color-white); /* Ensure text color stays white on hover */
    transform: translateY(-2px);
    text-decoration: none; /* Keep underline removed */
}

/* Footer */
footer {
    text-align: center;
    padding: calc(var(--spacing-unit) * 1.5);
    margin-top: calc(var(--spacing-unit) * 2);
    background-color: var(--color-text);
    color: var(--color-background);
    font-size: 0.9rem;
}

/* Content Sections */
.content-section {
    padding: calc(var(--spacing-unit) * 3) 0; /* Add vertical padding */
    border-bottom: 1px solid var(--color-accent); /* Subtle separator */
}

.content-section:last-of-type {
    border-bottom: none;
}

.content-section h2 {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    color: var(--color-secondary); /* Use secondary color for headings */
}

/* Grid Layout */
.grid-layout {
    display: grid;
    gap: calc(var(--spacing-unit) * 2); /* Space between grid items */
    align-items: center; /* Vertically align items in the grid */
}

.grid-2-cols {
    grid-template-columns: 1fr 1fr; /* Equal two columns */
}

.image-content img {
    border-radius: 4px; /* Slightly rounded corners for images */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

/* Specific CTA Styling */
.secondary-cta {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: calc(var(--spacing-unit) * 0.6) calc(var(--spacing-unit) * 1.2); /* Slightly smaller padding */
}

.secondary-cta:hover, .secondary-cta:focus {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

/* Services Section */
.alt-background {
    background-color: var(--color-white); /* Use white for alternating background */
}

.section-title {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 2.5); /* More space below title */
    color: var(--color-secondary);
}

.grid-3-cols {
    grid-template-columns: repeat(3, 1fr); /* Three equal columns */
}

.service-item {
    text-align: center;
    padding: var(--spacing-unit);
    background-color: var(--color-background); /* Use main bg for item cards */
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.service-icon {
    max-width: 60px; /* Control icon/image size */
    height: 60px;
    margin: 0 auto var(--spacing-unit);
    /* Add background color/border if using simple icons */
    /* background-color: var(--color-accent); */
    /* border-radius: 50%; */
    /* padding: 10px; */
    object-fit: cover; /* If using images */
    border-radius: 4px; /* Match card radius */
}

.service-item h3 {
    color: var(--color-primary);
    margin-bottom: calc(var(--spacing-unit) * 0.5);
    font-size: 1.2rem;
}

.service-item p {
    font-size: 0.95rem;
    margin-bottom: 0; /* Remove bottom margin from last element */
}

/* New Services Section Styling */
.service-choices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive columns */
    gap: calc(var(--spacing-unit) * 2);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out, max-height 0.5s ease-out;
    max-height: 1000px; /* Arbitrary large height for transition */
    overflow: hidden;
}

.service-choice-item {
    background-color: var(--color-background);
    padding: calc(var(--spacing-unit) * 1.5);
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-choice-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.service-choice-icon {
    max-width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: var(--spacing-unit);
    background-color: var(--color-accent); /* Placeholder background */
}

.service-choice-item h3 {
    color: var(--color-primary);
    margin-bottom: calc(var(--spacing-unit) * 0.5);
    font-size: 1.3rem;
}

.service-choice-item p {
    font-size: 0.95rem;
    margin-bottom: var(--spacing-unit);
    flex-grow: 1; /* Allow p to grow to push button down */
}

.choice-cta {
    display: inline-block;
    margin-top: auto; /* Push to bottom */
    padding: calc(var(--spacing-unit) * 0.5) var(--spacing-unit);
    background-color: var(--color-secondary);
    color: var(--color-white);
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease;
}

.service-choice-item:hover .choice-cta {
    background-color: var(--color-primary);
}

/* Service Details Content */
.service-details-content {
    background-color: var(--color-background);
    border-radius: 4px;
    /* margin-top: calc(var(--spacing-unit) * 2); */
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: opacity 0.5s ease-out, max-height 0.6s ease-out, transform 0.5s ease-out;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(20px); /* Start slightly lower for transition */
}

.service-details-content.details-visible {
    opacity: 1;
    padding: calc(var(--spacing-unit) * 2);
    max-height: 2000px; /* Arbitrary large height for transition */
    transform: translateY(0);
}

.service-details-content h3 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-unit);
    text-align: center;
}


.service-details-content h4 {
    color: var(--color-secondary);
    margin-top: calc(var(--spacing-unit) * 1.5);
    margin-bottom: calc(var(--spacing-unit) * 0.5);
    border-bottom: 1px solid var(--color-accent);
    padding-bottom: calc(var(--spacing-unit) * 0.25);
}

.service-details-content ul {
    list-style: disc;
    margin-left: var(--spacing-unit);
    margin-bottom: var(--spacing-unit);
}

.service-details-content li {
    margin-bottom: calc(var(--spacing-unit) * 0.25);
}

.pricing-package {
    margin-bottom: var(--spacing-unit);
    padding: var(--spacing-unit);
    border: 1px solid var(--color-accent);
    border-radius: 4px;
}

.pricing-package h5 {
    color: var(--color-secondary);
    margin-bottom: calc(var(--spacing-unit) * 0.25);
}

.back-to-services-btn {
    background: none;
    border: none;
    color: var(--color-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    margin-bottom: var(--spacing-unit);
    padding: 5px;
    transition: color 0.3s ease;
}

.back-to-services-btn:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.service-grid-layout > .back-to-services-btn {
    grid-column: 1 / -1; /* Make button span both columns */
    justify-self: start; /* Align button to the left */
}

/* New Grid Layout for Service Details */
.service-grid-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Explicitly define 2 equal columns */
    gap: calc(var(--spacing-unit) * 2);
    align-items: start; /* Align items to the top */
}

.service-grid-item {
    /* Add specific styling for grid items if needed */
    /* For example, background, padding, etc. */
}

.service-grid-item.text-content {
    /* Specific styles for text blocks in the grid */
}

.service-grid-item.image-content img {
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%; /* Ensure image fills container */
    height: auto;
}


/* Service Gallery Styles */
.service-gallery {
    /* Container for the gallery */
}

.main-image-container {
    margin-bottom: var(--spacing-unit); /* Space between main image and thumbnails */
    position: relative; /* For potential future controls */
    overflow: hidden; /* Ensure image stays within bounds */
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.main-gallery-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px; /* Match container */
    transition: opacity 0.5s ease-in-out; /* Fade transition */
}

.thumbnail-container {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping if many thumbnails */
    gap: calc(var(--spacing-unit) * 0.5); /* Space between thumbnails */
}

.thumbnail-item {
    width: 80px; /* Adjust size as needed */
    height: 60px; /* Adjust size as needed */
    object-fit: cover; /* Ensure thumbnail covers area */
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent; /* Border for active state */
    transition: border-color 0.3s ease, opacity 0.3s ease;
    opacity: 0.7; /* Dim inactive thumbnails slightly */
}

.thumbnail-item:hover {
    opacity: 1;
}

.thumbnail-item.active {
    border-color: var(--color-primary); /* Highlight active thumbnail */
    opacity: 1;
}

/* State class for hiding choices */
.service-choices.hidden {
    opacity: 0;
    max-height: 0;
    transform: scale(0.95);
    pointer-events: none; /* Prevent interaction when hidden */
    margin-bottom: 0; /* Collapse margin */
    /* Ensure transition ends cleanly */
    transition: opacity 0.4s ease-out, transform 0.4s ease-out, max-height 0.5s ease-out, margin-bottom 0.5s ease-out;
}


/* Hiding main sections when service detail is active */
body.service-detail-active .main-page-section {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    border: none; /* Remove borders */
    pointer-events: none; /* Prevent interaction */
    /* Changed ease-out to ease-in-out for potentially smoother collapse/expand */
    transition: opacity 0.5s ease-in-out, max-height 0.6s ease-in-out, margin 0.6s ease-in-out, padding 0.6s ease-in-out;
}

/* Ensure the services section itself is not hidden */
body.service-detail-active #services {
    opacity: 1;
    max-height: none; /* Allow it to take full height */
    overflow: visible;
    pointer-events: auto;
    /* Ensure hero itself isn't hidden */
    transition: opacity 0.5s ease-out, max-height 0.6s ease-out, margin 0.6s ease-out, padding 0.6s ease-out, min-height 0.6s ease-out; /* Add min-height transition */
}

/* Adjust hero when service detail is active */
body.service-detail-active #hero {
    min-height: 25vh; /* Reduced height, adjust as needed */
    background-attachment: scroll; /* Ensure background scrolls with content */
    transition: background-image 0.5s ease-in-out; /* Keep only background transition here */
}

/* Specific hero backgrounds */
body.service-detail-active.commercial-active #hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../assets/DJI_0022-Edit-Enhanced-SR Large.jpeg'); /* Commercial background */
}

body.service-detail-active.multifamily-active #hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../assets/DJI_0030-Enhanced-NR-Edit-SR Large.jpeg'); /* Multi-family background */
}


/* Portfolio Section */
.portfolio-grid {
    gap: var(--spacing-unit); /* Slightly smaller gap for portfolio */
}

.portfolio-item {
    position: relative; /* For positioning the caption */
    overflow: hidden; /* Hide overflow for zoom effect */
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    cursor: pointer; /* Indicate interactivity */
}

.portfolio-item img {
    transition: transform 0.4s ease;
    width: 100%; /* Ensure image fills container */
    height: 100%;
    object-fit: cover; /* Cover the area without distortion */
}

.portfolio-item:hover img {
    transform: scale(1.05); /* Slight zoom on hover */
}

.portfolio-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--color-white);
    padding: calc(var(--spacing-unit) * 0.5) var(--spacing-unit);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0; /* Hidden by default */
    transform: translateY(100%); /* Start below item */
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.portfolio-item:hover .portfolio-caption {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-cta {
    text-align: center;
    margin-top: calc(var(--spacing-unit) * 2.5); /* Space above button */
}

/* Contact Section */
.contact-content {
    gap: calc(var(--spacing-unit) * 3); /* Wider gap for contact layout */
}

.contact-info h3,
.contact-form-placeholder h3 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-unit);
}

.contact-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    margin-bottom: calc(var(--spacing-unit) * 0.5);
    font-size: 1rem;
}

.contact-info li strong {
    font-weight: var(--font-weight-semibold); /* Semi-bold strong tags */
    margin-right: 0.5em;
}

.contact-form-placeholder form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-unit);
}

.contact-form-placeholder input[type="text"],
.contact-form-placeholder input[type="email"],
.contact-form-placeholder textarea {
    padding: calc(var(--spacing-unit) * 0.75);
    border: 1px solid var(--color-accent);
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 1rem;
    background-color: #eee; /* Indicate disabled state */
    cursor: not-allowed;
}

.contact-form-placeholder textarea {
    resize: vertical;
}

.contact-form-placeholder button {
    align-self: flex-start; /* Align button to the left */
    cursor: not-allowed;
    opacity: 0.7;
}

/* Scroll Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px); /* Start slightly lower */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-text); /* Dark background */
    box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
    z-index: 1000; /* Ensure it's above other content */
}

.mobile-bottom-nav a {
    display: flex; /* Use flex for alignment */
    flex-direction: column; /* Stack icon/text if icons are added */
    align-items: center;
    justify-content: center;
    flex-grow: 1; /* Make links share space equally */
    padding: 15px 5px; /* Increased padding for taller buttons */
    color: var(--color-background); /* Light text */
    text-decoration: none;
    font-size: 0.8rem;
    text-align: center;
    transition: background-color 0.2s ease;
    text-transform: uppercase; /* Make mobile nav links uppercase */
    letter-spacing: 1.5px; /* Increased letter spacing */
    font-weight: var(--font-weight-medium); /* Use Medium weight for mobile nav */
}

.mobile-bottom-nav a:hover,
.mobile-bottom-nav a:focus {
    background-color: var(--color-primary); /* Highlight on hover/focus */
    color: var(--color-white);
    text-decoration: none;
}

/* Class for hiding mobile nav */
.mobile-bottom-nav.nav-hidden {
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-bottom-nav {
    /* Add transition for showing */
    transition: transform 0.3s ease-in-out;
}


/* Responsive Adjustments */
@media (max-width: 992px) { /* Adjust breakpoint for 3 columns */
    .grid-3-cols {
        grid-template-columns: 1fr 1fr; /* Two columns on medium screens */
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content .sub-headline {
        font-size: 1.1rem;
    }

    .grid-2-cols,
    .grid-3-cols {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
        gap: calc(var(--spacing-unit) * 1.5);
    }

    .image-content {
        order: -1; /* Move image above text on mobile if desired, or keep default */
        margin-bottom: var(--spacing-unit); /* Add space below image when stacked */
    }

    .text-content {
        text-align: center; /* Center text when stacked */
    }

    .main-nav {
        padding: calc(var(--spacing-unit) * 0.5) var(--spacing-unit);
    }

    .logo {
        height: 100px; /* Mobile height for standard logo */
        content: url('../assets/logo.png'); /* Switch image source on mobile */
    }

    /* Basic Mobile Nav Handling (Hide links, prepare for toggle) */
    .nav-links {
        display: none; /* Hide desktop links on small screens */
        /* Add styles for mobile menu appearance later */
    }

    .main-nav {
         justify-content: center; /* Center the logo when nav links are hidden */
         padding: var(--spacing-unit) var(--spacing-unit); /* Adjust mobile padding */
    }

    .hero-content {
        padding: var(--spacing-unit) calc(var(--spacing-unit) * 2);
        text-align: center; /* Center hero text on mobile */
    }

    .left-align-hero {
         text-align: center; /* Override left-align for mobile */
         margin-left: auto;
         margin-right: auto;
    }

    /* Fix hero background attachment on mobile */
    .full-page-header {
        background-attachment: scroll;
    }

    /* Show mobile bottom nav and add padding to body */
    .mobile-bottom-nav {
        display: flex; /* Show on mobile */
    }

    body {
        /* Adjust padding based on new nav height (approx 2*15px padding + font size/line height) */
        padding-bottom: 70px; /* Increased padding for taller nav */
    }

    /* Adjust service choices grid for mobile */
    .service-choices {
        grid-template-columns: 1fr; /* Stack choices on mobile */
    }

    /* Stack service detail grid columns on mobile */
    .service-grid-layout {
        grid-template-columns: 1fr; /* Stack gallery/text and pricing/cta columns */
    }

    /* Optional: Add some space below the gallery when stacked */
    .service-gallery {
        margin-bottom: calc(var(--spacing-unit) * 1.5);
    }

    /* Reduce service hero text size on mobile */
    body.service-detail-active .service-hero-content h1 {
        font-size: 1.2rem; /* Smaller than main hero h1 on mobile */
    }
    body.service-detail-active .service-hero-content .sub-headline {
        font-size: .6rem; /* Smaller than main hero sub-headline on mobile */
    }
    body.service-detail-active .service-hero-content {
        padding-top: calc(var(--spacing-unit) * 6); /* Increased top padding significantly */
        padding-bottom: 0; /* Removed bottom padding */
    }
}
