/*******************************************************************************************************/
/* ROOT VARIABLES & GLOBAL RESETS */
/*******************************************************************************************************/

:root {
    --primary-color: #445a76;
    --primary-dark: #334461;
    --primary-darker: #1e2a3a;
    --accent-color: #ff6b35;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --gray: #6c757d;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

/* Ensure all elements inherit Open Sans */
h1, h2, h3, h4, h5, h6,
button, input, select, textarea {
    font-family: 'Open Sans', sans-serif;
}

/* Override for specific headings */
.hero-text h1,
.hero-text p,
.about-content h2,
.services h2,
.service-card h3,
.page-header h1 {
    font-family: 'Inter', sans-serif;
}

.grecaptcha-badge {
    visibility: hidden !important;
}





/*******************************************************************************************************/
/* LAYOUT & CONTAINERS */
/*******************************************************************************************************/

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px; /* Slightly reduce padding on very small screens */
    }
}

main {
    margin-top: calc(-90vh + 300px); /* Overlay content on header image */
    position: relative;
    z-index: 10;
}

@media (min-height: 900px) {
    main {
        margin-top: -600px;
    }
}

@media (max-height: 800px) {
    main {
        margin-top: -500px;
    }
}

@media (max-width: 768px) {
    main {
        margin-top: calc(-80vh + 300px); /* Adjusted for new hero padding */
    }
    @media (min-height: 700px) {
        main {
            margin-top: -400px;
        }
    }
}

@media (max-width: 480px) {
    main {
        margin-top: calc(-75vh + 320px); /* Adjusted for new hero padding */
    }
    @media (min-height: 600px) {
        main {
            margin-top: -330px;
        }
    }
}

@media (max-width: 375px) {
    main {
        margin-top: calc(-75vh + 350px); /* Extra adjustment for very small screens */
    }
}

@media (min-height: 1200px) {
    main {
        margin-top: -750px;
    }
}





/*******************************************************************************************************/
/* HEADER & NAVIGATION */
/*******************************************************************************************************/

/* Header Styles */
.header-with-image {
    background-image: url('/Images/background-2.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    height: 90vh;
    min-height: 800px;
    max-height: 1100px;
    position: relative;
    overflow: hidden;
    width: 100%;
}
    .header-with-image::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: transparent;
        z-index: 1;
    }

/* Mobile adjustments for header background */
@media (max-width: 768px) {
    .header-with-image {
        min-height: 600px;
        background-position: center 10%; /* Show faces at top of viewport */
    }
}

@media (max-width: 480px) {
    .header-with-image {
        min-height: 650px; /* Increased to accommodate pushed-down content */
        height: 90vh; /* Increased from 80vh */
        background-position: center 5%; /* Show faces clearly at the very top */
    }
}

/* Portrait orientation adjustments */
@media (max-width: 480px) and (orientation: portrait) {
    .header-with-image {
        background-position: center top; /* Faces at the very top for portrait mode */
        background-size: cover;
    }
}

/* Landscape orientation adjustments for mobile */
@media (max-width: 768px) and (orientation: landscape) and (max-height: 500px) {
    .hero {
        padding: 200px 0 40px 0; /* Less padding needed in landscape */
    }
    
    .header-with-image {
        background-position: center 10%;
        min-height: 400px;
        height: 100vh;
    }
}

/* Navigation Styles */
.main-nav {
    background: transparent;
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    filter: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}
    .header-with-image .main-nav {
        z-index: 2;
    }
    /* For pages without header image, make nav sticky */
    body:not(.has-header-image) .main-nav {
        position: sticky;
        top: 0;
        background: transparent;
        background-color: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
        filter: none;
    }
    body:not(.has-header-image) .nav-menu a {
        color: var(--white);
        text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
        font-size: 18px;
    }
    body:not(.has-header-image) .nav-menu a:hover {
        color: #f0f0f0;
    }
    body:not(.has-header-image) .nav-menu .btn-quote {
        font-size: 16px;
    }
    body:not(.has-header-image) .logo img {
        filter: drop-shadow(1px 1px 3px rgba(0,0,0,0.5));
        height: 90px;
    }
    body:not(.has-header-image) .nav-toggle-label span,
    body:not(.has-header-image) .nav-toggle-label span::before,
    body:not(.has-header-image) .nav-toggle-label span::after {
        background-color: var(--white);
    }
    body:not(.has-header-image) .nav-wrapper {
        padding: 2.5rem 0;
    }
    body:not(.has-header-image) .nav-toggle-label:hover {
        background-color: transparent;
    }

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 0;
    background: transparent;
    background-color: transparent;
}

.logo img {
    height: 90px;
    width: auto;
    display: block;
    transition: opacity 0.3s;
    filter: drop-shadow(1px 1px 3px rgba(0,0,0,0.5));
}
.logo a {
    display: inline-block;
}
    .logo a:hover img {
        opacity: 0.8;
    }

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
    .nav-menu li {
        margin-left: 30px;
    }
    .nav-menu a {
        color: var(--white);
        text-decoration: none;
        font-weight: 600;
        font-size: 20px;
        transition: color 0.3s;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    }
    .nav-menu a:hover {
        color: #f0f0f0;
    }
    /* Request a Quote button in navigation */
    .nav-menu .btn-quote {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
        color: var(--white) !important;
        padding: 10px 20px;
        border-radius: 25px;
        font-weight: 600;
        font-size: 16px;
        transition: background-color 0.3s, transform 0.2s;
        text-shadow: none;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        cursor: pointer;
    }
    .nav-menu .btn-quote:hover {
        background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-darker) 100%);
        transform: translateY(-2px);
    }

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
    align-self: center;
}
    .nav-toggle-label:hover {
        background-color: transparent;
    }
    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        display: block;
        background-color: var(--white);
        height: 3px;
        width: 25px;
        border-radius: 3px;
        position: relative;
        transition: transform 0.3s;
    }
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        content: '';
        position: absolute;
    }
    .nav-toggle-label span::before {
        top: -8px;
    }
    .nav-toggle-label span::after {
        bottom: -8px;
    }

/* Header & Navigation Responsive Styles */
@media (max-width: 768px) {
    .header-with-image {
        height: 80vh;
        min-height: 650px;
    }
    
    .logo img {
        height: 70px;
        filter: drop-shadow(1px 1px 3px rgba(0,0,0,0.5));
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 120px;
        flex-direction: column;
        background: transparent;
        background-color: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
        filter: none;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 20px 0;
    }
        .nav-menu.active {
            left: 0;
            top: 0px;
            background-color: #17110a;
        }
    .nav-menu li {
        margin: 15px 0;
    }
    .nav-menu a {
        font-size: 18px;
    }
    .nav-menu .btn-quote {
        font-size: 16px;
        display: inline-block;
        margin-top: 10px;
    }
    
    .nav-toggle-label {
        display: flex;
    }
    
    .nav-toggle:checked ~ .nav-menu {
        left: 0;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 60px;
    }
    
    .nav-wrapper {
        padding: 1.5rem 0;
    }
    
    .nav-menu {
        top: 90px;
    }
    
    .header-with-image {
        height: 75vh;
        min-height: 550px;
    }
}





/*******************************************************************************************************/
/* HERO SECTION */
/*******************************************************************************************************/

.hero {
    background: transparent;
    padding: 240px 0 120px 0;
    color: var(--white);
    position: relative;
}
    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        pointer-events: none;
    }

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: self-end;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-family: 'Inter', sans-serif;
    font-size: 64px;
    font-weight: 900;
    margin-bottom: 30px;
    line-height: 1;
    text-shadow: 3px 3px 8px rgba(0,0,0,0.8);
    letter-spacing: -0.04em;
}

.hero-text p {
    font-family: 'Inter', sans-serif;
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 15px;
    line-height: 1.4;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    letter-spacing: -0.01em;
}

.hero-text .fa-check {
    color: var(--white);
    margin-right: 6px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    font-size: 40px;
    font-weight: 900;
    vertical-align: middle;
    display: inline-block;
    transform: translateY(-3px);
}

.hero-image {
    text-align: center;
}
    .hero-image img {
        max-width: 100%;
        height: auto;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }

/* Hero Section Responsive Styles */
@media (max-width: 992px) {
    .hero {
        padding: 200px 0 100px 0; /* Medium screens */
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 280px 0 80px 0; /* Increased padding to push text below faces */
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-image {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .hero-text {
        background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.3));
        padding: 20px;
        border-radius: 8px;
        margin: 0 10px;
    }
    
    .hero-text h1 {
        font-size: 45px;
    }
    
    .hero-text p {
        font-size: 18px;
    }
    
    .hero-text .fa-check {
        font-size: 34px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 340px 0 60px 0; /* Much more top padding - text appears below faces */
        min-height: auto; /* Allow section to expand as needed */
    }
    
    .hero-text {
        background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.5)); /* Increased opacity for better readability */
        padding: 20px 15px;
        border-radius: 10px;
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }
    
    .hero-text h1 {
        font-size: 32px;
        margin-bottom: 20px;
    }
    
    .hero-text p {
        font-size: 22px;
        margin-bottom: 12px;
    }
    
    .hero-text .fa-check {
        font-size: 30px;
    }
    
    .hero-content {
        padding-bottom: 20px; /* Add padding at bottom */
    }
}

/* Extra small devices - further adjustments */
@media (max-width: 375px) {
    .hero {
        padding: 380px 0 60px 0; /* Even more padding for very small screens - text well below faces */
    }
    
    .hero-text h1 {
        font-size: 28px;
    }
    
    .hero-text p {
        font-size: 20px;
    }
}

/* Very tall portrait phones (iPhone X, 12, 13, 14, etc.) */
@media (max-width: 480px) and (min-height: 800px) {
    .hero {
        padding: 400px 0 60px 0; /* Extra padding for tall phones to keep text below faces */
    }
}

@media (min-width: 1400px) {
    .hero-text {
        max-width: 700px;
        padding-bottom: 75px;
    }
}





/*******************************************************************************************************/
/* CONTACT & CALL WIDGETS */
/*******************************************************************************************************/

/* Contact Widget */
.contact-widget {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    width: 400px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
}
    #contact .contact-widget {
        margin-top: 20px;
    }
    .contact-widget h3 {
        color: var(--white);
        margin-bottom: 25px;
        font-size: 20px;
        font-weight: 600;
        text-align: center;
        text-transform: uppercase;
    }

/* Call Widget */
.call-widget {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    margin-bottom: 0;
    width: 400px;
    margin-left: auto;
    margin-right: auto;
}
    .call-widget h3 {
        font-family: 'Inter', sans-serif;
        color: var(--white);
        margin-bottom: 0px;
        font-size: 20px;
        font-weight: 700;
        letter-spacing: -0.01em;
    }
    .call-widget .phone-number {
        font-size: 40px;
        font-weight: 700;
        color: var(--white);
        margin: 0;
        text-decoration: none;
        display: block;
        transition: color 0.3s;
    }
    .call-widget .phone-number:hover {
        color: #f0f0f0;
    }

/* Widgets Responsive Styles */
@media (max-width: 768px) {
    .call-widget, .contact-widget {
        width: 100%;
        max-width: 350px;
    }
    
    .call-widget .phone-number {
        font-size: 32px;
    }
    
    .call-widget h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .call-widget, .contact-widget {
        width: 100%;
        max-width: 300px;
        padding: 20px;
        margin-bottom: 20px; /* Add margin at bottom for spacing */
    }
    
    .call-widget .phone-number {
        font-size: 28px;
    }
    
    .call-widget h3 {
        font-size: 18px;
    }
}





/*******************************************************************************************************/
/* FORMS & INPUTS */
/*******************************************************************************************************/

.form-group {
    margin-bottom: 15px;
    text-align: left;
}
    .form-group label {
        display: none; /* Hide labels as the design uses placeholders */
    }
    .form-group input,
    .form-group textarea,
    .form-control {
        width: 100%;
        max-width: 400px;
        padding: 15px;
        border: 1px solid transparent;
        border-radius: 8px;
        font-family: 'Open Sans', sans-serif;
        font-size: 16px;
        font-weight: 400;
        transition: background-color 0.3s, box-shadow 0.3s, border-color 0.3s;
        background-color: #f5f5f5;
        color: var(--text-color);
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
    .form-group input::placeholder,
    .form-group textarea::placeholder,
    .form-control::placeholder {
        color: #999;
        font-weight: 400;
    }
    .form-control[required]::placeholder:after {
        content: " *";
        color: #f44336;
    }
    .form-group input:focus,
    .form-group textarea:focus,
    .form-control:focus {
        outline: none;
        background-color: #efefef;
        border-color: rgba(68, 90, 118, 0.3);
        box-shadow: 0 0 0 2px rgba(68, 90, 118, 0.1);
    }
    .form-group textarea,
    .form-control[type="multiline"] {
        resize: none;
        min-height: 100px;
    }

/* HTML5 validation styling */
.form-control:not(.touched):not(:focus):invalid {
    background-color: #f5f5f5;
    border-color: transparent;
}

.form-control.touched:invalid {
    background-color: #ffebee;
    border-color: #d32f2f;
    border-width: 2px;
    box-shadow: inset 0 0 0 1px #d32f2f, 0 0 8px rgba(211, 47, 47, 0.4);
    animation: shakeError 0.5s ease-in-out;
}
    .form-control.touched:invalid::placeholder {
        color: #d32f2f;
        opacity: 0.8;
    }

.form-control:focus:invalid {
    background-color: #ffebee;
    border-color: #d32f2f;
    border-width: 2px;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.25);
}

.form-control.touched:valid:not(:placeholder-shown):required {
    background-color: #e8f5e9;
    border-color: #4CAF50;
    border-width: 1px;
}

/* Contact form validation error styles */
.form-control.error {
    background-color: #ffebee;
    border-color: #d32f2f;
    border-width: 2px;
    box-shadow: inset 0 0 0 1px #d32f2f, 0 0 8px rgba(211, 47, 47, 0.4);
    animation: shakeError 0.5s ease-in-out;
}

.error-message {
    color: #d32f2f;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Remove default browser validation styles */
.form-control:invalid {
    box-shadow: none;
    outline: none;
}

/* Validation message bubble */
.form-control:invalid:focus:after {
    content: attr(data-error-message);
    position: absolute;
    background: #f44336;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1;
}

/* Validation animation */
@keyframes shakeError {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* Forms Responsive Styles */
@media (max-width: 768px) {
    .form-group {
        margin-bottom: 12px;
    }
}





/*******************************************************************************************************/
/* BUTTONS & CTAs */
/*******************************************************************************************************/

.btn {
    background-color: #f5f5f5;
    color: #3d516d;
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    display: inline-block;
    text-decoration: none;
    letter-spacing: 0.5px;
    width: 100%;
}
    .btn:hover {
        background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-darker) 100%);
        transform: translateY(-2px);
        color: white;
    }
    .btn:disabled {
        opacity: 0.8;
        cursor: not-allowed;
        transform: none;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    }

.btn-primary {
    background-color: var(--primary-color);
    width: auto;
    padding: 15px 40px;
}
    .btn-primary:hover {
        background-color: var(--primary-darker);
    }

.btn-accent {
    background-color: var(--accent-color);
    width: auto;
    padding: 15px 40px;
}
    .btn-accent:hover {
        background-color: #ff5722;
    }

/* Buttons Responsive Styles */
@media (max-width: 768px) {
    .btn {
        font-size: 14px;
        padding: 14px 24px;
    }
}





/*******************************************************************************************************/
/* MAIN CONTENT SECTIONS */
/*******************************************************************************************************/

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 60%, var(--primary-darker) 100%);
    padding: 60px 0;
    color: var(--white);
    text-align: center;
}
    .page-header h1 {
        font-family: 'Inter', sans-serif;
        font-size: 56px;
        font-weight: 800;
        margin-bottom: 10px;
        letter-spacing: -0.02em;
    }
    .page-header p {
        font-size: 20px;
        font-weight: 300;
        opacity: 0.9;
    }
    .page-header .container span {
        white-space: nowrap;
    }

@media (max-width: 770px) {
    .page-header .container span {
        white-space: unset;
        display: block;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 42px;
    }
}

/* About Section */
.about-section {
    padding: 60px 0;
    color: #000000;
    margin-top: 60px;
}

.about-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}
    .about-content h2 {
        font-family: 'Inter', sans-serif;
        font-size: 42px;
        font-weight: 800;
        margin-bottom: 30px;
        letter-spacing: -0.02em;
    }
    .about-content p {
        font-size: 22px;
        font-weight: 300;
        margin-bottom: 20px;
        line-height: 1.8;
    }
    .about-content p:last-child {
        margin-bottom: 0;
    }

/* Services Section */
.services {
    padding: 80px 0;
    background-color: var(--light-gray);
}
    .services h2 {
        font-family: 'Inter', sans-serif;
        text-align: center;
        font-size: 48px;
        font-weight: 800;
        color: var(--primary-color);
        margin-bottom: 50px;
        letter-spacing: -0.02em;
    }

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

.service-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    text-align: center;
}
    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    }
    /* Ensure hover effect works with animation */
    .service-card.animate-fade-up.in-view:hover {
        transform: translateY(-5px);
    }
    .service-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

.service-card-content {
    padding: 40px 30px;
}
    .service-card h3 {
        font-family: 'Inter', sans-serif;
        color: var(--primary-color);
        margin-bottom: 15px;
        font-size: 36px;
        font-weight: 700;
        letter-spacing: -0.02em;
    }
    .service-card p {
        color: var(--gray);
        line-height: 1.8;
        font-size: 17px;
    }

/* Service Detail Section */
.service-detail {
    padding: 60px 0;
}
    .service-detail:nth-child(even) {
        background-color: var(--light-gray);
    }

.service-item {
    margin-bottom: 40px;
    text-align: center;
}
    .service-item h3 {
        font-family: 'Inter', sans-serif;
        color: var(--primary-color);
        font-size: 32px;
        font-weight: 700;
        margin-bottom: 20px;
        letter-spacing: -0.01em;
    }
    .service-item p {
        line-height: 1.8;
        color: var(--text-color);
        font-size: 16px;
    }

/* Services Responsive Styles */
@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
}





/*******************************************************************************************************/
/* FOOTER */
/*******************************************************************************************************/

footer {
    background: linear-gradient(to bottom, var(--primary-dark) 0%, var(--primary-darker) 100%);
    color: var(--white);
    padding: 60px 0 20px;
}

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

.footer-section h3 {
    font-family: 'Inter', sans-serif;
    margin-bottom: 20px;
    color: var(--accent-color);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.footer-logo {
    width: 100%;
    margin-bottom: 15px;
}
    .footer-logo img {
        width: 100%;
        max-width: 220px;
        object-fit: contain;
    }

.footer-section ul {
    list-style: none;
}
    .footer-section ul li {
        margin-bottom: 10px;
    }

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}
    .footer-section a:hover {
        color: var(--accent-color);
    }

.footer-section p i {
    margin-right: 10px;
    width: 20px;
    display: inline-block;
    text-align: center;
}

.social-links {
    margin-top: 20px;
    display: flex;
    align-items: center;
}
    .social-links a {
        display: inline-block;
        width: 40px;
        height: 40px;
        background-color: var(--accent-color);
        border-radius: 50%;
        text-align: center;
        line-height: 40px;
        margin-right: 10px;
        transition: background-color 0.3s;
        font-size: 18px;
    }
    .social-links a.sa-logo-link {
        background-color: transparent;
        width: auto;
        height: auto;
        border-radius: 0;
        margin-right: 0;
        margin-left: 10px;
        line-height: normal;
    }
    .social-links a:not(.sa-logo-link):hover {
        background-color: #ff5722;
    }
    .social-links .sa-logo {
        width: 40px;
        height: 40px;
        object-fit: contain;
        vertical-align: middle;
    }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
}

/* Footer Responsive Styles */
@media (max-width: 768px) {
    .social-links {
        justify-content: center;
    }
    footer {
        text-align:center;
    }
}





/*******************************************************************************************************/
/* ALERT MESSAGES */
/*******************************************************************************************************/

.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    font-weight: 500;
}

.alert-success {
    background-color: #4CAF50;
    color: #ffffff;
    border: none;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
    position: relative;
    padding-left: 45px;
}
    .alert-success:before {
        content: "✓";
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 20px;
        font-weight: bold;
    }

.alert-error {
    background-color: #f44336;
    color: #ffffff;
    border: none;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(244, 67, 54, 0.3);
    position: relative;
    padding-left: 45px;
}
    .alert-error:before {
        content: "⚠";
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 20px;
    }

.loading-indicator {
    text-align: center;
    padding: 10px;
    color: #ffc107;
    font-weight: 600;
}
    .loading-indicator i {
        margin-right: 5px;
    }





/*******************************************************************************************************/
/* MODAL OVERLAY */
/*******************************************************************************************************/

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    will-change: opacity;
}
    .modal-overlay.active {
        display: block;
    }
    .modal-overlay.show {
        opacity: 1;
    }

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: transparent;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transition: transform 0.3s ease;
    will-change: transform;
    -webkit-overflow-scrolling: touch;
}
    .modal-overlay.show .modal-content {
        transform: translate(-50%, -50%) scale(1);
    }

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--white);
    font-size: 36px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
    .modal-close:hover {
        transform: scale(1.1);
        color: #f0f0f0;
    }

/* Ensure modal contact form has proper styling */
.modal-content .contact-widget {
    margin: 0;
    margin-top: 0;
    margin-bottom: 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

/* Ensure form inputs work properly in modal */
.modal-content input,
.modal-content textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Override max-width for form fields in modal */
.modal-content .form-group input,
.modal-content .form-group textarea,
.modal-content .form-control {
    max-width: 100%;
}

/* Ensure proper button width in modal */
.modal-content .btn {
    width: 100%;
    max-width: 100%;
}

/* Fix for iOS Safari backdrop filter */
@supports (-webkit-backdrop-filter: blur(3px)) {
    .modal-overlay {
        -webkit-backdrop-filter: blur(3px);
        backdrop-filter: blur(3px);
    }
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Modal Responsive Styles */
@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        max-width: 350px;
        max-height: 85vh;
        margin-top: 10px;
    }
    
    .modal-close {
        top: -35px;
        font-size: 30px;
        width: 35px;
        height: 35px;
    }
    
    .modal-content .contact-widget {
        padding: 20px;
    }
}





/*******************************************************************************************************/
/* ANIMATIONS & TRANSITIONS */
/*******************************************************************************************************/

.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
    .animate-fade-up.in-view {
        opacity: 1;
        transform: translateY(0);
    }

/* Scale animation variant */
.animate-scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
    .animate-scale-in.in-view {
        opacity: 1;
        transform: scale(1);
    }

/* Initial load animation for hero elements */
.animate-on-load {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

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

/* Stagger animation for multiple elements */
.animate-delay-1 {
    transition-delay: 0.1s;
    animation-delay: 0.1s;
}

.animate-delay-2 {
    transition-delay: 0.2s;
    animation-delay: 0.2s;
}

.animate-delay-3 {
    transition-delay: 0.3s;
    animation-delay: 0.3s;
}

.animate-delay-4 {
    transition-delay: 0.4s;
    animation-delay: 0.4s;
}

/* Animations Responsive Styles */
@media (max-width: 768px) {
    /* Reduce animation distance on mobile */
    .animate-fade-up {
        transform: translateY(20px);
    }
    
    .animate-on-load {
        transform: translateY(20px);
        animation: fadeInUpMobile 0.8s ease forwards;
    }
    
    @keyframes fadeInUpMobile {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    .animate-fade-up,
    .animate-scale-in,
    .animate-on-load {
        opacity: 1;
        transform: none;
        transition: none;
        animation: none;
    }
    
    * {
        animation: none !important;
        transition: none !important;
    }
}





/*******************************************************************************************************/
/* UTILITY CLASSES */
/*******************************************************************************************************/

/* Screen reader only text for accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Text alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Margins */
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

/* Padding */
.pt-1 { padding-top: 10px; }
.pt-2 { padding-top: 20px; }
.pt-3 { padding-top: 30px; }
.pb-1 { padding-bottom: 10px; }
.pb-2 { padding-bottom: 20px; }
.pb-3 { padding-bottom: 30px; }

/* Display */
.d-none { display: none; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }

/* Flexbox */
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }

/* Width */
.w-100 { width: 100%; }
.w-50 { width: 50%; }

/* Height */
.h-100 { height: 100%; }
.h-auto { height: auto; }

/* Position */
.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

/* END OF RESTRUCTURED CSS FILE */