/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.6;
    color: #2E2E2E;
    background-color: #F9F9F9;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    font-weight: 300;
}

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

/* Header */
.header {
    background: rgba(249, 249, 249, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(46, 46, 46, 0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo-image {
    height: 80px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #2E2E2E;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #7A1E1E;
}

.cta-nav {
    background: #7A1E1E;
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.cta-nav:hover {
    background: #5a1616 !important;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    background: none;
    border: none;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #2E2E2E;
    transition: 0.3s;
}

/* Mobile Menu States */
.nav {
    position: relative;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.nav-links.mobile-active {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(249, 249, 249, 0.98);
    backdrop-filter: blur(10px);
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    gap: 1rem;
    z-index: 999;
    border-top: 1px solid rgba(46, 46, 46, 0.1);
}

.nav-links.mobile-active a {
    padding: 0.75rem 0;
    text-align: center;
    border-bottom: 1px solid rgba(46, 46, 46, 0.1);
}

.nav-links.mobile-active a:last-child {
    border-bottom: none;
}

/* Sticky CTA */
.sticky-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    display: none;
}

.sticky-cta.show {
    display: block;
}

.sticky-cta button {
    background: #7A1E1E;
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(122, 30, 30, 0.3);
    transition: all 0.3s ease;
}

.sticky-cta button:hover {
    background: #5a1616;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(122, 30, 30, 0.4);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #F9F9F9 0%, #ffffff 100%);
    padding: 8rem 0 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    color: #2E2E2E;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #005B73;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-cta {
    margin-top: 2rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    position: relative;
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 91, 115, 0.15);
}

.building-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/9;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 2rem 1.5rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.compliance-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(122, 30, 30, 0.9);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-icon {
    font-size: 1.1rem;
}

.badge-text {
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.cta-button.primary {
    background: #7A1E1E;
    color: white;
}

.cta-button.primary:hover {
    background: #5a1616;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(122, 30, 30, 0.3);
}

/* Sections */
section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: #2E2E2E;
}

.section-header p {
    font-size: 1.2rem;
    color: #005B73;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: #F9F9F9;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 91, 115, 0.1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 91, 115, 0.1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.service-card h3 {
    color: #7A1E1E;
    margin-bottom: 1rem;
}

.service-card p {
    color: #2E2E2E;
    font-size: 0.95rem;
}

/* Why Us Section */
.why-us {
    background: linear-gradient(135deg, #005B73 0%, #004a5c 100%);
    color: white;
}

.why-us .section-header h2,
.why-us .section-header p {
    color: white;
}

.value-props {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.value-prop {
    text-align: center;
}

.prop-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.value-prop h3 {
    color: #F9F9F9;
    margin-bottom: 1rem;
}

.value-prop p {
    color: rgba(249, 249, 249, 0.9);
}

/* Testimonials Section */
.testimonials {
    background: white;
}

.testimonials-carousel {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-container {
    position: relative;
    min-height: 200px;
}

.testimonial {
    display: none;
    text-align: center;
    padding: 2rem;
}

.testimonial.active {
    display: block;
}

.testimonial-content p {
    font-size: 1.25rem;
    font-style: italic;
    color: #2E2E2E;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.testimonial-author strong {
    color: #7A1E1E;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.testimonial-author span {
    color: #005B73;
    font-size: 0.9rem;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.carousel-btn {
    background: #7A1E1E;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

.carousel-btn:hover {
    background: #5a1616;
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(122, 30, 30, 0.3);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background: #7A1E1E;
}

/* Contact Section */
.contact {
    background: #F9F9F9;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    color: #2E2E2E;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #005B73;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-icon {
    font-size: 1.2rem;
}

.contact-form-container {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #2E2E2E;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 2px solid rgba(0, 91, 115, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #005B73;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #2E2E2E;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    color: rgba(249, 249, 249, 0.8);
    margin-top: 1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-section h4 {
    color: #7A1E1E;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(249, 249, 249, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(249, 249, 249, 0.2);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: rgba(249, 249, 249, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-legal a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .nav {
        padding: 1rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero {
        padding: 6rem 0 2rem;
        min-height: auto;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .value-props {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form-container {
        padding: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .carousel-nav {
        gap: 1rem;
    }

    .sticky-cta {
        bottom: 1rem;
        right: 1rem;
    }

    .sticky-cta button {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-image {
        max-width: 100%;
        margin: 0 auto;
    }

    .image-overlay {
        padding: 1.5rem 1rem 1rem;
    }

    .compliance-badge {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .badge-text {
        display: none;
    }

    .badge-icon {
        font-size: 1.2rem;
    }

    .service-card,
    .contact-form-container {
        padding: 1.5rem;
    }

    .cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}


/* Animation Utility Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure content is visible by default */
.hero-content,
.service-card,
.value-prop,
.testimonial,
.contact-info,
.contact-form-container,
.hero-image {
    opacity: 1;
    transform: none;
}

/* Apply animations only when explicitly triggered */
.hero-content.animated,
.service-card.animated,
.value-prop.animated,
.testimonial.animated {
    animation: fadeInUp 0.6s ease-out;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 100px;
    right: 2rem;
    background: #3B82F6;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-success {
    background: #10B981;
}

.notification-error {
    background: #EF4444;
}

.notification-info {
    background: #3B82F6;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.notification-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.notification-message {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: auto;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Animation and Loading States */
.loading-animation {
    animation: pulse 1s infinite;
}

.bounce-animation {
    animation: bounceIn 0.6s ease-out;
}

.spinner {
    animation: spin 1s linear infinite;
}

/* Interactive Elements */
.interactive-hover:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.clickable:hover {
    opacity: 0.8;
}

/* Accessibility: Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .scroll-progress-fill {
        transition: none;
    }
    
    .notification {
        animation: none;
    }
    
    /* Ensure all animated elements remain visible */
    .animate-on-scroll,
    .hero-content,
    .service-card,
    .value-prop,
    .testimonial,
    .contact-info,
    .contact-form-container,
    .hero-image {
        opacity: 1 !important;
        transform: none !important;
    }
    
    /* Disable all transform animations */
    .interactive-hover:hover {
        transform: none !important;
    }
}

/* Intro Section */
.intro-section {
    background: #F9F9F9;
    padding: 3rem 0;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #2E2E2E;
}

/* Featured Service Card */
.service-card.featured {
    border: 2px solid #7A1E1E;
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(122, 30, 30, 0.2);
}

.service-card.featured h3 {
    color: #7A1E1E;
    font-size: 1.4rem;
}

/* FAQ Section */
.faq-section {
    background: white;
    padding: 4rem 0;
}

.faq-grid {
    display: grid;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #F9F9F9;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #7A1E1E;
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 91, 115, 0.1);
}

.faq-question {
    color: #2E2E2E;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.faq-answer {
    color: #005B73;
    line-height: 1.6;
    margin-bottom: 0;
}

/* SEO Page Responsive */
@media (max-width: 768px) {
    .intro-section {
        padding: 2rem 0;
    }
    
    .intro-text {
        font-size: 1rem;
    }
    
    .faq-section {
        padding: 3rem 0;
    }
    
    .faq-item {
        padding: 1.5rem;
    }
    
    .faq-question {
        font-size: 1.1rem;
    }
    
    .service-card.featured {
        transform: none;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-2 {
    margin-top: 2rem;
}

.hidden {
    display: none;
}