/*
 *	Name: Acme Inc Single Page
 *	Author: Acme Inc;
 *	Website : Acme Inc.com;
--------------------------------------------- */

/* Imports */
@import url(roboto-slab.css);
@import url(open-sans.css);

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

body {
    font-size: 14px;
    line-height: 1.6;
    color: #bbb;
    background-color: #202020;
    font-family: 'Open Sans', sans-serif;
    scroll-behavior: smooth;
}

.clearfix {
    display: block;
    clear: both;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #ddd;
    font-family: "Roboto Slab", sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 16px;
    padding-top: 15px;
}

h1 { font-size: 24px; }
h2 { font-size: 20px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }
h5 { font-size: 15px; }
h6 { font-size: 14px; }

p {
    margin: 0 0 24px;
    padding: 0;
    text-align: justify;
}

strong {
    font-weight: 700;
    font-family: "Roboto Slab", sans-serif;
    color: #ddd;
}

ul.content {
    margin-top: 10px;
    padding-left: 20px;
    padding-bottom: 20px;
}

ul.content li {
    list-style-type: disc;
    list-style-position: outside;
    margin: 0px 0 5px 20px;
}

/* Links */
a {
    text-decoration: none;
    color: #285a86;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
    color: #1a3d5c;
}

/* Header Wrapper */
#header-wrapper {
    background-color: #202020;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    width: 100%;
}

/* Container */
#container {
    margin: 0 auto;
    max-width: 900px;
    background-color: #202020;
    position: relative;
}

/* Header */
header {
    width: 94%;
    padding: 3%;
    background-color: transparent;
    background-image: url("../imgs/header1.png");
    background-repeat: no-repeat;
    background-position: top center;
    background-size: contain;
    padding-bottom: 10px;
    min-height: 180px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
#title {
    font-size: 18px;
    color: #fff;
    margin: 0;
    text-align: center;
    width: 100%;
}

#titlediv {
    text-align:center;
    font-weight:700;
}
/* Navigation */
nav {
    width: 97%;
    background-color: #202020;
    padding: 0 1.5% 0 1.5%;
    padding-top: 10px;
    display: block;
    padding-bottom: 0px;
    position: relative;
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #757575;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    float: right;
}

.nav-toggle:hover {
    color: #fff;
}

.nav-toggle::before {
    content: "≡";
    display: block;
}

.nav-toggle.mobile-open::before {
    content: "×";
}

nav ul ul {
    display: none;
}

nav ul li:hover > ul {
    display: block;
}

nav ul {
    list-style: none;
    position: relative;
    display: inline-table;
}

nav ul:after {
    content: ""; clear: both; display: block;
}

nav ul li {
    list-style-type: none;
    margin-left: 0px;
    float: left;
}

nav ul li:hover {
    background: #707070;
}

nav ul li:hover a {
    color: #fff;
    text-decoration: none;
}

nav ul li a {
    display: block;
    padding: 5px 20px;
    color: #757575;
    text-decoration: none;
}

nav ul ul {
    background: #505050;
    border-radius: 0px;
    padding: 0;
    position: absolute;
    top: 100%;
    z-index: 1001;
}

nav ul ul li {
    float: none;
    position: relative;
}

nav ul ul li a {
    padding: 5px 20px;
    color: #fff;
}

nav ul ul li a:hover {
    background: #808080;
}

nav ul ul ul {
    position: absolute;
    left: 100%;
    top: 0;
    z-index: 1002;
}

nav ul li.active {
    background: #909090;
}

nav ul li.active a {
    color: #fff;
}

/* Sections */
section {
    position: relative;
    margin-bottom: 0;
    padding-top: 20px;
}

section #content,
section #content2 {
    width: 100%;
    padding: 3% 20px;
    color: #bbb;
    display: block;
    overflow: hidden; /* Contains floated images */
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    border-radius: 12px;
}

/* Section background colors for visual separation */
section:nth-child(odd) #content {
    background-color: #333;
}

section:nth-child(even) #content {
    background-color: #444;
}

section:nth-child(odd) #content2 {
    background-color: #333;
}

section:nth-child(even) #content2 {
    background-color: #444;
}

/* Subsection containers */
.subsection {
    display: block;
    margin-bottom: 2rem;
    overflow: hidden;
}

.subsection:last-child {
    margin-bottom: 0;
}

/* Images in content flow */
.content-image {
    max-width: 300px;
    width: 100%;
    height: auto;
    float: right;
    margin: 0 0 20px 20px;
    border: 2px solid #707070;
    border-radius: 5px;
}

.content-image.left {
    float: left;
    margin: 0 20px 20px 0;
}

/* Clear floats after subsections */
.subsection::after {
    content: "";
    display: table;
    clear: both;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.service-card {
    background: #444;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #707070;
    margin-bottom: 20px;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #285a86;
    box-shadow: 0 5px 15px rgba(40, 90, 134, 0.3);
}

.service-card i {
    font-size: 2.5rem;
    color: #285a86;
    margin-bottom: 15px;
}

.service-card h3 {
    color: #ddd;
    margin-bottom: 10px;
    font-size: 18px;
    font-family: "Roboto Slab", sans-serif;
    font-weight: 700;
}

.service-card p {
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

/* Contact Form Styles */
.contact-form {
    background: #444;
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #707070;
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #ddd;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: #333;
    border: 1px solid #707070;
    border-radius: 5px;
    color: #bbb;
    transition: border-color 0.3s ease;
    font-family: 'Open Sans', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #285a86;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: #285a86;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Open Sans', sans-serif;
}

.submit-btn:hover {
    background: #1a3d5c;
    transform: translateY(-2px);
}

/* Footer */
footer {
   /* width: 94%;*/
    padding: 3%;
    padding-bottom: 1%;
    padding-top: 1%;
    margin-top:20px;
    background-color: #333;
    border-top: 2px solid #707070;
    color: #bbb;
    text-align: center;
}

/* Mobile Responsive */
@media all and (max-width: 1024px) {
    #container {
        max-width: 95%;
        margin: 0 2.5%;
    }
    
    header {
        padding: 2%;
        width: 96%;
        min-height: 160px;
        padding-bottom: 50px;
    }
    
    header #title {
        font-size: 16px;
        margin: 0;
        text-align: center;
        width: 100%;
    }
    
    nav {
        width: 96%;
        padding: 0 2%;
    }
    
    nav ul li a {
        padding: 4px 15px;
        font-size: 14px;
    }
    
    section {
        padding-top: 20px;
    }
    
    section #content,
    section #content2 {
        width: 100%;
        padding: 2%;
        margin: 0 auto;
        border-radius: 12px;
    }
}

@media all and (max-width: 480px) {
    body {
        font-size: 13px;
        line-height: 20px;
    }

    #titlediv {
        text-align:left;
        font-weight:700;
    }
    
    #container {
        max-width: 100%;
        margin: 0;
    }
    
    header {
        padding: 10px 2%;
        width: 96%;
        background-size: contain;
        background-position: top center;
        min-height: 120px;
        padding-bottom: 80px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    header #title {
        font-size: 14px;
        margin: 0;
        text-align: center;
        width: 100%;
    }
    
    nav {
        width: 96%;
        padding: 5px 2%;
        position: relative;
    }
    
    .nav-toggle {
        display: block;
    }
    
    nav > ul {
        display: none;
        width: 100%;
        position: static;
        background: #202020;
    }
    
    /* Move hamburger menu to header area on mobile */
    .nav-toggle {
        position: absolute;
        top: -33px;
        right: 2%;
        z-index: 1001;
    }
    
    nav > ul.mobile-show {
        display: block;
    }
    
    nav > ul li {
        float: none;
        display: block;
        width: 100%;
        margin: 0;
        border-bottom: 1px solid #333;
    }
    
    nav > ul li a {
        padding: 12px 15px;
        font-size: 14px;
        color: #757575;
    }
    
    /* Disable hover on mobile */
    nav > ul li,
    nav > ul li:hover,
    nav ul li:hover,
    nav ul ul li:hover {
        background: transparent !important;
    }
    
    nav > ul li a,
    nav > ul li:hover a,
    nav ul li:hover a,
    nav ul ul li:hover a {
        color: inherit !important;
        text-decoration: none !important;
    }
    
    /* Show all dropdowns on mobile */
    nav ul ul,
    nav ul ul ul {
        position: static !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        box-shadow: none !important;
    }
    
    nav > ul li {
        background: #202020 !important;
    }
    
    nav > ul li a {
        color: #757575 !important;
        padding: 12px 15px !important;
        font-size: 14px !important;
    }
    
    nav ul ul {
        background: #202020 !important;
    }
    
    nav ul ul li {
        background: #202020 !important;
        border-bottom: 1px solid #333 !important;
    }
    
    nav ul ul li a {
        color: #757575 !important;
        padding: 10px 15px 10px 30px !important;
        font-size: 13px !important;
    }
    
    section {
        padding-top: 20px;
    }
    
    section #content,
    section #content2 {
        width: 94%;
        padding: 3% 20px;
        float: none;
        clear: both;
        margin: 0 auto;
        border-radius: 12px;
    }
    
    .content-image {
        max-width: 100%;
        width: 100%;
        height: auto;
        float: none;
        display: block;
        margin: 10px auto;
    }
    
    aside {
        width: 94%;
        padding: 3%;
        float: none;
        clear: both;
        position: relative;
        top: 0;
        right: 0;
        bottom: auto;
        margin-top: 20px;
        border-top: 3px solid #707070;
    }
    
    footer {
        /*width: 94%;*/
        padding: 3%;
        margin-top:20px;
    }
    
    h1 {
        font-size: 18px;
    }
    
    h2 {
        font-size: 16px;
    }
    
    h3 {
        font-size: 14px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}