/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

:root {
    --royal-red: #d20023; /* Matches live site Tailwind config */
    --light-gray: #f3f4f6;
    --dark-gray: #1f2937;
    --black: #000000;
    --white: #ffffff;
    --text-color: #374151;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Smooth section transitions on scroll */
section {
    will-change: transform;
}

.wrapper {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 1280px) {
    .wrapper {
        padding: 0;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--black);
}

@media (min-width: 768px) {
    h2 {
        font-size: 32px;
    }
}

p {
    font-size: 16px;
    line-height: 1.6;
}

.heading-line {
    width: 100px;
    height: 2px;
    background-color: var(--royal-red);
    margin-top: 12px;
}

.heading-line.small {
    width: 96px;
}

.text-royalred {
    color: var(--royal-red);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.5rem;
    font-weight: 400;
    font-size: 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    width: 120px;
    height: 40px;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(270deg, #f5f3f3 50%, #c70505 0%) 100%;
    background-size: 200%;
    color: var(--black);
    border: 1px solid var(--white);
    border-radius: 6px;
    transition: 0.5s ease-out;
}

.btn-primary:hover {
    background-position: 0;
    color: var(--white);
}

.btn-secondary {
    background: linear-gradient(270deg, rgba(245, 243, 243, 0) 50%, #c70505 0%) 100%;
    background-size: 200%;
    color: var(--white);
    border: 1px solid var(--white);
    border-radius: 6px;
    transition: 0.5s ease-out;
}

.btn-secondary:hover {
    background-position: 0;
    color: var(--white);
    border-color: transparent;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding-top: 34px;
    padding-bottom: 20px;
    transition: all 0.5s ease-in-out;
}

.header.scrolled {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding-top: 15px;
    padding-bottom: 15px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
}

.logo img {
    width: 136px;
    transition: width 0.3s ease;
}

@media (min-width: 1024px) {
    .logo img {
        width: 248px;
    }
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
}

.desktop-nav {
    display: none;
    align-items: center;
    gap: 2.5rem;
    color: var(--white);
    font-weight: 600;
}

@media (min-width: 1024px) {
    .desktop-nav {
        display: flex;
    }
}

.desktop-nav a {
    position: relative;
    padding-bottom: 4px;
    font-size: 16px;
    letter-spacing: 0.01em;
    transition: color 0.3s ease;
}

.desktop-nav a:hover {
    color: var(--royal-red);
}

.nav-underline {
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 75%;
    height: 2px;
    background-color: var(--white);
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.3s ease;
}

.desktop-nav a.active .nav-underline,
.desktop-nav a:hover .nav-underline {
    opacity: 1;
    transform: translateY(0);
}

.header-actions {
    display: none;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .header-actions {
        display: flex;
    }
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--black);
    padding: 1rem;
    display: none;
    flex-direction: column;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: var(--white);
}

/* Hero Section */
.hero {
    position: relative;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: #f3f4f6;
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-inner {
    position: relative;
    z-index: 20;
    height: 550px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .hero-inner {
        height: 100vh;
    }
}

.hero-spacer {
    width: 100%;
    height: 100px;
}


.hero-services-wrapper {
    z-index: 50;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4rem; /* gap-16 */
    padding-bottom: 2rem;
}

.hero-services {
    width: 100%;
    max-width: 690px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem; /* gap-2 */
}

.hero-service-btn {
    background: none;
    border: none;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.hero-service-btn img {
    width: 28px;
    height: 28px;
}

@media (min-width: 768px) {
    .hero-service-btn img {
        width: 48px;
        height: 48px;
    }
}

.hero-service-btn span {
    font-size: 10px;
}

@media (min-width: 768px) {
    .hero-service-btn span {
        font-size: 1rem;
    }
}

.hero-service-btn .line {
    width: 80px;
    height: 4px;
    background-color: transparent;
    transition: background-color 0.5s ease;
}

.hero-service-btn:hover .line {
    background-color: var(--royal-red);
}

/* Sections */
.section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

@media (min-width: 768px) {
    .section {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

.section-header {
    margin-bottom: 2.5rem;
}

/* How We Work Section */
#hwWork {
    overflow: hidden;
}

.hidden-mobile {
    display: none;
}

@media (min-width: 768px) {
    .hidden-mobile {
        display: block;
    }
    .hidden-desktop {
        display: none;
    }
}

/* Desktop Timeline */
.timeline-desktop {
    max-width: 938px;
    margin: 0 auto;
    position: relative;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 180px;
}

.top-step {
    margin-left: 22%;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.bottom-step {
    margin-top: 2rem;
}

.timeline-step h3 {
    font-size: 2rem;
    font-weight: 400;
}

.icon-circle {
    width: 84px;
    height: 84px;
    background-color: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-circle img {
    width: 34px;
    height: 34px;
}

.timeline-graphic {
    position: relative;
    width: 70%;
    margin: 0 auto;
}

.timeline-base {
    width: 100%;
}

.progress-line-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%; /* JS will animate this */
    overflow: hidden;
    transition: height 0.5s ease-out;
}

.timeline-fill {
    width: 100%;
}

.step-point {
    position: absolute;
    width: 6.5%;
    aspect-ratio: 1;
    background-color: #D9D9D9;
    border: 4px solid var(--white);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.step-point.active {
    background-color: var(--royal-red);
}

.step-num {
    position: absolute;
    font-size: 72px;
    color: rgba(127, 123, 124, 0.2);
    font-weight: 500;
}

.timeline-bg-logo {
    position: absolute;
    top: 25%;
    left: 18%;
    width: 50%;
}

/* Mobile Timeline */
.timeline-mobile {
    padding: 2rem 0;
}

.mobile-timeline-wrapper {
    position: relative;
    padding-left: 32px;
}

.mobile-step-icon {
    position: absolute;
    left: 0;
    width: 68px;
    height: 68px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.mobile-step-icon.top {
    top: -88px;
}

.mobile-step-icon.bottom {
    bottom: -88px;
}

.mobile-step-icon span {
    font-size: 12px;
    font-weight: 600;
}

.mobile-step-icon .icon-circle {
    width: 42px;
    height: 42px;
}

.mobile-step-icon .icon-circle img {
    width: 20px;
    height: 20px;
}

.mobile-progress-bg {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 32px;
    width: 3px;
    height: 100%;
    background-color: #D9D9D9;
}

.mobile-progress-fill {
    position: absolute;
    top: 0;
    left: 32px;
    width: 3px;
    height: 0%; /* Animated via JS */
    background-color: var(--royal-red);
    transition: height 0.5s ease-out;
}

.mobile-steps {
    padding-left: 64px;
    padding-top: 64px;
    padding-bottom: 64px;
}

.mobile-step-point {
    position: relative;
    height: 390px;
}

.mobile-step-point::before {
    content: '';
    position: absolute;
    top: 120px;
    left: -47px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: #D9D9D9;
    border: 4px solid var(--white);
}

.mobile-step-point.active::before {
    background-color: var(--royal-red);
}

/* Stats Section */
.stats-section {
    background-image: url('../assets/Rectangle.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 3.5rem;
}

.stats-overlay {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .stats-overlay {
        height: 280px;
        display: flex;
        align-items: center;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    color: var(--white);
    text-align: center;
    height: 100%;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.stat-item img {
    width: 44px;
    height: 44px;
}

@media (min-width: 768px) {
    .stat-item img {
        width: 52px;
        height: 52px;
    }
}

.stat-val {
    position: relative;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    .stat-val {
        font-size: 48px;
    }
}

.stat-val .plus {
    position: absolute;
    right: 100%;
    margin-right: 5px;
}

.stat-item h4 {
    font-size: 1rem;
    font-weight: 400;
}

@media (min-width: 768px) {
    .stat-item h4 {
        font-size: 24px;
    }
}

/* About Section */
.about-section {
    position: relative;
    min-height: 640px;
    overflow: hidden;
}

.bg-map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    max-height: 643px;
    z-index: -1;
    object-fit: cover;
    transform: scale(1.25);
    transition: transform 0.3s ease;
}

@media (min-width: 768px) {
    .bg-map {
        right: -6rem;
        transform: scale(1);
    }
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.about-content {
    order: -1;
}

@media (min-width: 768px) {
    .about-content {
        order: 1;
        padding-bottom: 5rem;
    }
}

.about-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .about-content h3 {
        font-size: 32px;
    }
}

.about-content p {
    max-width: 510px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-color);
}

.about-images {
    position: relative;
    display: flex;
    justify-content: center;
}

@media (min-width: 768px) {
    .about-images {
        justify-content: flex-end;
        margin-top: 5rem;
    }
}

.about-main-img {
    width: 70%;
    max-width: 564px;
    transition: all 1s ease;
}

@media (min-width: 768px) {
    .about-main-img {
        width: 100%;
    }
}

.about-main-img img {
    width: 100%;
}

.about-floating-img {
    position: absolute;
    width: 22%;
    max-width: 114px;
    top: 55%;
    right: 40%;
}

/* Services Section */
.services-section {
    overflow: hidden;
}

.services-desc {
    margin-bottom: 3rem;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-color);
}

@media (min-width: 768px) {
    .services-desc {
        margin-bottom: 6rem;
    }
}

.services-carousel-container {
    position: relative;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .services-carousel-container {
        padding: 0;
    }
}

.service-card {
    aspect-ratio: 3/4;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20%;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(115, 115, 115, 0) 19.06%, rgba(0, 0, 0, 0.62) 76.08%);
}

.service-card h4 {
    position: relative;
    z-index: 1;
}

@media (max-width: 767px) {
    .service-card {
        aspect-ratio: 1/1;
        min-height: 300px;
    }
}

.service-card h4 {
    font-size: 24px;
    color: var(--white);
    font-weight: 500;
}

.swiper-button-prev-custom,
.swiper-button-next-custom {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.swiper-button-prev-custom {
    left: 20px;
}

.swiper-button-next-custom {
    right: 20px;
}

@media (min-width: 768px) {
    .swiper-button-prev-custom {
        left: 40px;
    }
    .swiper-button-next-custom {
        right: 40px;
    }
}

.swiper-button-prev-custom img,
.swiper-button-next-custom img {
    width: 16px;
    height: 16px;
}

/* Contact Section */
.contact-section {
    padding-bottom: 0;
}

.map-container {
    position: relative;
    height: 328px;
    background-color: var(--light-gray);
}

@media (min-width: 768px) {
    .map-container {
        height: 750px;
    }
}

.contact-card-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.contact-card {
    background-color: var(--white);
    padding: 1.5rem;
    width: 100%;
    margin-top: 3.5rem;
    pointer-events: auto;
    font-size: 10px;
}

@media (min-width: 768px) {
    .contact-card {
        width: 410px;
        padding: 2.5rem;
        margin-top: 8rem;
        margin-bottom: 3.5rem;
        font-size: 1rem;
    }
}

.contact-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

.mt-4 { margin-top: 1rem; }
.mt-14 { margin-top: 3.5rem; }
.h-full { height: 100%; }
.relative { position: relative; }

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.contact-item img {
    width: 24px;
    height: 24px;
    min-width: 24px;
}

.contact-text {
    flex-grow: 1;
}

.contact-text p {
    margin-bottom: 0.5rem;
}

.branches-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.branch-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background-color: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
    text-align: left;
}

.branch-btn:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.branch-btn img {
    width: 22px;
    height: 22px;
    min-width: 22px;
}

.branch-text {
    flex-grow: 1;
    font-size: 12px;
}

.branch-city {
    color: var(--black);
    font-weight: 500;
}

.branch-country {
    color: #4b5563;
}

/* Footer */
footer {
    background-color: var(--black);
}

.footer-top {
    padding: 2.5rem 0;
    color: var(--white);
}

.footer-top p,
.footer-top a {
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.footer-col-2 {
    grid-column: span 2;
}

.footer-col-2 p {
    margin-top: 1.5rem;
}

.footer-logo {
    max-width: 100%;
    width: 262px;
}

.footer-col h4 {
    font-size: 12px;
    margin-bottom: 1rem;
}

@media (min-width: 1024px) {
    .footer-col h4 {
        font-size: 1rem;
    }
}

.footer-contact-links, .footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 12px;
}

@media (min-width: 1024px) {
    .footer-contact-links, .footer-links {
        font-size: 14px;
    }
}

.fc-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.fc-item img {
    width: 22px;
    height: 22px;
}

.mb-2 {
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-icons a {
    display: inline-block;
}

.social-icons img {
    width: 32px;
    height: 32px;
}

.footer-bottom {
    background-color: var(--royal-red);
    padding: 0.75rem 0;
    color: var(--white);
    font-size: 10px;
}

@media (min-width: 1024px) {
    .footer-bottom {
        font-size: 12px;
    }
}

/* WhatsApp Icon */
.whatsapp-icon {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 99;
}

.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background-color: #00b960;
    border-radius: 50%;
    animation: whatsapp-pulse 5s ease-in infinite;
}

.whatsapp-button img {
    width: 35px;
    height: 35px;
    transition: transform 0.3s ease;
}

.whatsapp-button:hover img {
    transform: scale(1.1);
}

@keyframes whatsapp-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* HWW (How We Work) Slider Panels */
.hww-slider-panel {
    z-index: 5;
    animation: hwwSlideIn 0.8s ease forwards;
}

@keyframes hwwSlideIn {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

#hww-panel-2 {
    animation-name: hwwSlideInLeft;
}

@keyframes hwwSlideInLeft {
    from { opacity: 0; transform: translateX(-100px); }
    to { opacity: 1; transform: translateX(0); }
}

.hww-slider-inner {
    text-align: center;
}

.hww-slider-title {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 16px;
}

.hww-slider-panel .swiper {
    max-width: 290px;
    overflow: hidden;
}

.hww-icon-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    text-align: center;
    font-size: 12px;
}

.hww-icon-circle {
    position: relative;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border: 1px solid #ddd;
    transition: transform 0.3s ease;
}

.hww-icon-circle.red {
    background-color: var(--royal-red);
    border-color: transparent;
}

.hww-icon-circle.dark {
    background-color: var(--black);
    border-color: var(--black);
}

.hww-icon-circle.light {
    background-color: var(--white);
    border-color: #ddd;
}

.hww-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #D9D9D9;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
}

.hww-icon-text {
    font-size: 28px;
    line-height: 1;
}

/* Swiper scaling for center slide */
.hww-slider-panel .swiper-slide {
    opacity: 0.5;
    transform: scale(0.84);
    transition: all 0.3s ease;
}

.hww-slider-panel .swiper-slide-active {
    opacity: 1;
    transform: scale(1);
}

/* Hero Content Switcher */
.hero-content-switcher {
    width: 100%;
    max-width: 280px;
    min-height: 280px;
    padding: 1.25rem;
    background-color: rgba(255, 255, 255, 0.4);
    color: var(--white);
    position: relative;
    overflow: hidden;
    transition: margin 0.5s ease, transform 0.5s ease;
}

.hero-content-switcher.pos-left {
    margin-left: 0;
    margin-right: auto;
}

.hero-content-switcher.pos-center {
    margin-left: auto;
    margin-right: auto;
}

.hero-content-switcher.pos-right {
    margin-left: auto;
    margin-right: 0;
}

@media (min-width: 768px) {
    .hero-content-switcher {
        max-width: 460px;
        min-height: 400px;
        padding: 2.5rem;
    }
}

.hero-content-slide {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeIn 0.5s ease;
    height: 100%;
}

.hero-content-slide.active {
    display: flex;
}

.hero-content-slide h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
}

@media (min-width: 768px) {
    .hero-content-slide h2 {
        font-size: 24px;
    }
}

.hero-content-slide p {
    font-size: 10px;
    color: var(--white);
}

@media (min-width: 768px) {
    .hero-content-slide p {
        font-size: 1rem;
    }
}

.hero-more-btn {
    width: 90px;
    margin-top: -22px;
    /*margin-top: auto;*/

}

@media (min-width: 768px) {
    .hero-more-btn {
        width: 182px;
        margin-top: -22px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.hero-service-btn.active .line {
    background-color: var(--white);
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Slide-in from left */
.slide-in-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Slide-in from right */
.slide-in-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale-up reveal */
.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Opening Hours heading style */
.contact-card .contact-item:first-child {
    margin-top: 0;
}

/* About section - on desktop, image should be on right */
@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
    .about-images {
        order: 2;
    }
    .about-content {
        order: 1;
    }
}

/* ========== MOBILE RESPONSIVE POLISH ========== */

/* Reduce motion for users who prefer it */
@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;
    }
}

/* Touch-friendly tap targets on mobile */
@media (max-width: 767px) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .mobile-nav nav a {
        padding: 12px 16px;
        font-size: 16px;
    }
    
    .branch-btn {
        min-height: 48px;
    }
    
    /* Tighter hero on small phones */
    .hero-inner {
        height: 500px;
    }
    
    /* Prevent horizontal overflow */
    .services-carousel-container {
        max-width: 100vw;
    }
    
    /* Footer grid single column on small screens */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-col-2 {
        grid-column: span 1;
    }
    
    /* Contact card full width on mobile */
    .contact-card {
        font-size: 12px;
    }
    
    /* Stats - ensure numbers don't overflow */
    .stat-val {
        font-size: 20px;
    }
    
    .stat-item h4 {
        font-size: 14px;
    }
}

/* Small phones */
@media (max-width: 374px) {
    .hero-content-switcher {
        max-width: 240px;
        min-height: 240px;
        padding: 1rem;
    }
    
    .hero-content-slide h2 {
        font-size: 14px;
    }
    
    .hero-content-slide p {
        font-size: 9px;
    }
}

/* GPU acceleration for animated elements */
.hero-content-switcher,
.progress-line-container,
.mobile-progress-fill,
.fade-in,
.slide-in-left,
.slide-in-right,
.scale-in {
    will-change: transform, opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Optimize paint for fixed elements */
.header,
.whatsapp-icon {
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Prevent layout shifts */
.about-main-img img,
.service-card,
.stat-item img,
.icon-circle {
    aspect-ratio: attr(width) / attr(height);
}

.logo img {
    width: 136px;
    height: auto;
    aspect-ratio: 500 / 133;
}

@media (min-width: 1024px) {
    .logo img {
        width: 248px;
    }
}
