/* General Body & Typography */
:root {
    --primary-color: #E25822; /* A strong orange, similar to Phela Group logo */
    --secondary-color: #007bff; /* A professional blue, similar to Phela Group logo */
    --dark-bg: #2a3b4c; /* Dark charcoal/navy for sections */
    --light-bg: #f8f9fa; /* Off-white for light sections */
    --text-color-dark: #333;
    --text-color-light: #f8f9fa;
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Open Sans', sans-serif;
    --border-radius: 8px;
    --transition-speed: 0.3s ease-in-out;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--text-color-dark);
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--text-color-dark);
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.8em; font-weight: 700; }
h2 { font-size: 2.2em; font-weight: 600; }
h3 { font-size: 1.6em; font-weight: 600; }

p {
    margin-bottom: 1em;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--secondary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.bg-dark-alt {
    background-color: var(--dark-bg);
    color: var(--text-color-light);
}

.bg-light-alt {
    background-color: var(--light-bg);
    color: var(--text-color-dark);
}

.bg-dark-alt h1, .bg-dark-alt h2, .bg-dark-alt h3 {
    color: var(--text-color-light);
}

.highlight-orange {
    color: var(--primary-color);
}

.highlight-green {
    color: var(--secondary-color); /* Using secondary color for "green" highlight effect */
}

.section-subtitle {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 600;
    transition: all var(--transition-speed);
    cursor: pointer;
    border: none;
    font-size: 1em;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background-color: #c94c1d; /* Slightly darker orange */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
    margin-left: 15px;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Header & Navigation */
.main-header {
    background-color: rgba(42, 59, 76, 0.95); /* Dark background with slight transparency */
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; /* Ensure navbar takes full width of its container */
}

.logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0; /* Prevent logo from shrinking too much */
}

.logo-img {
    height: 50px; /* Adjust as needed for actual logo */
    width: auto;
    max-width: 100%; /* Ensure logo scales down within its container */
    transition: transform var(--transition-speed);
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-item {
    margin-left: 30px;
}

.nav-link {
    color: var(--text-color-light);
    font-weight: 500;
    font-size: 1.05em;
    padding: 5px 0;
    position: relative;
    transition: color var(--transition-speed);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none; /* Hidden by default */
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background-color: var(--text-color-light);
    margin-bottom: 5px;
    border-radius: 5px;
    transition: all var(--transition-speed);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh; /* Changed to 100vh for full screen */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Darker overlay for text readability */
    z-index: -1;
}

.hero-content {
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Adds a subtle shadow for better contrast */
}

.hero-description-text {
    font-size: 1.3em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-button-group .btn {
    margin-right: 15px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.about-content {
    text-align: center;
}

.about-content h2 {
    margin-bottom: 20px;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Services/Offerings Grid */
.services-grid, .process-grid, .benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card, .process-step, .benefit-item {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    cursor: pointer; /* Make service cards clickable */
}

.bg-dark-alt .service-card, .bg-dark-alt .process-step, .bg-dark-alt .benefit-item {
    background-color: #3b4d5e; /* Slightly lighter dark background for cards */
    color: var(--text-color-light);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.bg-dark-alt .service-card h3, .bg-dark-alt .process-step h3, .bg-dark-alt .benefit-item h3 {
    color: var(--text-color-light);
}

.service-card:hover, .process-step:hover, .benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-icon, .step-icon, .benefit-icon {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.bg-dark-alt .card-icon, .bg-dark-alt .step-icon, .bg-dark-alt .benefit-icon {
    color: var(--secondary-color); /* Use secondary color for icons on dark background */
}

.service-card h3, .process-step h3, .benefit-item h3 {
    margin-bottom: 10px;
    font-size: 1.4em;
}

.learn-more-btn {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 2px;
}

.learn-more-btn::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.learn-more-btn:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}


/* Modals */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.7); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 30px;
    border-radius: var(--border-radius);
    max-width: 800px;
    width: 90%;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    color: var(--text-color-dark);
    transform: translateY(-50px);
    transition: transform 0.3s ease-in-out;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-content h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.modal-content p {
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 15px;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}


/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
}

.contact-info, .contact-form {
    background-color: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
}

.bg-dark-alt .contact-info, .bg-dark-alt .contact-form {
    background-color: #3b4d5e;
    color: var(--text-color-light);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.bg-dark-alt .contact-info h3, .bg-dark-alt .contact-form h3 {
    color: var(--text-color-light);
}

.contact-info ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.contact-info ul li {
    margin-bottom: 15px;
    font-size: 1.1em;
    display: flex;
    align-items: center;
}

.contact-info ul li i {
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 1.2em;
}

.bg-dark-alt .contact-info ul li i {
    color: var(--secondary-color);
}

.contact-info a {
    color: inherit;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 1.2em;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.social-icon:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.bg-dark-alt .social-icon {
    background-color: var(--secondary-color);
}

.bg-dark-alt .social-icon:hover {
    background-color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--body-font);
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color var(--transition-speed);
    background-color: #f0f0f0;
    color: var(--text-color-dark);
}

.bg-dark-alt .form-group input,
.bg-dark-alt .form-group textarea {
    background-color: #4a5d6e;
    border-color: #5a6d7e;
    color: var(--text-color-light);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #888;
}

.bg-dark-alt .form-group input::placeholder,
.bg-dark-alt .form-group textarea::placeholder {
    color: #bbb;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-color), 0.2);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.form-submit-btn {
    width: 100%;
}

/* Footer */
.main-footer {
    background-color: var(--dark-bg);
    color: var(--text-color-light);
    padding: 60px 0 20px;
    font-size: 0.95em;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col {
    text-align: left;
}

.footer-logo {
    height: 40px; /* Adjust as needed */
    width: auto;
    margin-bottom: 15px;
}

.footer-tagline {
    opacity: 0.8;
}

.footer-col h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.2em;
}

.footer-links, .footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li, .footer-contact li {
    margin-bottom: 10px;
}

.footer-links a, .footer-contact a {
    color: var(--text-color-light);
    opacity: 0.8;
    transition: opacity var(--transition-speed);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer-contact li i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 20px;
    opacity: 0.7;
}

/* Fade-in Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3em;
    }
    h1 { font-size: 2.5em; }
    h2 { font-size: 2em; }
    h3 { font-size: 1.5em; }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: rgba(42, 59, 76, 0.98);
        position: absolute;
        top: 80px; /* Height of header */
        left: 0;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
    }

    .nav-item {
        margin: 15px 0;
    }

    .nav-link {
        font-size: 1.2em;
        padding: 10px 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-button-group {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-button-group .btn {
        margin: 10px 0;
        width: 80%;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-content, .contact-info, .contact-form, .footer-col {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
    
    .footer-col:first-child {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-description-text {
        font-size: 1.1em;
    }

    .desktop-image {
        display: none;
    }

    .mobile-image {
        display: block;
    }

    .services-grid, .process-grid, .benefits-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    /* Specific adjustments for header on smaller mobile screens */
    .main-header .container {
        padding: 0 10px; /* Reduce horizontal padding for very small screens */
    }

    .logo-img {
        max-height: 40px; /* Make logo slightly smaller on mobile */
        width: auto;
        max-width: 60%; /* Ensure logo doesn't take up too much width */
    }
}

@media (min-width: 769px) {
    .mobile-image {
        display: none;
    }
    .desktop-image {
        display: block;
    }

    .about-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-content {
        text-align: left;
    }

    .contact-grid {
        grid-template-columns: 1fr 1.5fr;
    }

    .contact-info {
        text-align: left;
    }

    .footer-col {
        text-align: left;
    }
}
.main-footer .footer-logo {
    max-width: 150px; /* Adjust this value to your desired smaller size */
    height: auto;    /* Ensures the image maintains its aspect ratio */
}

/* You might also want to adjust padding or margins around the logo */
.main-footer .footer-col {
    padding-bottom: 20px; /* Example: Adjust spacing if needed */
}