* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: #f5f5f5;
    color: #222;
}

/* HERO */

.hero {
    position: relative;
    height: 60vh;
    min-height: 380px;
    background: url("images/driveways/driveway-pour-1.jpeg") center center / cover no-repeat;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(0,0,0,0.65), rgba(0,0,0,0.35));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 2.6rem;
    margin-bottom: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 1.05rem;
    margin-bottom: 20px;
}

/* NAV */

.top-nav {
    background: #111;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO */

.nav-logo img {
    height: 70px;
    width: auto;
    display: block;
}

.top-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.top-nav li {
    display: inline-block;
    margin-left: 18px;
}

.top-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.top-nav a:hover {
    color: #f0c15b;
}

/* SECTIONS */

.section {
    padding: 60px 20px;
}

.section-alt {
    background: #ffffff;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-intro {
    max-width: 720px;
    margin-bottom: 30px;
}

/* BUTTONS */

.btn-primary {
    display: inline-block;
    background: #f0c15b;
    color: #111;
    padding: 10px 22px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #e0ae3f;
}

/* SERVICES */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.service-card {
    background: #f9f9f9;
    border-radius: 4px;
    padding: 18px 16px;
    border: 1px solid #e0e0e0;
}

.service-card h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

/* PORTFOLIO */

.portfolio-heading {
    margin-top: 40px;
    margin-bottom: 10px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 4px;
    background: #ddd;
}

/* CONTACT */

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
    gap: 30px;
    align-items: flex-start;
}

.contact-details p {
    margin: 4px 0;
}

.contact-form .form-row {
    margin-bottom: 12px;
}

.contact-form label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 8px 9px;
    border-radius: 3px;
    border: 1px solid #ccc;
    font-family: inherit;
    font-size: 0.95rem;
}

/* FOOTER */

footer {
    background: #111;
    color: #aaa;
    text-align: center;
    padding: 18px 10px;
    font-size: 0.85rem;
}

/* RESPONSIVE */

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .nav-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .top-nav li {
        margin-left: 0;
        margin-right: 14px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }
}

#gallery {
    padding: 40px;
    background: #f7f7f7;
}

#gallery h2 {
    text-align: center;
    margin-bottom: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

#contact {
    padding: 40px;
}

#contact form {
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#contact input,
#contact textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

#contact button {
    padding: 12px;
    background: #333;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

#contact button:hover {
    background: #555;
}

/* SLIDER */
.slider {
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 10px;
}

.slides {
    display: flex;
    width: 100%;
    animation: slide 25s infinite;
}

.slides img {
    width: 100%;
    flex-shrink: 0;
    object-fit: cover;
    height: 500px;
}

/* Animation */
@keyframes slide {
    0% { transform: translateX(0); }
    14% { transform: translateX(0); }

    16% { transform: translateX(-100%); }
    30% { transform: translateX(-100%); }

    32% { transform: translateX(-200%); }
    46% { transform: translateX(-200%); }

    48% { transform: translateX(-300%); }
    62% { transform: translateX(-300%); }

    64% { transform: translateX(-400%); }
    78% { transform: translateX(-400%); }

    80% { transform: translateX(-500%); }
    94% { transform: translateX(-500%); }

    96% { transform: translateX(-600%); }
    100% { transform: translateX(-600%); }
}

/* SLIDER WITH ARROWS */
.slider {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 10px;
}

.slides {
    display: flex;
    transition: transform 0.6s ease;
}

.slides img {
    width: 100%;
    flex-shrink: 0;
    height: 500px;
    object-fit: cover;
}

/* ARROWS */
.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 12px 18px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 4px;
    z-index: 10;
}

.slide-btn:hover {
    background: rgba(0,0,0,0.7);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}