/* 
  Value Education - Professional Design System
  Colors:
  - Primary: #1A2B4C (Deep Navy)
  - Secondary: #2D8B94 (Ocean Teal)
  - Accent: #D4AF37 (Harvest Gold)
  - Background: #F8FAFC
*/

:root {
    --primary: #1A2B4C;
    --primary-dark: #121E35;
    --secondary: #2D8B94;
    --accent: #D4AF37;
    --accent-hover: #B8962D;
    --text-dark: #1E293B;
    --text-light: #64748B;
    --white: #FFFFFF;
    --bg-light: #F1F5F9;
    --glass: rgba(255, 255, 255, 0.85);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow: 0 10px 30px -10px rgba(26, 43, 76, 0.1);
    --shadow-hover: 0 20px 50px -15px rgba(26, 43, 76, 0.25);
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

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

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary);
}

a {
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

section {
    padding: 100px 0;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* --- NAV BAR --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(15px);
    box-shadow: none;
    height: 80px;
    border: none;
    display: flex;
    align-items: center;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem; /* Slightly smaller base size */
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap; /* Prevent logo text from wrapping awkwardly */
}

.logo img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--primary);
    font-weight: 500;
    position: relative; /* Set as reference point for underline */
}

.nav-links a:hover, .nav-links a.active {
    color: var(--secondary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary); /* Changed from Accent to Secondary (Teal) */
    transition: var(--transition);
}

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

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    padding-top: 80px; /* Navbar height */
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(26, 43, 76, 0.75), rgba(45, 139, 148, 0.65)), 
                url('https://images.unsplash.com/photo-1516549655169-df83a0774514?auto=format&fit=crop&q=80&w=2070') no-repeat center center/cover;
    color: var(--white);
    position: relative;
    overflow: hidden;
    background-attachment: fixed;
}

.sub-hero {
    min-height: 60vh;
    padding-top: 100px; /* Extra space for navbar and aesthetic breathing room */
    background: var(--gradient);
    display: flex;
    align-items: flex-start; /* Changed from center to prevent overlap */
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.sub-hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.1;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero h1, .sub-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--white);
    line-height: 1.2;
}

.hero p, .sub-hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .hero h1, .sub-hero h1 {
        font-size: 2.2rem;
    }
    .hero p, .sub-hero p {
        font-size: 1.1rem;
    }
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* --- ABOUT SECTION --- */
.about {
    background: var(--white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section-header .divider {
    display: none; /* Removing the horizontal line divider */
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img {
    position: relative;
}

.about-img img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
}
/* Removed about-img::after yellow outline */

/* --- SERVICES SECTION --- */
.services {
    background: var(--bg-light);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- WHY CHOOSE US --- */
.why-us {
    background: var(--primary);
    color: var(--white);
}

.why-us h2 {
    color: var(--white);
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.benefit-item {
    display: flex;
    gap: 20px;
}

.benefit-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.5rem;
}

.benefit-content h4 {
    color: var(--white);
    margin-bottom: 10px;
}

.benefit-content p {
    opacity: 0.8;
}

/* --- CONTACT SECTION --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info {
    padding: 40px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.info-item i {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-top: 5px;
}

.contact-form {
    padding: 40px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--secondary);
}

/* --- FOOTER --- */
footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 25px;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- MOBILE RESPONSIVE --- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    z-index: 1001;
}

.nav-btns {
    display: flex;
    align-items: center;
    gap: 15px;
}

@media (max-width: 992px) {
    .grid-2, .contact-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
    .about-img::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: transform 0.4s ease-in-out;
        transform: translateX(100%); /* Use transform for better performance and to avoid overflow */
        z-index: 1000;
        gap: 20px;
        visibility: hidden; /* Hide from screen readers when inactive */
    }

    .nav-links.active {
        transform: translateX(0);
        visibility: visible;
    }

    .nav-cta {
        display: none; /* Hide on mobile to focus on hamburger or use it in menu */
    }

    .logo {
        font-size: 1rem; /* Smaller font on mobile */
        gap: 5px;
    }

    .logo img {
        height: 30px !important; /* Even smaller logo for mobile */
    }

    .nav-links li a {
        font-size: 1.5rem;
        font-weight: 700;
    }

    .hero h1 {
        font-size: 2rem; /* Scaled down hero text */
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .hero-btns .btn {
        width: 100%;
    }

    .benefit-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 50px 0; /* Reduced vertical padding */
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 1.25rem;
    }

    .contact-grid {
        grid-template-columns: 1fr !important; /* Force single column on mobile */
        gap: 30px;
    }

    .contact-info, .contact-form {
        padding: 20px;
    }

    /* Fix for the overlapping badge causing horizontal scroll */
    .brand-badge {
        position: relative !important; /* Don't overlap on mobile */
        right: auto !important;
        bottom: auto !important;
        margin: 20px auto 0 !important;
        width: 100px !important;
        height: 100px !important;
        box-shadow: var(--shadow) !important;
    }

    .brand-badge img {
        width: 60px !important;
    }
}
