html {
    scroll-behavior: smooth;
    /* This creates an invisible 'buffer' at the top of every section */
    /* Set this to match the height of your navbar (approx 80px-90px) */
    scroll-padding-top: 90px; 
}

/* Mobile specific adjustment for the scroll padding */
@media (max-width: 768px) {
    html {
        /* Mobile nav is usually a bit taller or shorter depending on stacking */
        scroll-padding-top: 110px; 
    }
}
:root {
    --ut-orange: #FF8200;
    --smokey-grey: #58595B;
    --white: #ffffff;
    --black: #222222;
    --light-bg: #f9f9f9;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: #f4f4f4;
}

nav {
    background: var(--white);
    border-bottom: 4px solid var(--ut-orange);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px; /* Wider layout for desktop */
    margin: 0 auto;
    padding: 0 20px;
}

.brand-area { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
}

.nav-logo { 
    height: 55px; 
    width: auto; 
}

.brand-text { 
    font-weight: bold; 
    font-size: 1.1rem; 
    color: var(--smokey-grey); 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
}

.nav-phone {
    background: var(--ut-orange);
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 4px;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.nav-phone:hover {
    background: #e67600;
}

.hero {
    height: 60vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('unsplash-image-UtgKZUlRV78.webp');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero h1 { 
    font-size: 3.5rem; 
    text-transform: uppercase; 
    margin-bottom: 10px; 
}

.hero p { 
    font-size: 1.2rem; 
    margin-bottom: 25px; 
    opacity: 0.9; 
}

.license-tag {
    display: inline-block;
    border: 2px solid var(--ut-orange);
    padding: 10px 25px;
    font-weight: bold;
    letter-spacing: 1px;
    background: rgba(0,0,0,0.2);
}

/* Content Wrapper */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 70px 40px;
}

.quick-nav {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.quick-nav a {
    color: var(--smokey-grey);
    margin: 0 25px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.quick-nav a:hover { 
    color: var(--ut-orange); 
}

/* Section Headers - Centered */
section { 
    padding: 50px 0; 
}

h2 {
    font-size: 2rem;
    color: var(--smokey-grey);
    text-transform: uppercase;
    margin-bottom: 30px;
    text-align: center; /* Centered words */
    display: block;
    position: relative;
    padding-bottom: 10px;
}

/* Centered Orange Underline */
/* Service Cards */
.service-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--light-bg);
    padding: 40px;
    border-top: 5px solid var(--ut-orange);
    transition: transform 0.3s ease;
}

.service-card:hover { 
    transform: translateY(-5px); 
}

.service-card h3 { 
    color: var(--smokey-grey); 
    margin-bottom: 15px; 
    font-size: 1.3rem; 
}

/* About Section */
.about-flex { 
    display: flex; 
    gap: 60px; 
    align-items: center; 
    flex-wrap: wrap; 
}

.about-info { 
    flex: 2; 
    min-width: 350px; 
}

.about-info p { 
    margin-bottom: 20px; 
    font-size: 1.1rem; 
}

.about-photo { 
    flex: 1; 
    min-width: 280px; 
}

.about-photo img { 
    width: 100%; 
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Contact Strip */
.contact-strip {
    background: var(--smokey-grey);
    color: white;
    padding: 60px 40px;
    text-align: center;
    border-radius: 4px;
}

.contact-details { 
    margin-top: 30px; 
}

.contact-details a { 
    color: var(--ut-orange); 
    text-decoration: none; 
    font-size: 1.5rem; 
    font-weight: bold; 
    display: block; 
    margin: 15px 0; 
}

footer { 
    text-align: center; 
    padding: 50px; 
    color: #999; 
    font-size: 0.8rem; 
    letter-spacing: 1px; 
}

/* --- MOBILE ADJUSTMENTS --- */

@media (max-width: 768px) {
    /* Keep Nav Bar on one line */
    .nav-container {
        flex-direction: row; 
        justify-content: space-between;
        padding: 0 10px;
    }

    .brand-text {
        font-size: 0.7rem;
        max-width: 140px;
        line-height: 1.2;
    }

    .nav-logo {
        height: 40px;
    }

    .nav-phone {
        padding: 8px 12px;
        font-size: 0.75rem;
    }

    /* Shrink Hero for mobile */
    .hero {
        height: 50vh;
    }

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

    /* Fix Content Padding (Removes the thin strip look) */
    .content-wrapper {
        padding: 40px 15px;
    }

    .quick-nav a {
        margin: 0 10px;
        font-size: 0.75rem;
    }

    /* Stack Service Cards and About section */
    .service-group {
        grid-template-columns: 1fr;
    }

    .about-flex {
        flex-direction: column;
    }

    .about-info, .about-photo {
        min-width: 100%;
    }

    /* Ensure headers stay centered */
    h2 {
        font-size: 1.6rem;
    }

    /* Improve Contact tapping on mobile */
    .contact-strip {
        padding: 40px 20px;
    }

    .contact-details a {
        font-size: 1rem;
        word-break: break-all;
    }
}
