/* --- Global Styles --- */
:root {
    --primary-color: #ff5e13;
    --text-color: #333;
    --heading-color: #212529;
    --background-color: #f8f9fa;
    --light-gray: #e9ecef;
    --border-color: #ced4da;
    --box-shadow: 0 4px 6px rgba(0,0,0,0.08);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    margin-top: 0;
    font-weight: 600;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

/* --- Floating Enquiry Button --- */
.enquiry-button {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
    font-weight: bold;
    z-index: 999;
    text-align: center;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .enquiry-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
}

/* --- Enquiry Form Modal (Popup) --- */
.enquiry-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1002;
    display: none;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1rem;
    width: 90%;
}

.enquiry-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1001;
    display: none;
}

.modal-content {
    background-color: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 450px;
    margin: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.close-button {
    font-size: 1.5rem;
    color: #aaa;
    cursor: pointer;
    background: none;
    border: none;
}

.close-button:hover {
    color: #555;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.modal-content .form-group {
    margin-bottom: 0;
}

.modal-content .form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.modal-content .form-group input,
.modal-content .form-group textarea,
.modal-content .form-group select {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 0.9rem;
}

.modal-content textarea {
    height: 80px;
    min-height: 80px;
    resize: vertical;
}

.modal-content .btn-primary {
    background-color: #28a745;
    border-color: #28a745;
    width: 100%;
    font-size: 1rem;
    padding: 0.75rem;
    margin-top: 1rem;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.modal-content .btn-primary:hover {
    background-color: #218838;
    border-color: #218838;
}

/* --- Navigation Bar --- */
.navbar {
    background: #fff;
    padding: 0.7rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 5px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 600;
}

.logo img {
    height: 48px;
    width: auto;
    margin-right: 12px;
    vertical-align: middle;
}

.logo-text {
    font-size: 1.5rem;
    color: var(--heading-color);
    font-weight: 500;
    position: relative;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #e04b0a;
    transform: translateY(-2px);
}

/* --- Hero Section - Slider Specific Styles --- */
.hero {
    position: relative;
    width: 100%;
    height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-image-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-image.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    margin-bottom: 2rem;
}

/* --- Section Layouts --- */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    font-size: 2.2rem;
    font-weight: bold;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.grid-item h3 {
    margin-top: 1rem;
    font-size: 1.3rem;
}

/* Service Images */
.service-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
}

/* --- Partners Section --- */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.partner-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.partner-item a {
    display: block;
    height: 120px;
    width: 100%;
    max-width: 200px;
    margin-bottom: 1rem;
}

.partner-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

.partner-logo:hover {
    transform: scale(1.1);
}

.partner-item p {
    font-size: 0.9rem;
    color: var(--text-color);
    margin: 0;
}

/* --- About Section Styles --- */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.about-text-block h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.team-title {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    text-align: center;
}

.team-member {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.team-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 3px solid var(--primary-color);
    margin-bottom: 1rem;
}

.team-title-text {
    font-weight: bold;
    color: var(--primary-color);
    margin-top: -0.5rem;
}

/* --- Contact Section Styles --- */
.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--heading-color);
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 94, 19, 0.25);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.map-container {
    margin-top: 3rem;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

/* --- Footer --- */
footer {
    background: #212529;
    color: #f8f9fa;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    /* Mobile menu */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background-color: white;
        width: 80%;
        height: calc(100vh - 70px);
        box-shadow: -5px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        padding: 2rem;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 1rem 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        padding: 0.5rem 0;
        font-size: 1.1rem;
    }
    
    /* Hero section */
    .hero {
        height: 60vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    /* Sections */
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    /* Grid layouts */
    .grid-container,
    .partners-grid,
    .about-content,
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    /* Forms */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Modal */
    .enquiry-modal {
        padding: 0.5rem;
        width: 95%;
    }
    
    .modal-content {
        padding: 1rem;
    }
    
    .modal-content textarea {
        height: 80px;
        min-height: 80px;
    }
    
    /* Map */
    .map-container {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .logo img {
        height: 40px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .hero {
        height: 50vh;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .grid-item,
    .team-member {
        padding: 1rem;
    }
    
    .service-image {
        height: 200px;
    }
    
    .team-image {
        width: 120px;
        height: 120px;
    }
    
    .map-container {
        height: 250px;
    }
}