/* ============================================
   SOL Healthcare - Premium Warm Luxury Website
   Palette: Stone Â· Taupe Â· Greige Â· Copper Â· Bronze Â· Espresso
   ============================================ */

:root {
    /* Primary â€” Copper / Bronze accents */
    --primary-color: #b87333;
    --primary-dark: #8c5a2b;
    --primary-light: #d99b5f;
    --secondary-color: #c98a4b;
    --secondary-light: #e6b98a;
    --accent-color: #b87333;
    --accent-soft: #f5e6d3;

    /* Deep espresso â€” headings, nav, footer */
    --dark-color: #2b1d14;
    --dark-deep: #1a120b;

    /* Backgrounds â€” warm ivory, stone, greige */
    --light-color: #faf6f0;
    --white-color: #fffdf9;
    --bg-soft: #f5ede1;
    --bg-stone: #efe7dc;

    /* Text */
    --text-color: #4a3a2e;
    --text-light: #7a6a5a;

    /* Borders & lines */
    --border-color: #e2d5c3;
    --border-accent: #d99b5f;

    /* Shadows â€” warm, not grey */
    --shadow-sm: 0 4px 12px rgba(90, 60, 30, 0.06);
    --shadow-md: 0 8px 30px rgba(90, 60, 30, 0.10);
    --shadow-lg: 0 20px 50px rgba(90, 60, 30, 0.14);
    --shadow-xl: 0 30px 70px rgba(90, 60, 30, 0.20);

    /* Radii */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 40px;

    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Fonts */
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Manrope', sans-serif;
}

/* ============ BASE ============ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--light-color);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #e6b98a;
    line-height: 1.2;
}

p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: 95px;
    display: block;
}

/* ============ UTILITY ============ */
.section-pad {
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-pad-lg {
    padding: clamp(6rem, 10vw, 9rem) 0 clamp(3rem, 6vw, 5rem);
}

.bg-light-soft {
    background-color: var(--bg-soft);
}

.text-gradient {
    background: linear-gradient(135deg, #8c5a2b 0%, #b87333 50%, #d99b5f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.z-2 {
    position: relative;
    z-index: 2;
}

/* ============ SCROLL PROGRESS ============ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #8c5a2b, #b87333, #d99b5f);
    z-index: 9999;
    transition: width 0.1s ease-out;
    border-radius: 0 3px 3px 0;
}

/* ============ HEADER ============ */
.site-header {
    transition: var(--transition);
    padding: 0.6rem 0;
    background: transparent;
    z-index: 1030;
}

.site-header.scrolled {
    background: rgba(250, 246, 240, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(90, 60, 30, 0.08);
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--dark-color) !important;
    transition: var(--transition);
}

.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #8c5a2b, #b87333 60%, #d99b5f);
    border-radius: 12px;
    color: #fffdf9;
    font-size: 1.2rem;
    transition: var(--transition);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(140, 90, 43, 0.25);
}

.brand-text {
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--dark-color);
}

.brand-text span {
    font-weight: 400;
    color: var(--primary-dark);
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, #8c5a2b, #d99b5f);
    border-radius: 2px;
    transition: transform 0.3s ease;
    transform-origin: center;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-link:hover {
    color: var(--primary-dark) !important;
}

.nav-link.active {
    color: var(--primary-dark) !important;
    font-weight: 600;
}

/* When header is transparent (over hero slider) */
.site-header:not(.scrolled):not(.header-solid) .nav-link {
    color: #fffdf9 !important;
}

.site-header:not(.scrolled):not(.header-solid) .nav-link.active {
    color: #e6b98a !important;
}

.site-header:not(.scrolled):not(.header-solid) .brand-text {
    color: #fffdf9;
}

.site-header:not(.scrolled):not(.header-solid) .brand-text span {
    color: #e6b98a;
}

.site-header:not(.scrolled):not(.header-solid) .toggler-bar {
    background: #fffdf9;
}

.site-header.header-solid {
    background: ivory;
    box-shadow: 0 4px 20px rgba(90, 60, 30, 0.08);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    outline: none;
    box-shadow: none !important;
}

.toggler-bar {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--dark-color);
    border-radius: 3px;
    transition: var(--transition);
}

.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.btn-cta {
    background: linear-gradient(135deg, #8c5a2b, #b87333);
    color: #fffdf9 !important;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(140, 90, 43, 0.25);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(140, 90, 43, 0.35);
    background: linear-gradient(135deg, #6e441f, #8c5a2b);
    color: #fffdf9 !important;
}

/* ============ BASE BUTTONS ============ */
.btn-primary-custom {
    background: linear-gradient(135deg, #8c5a2b, #b87333);
    color: #fffdf9;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(140, 90, 43, 0.30);
    position: relative;
    overflow: hidden;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 250, 240, 0.35), transparent);
    transition: left 0.5s ease;
}

.btn-primary-custom:hover::before {
    left: 100%;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(140, 90, 43, 0.40);
    color: #fffdf9;
}

.btn-outline-custom {
    background: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--primary-color);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.btn-outline-custom:hover {
    background: var(--primary-color);
    color: #fffdf9;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(140, 90, 43, 0.25);
}

.btn-light-custom {
    background: #fffdf9;
    color: var(--primary-dark);
    border: none;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.btn-light-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    color: var(--dark-color);
    background: #f5ede1;
}

/* ============ FLOATING SHAPES ============ */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.10;
    pointer-events: none;
    z-index: 1;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: #d99b5f;
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: #c8b8a4;
    bottom: 10%;
    left: -80px;
    animation: float 7s ease-in-out infinite 1s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: #b87333;
    top: 40%;
    right: 5%;
    animation: float 6s ease-in-out infinite 2s;
}

.shape-4 {
    width: 250px;
    height: 250px;
    background: #8c5a2b;
    bottom: -80px;
    right: 30%;
    animation: float 9s ease-in-out infinite 0.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* ============ SECTIONS ============ */
.section-header {
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-tag {
    display: inline-block;
    padding: 0.35rem 1.2rem;
    background: rgba(184, 115, 51, 0.08);
    border: 1px solid rgba(184, 115, 51, 0.20);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.section-tag.light {
    background: rgba(255, 253, 249, 0.15);
    border-color: rgba(255, 253, 249, 0.30);
    color: #fffdf9;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 1rem;
    letter-spacing: -0.4px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ============ SERVICE CARDS ============ */
.services-section {
    background: var(--light-color);
}

.service-card {
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    height: 100%;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

#servicesCarousel .carousel-item {
    transition: transform 2.5s ease-in-out;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #8c5a2b, #b87333, #d99b5f);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(90, 60, 30, 0.15);
    border-color: var(--border-accent);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(184, 115, 51, 0.12), rgba(217, 155, 95, 0.15));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, #8c5a2b, #b87333);
    color: #fffdf9;
    transform: scale(1.05) rotate(-3deg);
    box-shadow: 0 8px 20px rgba(140, 90, 43, 0.3);
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--dark-color);
}

.service-card p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.service-card .p-4 {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(184, 115, 51, 0.08);
    color: var(--primary-color);
    font-size: 1rem;
    transition: var(--transition);
    margin-top: auto;
    align-self: flex-end;
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    opacity: 0;
    transform: translateX(-8px);
}

.service-card:hover .service-arrow {
    opacity: 1;
    transform: translateX(0);
    background: var(--primary-color);
    color: #fffdf9;
}

/* ============ CTA SECTION ============ */
.cta-section {
    background:
        radial-gradient(800px 400px at 20% 20%, rgba(217, 155, 95, 0.25), transparent 60%),
        radial-gradient(700px 500px at 90% 90%, rgba(140, 90, 43, 0.35), transparent 65%),
        linear-gradient(135deg, #2b1d14 0%, #4a2f1c 55%, #6e441f 100%);
    position: relative;
    overflow: hidden;
}

.cta-bg-shape {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(217, 155, 95, 0.06);
    top: -200px;
    right: -100px;
    pointer-events: none;
}

.cta-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 253, 249, 0.04);
    bottom: -150px;
    left: -100px;
    pointer-events: none;
}

.cta-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    color: #fffdf9;
    margin-bottom: 1rem;
    letter-spacing: -0.4px;
}

.cta-text {
    font-size: 1.1rem;
    color: rgba(255, 253, 249, 0.80);
    max-width: 600px;
    margin: 0 auto 1rem;
}

/* ============ ABOUT PAGE ============ */
.about-hero {
    background:
        radial-gradient(900px 500px at 90% 10%, rgba(217, 155, 95, 0.14), transparent 60%),
        linear-gradient(160deg, #faf6f0, #fffdf9);
    padding-top: 7rem;
}

.hero-title-about {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 1.2rem;
    letter-spacing: -0.5px;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    max-width: 600px;
}

.hero-desc-sm {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
}

.about-hero-img-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(90, 60, 30, 0.22);
    border: 1px solid var(--border-color);
    display: inline-block;
    max-width: 100%;
}

.about-hero-img {
    max-width: 100%;
    height: 600px;
    max-height: 900px;
    display: block;
    transition: var(--transition-slow);
}

.about-hero-img:hover {
    transform: scale(1.03);
}

/* Approach cards */
.approach-section {
    background: var(--bg-soft);
}

.approach-card {
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.approach-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #8c5a2b, #d99b5f);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.approach-card:hover::after {
    transform: scaleX(1);
}

.approach-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(90, 60, 30, 0.12);
    border-color: var(--border-accent);
}

.approach-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: rgba(184, 115, 51, 0.10);
    position: absolute;
    top: 0.5rem;
    right: 1.2rem;
    line-height: 1;
}

.approach-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(184, 115, 51, 0.12), rgba(217, 155, 95, 0.15));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    transition: var(--transition);
}

.approach-card:hover .approach-icon {
    background: linear-gradient(135deg, #8c5a2b, #b87333);
    color: #fffdf9;
    box-shadow: 0 8px 20px rgba(140, 90, 43, 0.28);
}

.approach-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.approach-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Care Beyond */
.care-beyond {
    background:
        radial-gradient(800px 500px at 20% 30%, rgba(217, 155, 95, 0.22), transparent 60%),
        linear-gradient(135deg, #2b1d14 0%, #4a2f1c 60%, #6e441f 100%);
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.care-overlay {
    position: absolute;
    inset: 0;
    background: url('../images/community-care.jpg') center/cover no-repeat;
    opacity: 0.18;
    mix-blend-mode: luminosity;
}

/* ============ SERVICES PAGE ============ */
.services-hero {
    background:
        radial-gradient(900px 500px at 10% 20%, rgba(217, 155, 95, 0.14), transparent 60%),
        linear-gradient(160deg, #faf6f0, #fffdf9);
    padding-top: 7rem;
}

.service-detail {
    background: var(--light-color);
}

.service-detail.bg-light-soft {
    background: var(--bg-stone);
}

.service-img-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: visible;
}

.service-img {
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(90, 60, 30, 0.18);
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 350px;
    transition: var(--transition-slow);
    border: 1px solid var(--border-color);
}

.service-img:hover {
    transform: scale(1.02);
}

.floating-med-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: #fffdf9;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(90, 60, 30, 0.18);
    animation: float 5s ease-in-out infinite;
    z-index: 3;
    border: 1px solid var(--border-color);
}

.icon-1 {
    top: 10%;
    right: -5%;
    animation-delay: 0s;
}

.icon-2 {
    bottom: 15%;
    left: -5%;
    animation-delay: 1.5s;
}

.icon-3 {
    top: 20%;
    left: -5%;
    animation-delay: 0.8s;
}

.animated-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.animated-list li {
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    transition: var(--transition);
    opacity: 0;
    transform: translateX(-20px);
}

.animated-list li.visible {
    opacity: 1;
    transform: translateX(0);
}

.animated-list li i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.stats-overlay {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    gap: 1rem;
}

.stat-item {
    background: rgba(255, 253, 249, 0.94);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-sm);
    padding: 0.8rem 1.2rem;
    text-align: center;
    box-shadow: 0 8px 20px rgba(90, 60, 30, 0.12);
    border: 1px solid var(--border-color);
}

.stat-item .counter {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.stat-item small {
    display: block;
    font-size: 0.7rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============ HEALTHTECH / CONTACT ============ */
.tech-hero {
    background:
        radial-gradient(900px 500px at 90% 20%, rgba(217, 155, 95, 0.14), transparent 60%),
        linear-gradient(160deg, #faf6f0, #fffdf9);
    padding-top: 7rem;
}

.tech-focus-section {
    background: var(--bg-soft);
}

.tech-card {
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(217, 155, 95, 0.10) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.tech-card:hover::before {
    opacity: 1;
}

.tech-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(90, 60, 30, 0.14);
    border-color: var(--border-accent);
}

.tech-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(184, 115, 51, 0.12), rgba(217, 155, 95, 0.18));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.tech-card:hover .tech-icon {
    background: linear-gradient(135deg, #8c5a2b, #b87333);
    color: #fffdf9;
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(140, 90, 43, 0.30);
}

.tech-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    position: relative;
    z-index: 1;
}

.tech-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.tech-closing {
    background:
        radial-gradient(800px 500px at 20% 40%, rgba(217, 155, 95, 0.18), transparent 60%),
        radial-gradient(700px 500px at 90% 80%, rgba(140, 90, 43, 0.35), transparent 65%),
        linear-gradient(135deg, #1a120b 0%, #2b1d14 50%, #4a2f1c 100%);
    position: relative;
    overflow: hidden;
}

.network-bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(217, 155, 95, 0.20) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(184, 115, 51, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(217, 155, 95, 0.10) 0%, transparent 50%);
}

/* Contact section */
.contact-section {
    background: var(--bg-soft);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 1.2rem;
    background: var(--white-color);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(90, 60, 30, 0.06);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(6px);
    box-shadow: 0 12px 30px rgba(90, 60, 30, 0.12);
    border-color: var(--border-accent);
}

.contact-item i {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-top: 0.2rem;
}

.contact-item strong {
    display: block;
    font-size: 0.85rem;
    color: var(--dark-color);
    font-weight: 700;
}

.contact-item span,
.contact-item a {
    font-size: 0.9rem;
    color: var(--text-light);
}

.contact-item a:hover {
    color: var(--primary-dark);
}

.contact-form-wrapper {
    background: var(--white-color);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: 0 20px 50px rgba(90, 60, 30, 0.12);
    border: 1px solid var(--border-color);
}

.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.4rem;
}

.form-control {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--light-color);
    color: var(--text-color);
}

.form-control::placeholder {
    color: var(--text-light);
    opacity: 0.6;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(184, 115, 51, 0.12);
    background: #fffdf9;
    color: var(--text-color);
}

.form-control.is-invalid {
    border-color: #c0392b;
}

.form-success {
    display: none;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(184, 115, 51, 0.08), rgba(217, 155, 95, 0.15));
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-sm);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.95rem;
    animation: fadeInUp 0.5s ease;
}

.form-success.show {
    display: block;
}

/* ============ FOOTER ============ */
.site-footer {
    background: linear-gradient(180deg, #2b1d14 0%, #1a120b 100%);
    color: rgba(255, 253, 249, 0.70);
    padding: 4rem 0 1.5rem;
    border-top: 3px solid var(--primary-color);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.footer-brand img {
    border-radius: var(--radius-md);
    padding: 8px;
    background-color: #ffffff;
}

.footer-brand .brand-icon {
    background: linear-gradient(135deg, #8c5a2b, #b87333, #d99b5f);
    color: #fffdf9;
}

.footer-brand .brand-text {
    color: #fffdf9;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
}

.footer-brand .brand-text span {
    color: var(--primary-light);
    font-weight: 400;
}

.footer-desc {
    font-size: 0.9rem;
    color: rgba(255, 253, 249, 0.50);
    margin-bottom: 0;
}

.footer-heading {
    color: #fffdf9;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links,
.footer-contact,
.footer-social {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-contact li,
.footer-social li {
    margin-bottom: 0.7rem;
    font-size: 0.9rem;
}

.footer-links a,
.footer-contact a,
.footer-social a {
    color: rgba(255, 253, 249, 0.65);
    transition: var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover,
.footer-social a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-contact i,
.footer-social i {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 253, 249, 0.10);
    margin-top: 3rem;
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 253, 249, 0.45);
    margin: 0;
}

/* ============ BACK TO TOP ============ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8c5a2b, #b87333);
    color: #fffdf9;
    border: none;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(140, 90, 43, 0.35);
    z-index: 1050;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(140, 90, 43, 0.45);
}

/* ============ REVEALS ============ */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale {
    opacity: 0;
    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);
    will-change: opacity, transform;
}

.reveal {
    transform: translateY(50px);
}

.reveal-left {
    transform: translateX(-60px);
}

.reveal-right {
    transform: translateX(60px);
}

.reveal-scale {
    transform: scale(0.88);
}

.reveal.revealed,
.reveal-left.revealed,
.reveal-right.revealed,
.reveal-scale.revealed {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

.reveal-delay-5 {
    transition-delay: 0.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   HERO SLIDER â€” Warm Luxury Cinematic
   ============================================ */

.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 640px;
    max-height: 1000px;
    overflow: hidden;
    background-color: #1a120b;
    isolation: isolate;
}

.hero-slides {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        visibility 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Ken Burns zoom */
.hero-slide-bg {
    position: absolute;
    inset: -3%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05) translate3d(0, 0, 0);
    transition: transform 7s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
    filter: saturate(0.95) contrast(1.02);
}

.hero-slide.is-active .hero-slide-bg {
    transform: scale(1.15) translate3d(-1%, -1%, 0);
}

/* Warm luxury overlay */
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg,
            rgba(26, 18, 11, 0.86) 0%,
            rgba(43, 29, 20, 0.72) 38%,
            rgba(43, 29, 20, 0.42) 65%,
            rgba(184, 115, 51, 0.18) 100%),
        radial-gradient(1200px 600px at 15% 30%, rgba(217, 155, 95, 0.10), transparent 60%);
    z-index: 2;
}

.hero-slide-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(90deg, rgba(217, 155, 95, 0.03) 0 1px, transparent 1px 120px),
        repeating-linear-gradient(0deg, rgba(217, 155, 95, 0.03) 0 1px, transparent 1px 120px);
    opacity: 0.6;
    pointer-events: none;
}

.hero-slide-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    padding-bottom: 6rem;
}

.hero-slide-inner {
    max-width: 780px;
    color: #fffdf9;
}

.hero-slide-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.3rem;
    background: rgba(217, 155, 95, 0.15);
    border: 1px solid rgba(217, 155, 95, 0.45);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #e6b98a;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.6rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.hero-slide-tag i {
    color: #d99b5f;
}

.hero-slide-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(2.2rem, 5.2vw, 4.4rem);
    line-height: 1.08;
    letter-spacing: -0.8px;
    color: #fffdf9;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}

.hero-slide-title .text-gradient {
    background: linear-gradient(135deg, #e6b98a 0%, #d99b5f 45%, #b87333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-slide-subtitle {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    color: rgba(255, 253, 249, 0.85);
    max-width: 620px;
    line-height: 1.7;
    margin-bottom: 2.2rem;
}

.hero-slide-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-slider .btn-outline-custom {
    color: #fffdf9;
    border-color: rgba(217, 155, 95, 0.65);
    background: rgba(255, 253, 249, 0.04);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.hero-slider .btn-outline-custom:hover {
    background: #b87333;
    border-color: #b87333;
    color: #fffdf9;
}

/* Text entrance */
.hero-slide .reveal-text {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.hero-slide.is-active .reveal-text {
    opacity: 1;
    transform: translateY(0);
}

.hero-slide.is-active .hero-slide-tag {
    transition-delay: 0.25s;
}

.hero-slide.is-active .hero-slide-title {
    transition-delay: 0.45s;
}

.hero-slide.is-active .hero-slide-subtitle {
    transition-delay: 0.65s;
}

.hero-slide.is-active .hero-slide-buttons {
    transition-delay: 0.85s;
}

/* Navigation arrows */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 253, 249, 0.06);
    border: 1px solid rgba(217, 155, 95, 0.45);
    color: #fffdf9;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-nav:hover {
    background: #b87333;
    border-color: #b87333;
    color: #fffdf9;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 10px 30px rgba(184, 115, 51, 0.45);
}

.hero-nav:focus-visible {
    outline: 2px solid #d99b5f;
    outline-offset: 3px;
}

.hero-prev {
    left: 2.5rem;
}

.hero-next {
    right: 2.5rem;
}

/* Counter */
.hero-counter {
    position: absolute;
    bottom: 2.4rem;
    right: 2.5rem;
    z-index: 5;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 3px;
    color: rgba(255, 253, 249, 0.55);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-counter-current {
    color: #d99b5f;
    font-size: 1.4rem;
    min-width: 2ch;
    text-align: right;
    transition: color 0.4s ease;
}

.hero-counter-divider {
    opacity: 0.4;
    font-size: 1.1rem;
}

/* Indicators */
.hero-indicators {
    position: absolute;
    bottom: 2.6rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.9rem;
    z-index: 5;
}

.hero-indicator {
    position: relative;
    width: 54px;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 253, 249, 0.22);
    border: none;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    transition: background 0.35s ease, transform 0.35s ease;
}

.hero-indicator:hover {
    background: rgba(255, 253, 249, 0.38);
    transform: scaleY(1.4);
}

.hero-indicator-fill {
    position: absolute;
    inset: 0;
    width: 0%;
    background: linear-gradient(90deg, #8c5a2b, #d99b5f);
    border-radius: 4px;
    transform-origin: left center;
}

.hero-indicator.is-active .hero-indicator-fill {
    animation: indicatorFill 6s linear forwards;
}

.hero-slider.is-paused .hero-indicator.is-active .hero-indicator-fill {
    animation-play-state: paused;
}

@keyframes indicatorFill {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

/* Scroll cue */
.hero-scroll {
    position: absolute;
    bottom: 2.4rem;
    left: 2.5rem;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 253, 249, 0.65);
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: color 0.35s ease;
}

.hero-scroll:hover {
    color: #d99b5f;
}

.hero-scroll-line {
    display: block;
    width: 46px;
    height: 1px;
    background: currentColor;
    position: relative;
    overflow: hidden;
}

.hero-scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #d99b5f;
    animation: scrollLine 2.4s ease-in-out infinite;
}

@keyframes scrollLine {
    0% {
        left: -100%;
    }

    60% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

.hero-slider::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(1400px 700px at 50% 110%, rgba(184, 115, 51, 0.14), transparent 65%);
    z-index: 4;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1199.98px) {
    .glass-card-1 {
        right: 0;
    }

    .glass-card-2 {
        left: 0;
    }
}

@media (max-width: 991.98px) {
    .site-header {
        background: rgba(250, 246, 240, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 4px 20px rgba(90, 60, 30, 0.08);
        border-bottom: 1px solid var(--border-color);
    }

    /* Force light nav text inside mobile panel */
    .site-header:not(.scrolled) .nav-link,
    .site-header:not(.scrolled) .brand-text {
        color: var(--dark-color) !important;
    }

    .site-header:not(.scrolled) .brand-text span {
        color: var(--primary-dark);
    }

    .site-header:not(.scrolled) .toggler-bar {
        background: var(--dark-color);
    }

    .navbar-collapse {
        background: #fffdf9;
        border-radius: var(--radius-md);
        padding: 1rem;
        margin-top: 0.5rem;
        box-shadow: 0 20px 50px rgba(90, 60, 30, 0.15);
        border: 1px solid var(--border-color);
    }

    .nav-link {
        padding: 0.7rem 1rem !important;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link.active {
        background: rgba(184, 115, 51, 0.08);
        border-radius: 10px;
    }

    .hero-slider {
        height: 92vh;
        min-height: 620px;
    }

    .hero-prev {
        left: 1rem;
    }

    .hero-next {
        right: 1rem;
    }

    .hero-nav {
        width: 46px;
        height: 46px;
        font-size: 1rem;
    }

    .hero-counter {
        right: 1.25rem;
        bottom: 1.4rem;
        font-size: 0.8rem;
    }

    .hero-counter-current {
        font-size: 1.15rem;
    }

    .hero-scroll {
        left: 1.25rem;
        bottom: 1.5rem;
        font-size: 0.65rem;
    }

    .hero-scroll-line {
        width: 34px;
    }

    .hero-slide-content {
        padding-top: 4rem;
        padding-bottom: 6rem;
    }

    .about-hero {
        padding-top: 6rem;
    }

    .services-hero {
        padding-top: 6rem;
    }

    .tech-hero {
        padding-top: 6rem;
    }

    .service-detail .row {
        text-align: center;
    }

    .service-img-wrapper {
        margin-bottom: 2rem;
    }

    .animated-list li {
        justify-content: center;
    }

    .stats-overlay {
        bottom: 1rem;
        right: 1rem;
    }
}

@media (max-width: 767.98px) {
    .hero-slider {
        height: 88vh;
        min-height: 580px;
    }

    .hero-nav {
        display: none;
    }

    .hero-slide-title {
        font-size: clamp(1.7rem, 7vw, 2.5rem);
        letter-spacing: -0.4px;
    }

    .hero-slide-subtitle {
        font-size: 0.98rem;
    }

    .hero-slide-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .hero-slide-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-indicators {
        bottom: 5.4rem;
        gap: 0.6rem;
    }

    .hero-indicator {
        width: 40px;
        height: 3px;
    }

    .hero-counter {
        bottom: 1.4rem;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .hero-scroll {
        display: none;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 42px;
        height: 42px;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .service-card {
        padding: 1.5rem 1.2rem;
    }
}

@media (max-width: 575.98px) {
    .section-pad {
        padding: 3rem 0;
    }

    .section-pad-lg {
        padding: 5rem 0 2.5rem;
    }

    .hero-slider {
        min-height: 560px;
    }

    .hero-slide-tag {
        font-size: 0.68rem;
        padding: 0.4rem 1rem;
        letter-spacing: 1.5px;
        margin-bottom: 1.1rem;
    }

    .hero-slide-content {
        padding-top: 3.5rem;
        padding-bottom: 7rem;
    }

    .hero-indicators {
        bottom: 4.6rem;
    }

    .hero-title-about {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    .approach-card {
        padding: 1.5rem 1.2rem;
    }

    .approach-number {
        font-size: 2.2rem;
    }

    .tech-card {
        padding: 1.5rem 1.2rem;
    }

    .stats-overlay {
        flex-direction: column;
        gap: 0.5rem;
        bottom: 0.5rem;
        right: 0.5rem;
    }

    .stat-item {
        padding: 0.5rem 0.8rem;
    }

    .stat-item .counter {
        font-size: 1.1rem;
    }
}

html,
body {
    overflow-x: hidden;
    max-width: 100vw;
}

.container {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1;
        transform: none;
    }

    .hero-slide-bg,
    .hero-slide.is-active .hero-slide-bg {
        transform: none !important;
        transition: none !important;
    }

    .hero-slide .reveal-text {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-indicator.is-active .hero-indicator-fill {
        animation: none;
        width: 100%;
    }

    .hero-scroll-line::after {
        display: none;
    }
}

/* ============ PAGE BANNER ============ */
.page-banner {
    position: relative;
    height: 270px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fffdf9;
    text-align: center;
    z-index: 1;
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(43, 29, 20, 0.7);
    z-index: -1;
}

.page-banner-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.page-banner-breadcrumb {
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark-color);
}

/* ============ CUSTOM ANIMATIONS ============ */
.animate-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

.animate-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(90, 60, 30, 0.15) !important;
}