/* ============================================================
   SANFIN - San Multi Service Corporation
   Main Stylesheet
   Color Palette:
     Primary Dark Navy  : #1a3558
     Secondary Navy     : #0d2240
     Accent Teal        : #0096c7
     Light Accent       : #48cae4
     White              : #ffffff
     Light BG           : #f0f4f8
     Text Dark          : #1a2e44
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Montserrat:wght@700;800;900&display=swap');

:root {
    --primary: #1a3558;
    --primary-dark: #0d2240;
    --accent: #0096c7;
    --accent-light: #48cae4;
    --accent-hover: #0077a8;
    --white: #ffffff;
    --light-bg: #f0f4f8;
    --light-gray: #e8edf3;
    --text-dark: #1a2e44;
    --text-muted: #6b7a8d;
    --border: rgba(26, 53, 88, 0.12);
    --shadow-sm: 0 2px 12px rgba(26, 53, 88, 0.10);
    --shadow-md: 0 6px 30px rgba(26, 53, 88, 0.15);
    --shadow-lg: 0 16px 48px rgba(26, 53, 88, 0.20);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 40px;
    --transition: 0.45s cubic-bezier(.4, 0, .2, 1);
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.15);
}

/* ─── RESET & BASE ─── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    line-height: 1.2;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

/* ─── UTILITY ─── */
.section-pad {
    padding: 100px 0;
}

.section-pad-sm {
    padding: 70px 0;
}

.bg-light {
    background-color: var(--light-bg) !important;
}

.bg-dots {
    background-image: radial-gradient(var(--border) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
}

.badge-accent {
    display: inline-block;
    background: rgba(0, 150, 199, 0.12);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: 50px;
    margin-bottom: 15px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: var(--primary);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 580px;
}

.divider {
    width: 65px;
    height: 5px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 10px;
    margin: 10px 0 32px;
}

.premium-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 40px;
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: var(--transition);
}

.premium-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.premium-card:hover::before {
    opacity: 1;
}

/* ─── BUTTONS ─── */
.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white) !important;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 32px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(26, 53, 88, 0.2);
    transition: var(--transition);
    letter-spacing: 0.3px;
    text-decoration: none;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 150, 199, 0.35);
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    color: var(--white) !important;
}

.btn-outline-custom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--white);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 13.5px 30px;
    border-radius: 50px;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-outline-custom:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.btn-outline-custom:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

/* ─── NAVBAR ─── */
.navbar-sanfin {
    background: var(--primary) !important;
    padding: 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1050;
    transition: var(--transition);
}

.navbar-sanfin.scrolled {
    background: var(--primary-dark) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-sanfin .navbar-brand {
    transition: var(--transition);
}

.navbar-sanfin .navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-sanfin .navbar-brand img {
    height: 48px;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.navbar-sanfin .navbar-brand img:hover {
    opacity: 0.85;
}

.navbar-sanfin .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 24px 18px !important;
    letter-spacing: 0.4px;
    position: relative;
    transition: var(--transition);
}

.navbar-sanfin .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--accent-light);
    border-radius: 2px;
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-sanfin .nav-link:hover,
.navbar-sanfin .nav-link.active {
    color: var(--white) !important;
}

.navbar-sanfin .nav-link:hover::after,
.navbar-sanfin .nav-link.active::after {
    width: 70%;
}

.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.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%2c255%2c255%2c0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ─── TOP BAR ─── */
.topbar {
    background: var(--primary-dark);
    padding: 8px 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar a {
    color: rgba(255, 255, 255, 0.7);
}

.topbar a:hover {
    color: var(--accent-light);
}

.topbar .topbar-icon {
    color: var(--accent);
    margin-right: 5px;
}

/* ─── HERO SECTION ─── */
.hero-section {
    position: relative;
    min-height: 92vh;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #1a4a7a 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40zm0-40h2l-2 2V0zm0 4l4-4h2l-6 6V4zm0 4l8-8h2L40 10V8zm0 4L52 0h2L40 14v-2zm0 4L56 0h2L40 18v-2zm0 4L60 0h2L40 22v-2zm0 4L64 0h2L40 26v-2zm0 4L68 0h2L40 30v-2zm0 4L72 0h2L40 34v-2zm0 4L76 0h2L40 38v-2zm0 4L80 0v2L42 40h-2zm4 0L80 4v2L46 40h-2zm4 0L80 8v2L50 40h-2zm4 0L80 12v2L54 40h-2zm4 0L80 16v2L58 40h-2zm4 0L80 20v2L62 40h-2zm4 0L80 24v2L66 40h-2zm4 0L80 28v2L70 40h-2zm4 0L80 32v2L74 40h-2zm4 0L80 36v2L78 40h-2zm4 0L80 40zM0 40h2l-2 2v-2zm4 0l-4 4v-2l2-2h2zm4 0l-8 8v-2l6-6h2zm4 0L4 48v-2l10-8h-2zm4 0L8 48v-2l8-8h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 150, 199, 0.20) 0%, transparent 70%);
    animation: pulse-glow 6s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.20);
    color: var(--accent-light);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 22px;
    backdrop-filter: blur(8px);
}

.hero-title {
    font-size: clamp(2.2rem, 6vw, 4.2rem);
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 22px;
    font-weight: 900;
}

.hero-title span {
    background: linear-gradient(135deg, var(--accent-light), #90e0ef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    color: rgba(255, 255, 255, 0.80);
    font-size: 1.08rem;
    margin-bottom: 36px;
    max-width: 540px;
    line-height: 1.75;
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 44px;
    flex-wrap: wrap;
}

.hero-stat-item {
    text-align: center;
}

.hero-stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
}

.hero-stat-number span {
    color: var(--accent-light);
}

.hero-stat-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.hero-visual {
    position: relative;
    z-index: 2;
}

.hero-img-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-img-wrap img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

.hero-badge {
    position: absolute;
    bottom: 28px;
    left: -28px;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 16px 22px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 190px;
}

.hero-badge-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    flex-shrink: 0;
}

.hero-badge-text strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
}

.hero-badge-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ─── SERVICES CARDS ─── */
.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent), var(--accent-light));
    transform: scaleY(0);
    transform-origin: top;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleY(1);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(0, 150, 199, 0.12), rgba(72, 202, 228, 0.12));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--accent);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--white);
    transform: rotate(-5deg) scale(1.1);
}

.service-card h5 {
    font-size: 1.08rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 18px;
}

.service-link {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.service-link:hover {
    gap: 10px;
    color: var(--accent-hover);
}

/* ─── WHY CHOOSE US ─── */
.why-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.why-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.why-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-md);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.10);
    transform: translateX(6px);
}

.why-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 22px;
    flex-shrink: 0;
}

.why-card h6 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 6px;
}

.why-card p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.87rem;
    margin: 0;
}

/* ─── ABOUT SECTION ─── */
.about-img-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: visible;
}

.about-img-wrap img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-exp-badge {
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 130px;
    height: 130px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.about-exp-badge .years {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.about-exp-badge .label {
    font-size: 0.7rem;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

.feature-item i {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, rgba(0, 150, 199, 0.15), rgba(72, 202, 228, 0.15));
    color: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.feature-item span {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* ─── TESTIMONIALS ─── */
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 34px 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.stars {
    color: #f4a800;
    margin-bottom: 16px;
    font-size: 14px;
}

.testimonial-text {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.75;
    font-size: 0.95rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.author-info strong {
    display: block;
    font-size: 0.92rem;
    color: var(--primary);
}

.author-info span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ─── CONTACT ─── */
.contact-info-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    height: 100%;
    transition: var(--transition);
}

.contact-info-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.contact-icon {
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 22px;
    margin-bottom: 18px;
}

.contact-form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 42px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.form-control-custom {
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-sm);
    padding: 13px 18px;
    font-size: 0.95rem;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    background: var(--light-bg);
    width: 100%;
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 150, 199, 0.10);
}

.form-control-custom::placeholder {
    color: var(--text-muted);
}

.form-label-custom {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--primary);
    margin-bottom: 7px;
    display: block;
    letter-spacing: 0.3px;
}

/* ─── MAP ─── */
.map-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* ─── SERVICE DETAIL PAGE ─── */
.detail-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.detail-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--white);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.detail-sidebar {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    position: sticky;
    top: 90px;
}

.detail-sidebar .sidebar-header {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    padding: 22px 26px;
    font-weight: 700;
    font-size: 1.05rem;
}

.sidebar-service-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 26px;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border);
    font-weight: 500;
    font-size: 0.92rem;
    transition: var(--transition);
}

.sidebar-service-link:last-child {
    border-bottom: none;
}

.sidebar-service-link:hover,
.sidebar-service-link.active {
    background: rgba(0, 150, 199, 0.08);
    color: var(--accent);
    padding-left: 32px;
}

.sidebar-service-link i {
    color: var(--accent);
    width: 20px;
}

.detail-content h2 {
    color: var(--primary);
    font-size: 1.9rem;
    margin-bottom: 16px;
}

.detail-content h4 {
    color: var(--primary);
    margin: 32px 0 14px;
}

.detail-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 16px;
}

.detail-content ul {
    padding-left: 0;
    list-style: none;
}

.detail-content ul li {
    padding: 8px 0;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
}

.detail-content ul li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.detail-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 28px;
}

/* ─── PAGE HEADER ─── */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #1a4a7a 100%);
    padding: 80px 0 70px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-header h1 {
    color: var(--white);
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.page-header .breadcrumb-item {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.88rem;
}

.page-header .breadcrumb-item a {
    color: var(--accent-light);
}

.page-header .breadcrumb-item.active {
    color: var(--white);
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.4);
    margin: 0 8px;
}

/* ─── CTA SECTION ─── */
.cta-section {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

/* ─── FOOTER ─── */
.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 70px 0 0;
}

.footer-brand img {
    height: 52px;
    filter: brightness(0) invert(1);
    margin-bottom: 18px;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.75;
    max-width: 310px;
}

.footer-heading {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 22px;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 12px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    padding: 6px 0;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--accent-light);
    padding-left: 6px;
}

.footer-link i {
    color: var(--accent);
    font-size: 12px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.70);
    font-size: 0.88rem;
}

.footer-contact-item i {
    color: var(--accent-light);
    margin-top: 2px;
    width: 16px;
    flex-shrink: 0;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.70);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.20);
    padding: 20px 0;
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
}

.footer-bottom a {
    color: var(--accent-light);
}

/* ─── BACK TO TOP ─── */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTop:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ─── AOS-LIKE ANIMATIONS ─── */
.fade-up {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-up:nth-child(2) {
    transition-delay: 0.1s;
}

.fade-up:nth-child(3) {
    transition-delay: 0.2s;
}

.fade-up:nth-child(4) {
    transition-delay: 0.3s;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 992px) {

    .hero-slider,
    .hero-slider .carousel-item {
        height: auto;
        min-height: 500px;
    }

    .hero-section {
        min-height: auto;
        padding: 80px 0 60px;
    }

    .hero-badge {
        display: none;
    }

    .about-exp-badge {
        bottom: -10px;
        right: -10px;
        width: 100px;
        height: 100px;
    }

    .about-exp-badge .years {
        font-size: 1.5rem;
    }

    .contact-form-card {
        padding: 28px;
    }
}

@media (max-width: 768px) {
    .section-pad {
        padding: 60px 0;
    }

    .topbar {
        display: none;
    }

    .hero-stats {
        gap: 20px;
    }

    .hero-stat-number {
        font-size: 1.5rem;
    }

    .navbar-sanfin .nav-link {
        padding: 14px 20px !important;
    }

    .navbar-sanfin .nav-link::after {
        display: none;
    }

    .detail-sidebar {
        position: static;
        margin-bottom: 30px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
}

/* ============================================================
   NEW ENHANCEMENTS: HERO CAROUSEL & PREMIUM UI
============================================================ */

/* ─── HERO CAROUSEL ─── */
.hero-slider {
    position: relative;
    overflow: hidden;
    height: 92vh;
}

.hero-slider .carousel-inner,
.hero-slider .carousel-item {
    height: 100%;
}

.hero-slide {
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 34, 64, 0.9) 0%, rgba(26, 53, 88, 0.75) 50%, rgba(0, 150, 199, 0.4) 100%);
    z-index: 1;
}

.hero-slider .container {
    position: relative;
    z-index: 10;
}

/* SLIDE CONTENT ANIMATIONS */
.carousel-item .hero-eyebrow,
.carousel-item .hero-title,
.carousel-item .hero-desc,
.carousel-item .hero-btns {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.carousel-item.active .hero-eyebrow {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.carousel-item.active .hero-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.carousel-item.active .hero-desc {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.carousel-item.active .hero-btns {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 54px;
    height: 54px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 30px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: var(--transition);
}

.hero-slider:hover .carousel-control-prev,
.hero-slider:hover .carousel-control-next {
    opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--accent);
    border-color: var(--accent);
    opacity: 1 !important;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    margin: 0 6px;
    transition: var(--transition);
}

.carousel-indicators .active {
    width: 28px;
    border-radius: 5px;
    background-color: var(--accent-light);
}

/* ─── PREMIUM UI REFINEMENTS ─── */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 25px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-light), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.floating {
    animation: floating 4s ease-in-out infinite;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.service-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.service-card:hover {
    background: linear-gradient(180deg, #fff 0%, #f9fbff 100%);
}

/* ─── PROCESS SECTION ─── */
.process-step {
    text-align: center;
    position: relative;
    padding: 0 20px;
}

.process-number {
    width: 70px;
    height: 70px;
    background: var(--white);
    border: 4px solid var(--accent);
    color: var(--primary);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 25px;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.process-step:hover .process-number {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-5px) scale(1.1);
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 35px;
    left: 60%;
    width: 80%;
    height: 2px;
    background: dashed var(--border);
    z-index: 1;
}

/* ─── COUNTER SECTION ─── */
.counter-box {
    padding: 30px;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.counter-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border-color: var(--accent);
}

.counter-icon {
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 15px;
    display: inline-block;
}

.contact-icon-sm {
    width: 50px;
    height: 50px;
    background: rgba(0, 150, 199, 0.1);
    color: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.counter-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
}

/* ─── TEAM SECTION ─── */
.team-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
}

.team-img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.team-img-wrap img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.team-item:hover .team-img-wrap img {
    transform: scale(1.1);
}

.team-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, var(--primary), transparent);
    padding: 80px 20px 20px;
    color: var(--white);
    transform: translateY(20px);
    transition: var(--transition);
    opacity: 0;
}

.team-item:hover .team-content {
    transform: translateY(0);
    opacity: 1;
}

.team-social {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.team-social a {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.8rem;
}

.team-social a:hover {
    background: var(--accent);
}

/* ─── FAQ ─── */
.accordion-custom .accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: var(--radius-sm) !important;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.accordion-custom .accordion-button {
    font-weight: 700;
    color: var(--primary);
    padding: 20px;
    background: var(--white);
    box-shadow: none;
}

.accordion-custom .accordion-button:not(.collapsed) {
    background: var(--light-bg);
    color: var(--accent);
}

@media (max-width: 992px) {
    .process-step:not(:last-child)::after {
        display: none;
    }
}