html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
     box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    font-family: 'Inter', sans-serif;
}

.hero-section {
    position: relative;
    background-image: url('/images/hero.jpg');
    background-size: cover;
    background-position: center;
    min-height: 50vh; /* gives breathing room */
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hero-title {
    font-size: 3.3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.9;
}

.hero-trust {
    margin: 110px auto 0; /* centers horizontally */
    padding: 18px 30px;
    background: rgba(0, 0, 0, 0.45); /* subtle dark overlay */
    backdrop-filter: blur(.5px); /* glass effect */
    border-radius: 12px;
    max-width: 1000px;
    width: 100%;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
}

.trust-item {
    color: #ffffff;
    font-weight: 500;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
}

.trust-item i {
    color: #38b000; /* rich green check */
    font-size: 1.3rem;
}

.navbar-brand {
    font-size: 1.3rem;
    letter-spacing: 1px;
    margin-left: 50px;
}

.nav-link {
    position: relative;
    font-weight: 500;
    color: #333 !important;
    letter-spacing: 0.5px;
    padding: 8px 14px !important;
    transition: color 0.3s ease;
} 

/* Underline animation */
.nav-link::after {
    content: "";
    position: absolute;
    left: 14px;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: #28a745;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #28a745 !important;
}

.nav-link:hover::after {
    width: calc(100% - 28px);
}

.navbar {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.phone-text {
    font-weight: 600;
    color: #28a745 !important;
    transition: color 0.2s ease-in-out;
}

.phone-text:hover {
    color: #1e7e34 !important; /* darker green */
}

.logo-img {
    height: 55px;
    width: auto;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
}

.contact-subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
}

.contact-info {
    background-color: #f8f9fa;
}

.g-recaptcha {
    margin-top: 35px;
}

.scale-recaptcha {
    transform: scale(0.75);
}

.gallery-item {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 10px;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item .overlay p {
 color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Gallery Hover Effect */
.gallery-hover {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-hover:hover {
    transform: scale(1.05);
}

.gallery-hover img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-hover .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
    opacity: 0;
    padding: 5px 10px;
    text-align: center;
    transition: opacity 0.3s ease;
}

.gallery-hover:hover .overlay {
    opacity: 1;
}

.hover-caption {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* semi-transparent black */
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.5rem;
}

.gallery-hover:hover .hover-caption {
    opacity: 1;
}

.service-card {
    transition: transform .25s ease, box-shadow .25s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
}

.service-icon {
    font-size: 2.5rem;
    color: #2e7d32;
    transition: transform 0.25s ease;
    background: #e8f5e9;
    padding: 18px;
    border-radius: 50%;
}

.service-hero {
    height: 350px;
    background-size: cover;
    background-position: center center;
    position: relative; 
}

.service-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.service-hero .container {
    position: relative;
    z-index: 2;
}