/* Reset and general styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e3eFe0;
    --secondary-color: #686808;
    --nav-color: #686808;
    --footer-bg: #8b8c73;
    --footer-text: #fafafa;
    --contact-header: #566a06;
}

html {
    font-size: 62.5%;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', sans-serif;
    scroll-behavior: smooth;
    color: #231f20;
    background-color: #f8fbfc;
    line-height: 1.6;
    font-size: 1.6rem;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
}

h2 {
    font-size: 5rem;
}

p {
    color: #5a5c5b;
    font-weight: 400;
}

img {
    max-width: 100%;
    object-fit: cover;
}

.btn {
    padding: 1.2rem 3rem;
    font-size: 1.6rem;
    font-weight: 600;
    transition: transform 0.3s;
    border-radius: 5rem;
    -webkit-border-radius: 5rem;
    -moz-border-radius: 5rem;
    -ms-border-radius: 5rem;
    -o-border-radius: 5rem;
    border: 1px solid var(--secondary-color);
}

.btn.btn-theme {
    padding: 1.5rem 3.5rem;
    font-size: 1.6rem;
    font-weight: 600;
    transition: transform 0.3s;
    border-radius: 5rem;
    -webkit-border-radius: 5rem;
    -moz-border-radius: 5rem;
    -ms-border-radius: 5rem;
    -o-border-radius: 5rem;
    background-color: var(--secondary-color);
    color: white;
}

.btn.btn-theme:hover {
    background-color: #505505;
}

.container {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}

/* Navbar */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
    background: rgb(255, 255, 255);
}

.navbar.shrink {
    padding: .5rem 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    color: #231f20 !important;
}

.nav-link {
    font-size: 1.6rem;
    margin: 0 1.5rem;
    transition: color 0.3s ease;
    display: inline-block;
    position: relative;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -.3rem;
    width: 0;
    height: .2rem;
    background-color: var(--nav-color);
    transition: all 0.3s ease-in-out;
}

.nav-link:hover {
    color: var(--nav-color);
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

.nav-link.active {
    color: var(--nav-color);
    font-weight: bold;
    border-bottom: 2px solid var(--nav-color);
    color: var(--nav-color) !important;
    font-weight: bold;
}

.navbar-toggler-icon {
    width: 2.5rem;
    height: 2.5rem;
}

.logo {
    width: 13rem;
    height: auto;
}

/* Hero Section with Banner Card */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: url('../images/banner.jpg') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: end;
    height: 100%;
    padding: 2rem;
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.hero-card {
    background: var(--primary-color);
    border-radius: 2rem;
    padding: 4rem 3.5rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    max-width: 65rem;
    animation-duration: 1.2s;
    -webkit-border-radius: 2rem;
    -moz-border-radius: 2rem;
    -ms-border-radius: 2rem;
    -o-border-radius: 2rem;
}

.hero-logo {
    width: 30rem;
    height: auto;
}

.hero-card h1 {
    font-size: 3.5rem;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    color: #231f20;
    border-bottom: 1px solid #c4d9ce;
}

.hero-card p.sub-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #3f3f3f;
}

.hero-card .btn {
    padding: 1.2rem 3rem;
    font-size: 1.6rem;
    transition: transform 0.3s;
    background-color: var(--secondary-color);
    border: none;
    color: #fff;
    border-radius: 5rem;
    -webkit-border-radius: 5rem;
    -moz-border-radius: 5rem;
    -ms-border-radius: 5rem;
    -o-border-radius: 5rem;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

.hero-card .btn:hover {
    transform: translateY(-3px);
}

/* Section Titles & Padding */
section {
    padding: 8rem 0;
    scroll-margin-top: 6rem;
}

.section-title {
    max-width: 65rem;
    margin: auto;
}

h2 {
    text-align: center;
    font-size: 4rem;
    color: #231f20;
}

.sub-title {
    font-weight: 600;
    font-size: 1.8rem;
}


/* About Section (Why AccuFast?) */
#about {
    background-color: white;
}

#about .container {
    margin: auto;
}

#about .card {
    border: none;
    background: none;
    margin: auto;
}

#about .card-body {
    padding: 2rem 2rem;
    text-align: center;
}

#about .card-body h3 {
    font-size: 2.3rem;
    color: #231f20;
    margin-bottom: 1.2rem;
}

#about .card-body p {
    font-size: 1.6rem;
    color: #555;
}

#about .icon {
    background-color: #e9f9e1;
    color: white;
    width: 7.5rem;
    height: 7.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    border-radius: 1rem;
    -webkit-border-radius: 1rem;
    -moz-border-radius: 1rem;
    -ms-border-radius: 1rem;
    -o-border-radius: 1rem;
}

#about .icon img {
    width: 6rem;
    height: auto;
    filter: invert(88%) sepia(88%) saturate(1074%) hue-rotate(28deg) brightness(92%) contrast(91%);
    -webkit-filter: invert(88%) sepia(88%) saturate(1074%) hue-rotate(28deg) brightness(92%) contrast(91%);
}

/* Services Section */
#services {
    background-color: var(--primary-color);
}

.subtext {
    font-size: 1.7rem;
    color: #666;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 10px;
    overflow: hidden;
    padding: 2.8rem 1rem 1rem 1rem;
    background: white;
    box-shadow: 0 1px 11px rgb(27 27 27 /4%);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    -webkit-transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    -moz-transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    -ms-transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    -o-transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-img-wrap {
    width: 90%;
    height: 200px;
}

.service-img {
    width: 100%;
    height: 100%;
    border-radius: 10px 10px 0 0;
}

.service-content {
    padding: 2rem;
    width: 100%;
    min-height: 13rem;
}

.service-content h3 {
    font-size: 2.2rem;
    font-weight: 800;
}

.service-content p {
    font-size: 1.5rem;
}

/* Contact Form */
.contact-section {
    font-family: 'Roboto', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
    color: var(--secondary-color);
}

/* Contact Section Container */
.contact-form-wrap {
    background: #fff;
    border-radius: 15px;
    width: 100%;
    max-width: 60rem;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    animation: fadeIn 1.5s ease-in-out;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    -ms-border-radius: 15px;
    -o-border-radius: 15px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.contact-header {
    background: var(--nav-color);
    padding: 4rem;
    text-align: center;
    color: var(--primary-color);
    font-size: 3.2rem;
    letter-spacing: 1px;
    font-weight: 700;
    position: relative;
    opacity: 0;
    transform: scale(0.95);
    animation: headerFadeIn 1s forwards 0.5s;
}

@keyframes headerFadeIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.contact-header::after {
    content: "";
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 6rem;
    height: 0.3rem;
    background: var(--contact-header);
    border-radius: .2rem;
    -webkit-border-radius: .2rem;
    -moz-border-radius: .2rem;
    -ms-border-radius: .2rem;
    -o-border-radius: .2rem;
}

/* Contact Form Styles */
.contact-form {
    padding: 4rem;
}

.form-group {
    position: relative;
    margin-bottom: 3rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.5rem;
    background: var(--primary-color);
    border: 2px solid var(--secondary-color);
    border-radius: 5px;
    font-size: 1.5rem;
    color: var(--secondary-color);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--nav-color);
    box-shadow: 0 0 10px rgba(111, 162, 170, 0.3);
    outline: none;
}

.form-group label {
    position: absolute;
    top: -1rem;
    left: 1.5rem;
    background: #fff;
    padding: 0 .5rem;
    font-size: 1.5rem;
    color: var(--nav-color);
    font-weight: 700;
    pointer-events: none;
}

/* Call-to-Action Button */
.cta-button {
    display: inline-block;
    background: var(--nav-color);
    color: #fff;
    padding: 1.5rem 3rem;
    border: none;
    border-radius: 5px;
    font-size: 1.6rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    -webkit-transition: background 0.3s, transform 0.3s;
    -moz-transition: background 0.3s, transform 0.3s;
    -ms-transition: background 0.3s, transform 0.3s;
    -o-transition: background 0.3s, transform 0.3s;
}

.cta-button:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}


/* Footer Section */
.footer {
    background: var(--footer-bg);
    padding: 7rem 0rem 5rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    backdrop-filter: blur(1rem);
    border-top-left-radius: 5rem;
    border-top-right-radius: 5rem;
}

.footer h3 {
    margin-bottom: 1.8rem;
    font-size: 2rem;
    color: var(--footer-text);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: .8rem;
    display: inline-block;
}

.footer-logo {
    max-width: 180px;
    filter: brightness(55) invert(1);
    height: auto;
}

.footer p,
.footer a,
.footer li {
    font-size: 1.5rem;
    color: var(--footer-text);
    line-height: 1.6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #fff;
}

.footer ul {
    padding: 0;
    list-style: none;
}

.footer .social-icons a {
    margin-right: 1.2rem;
    font-size: 1.6rem;
    color: var(--primary-color);
    transition: transform 0.3s, color 0.3s;
}

.footer .social-icons a:hover {
    transform: scale(1.2);
    color: var(--secondary-color);
}

.footer input[type="email"] {
    width: 100%;
    padding: 1rem 1.2rem;
    border: none;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    outline: none;
    border-radius: 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
}

.footer button {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 1rem 2rem;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
    border-radius: 2.5rem;
    -webkit-border-radius: 2.5rem;
    -moz-border-radius: 2.5rem;
    -ms-border-radius: 2.5rem;
    -o-border-radius: 2.5rem;
}

.footer button:hover {
    background-color: #7a8676;
}

.footer-bottom {
    text-align: center;
    margin-top: 5rem;
    font-size: 1.4rem;
    color: #e0f5f5;
}

/* Responsive Adjustments */
@media all and (max-width: 1024px) {

    html {
        font-size: 58%;
        /* 1rem = 9.28px */
    }
}

/* Laptops & smaller desktops - 964px */
@media all and (max-width: 964px) {

    html {
        font-size: 58%;
        /* 1rem = 8.8px */
    }
}

/* Tablets - 768px */
@media all and (max-width: 768px) {

    html {
        font-size: 56%;
        /* 1rem = 8.32px */
    }

    .nav-link {
        margin: 0 .5rem;
    }

    .hero-card h1 {
        font-size: 2.5rem;
    }

    .hero-logo {
        width: 25rem;
    }

    .hero-card {
        padding: 2rem 2.5rem;
    }

    h2 {
        font-size: 3rem;
    }

    section {
        padding: 6rem 0;
    }

    .footer {
        padding: 5rem 0rem 4rem;
        border-top-left-radius: 3rem;
        border-top-right-radius: 3rem;
    }

    .footer-bottom {
        margin-top: 4rem;
    }
}

/* Small tablets - 576px */
@media all and (max-width: 576px) {

    html {
        font-size: 55%;
        /* 1rem = 8px */
    }

    .btn {
        padding: .8rem 2rem;
    }

    .btn,
    .btn.btn-theme,
    .hero-card .btn {
        padding: 1rem 2.4rem;
    }
}

/* Mobile screens - 480px */
@media all and (max-width: 480px) {

    html {
        font-size: 52%;
        /* 1rem = 7.68px */
    }
}

@media (max-width: 600px) {
    .contact-header {
        padding: 3rem;
    }

    .contact-form {
        padding: 3rem;
    }
}