/* CSS Variables */
:root {
    /* Colors inspired by the logo (Approximations based on description: Dark Blue, Grey) */
    --primary-color: #1a3c6e;
    /* Dark Blue */
    --secondary-color: #6c757d;
    /* Grey */
    --accent-color: #00b4d8;
    /* Brighter Blue for accents */
    --bg-light: #f8f9fa;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn-primary,
.btn-primary-small,
.btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-left: 10px;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary-small {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-primary-small:hover {
    opacity: 0.9;
}

.block-btn {
    width: 100%;
    margin-top: 10px;
}

/* Typography */
h1,
h2,
h3 {
    color: var(--primary-color);
    font-weight: 700;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.section {
    padding: 80px 0;
}

/* Navigation */
.navbar {
    background-color: rgba(108, 117, 125, 0.63);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 50px;
    /* Adjust based on actual logo ratio */
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links li a {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 90vh;
    /* Almost full height */
    min-height: 600px;
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6)), url('https://images.unsplash.com/photo-1581578731117-104f2a41d95e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    /* Placeholder hero image */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 40px;
}

/* Services Section */
.services-section {
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
}

.icon-box {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.service-card p {
    color: var(--text-light);
}

/* Gallery Section */
.gallery-section {
    background-color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    height: 250px;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* About Section */
.about-section {
    background-color: var(--bg-light);
}

.about-content {
    text-align: center;
    max-width: 800px;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, var(--primary-color), #2d4f85);
    color: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-info h2 {
    color: var(--white);
    margin-bottom: 15px;
    text-align: left;
}

.contact-info p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.contact-details li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.quote-form {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: var(--text-dark);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Form Required Asterisk */
.required {
    color: #dc3545;
    /* Red color for asterisk */
    margin-left: 4px;
}

/* Detailed Form Styling */
.quote-form-detailed {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: var(--text-dark);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 5px;
}

.radio-group label,
.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    font-weight: 400;
}

.checkbox-group label {
    flex-basis: 45%;
    /* 2 columns for checkboxes */
}

.form-group input[type="radio"],
.form-group input[type="checkbox"] {
    width: auto;
    /* Reset width for radios/checks */
    margin: 0;
}

/* Footer */
footer {
    background-color: #111;
    color: #888;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: #fff;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Mobile menu needed */
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-info {
        text-align: center;
    }

    .contact-info h2 {
        text-align: center;
    }

    .contact-details {
        display: inline-block;
        text-align: left;
    }
}

/* Range Slider */
.range-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.range-container input[type="range"] {
    width: 100%;
}

/* PORTAL STYLES */
.portal-body {
    background-color: #f0f2f5;
    min-height: 100vh;
}

.portal-container {
    padding-top: 50px;
    min-height: calc(100vh - 80px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.portal-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

/* Login Card */
.login-card {
    width: 100%;
    max-width: 400px;
    text-align: center;
    margin-top: 50px;
}

.login-card h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.login-card form {
    text-align: left;
    margin-top: 20px;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
}

.balance-box {
    background: #fff0f0;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ffccd0;
    margin-top: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.job-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
}

.job-date {
    background: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 8px;
    text-align: center;
    line-height: 1.2;
}

.job-date span {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
}

.job-details {
    flex: 1;
}

.job-actions button {
    margin-left: 5px;
}

.btn-danger-link {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 1.2rem;
}

.star-rating {
    font-size: 1.5rem;
    color: #ffd700;
    margin: 10px 0;
    cursor: pointer;
}
