/* ============================================================
   VARIABLES
   ============================================================ */
:root {
    --primary:      #04AA6D;
    --primary-dark: #038a57;
    --dark:         #1a1a2e;
    --dark-2:       #16213e;
    --dark-3:       #0f3460;
    --light:        #f4f4f9;
    --text:         #333344;
    --text-muted:   #6c757d;
    --white:        #ffffff;
    --navbar-h:     72px;
    --radius:       12px;
    --shadow:       0 4px 24px rgba(0,0,0,.08);
    --shadow-hover: 0 12px 36px rgba(0,0,0,.15);
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: auto; } /* controlled via JS */

body {
    font-family: 'Noto Sans', sans-serif;
    font-size: .95rem;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}

/* ============================================================
   SECTION COMMONS
   ============================================================ */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: .5rem;
}
.section-title span { color: var(--primary); }

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 0;
}

.section-divider {
    width: 56px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    margin: .75rem 0 1.25rem;
}

/* ============================================================
   NAVBAR
   ============================================================ */
#mainNav {
    background: rgba(26, 26, 46, .96);
    backdrop-filter: blur(8px);
    padding: 0;
    transition: box-shadow .3s ease;
    z-index: 1030;
}
#mainNav.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
#mainNav > .container {
    min-height: var(--navbar-h);
}
#mainNav.scrolled > .container {
    min-height: 58px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
}
.brand-logo {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.brand-logo i { color: #fff; font-size: 1.1rem; }
.brand-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: .5px;
}
.brand-name span { color: var(--primary); }

#mainNav .nav-link {
    color: rgba(255,255,255,.8);
    font-weight: 500;
    font-size: .9rem;
    padding: .45rem 1rem;
    border-radius: 6px;
    transition: color .2s, background .2s;
    cursor: pointer;
}
#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: var(--primary);
    background: rgba(4,170,109,.08);
}

.navbar-toggler {
    border-color: rgba(255,255,255,.3);
}
.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%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
    height: 100vh;
    min-height: 600px;
}

#heroCarousel,
#heroCarousel .carousel-inner,
#heroCarousel .carousel-item {
    height: 100vh;
    min-height: 600px;
}

.hero-slide {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15,20,40,.55);
}

.slide-1 { background: url('/assets/img/hero_slider_1.webp') center/cover no-repeat; }
.slide-2 { background: url('/assets/img/hero_slider_2.webp') center/cover no-repeat; }
.slide-3 { background: url('/assets/img/hero_slider_3.webp') center/cover no-repeat; }

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    color: #fff;
    padding: 0 1rem;
}

.hero-eyebrow {
    display: inline-block;
    color: var(--primary);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.hero-content h1 span { color: var(--primary); }

.hero-desc {
    font-size: 1.1rem;
    opacity: .85;
    margin-bottom: 2rem;
    max-width: 520px;
}

.hero-content .btn-group-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-content .btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    padding: .7rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: .5px;
    transition: background .2s, transform .2s;
}
.hero-content .btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}
.hero-content .btn-outline {
    border: 2px solid rgba(255,255,255,.6);
    color: #fff;
    padding: .65rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    background: transparent;
    transition: border-color .2s, color .2s;
    cursor: pointer;
}
.hero-content .btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

#heroCarousel .carousel-item {
    transition: transform .7s ease-in-out;
}

.carousel-indicators [data-bs-target] {
    width: 30px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255,255,255,.4);
    border: none;
}
.carousel-indicators .active {
    background: var(--primary);
    width: 48px;
}
.carousel-control-prev,
.carousel-control-next {
    width: 48px;
    background: none !important;
    border: none;
    opacity: .8;
    z-index: 10;
    color: #fff;
    font-size: 1.8rem;
    text-shadow: 0 1px 4px rgba(0,0,0,.6);
    transition: opacity .2s, color .2s;
}
.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    color: var(--primary);
}

/* ============================================================
   ABOUT
   ============================================================ */
#about {
    background: var(--white);
    padding: 96px 0;
}

.about-img-wrap {
    position: relative;
    height: 420px;
}
.about-img-main {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark-3) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.about-img-main i {
    font-size: 7rem;
    color: rgba(255,255,255,.15);
}
.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: var(--shadow);
}
.about-badge .badge-num {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}
.about-badge .badge-label {
    font-size: .65rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: .9;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.about-feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(4,170,109,.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-feature-icon i { color: var(--primary); font-size: 1.1rem; }
.about-feature-text h6 { font-weight: 700; margin-bottom: .2rem; }
.about-feature-text p { font-size: .88rem; color: var(--text-muted); margin: 0; }

/* ============================================================
   SERVICES
   ============================================================ */
#services {
    background: var(--light);
    padding: 96px 0;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .3s ease, box-shadow .3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.service-img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.service-img i { font-size: 4rem; color: rgba(255,255,255,.9); position: relative; z-index: 1; }
.service-img::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,.06);
    border-radius: 50%;
    top: -20px;
    right: -20px;
}
.service-img::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,.04);
    border-radius: 50%;
    bottom: 10px;
    left: 10px;
}

.service-img-auto     { background: linear-gradient(135deg, #04AA6D, #027a4e); }
.service-img-property { background: linear-gradient(135deg, #0d6ed2, #0a4f97); }
.service-img-travel   { background: linear-gradient(135deg, #f6a015, #c47a0e); }
.service-img-health   { background: linear-gradient(135deg, #e84393, #c02070); }

.service-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.service-body h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .75rem;
    color: var(--dark);
}
.service-body p {
    font-size: .88rem;
    color: var(--text-muted);
    flex: 1;
    margin-bottom: 1.25rem;
}
.service-link {
    color: var(--primary);
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .35rem;
    cursor: pointer;
    transition: gap .2s;
}
.service-link:hover { gap: .6rem; }

/* ============================================================
   CONTACTS
   ============================================================ */
#contacts {
    background: var(--white);
    padding: 96px 0;
}

.contact-info-card {
    background: var(--dark);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    height: 100%;
    color: rgba(255,255,255,.85);
}
.contact-info-card h4 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1.75rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.contact-item-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    background: rgba(4,170,109,.15);
    border: 1px solid rgba(4,170,109,.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-item-icon i { color: var(--primary); font-size: 1.1rem; }
.contact-item-text .label {
    display: block;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,.45);
    margin-bottom: .2rem;
}
.contact-item-text a {
    color: rgba(255,255,255,.9);
    text-decoration: none;
}
.contact-item-text a:hover { color: var(--primary); }

.contact-form-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow);
    height: 100%;
}
.contact-form-card h4 {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.75rem;
}

.form-label { font-weight: 600; font-size: .88rem; color: var(--text); }

.form-control {
    border-color: #dcdce0;
    border-radius: 8px;
    padding: .65rem 1rem;
    font-size: .9rem;
    transition: border-color .2s, box-shadow .2s;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .2rem rgba(4,170,109,.2);
}

.btn-submit {
    margin-top: .5rem;
    background: var(--primary);
    border: none;
    color: #fff;
    padding: .75rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: .95rem;
    transition: background .2s, transform .2s;
}
.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}
.btn-submit:disabled {
    background: #ababae;
    transform: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: var(--dark);
    padding: 2.5rem 0 1.5rem;
}

.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-name span { color: var(--primary); }
.footer-tagline {
    font-size: .85rem;
    color: rgba(255,255,255,.45);
    margin-top: .35rem;
}

.footer-nav { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.footer-nav a {
    color: rgba(255,255,255,.6);
    text-decoration: none;
    font-size: .88rem;
    transition: color .2s;
    cursor: pointer;
}
.footer-nav a:hover { color: var(--primary); }

.footer-divider {
    border-color: rgba(255,255,255,.08);
    margin: 1.5rem 0 1rem;
}

.footer-bottom {
    font-size: .82rem;
    color: rgba(255,255,255,.4);
}
.footer-bottom a {
    color: rgba(255,255,255,.5);
    text-decoration: none;
    transition: color .2s;
}
.footer-bottom a:hover { color: var(--primary); }

.footer-legal {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
#backToTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 46px;
    height: 46px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 16px rgba(4,170,109,.4);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity .3s ease, visibility .3s ease, transform .3s ease, background .2s;
    z-index: 1040;
}
#backToTop.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#backToTop:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(4,170,109,.5);
}

/* ============================================================
   FORM ALERT
   ============================================================ */
#formAlert { border-radius: 8px; font-size: .9rem; }

/* ============================================================
   ERROR PAGE
   ============================================================ */
.error-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--navbar-h) + 2rem) 1.5rem 4rem;
    background: var(--light);
}
.error-code {
    font-size: clamp(6rem, 20vw, 12rem);
    font-weight: 700;
    line-height: 1;
    color: var(--primary);
    opacity: .15;
    letter-spacing: -4px;
    margin-bottom: -1rem;
    user-select: none;
}
.error-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 1.25rem;
}
.error-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: .75rem;
}
.error-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    max-width: 400px;
}
.error-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    padding: .75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: background .2s, transform .2s;
}
.error-btn:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
}

/* ============================================================
   INNER PAGES (privacy, terms)
   ============================================================ */
.inner-page {
    padding-top: calc(var(--navbar-h) + 3rem);
    padding-bottom: 5rem;
    min-height: 100vh;
    background: var(--white);
}
.inner-page-header {
    background: var(--dark);
    padding: calc(var(--navbar-h) + 2.5rem) 0 2.5rem;
    margin-bottom: 3rem;
}
.inner-page-header h1 {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}
.inner-page-header .breadcrumb-link {
    color: rgba(255,255,255,.5);
    text-decoration: none;
    font-size: .88rem;
    transition: color .2s;
}
.inner-page-header .breadcrumb-link:hover { color: var(--primary); }
.inner-page-header .breadcrumb-sep { color: rgba(255,255,255,.3); margin: 0 .5rem; font-size: .88rem; }
.inner-page-header .breadcrumb-cur { color: var(--primary); font-size: .88rem; }

.inner-content h2 { font-size: 1.2rem; font-weight: 700; color: var(--dark); margin: 2rem 0 .75rem; }
.inner-content h2:first-child { margin-top: 0; }
.inner-content p { color: #555; line-height: 1.85; margin-bottom: 1rem; }
.inner-content a { color: var(--primary); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    #mainNav > .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    #mainNav .navbar-collapse {
        background: rgba(26,26,46,.98);
        padding: 1rem;
        border-radius: 0 0 12px 12px;
        margin-top: 4px;
        width: 100%;
    }

    .about-img-wrap { height: 280px; margin-bottom: 3rem; }
    .about-badge { width: 90px; height: 90px; bottom: -15px; right: -10px; }
    .about-badge .badge-num { font-size: 1.5rem; }
}

@media (max-width: 767px) {
    #about, #services, #contacts { padding: 64px 0; }
    .section-title { font-size: 1.6rem; }
    .contact-info-card { margin-bottom: 1.5rem; }
    .footer-nav { justify-content: center; }
    .footer-bottom { text-align: center; }
    .footer-legal { justify-content: center; }
}
