/* Heroic Heights - Stylesheet */

/* Color Scheme - Red, White, Blue */
:root {
    --primary-blue: #002868;
    --secondary-blue: #0047ab;
    --accent-red: #bf0a30;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --text-dark: #1a1a1a;
    --text-light: #4a5568;
    --border-color: #e2e8f0;
}

/* Reset and Base Styles */
* {
    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-dark);
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
nav {
    background: var(--primary-blue);
    color: var(--white);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Text Link in Navbar */
.logo-text-link {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    transition: color 0.3s ease, transform 0.3s ease;
}

.logo-text-link:hover {
    color: var(--accent-red);
    transform: scale(1.05);
}

nav .nav-menu {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

nav .nav-menu li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: color 0.3s ease;
    position: relative;
}

nav .nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-red);
    transition: width 0.3s ease;
}

nav .nav-menu li a:hover {
    color: var(--accent-red);
}

nav .nav-menu li a:hover::after {
    width: 100%;
}

nav .nav-menu li a.active {
    color: var(--accent-red);
}

nav .nav-menu li a.active::after {
    width: 100%;
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: 0.3s;
}

/* Page Header for Separate Pages */
.page-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 120px 2rem 60px;
    text-align: center;
    margin-top: 60px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--white);
    margin-top: 3rem;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.cta-section h2 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 50%, var(--accent-red) 100%);
    color: var(--white);
    padding: 75px 2rem 60px;
    text-align: center;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

/* Large Hero Logo */
.hero-logo {
    max-width: 250px;
    width: 75%;
    height: auto;
    margin: 0 auto 0.8rem;
    filter: drop-shadow(4px 4px 15px rgba(0, 0, 0, 0.7));
    transition: transform 0.3s ease, filter 0.3s ease;
    animation: fadeInScale 1s ease-out;
}

.hero-logo:hover {
    transform: scale(1.08);
    filter: drop-shadow(6px 6px 25px rgba(255, 255, 255, 0.5)) brightness(1.15);
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--light-gray);
}

.hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 1.8rem;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: var(--accent-red);
    color: var(--white);
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(191, 10, 48, 0.3);
}

.cta-button:hover {
    background: #a00828;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(191, 10, 48, 0.4);
}

/* Section Styles */
section {
    padding: 80px 2rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* Services Section */
.services {
    background: var(--light-gray);
}

.service-category {
    margin-bottom: 4rem;
}

.service-category:last-child {
    margin-bottom: 0;
}

.service-category h3,
.service-category h2 {
    font-size: 2rem;
    color: var(--accent-red);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-blue);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-top-color: var(--accent-red);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h4,
.service-card h3 {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* About Section */
.about {
    background: var(--white);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text h3,
.about-text h2 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.about-text h3:first-child,
.about-text h2:first-child {
    margin-top: 0;
}

.about-text p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.value-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 8px;
    border: 2px solid var(--primary-blue);
}

.value-item h4 {
    font-size: 1.3rem;
    color: var(--accent-red);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.value-item p {
    color: var(--text-light);
    font-size: 1rem;
    margin: 0;
}

.why-choose-list {
    list-style: none;
    margin-top: 1.5rem;
}

.why-choose-list li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    color: var(--text-light);
    font-size: 1.05rem;
    position: relative;
}

.why-choose-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-red);
    font-weight: bold;
    font-size: 1.3rem;
}

/* Contact Section */
.contact {
    background: var(--light-gray);
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.contact-form h2,
.contact-info h2 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-blue);
}

.form-group textarea {
    resize: vertical;
}

.submit-button {
    width: 100%;
    background: var(--accent-red);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: #a00828;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(191, 10, 48, 0.3);
}

.submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    display: none;
    text-align: center;
    font-weight: 500;
}

.form-status.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-red);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.info-item h4 {
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.info-item p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Footer */
.footer {
    background: var(--primary-blue);
    color: var(--white);
    text-align: center;
    padding: 2rem;
}

.footer p {
    margin: 0.3rem 0;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav .nav-menu {
        position: absolute;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--primary-blue);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 0;
    }

    nav .nav-menu.active {
        left: 0;
    }

    nav .nav-menu li {
        padding: 1rem 0;
    }

    /* Logo adjustments for mobile */
    .logo-text-link {
        font-size: 1.5rem;
    }

    .hero-logo {
        max-width: 280px;
    }

    .hero {
        padding: 65px 1.5rem 45px;
    }

    .page-header {
        padding: 100px 1.5rem 50px;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .service-cards {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    /* Logo even smaller on very small screens */
    .logo-text-link {
        font-size: 1.3rem;
    }

    .hero-logo {
        max-width: 240px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .service-card {
        padding: 1.5rem;
    }
}