:root {
    --orange: #f57c00;
    --dark-grey: #2f2f2f;
    --mid-grey: #9ea3a8;
    --light-grey: #f2f2f2;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--light-grey);
    color: var(--dark-grey);
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

/* HEADER */
header {
    background: var(--dark-grey);
    padding: 12px 0;
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Ensures space between logo + text and nav */
}

/* LOGO + COMPANY NAME */
.logo-title {
    display: flex;
    align-items: center;
}

header img {
    height: 55px;
}

.header-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--orange);
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.7);  /* White outline effect */
    margin-left: 15px;
}

/* NAVIGATION */
nav a {
    color: var(--white);
    margin-left: 18px;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    color: var(--orange);
}

/* HERO SLIDESHOW */
.hero {
    position: relative;
    height: 450px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    background: rgba(0,0,0,0.6);
    height: 100%;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-overlay h1 {
    color: var(--orange);
    font-size: 38px;
}

.hero-overlay p {
    font-size: 18px;
    max-width: 750px;
    margin: auto;
}

/* SECTIONS */
.section {
    background: white;
    padding: 60px 0;
}

.section.grey {
    background: var(--mid-grey);
    color: white;
}

.section img.full {
    width: 100%;
    border-radius: 4px;
}

/* SERVICES */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.service-card {
    background: white;
    border-left: 6px solid var(--orange);
}

.service-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.service-card div {
    padding: 20px;
}

/* CONTACT */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

form {
    background: white;
    padding: 30px;
    border-left: 6px solid var(--orange);
}

input, textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--mid-grey);
}

button {
    background: var(--orange);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background: #e06f00;
}

/* FOOTER */
footer {
    background: var(--dark-grey);
    color: white;
    text-align: center;
    padding: 20px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-overlay h1 {
        font-size: 30px;
    }

    .header-flex {
        flex-direction: column;
        text-align: center;
    }

    .logo-title {
        margin-bottom: 10px;
    }

    .header-title {
        margin-left: 8px;
        font-size: 20px;
    }

    nav a {
        margin-left: 12px;
        display: inline-block;
        margin-top: 5px;
    }
}

.map-section iframe {
    width: 100%;
    height: 450px;
    display: block;
}

.service-card {
    background: white;           /* card background white */
    border-left: 6px solid var(--orange);
    color: var(--dark-grey);     /* ensure text is dark for readability */
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.service-card div {
    padding: 20px;
    color: var(--dark-grey);     /* override white text if inherited */
}

.service-card h3 {
    margin-top: 0;
    color: var(--orange);        /* titles in orange for visibility */
}

.service-card p {
    color: var(--dark-grey);     /* description text dark */
}
/* Button Styling */
.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--orange);
    color: var(--white);
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: 25px; /* Rounded edges */
    margin-top: 30px; /* Space from text */
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #e06f00; /* Darker shade on hover */
}

/* Positioning the button inside hero section */
.hero-overlay .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
}

.hero-overlay p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* Responsive adjustments for button */
@media (max-width: 768px) {
    .cta-button {
        font-size: 16px;
        padding: 10px 20px;
    }
}
