/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #c62828;
    --accent: #0b3550;
    --background: #ffffff;
    --text-dark: #0b2130;
    --text-muted: #6b7680;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --scroll-gap: 20px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background: #f8f9fa;
}

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: #a52222;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* Hero */
.hero {
    height: 100vh;
    min-height: 720px;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('images/HHero.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
    transform: skewX(-2deg);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Header */
.site-header {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    transition: color 0.3s ease;
    text-decoration: none;
}

.logo:hover {
    color: var(--primary);
}

.main-nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

.main-nav a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    z-index: 1001;
}

.mobile-menu-toggle:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: var(--white);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-dark);
    z-index: 9999;
    box-shadow: -2px 0 10px rgba(0,0,0,0.15);
    transition: right 0.35s ease-in-out;
    display: flex;
    flex-direction: column;
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mobile-nav-header {
    padding: 20px;
    background: var(--accent);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav-header .logo {
    color: var(--white);
    font-size: 20px;
}

.mobile-nav__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: var(--text-dark);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: color 0.3s ease;
}

.mobile-nav__close:hover {
    color: var(--primary);
}

.mobile-nav__close:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.mobile-nav__list {
    list-style: none;
    padding: 80px 0 20px;
    margin: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.mobile-nav__link {
    display: block;
    padding: 18px 24px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1.1rem;
    border-bottom: 1px solid #000000;
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Montserrat', system-ui, sans-serif;
}

.mobile-nav__link:hover,
.mobile-nav__link:focus {
    background: rgba(198, 40, 40, 0.1);
    color: var(--primary);
    transform: translateX(8px);
}

.mobile-nav__link::after {
    content: '→';
    position: absolute;
    right: 24px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(5px);
}

.mobile-nav__link:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.mobile-nav-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.1);
    background: rgba(0,0,0,0.02);
}

.mobile-nav__cta {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.mobile-nav__cta:hover {
    background: #a52222;
}

/* Services Intro */
.services-intro {
    padding: 80px 0 40px;
    background: #f8f9fa;
}

.intro-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent);
    text-align: center;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 0;
    text-align: center;
}

/* Services Grid */
.services-section {
    padding: 60px 0 80px;
    background: #f8f9fa;
}

.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: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--primary);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(198, 40, 40, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--primary);
    font-size: 24px;
    font-weight: bold;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--accent);
}

.service-card p {
    margin-bottom: 25px;
    color: var(--text-muted);
}

.service-features {
    list-style: none;
    text-align: left;
    margin: 20px 0;
    padding-left: 0;
}

.service-features li {
    padding: 8px 0 8px 30px;
    position: relative;
    color: var(--text-muted);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Process Section */
.process-section {
    padding: 80px 0;
    background: var(--white);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.process-step {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 auto 20px;
}

.process-step h3 {
    margin-bottom: 15px;
    color: var(--accent);
}

.process-step p {
    color: var(--text-muted);
}

/* Services CTA */
.services-cta {
    padding: 100px 0;
    background: linear-gradient(rgba(11, 53, 80, 0.9), rgba(11, 53, 80, 0.9)), url('images/secondary-cta-placeholder.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
    color: var(--white);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    min-width: 180px;
}

/* Footer */
.footer {
    background: var(--accent);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.footer-info p {
    margin-bottom: 10px;
}

.footer-links h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-social h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: var(--scroll-gap);
    right: var(--scroll-gap);
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 180ms ease, transform 180ms ease;
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.scroll-top:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-top svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.scroll-top:hover svg {
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .process-steps {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-info,
    .footer-links,
    .footer-social {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .cta-content p {
        font-size: 1.1rem;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .service-card,
    .process-step,
    .scroll-top {
        transition: none;
    }

    .mobile-nav {
        transition: none;
    }
}