/* =========================================
   1. CORE VARIABLES & RESET
   ========================================= */
:root {
    --light-color: #ffffff;
    --light-text-color: #555b63;
    --dark-color: #10172a;
    font-size: 100%;
}

body {
    margin: 0;
    font-family: "Google Sans Flex", sans-serif;
    padding-top: 4.6875rem;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

@font-face {
    font-family: 'Google Sans Flex';
    font-style: normal;
    font-weight: 100 1000;
    font-display: swap;
    src: url('../font/google_sans_flex.woff2') format('woff2');
}

/* Background image */
.page-bg {
    position: fixed;
    inset: 0;
    background: url('../images/hero-bg.webp') center / cover no-repeat;
    z-index: -2;
}

.page-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--dark-color);
    opacity: 0.75;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.content {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1078px;
}

h1, h2, h3, h4 {
    font-family: "Google Sans Flex", sans-serif;
}

/* =========================================
   2. GLOBAL SECTION PADDING
   ========================================= */

/* Compact padding (2.5rem / 40px) */
section {
    padding: 2.5rem 0; 
}

/* Footer Padding */
footer {
    padding: 2.5rem 0 0 0; 
}

/* =========================================
   3. BUTTONS
   ========================================= */
.btn-primary {
    display: inline-flex;
    background: #ffffff;
    color: var(--dark-color);
    font-weight: 600;
    border-radius: 1.25rem;
    transition: all ease-in-out 0.25s;
    border: 1px solid var(--light-color);
    vertical-align: center;
}

.btn-primary:hover {
    transform: scale(1.05);
    background: var(--light-color);
    color: var(--dark-color);
}

.btn-primary.btn-hero {
    background: transparent;
    color: white;
    font-weight: 400;
    border: 1px solid var(--light-text-color);
}

.btn-primary.btn-hero:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1);
}

/* =========================================
   4. NAVBAR
   ========================================= */
.navbar {
    background-color: transparent !important;
    transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    z-index: 1050;
}

.navbar.scrolled {
    background-color: #ffffff !important;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 0.125rem 0.3125rem;
}

nav .btn-primary {
    padding: 0 !important;
    font-size: 12.25px;
    width: 103px;
    height: 32px;
    align-items: center;
    justify-content: center;
}

#mainNavbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.nav-item .nav-link {
    color: #e2e8f0 !important;
    font-size: clamp(0.76rem, 0.5vw, 0.875rem);
}

.navbar.scrolled .nav-item .nav-link {
    color: var(--dark-color) !important;
}

.navbar.scrolled .btn-primary {
    background: var(--dark-color) !important;
    color: var(--light-color) !important;
}

.nav-item .nav-link:hover,
.navbar.scrolled .nav-item .nav-link:hover {
    color: #b91c1c !important;
    transition: all ease-in-out 0.25s;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23f8f9fa' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 2l12 12M14 2L2 14'/%3e%3c/svg%3e");
}

.navbar.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.55)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.scrolled .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23212529' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 2l12 12M14 2L2 14'/%3e%3c/svg%3e");
}

/* =========================================
   5. HERO SECTION
   ========================================= */
.top-section {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 4.6875rem);
    color: var(--light-color);
    padding: 0; /* Explicitly 0 to keep it full screen */
    z-index: 1;
}

.top-section .container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.content-area {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.heading {
    text-align: center;
    max-width: 70rem;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary .icon {
    display: inline-flex;
    margin-left: 5px;
    transition: transform 0.3s ease;
    width: 15px;
}

/* BIG TEXT (Weight Reduced) */
.heading .heading-tag h1 {
    font-size: clamp(3rem, 7vw, 6rem);
    
    /* Reduced from 800 to 600 (Semi-Bold) */
    font-weight: 600; 
    
    margin-bottom: 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.heading .heading-tag h1.modify-color {
    background: linear-gradient(90deg, #64748b, #cccccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    padding-bottom: 0.1em;
}

.heading .heading-tag p {
    font-size: 17.5px;
    font-weight: 200;
    color: #ffffff;
}

.heading .btn-primary {
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.top-button-holder {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
}

.top-section .btn-primary {
    width: 190px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 48px;
}

#contact-button {
    background: #ffffff;
    color: var(--dark-color);
    border: 1px solid var(--light-color);
    transition: all ease-in-out 0.25s;
}

#contact-button:hover {
    transform: scale(1);
}

#contact-button:hover .icon {
    transform: translateX(5px);
}

.heading .heading-tag .separator {
    font-size: clamp(1.125rem, 1vw, 1.5rem);
    font-weight: 900;
    margin: 0 0.3125rem;
    line-height: 0;
    display: inline-block;
}

/* =========================================
   6. SERVICE SECTION
   ========================================= */
.service-section {
    background: var(--light-color);
}

.section-heading {
    max-width: 43.75rem;
    margin-left: auto;
    margin-right: auto;
}

.section-heading h2 {
    font-size: 31.5px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 0.625rem;
    text-transform: capitalize;
}

.section-heading p {
    font-size: 14px;
    font-weight: 300;
    color: var(--light-text-color);
}

.section-heading h2::after {
    content: '';
    display: block;
    width: 84px;
    height: 2px;
    background-color: #b91c1c;
    margin-top: 0.625rem;
}

.service-section .card {
    border: none;
    background: #f8fafc;
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-top: 1.25rem;
    width: 341px;
    height: 270px;
}

.service-section .card .card-body {
    padding: 1.875rem;
}

.service-section .card .card-body span {
    padding: 0.9375rem;
    background: white;
    border-radius: 0.625rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.service-section .card .card-body h3 {
    margin: 1.6667em 1.111em 1.111em 0;
    text-transform: capitalize;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 17px;
}

.service-section .card .card-body p {
    font-size: 14px;
    font-weight: 300;
    color: var(--light-text-color);
    margin-bottom: 0;
}

.service-section .card:hover {
    box-shadow: 0 0.5rem 0.75rem rgba(0, 0, 0, 0.2);
    background: var(--light-color);
    transform: scale(1.01);
}

.card-body a i,
.card-body a svg {
    vertical-align: middle;
    margin-left: 2px;
    display: inline-flex;
}

/* =========================================
   7. ABOUT SECTION
   ========================================= */
.about-section {
    background: #f8fafc;
    overflow: hidden;
}

.about-section h2 {
    color: var(--dark-color);
    line-height: 1;
    font-size: 31.5px;
    font-weight: 600;
}

.about-section p {
    font-size: 14px;
    color: var(--light-text-color);
    font-weight: 300;
}

/* Tilted Image */
.about-section img {
    border-radius: 1.5rem;
    transform: rotate(-3deg);
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    margin: 10px;
}

.about-section img:hover {
    transform: rotate(0deg) scale(1);
}

.about-section .count-number {
    font-weight: 700;
    color: var(--dark-color);
    font-size: 31.5px;
    margin-bottom: 0;
}

.about-section .count-title {
    text-transform: uppercase;
}

.about-section a {
    text-decoration: none;
    color: var(--light-text-color);
    border-bottom: 0.125rem solid #b91c1c;
    font-size: clamp(0.875rem, 0.5vw, 1rem);
    transition: 0.25s all ease-in-out;
}

.about-section a:hover {
    color: #b91c1c;
}

/* =========================================
   8. CONTACT SECTION
   ========================================= */
.contact-section {
    background: #ffffff;
}

.contact-section .card {
    padding: 1.875rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 0.75rem;
    background: #f8fafc;
    border: none;
}

.contact-section .card .form-group input {
    height: 44px;
}

.contact-section .card .form-group input,
textarea {
    background: #ffffff !important;
}

.contact-section .card .form-group textarea::placeholder,
.contact-section .card .form-group input::placeholder {
    font-size: 12.25px !important;
    color: var(--light-text-color) !important;
}

.contact-section .card .form-group label,
.form-check label {
    font-size: 12.25px;
    color: var(--dark-color);
}

.contact-section .card button {
    width: 100%;
    background: var(--dark-color);
    font-size: 14px;
    color: var(--light-color);
    height: 50px;
}

.contact-section .card small {
    font-size: 12.25px;
    color: var(--light-text-color);
}

.contact-section .card small a {
    color: #55595e;
}

.form-notice {
    padding: 20px;
    border-left: 5px solid var(--dark-color);
    background: var(--light-color);
}

.form-notice p {
    font-size: 12px;
    color: var(--light-text-color);
}

.form-select {
    font-size: 12.25px;
    color: var(--light-text-color);
}

.form-control.is-invalid {
    border-color: #b91c1c !important;
}

.error-feedback {
    display: none;
    color: #b91c1c;
    font-size: 0.85rem;
    margin-top: 5px;
}

.is-invalid ~ .error-feedback {
    display: block;
}

button:disabled {
    cursor: not-allowed;
    filter: grayscale(1);
    opacity: 0.6;
}

.form-terms {
    color: #101720;
}

.form-terms:hover {
    color: #b91c1c;
}

#contact-header::after {
    background: transparent;
    height: 0 !important;
}

/* =========================================
   9. FOOTER
   ========================================= */
footer {
    background: var(--dark-color);
}

footer h3 {
    color: var(--light-color);
    font-size: clamp(1rem, 1vw, 1.25rem);
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    font-size: clamp(0.8125rem, 0.5vw, 0.9375rem);
    line-height: 1;
}

footer ul li a {
    color: #cdd8e9;
    text-decoration: none;
    transition: ease-in-out all 250ms;
}

footer ul li a:hover {
    color: #b91c1c;
}

footer img {
    max-width: 11.25rem;
}

footer p {
    color: #cdd8e9;
    font-size: 12.25px;
}

.footer-links svg {
    color: var(--light-text-color);
    height: 15px;
    margin-top: 5px;
}

.footer-links li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
}

.footer-links li i {
    grid-row: 1;
    margin-top: 0;
}

.footer-links li a {
    line-height: 2;
    font-size: 12.25px;
}

footer .copyright {
    border-top: 1px solid var(--light-text-color);
}

footer .copyright p {
    margin-top: 20px;
}

footer .copyright a {
    text-decoration: none;
    color: #cdd8e9;
}

footer .copyright a:hover {
    color: #b91c1c;
}

/* =========================================
   10. MEDIA QUERIES
   ========================================= */
@media (max-width: 62rem) {
    /* TABLET / LAPTOP (approx < 992px) */
    
    /* Reduced padding for mobile */
    section {
        padding: 4rem 0;
    }

    footer {
        padding: 2.5rem 1.25rem 0 1.25rem;
    }

    .top-section {
        min-height: calc(75vh - 4.0625rem);
    }

    .heading .heading-tag h1 {
        font-size: 36px;
    }

    .heading .heading-tag p {
        font-size: 12.75px;
    }

    body {
        padding-top: 4.0625rem;
    }

    .top-button-holder {
        display: flex;
        flex-direction: column;
    }

    /* CENTER CARDS ON MOBILE */
    .service-section .row {
        justify-content: center;
    }
    .service-section .col-12 {
        display: flex;
        justify-content: center;
    }
    .service-section .card {
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        max-width: 341px;
    }

    .navbar-collapse {
        background: var(--light-color);
        color: var(--dark-color);
    }

    .nav-item .nav-link {
        padding: 10px 20px;
        color: var(--light-text-color) !important;
        font-size: 16px;
    }

    .nav-item {
        position: relative;
    }

    .nav-item::after {
        content: "";
        position: absolute;
        left: 20px;
        bottom: 0;
        width: 90%;
        height: 1px;
        background-color: var(--light-text-color);
    }

    nav .btn-primary {
        width: 90%;
        margin: 20px;
        font-size: 18px;
        height: 48px;
        border-radius: 10px;
    }
}

@media (max-width: 991.98px) {
    .nav-item .nav-link {
        padding: 15px 20px;
        font-size: 18px;
    }

    nav .btn-primary {
        width: 100%;
        margin: 10px 0;
        height: 50px;
    }

    .section-heading h2 {
        font-size: 26px;
    }

    #mainNavbar.menu-open {
        background-color: var(--bs-white) !important;
        border-bottom-left-radius: 1rem;
        border-bottom-right-radius: 1rem;
    }

    #navbarMenu.collapse.show {
        border-radius: 0 !important;
    }
}

/* =========================================
   11. UTILITIES
   ========================================= */
.service-section a,
.blog-section a {
    text-decoration: none;
    font-size: 12px;
    color: #b91c1c;
    font-weight: 600;
    position: absolute;
    bottom: 20px;
}

.service-section a svg,
.blog-section a span svg {
    width: 15px;
    transition: ease-in-out all 250ms;
}

.service-section .card:hover a svg {
    transform: translateX(5px);
}

[id] {
    scroll-margin-top: 60px;
}

#cookie-banner{
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: white;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border-radius: 15px;
    z-index: 9999;
    max-width: 450px;
}

@media (max-width: 992px){
    #cookie-banner{
        max-width: 380px;
    }
}