/* --------------------------------------------------
   GLOBAL STYLES
-------------------------------------------------- */

body {
    margin: 0;
    font-family: "Open Sans", Arial, sans-serif;
    background: #f4f6f9;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3 {
    margin-top: 0;
    font-weight: 700;
}

a {
    color: #0078ff;
    text-decoration: none;
}

a:hover {
    opacity: 0.8;
}

/* --------------------------------------------------
   HEADER & NAVIGATION
-------------------------------------------------- */

header {
    background: #ffffff;
    padding: 15px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid #0078ff;
    position: sticky;
    top: 0;
    z-index: 999;
}

header img {
    height: 60px;
}

.nav-tagline {
    font-size: 14px;
    color: #0078ff;
    font-weight: 600;
    margin-left: 20px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    font-weight: 600;
    color: #333;
}

nav ul li a.active {
    color: #0078ff;
}

/* Mobile Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: #333;
    margin: 4px 0;
    border-radius: 3px;
}

/* --------------------------------------------------
   HERO SECTIONS
-------------------------------------------------- */

.hero {
    padding: 140px 40px;
    background-size: cover;
    background-position: center;
    color: #fff;
    position: relative;
    text-align: left;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    z-index: 1;
}

.hero h1, .hero h3, .hero p, .hero .hero-buttons {
    position: relative;
    z-index: 2;
}

.hero-buttons {
    margin-top: 25px;
}

.btn-primary {
    background: #0078ff;
    color: #fff;
    padding: 12px 26px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    margin-right: 15px;
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 12px 26px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

.hero-tagline {
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.9;
}

/* --------------------------------------------------
   SECTIONS
-------------------------------------------------- */

.section {
    padding: 60px 40px;
}

.section-light {
    background: #ffffff;
}

.section-dark {
    background: #1f2a36;
    color: #ffffff;
}

.section-dark a {
    color: #66aaff;
}

/* --------------------------------------------------
   SERVICE LIST / CARDS
-------------------------------------------------- */

.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.service-item {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(0,0,0,0.08);
}

.section-dark .service-item {
    background: #2c3a48;
    color: #ffffff;
}

/* --------------------------------------------------
   FORMS
-------------------------------------------------- */

input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 16px;
}

button {
    background: #0078ff;
    color: #fff;
    padding: 12px 26px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    opacity: 0.9;
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */

footer {
    background: #0f1620;
    color: #ffffff;
    text-align: center;
    padding: 40px 20px;
    margin-top: 40px;
}

footer p {
    margin: 6px 0;
}

/* --------------------------------------------------
   MOBILE RESPONSIVE
-------------------------------------------------- */

@media (max-width: 900px) {

    header {
        flex-wrap: wrap;
        padding: 15px 20px;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #ffffff;
        padding: 20px;
        border-top: 2px solid #0078ff;
    }

    nav.open ul {
        display: flex;
    }

    nav ul li {
        margin: 12px 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 20px;
    }

    /* FIX: Prevent overlapping hero buttons on mobile */
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .hero-buttons a {
        width: 100%;
        text-align: center;
        margin-right: 0;
    }
}

/* --------------------------------------------------
   MOBILE VIDEO SCALING FIX (Option C)
-------------------------------------------------- */

@media (max-width: 600px) {
    .hero-video video {
        max-width: 180px;
    }
}
