/* =========================================
   1. BRAND VARIABLES & THEME SETUP
   ========================================= */
:root {
    /* --- PREMIUM BRAND PALETTE --- */
    --primary-color: #005f56;  /* Deep Teal */
    --primary-gradient: linear-gradient(135deg, #005f56 0%, #004d46 100%);
    --accent-color: #8cc63f;   /* Lime Green */
    --accent-gradient: linear-gradient(135deg, #8cc63f 0%, #7ab32f 100%);
    
    /* UI Colors */
    --dark-slate: #1a2e35;     /* Text Color */
    --light-bg: #f8fbfb;       /* Minty White */
    
    /* Shadows */
    --shadow-sm: 0 5px 15px rgba(0, 95, 86, 0.08);
    --shadow-md: 0 15px 35px rgba(0, 95, 86, 0.12);
    --shadow-glow: 0 10px 30px rgba(140, 198, 63, 0.4); 
}

/* =========================================
   2. BASE & GLOBAL STYLES
   ========================================= */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-slate);
    background-color: #ffffff;
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

html {
    scroll-padding-top: 80px; 
    scroll-behavior: smooth;
}

/* Global Utilities */
.text-primary { color: #005f56 !important; }
.bg-primary { background: var(--primary-gradient) !important; }

.trust-badge {
    background: rgba(0, 95, 86, 0.08);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    border: 1px solid rgba(0, 95, 86, 0.1);
    display: inline-flex;
    align-items: center;
}

img {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

img:not([src]) {
    opacity: 0;
}

/* =========================================
   3. NAVIGATION (SLIM PROFESSIONAL)
   ========================================= */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    /* Slim Header Updates */
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    min-height: 65px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.navbar-brand img {
    max-height: 45px;
    width: auto;
}

.nav-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: #444 !important;
    margin: 0 10px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #004d46 !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 10px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: calc(100% - 20px);
}

.btn-nav-cta {
    background-color: #004d46;
    color: white !important;
    border-radius: 50px;
    padding: 8px 20px !important;
    font-weight: 600;
    font-size: 0.9rem;
    margin-left: 15px;
    box-shadow: 0 4px 10px rgba(0, 77, 70, 0.2);
}

.btn-nav-cta:hover {
    background-color: #005f56;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 77, 70, 0.3);
}

/* =========================================
   4. HERO SECTION (DARK PREMIUM)
   ========================================= */
.hero-section {
    position: relative;
    background: url('../assets/hero_bg.webp') center/cover no-repeat;
    padding: 120px 0;
    overflow: hidden;
    color: white;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    top: 0; left: 0;
    background: linear-gradient(90deg, rgba(5, 20, 24, 0.85) 0%, rgba(0, 95, 86, 0.70) 50%, rgba(0, 95, 86, 0.25) 100%) !important;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    color: #ffffff !important;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.hero-section .text-primary {
    color: #8cc63f !important;
}

.hero-section p.lead, .hero-section .text-secondary {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 400;
}

.hero-section .fas.text-primary {
    color: #8cc63f !important;
}

.hero-section .trust-badge {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    box-shadow: none;
}

/* =========================================
   5. HERO FORM (GLASS EFFECT)
   ========================================= */
.hero-form-card {
    background: rgba(255, 255, 255, 0.85) !important; 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-top: 5px solid var(--accent-color) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 20px rgba(140, 198, 63, 0.2); 
    border-radius: 20px;
    padding: 2.5rem 2rem !important;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.hero-form-card .text-muted small {
    color: #555 !important;
    font-weight: 500;
}

.form-control, .form-select {
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    padding: 12px 15px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    background-color: #ffffff;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(140, 198, 63, 0.15);
}

.form-floating > label { color: #888; }

/* =========================================
   6. TRUST BAR & BENEFITS
   ========================================= */
.trust-bar {
    background: #004d46; 
    background-image: linear-gradient(135deg, #005f56 0%, #004d46 100%);
    padding: 25px 0;
    position: relative;
    z-index: 5;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-bottom: 3px solid var(--accent-color);
}

.trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 10px;
}

.trust-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.trust-item i {
    color: var(--accent-color) !important;
    font-size: 1.8rem;
    margin-right: 15px;
    margin-bottom: 0;
    filter: drop-shadow(0 0 5px rgba(140, 198, 63, 0.3));
}

.trust-item span {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1.05rem;
    text-transform: none;
    color: #ffffff;
    line-height: 1.2;
    text-align: left;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.benefit-item i {
    min-width: 30px; 
    font-size: 1.3rem;
    margin-top: 2px;
    line-height: 1;
}

.benefit-item div {
    padding-left: 10px;
    margin-top: -1px;
}

.benefit-item strong {
    display: block;
    line-height: 1.2;
    margin-bottom: 5px;
    color: #212529;
}

.benefit-item p {
    margin: 0;
    line-height: 1.5;
    color: #6c757d;
}

.list-unstyled li i {
    min-width: 25px;
    margin-top: 5px;
}

/* =========================================
   7. PROCESS SECTION (TIMELINE)
   ========================================= */
#process {
    background-color: #f4fdfb;
    padding: 80px 0;
    position: relative;
}

.process-step-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 20px;
    position: relative;
    border: 1px solid rgba(0, 95, 86, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.process-step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 95, 86, 0.1);
    border-color: var(--accent-color);
}

.step-icon {
    width: 70px; height: 70px;
    background: linear-gradient(135deg, #eafcf9 0%, #ffffff 100%);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 95, 86, 0.1);
    transition: all 0.3s ease;
}

.process-step-card:hover .step-icon {
    background: var(--primary-color);
    color: var(--accent-color);
    transform: rotateY(180deg);
}

.process-step-card h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: #004d46;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.process-step-card p {
    font-family: 'Poppins', sans-serif;
    color: #5a6b70;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 0;
}

.step-number-bg {
    position: absolute;
    top: -15px;
    right: -5px;
    font-size: 5rem;
    font-weight: 800;
    color: rgba(0, 95, 86, 0.04);
    line-height: 1;
    z-index: 0;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -2px;
}

/* =========================================
   8. TECHNIQUES SECTION
   ========================================= */
.techniques-section {
    background-color: #f8fcfb;
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.tech-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    position: relative;
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 95, 86, 0.1);
}

.most-popular-badge {
    background: var(--accent-color);
    color: #fff;
    text-align: center;
    padding: 8px 0;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    width: 100%;
    z-index: 10;
}

.tech-img-wrapper {
    height: 220px;
    background: #eef5f4;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.tech-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.tech-card:hover .tech-img-wrapper img {
    transform: scale(1.1);
}

.tech-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tech-subtitle {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.tech-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #004d46;
    margin-bottom: 15px;
    line-height: 1.2;
}

.tech-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.tech-features-list {
    margin-top: auto;
    padding-left: 0;
    list-style: none;
    margin-bottom: 0;
}

.tech-features-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    font-size: 0.9rem;
    color: #444;
    line-height: 1.4;
}

.tech-features-list li i {
    color: var(--accent-color);
    margin-right: 12px;
    font-size: 1.1rem;
    min-width: 20px;
    margin-top: 2px;
}

.tech-card.featured {
    border: 2px solid var(--accent-color);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 25px 50px rgba(0, 95, 86, 0.15);
}

.tech-card.featured:hover {
    transform: scale(1.08) translateY(-10px);
}

.col-md-4:nth-child(2) .tech-card .bg-primary {
    background: var(--accent-gradient) !important;
    color: #fff !important;
    box-shadow: var(--shadow-glow);
}

/* =========================================
   9. RESULTS SECTION
   ========================================= */
#results {
    background-color: #e3efed;
    border-top: 1px solid #cddbd9;
    padding-top: 80px;
    padding-bottom: 25px;
    position: relative;
    z-index: 1;
}

.result-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(0, 95, 86, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 35px rgba(0, 77, 70, 0.08); 
}

.result-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 25px 50px rgba(0, 95, 86, 0.15);
}

.before-after-container {
    height: 250px;
    position: relative;
    overflow: hidden;
    background: #eef5f4;
}

.ba-stitched-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.result-card:hover .ba-stitched-image {
    transform: scale(1.05);
}

.ba-label {
    position: absolute;
    bottom: 12px;
    font-size: 0.7rem;
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.label-before { 
    left: 12px; 
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.label-after {
    right: 12px;
    background: var(--accent-color);
    color: #0b2226;
    box-shadow: 0 2px 10px rgba(140, 198, 63, 0.3);
}

.result-details {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.patient-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #004d46;
}

.patient-specs {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.patient-specs span {
    display: flex;
    align-items: center;
}

.patient-specs span i {
    color: var(--accent-color);
    margin-right: 8px;
}

.graft-badge {
    margin-top: auto;
    display: inline-block;
    background: #f0fdf4;
    color: #1a7f37;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(140, 198, 63, 0.3);
    align-self: flex-start;
}

/* =========================================
   10. FAQ SECTION
   ========================================= */
#faq {
    background-color: #ffffff;
    padding: 80px 0;
}

.custom-accordion .accordion-item {
    border: none;
    margin-bottom: 15px;
    background: transparent;
    box-shadow: var(--shadow-sm);
    border-radius: 10px !important;
    overflow: hidden;
}

.custom-accordion .accordion-button {
    background-color: #f8fcfb;
    color: #004d46;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 20px 25px;
    border-radius: 12px !important;
    border: 1px solid rgba(0, 95, 86, 0.05);
    box-shadow: none;
    transition: all 0.3s ease;
}

.custom-accordion .accordion-button:hover {
    background-color: #eafcf9;
    padding-left: 30px;
}

.custom-accordion .accordion-button:not(.collapsed) {
    background-color: #004d46;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(0, 77, 70, 0.15);
}

.custom-accordion .accordion-button::after {
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.custom-accordion .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.custom-accordion .accordion-body {
    padding: 25px;
    color: #555;
    line-height: 1.7;
    background: #fff;
    border-radius: 0 0 12px 12px;
    border: 1px solid rgba(0,0,0,0.03);
    font-size: 0.95rem;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,0.1);
}

/* =========================================
   11. FOOTER & CONTACT
   ========================================= */
.footer-section {
    background-color: #051014;
    background-image: radial-gradient(#005f56 0.5px, transparent 0.5px);
    background-size: 20px 20px; 
    position: relative;
    border-top: 5px solid var(--accent-color);
}

.footer-section h5, .footer-section h4 {
    color: var(--accent-color) !important;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 10px;
}

.footer-link:hover {
    color: var(--accent-color);
    padding-left: 5px;
    text-shadow: 0 0 10px rgba(140, 198, 63, 0.5);
}

.social-icon-box {
    width: 40px; height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center; justify-content: center;
    border-radius: 50%;
    color: white;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icon-box:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(140, 198, 63, 0.3);
}

.footer-map-frame {
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 200px;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

#contact {
    background-color: #051418;
    padding-top: 80px;
    padding-bottom: 30px;
    color: white;
    position: relative;
    border-top: 4px solid var(--accent-color);
}

.contact-header h2 {
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-icon-box {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-details h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #e3efed;
}

.contact-details p {
    color: #aebdbb;
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.footer-map {
    width: 100%;
    height: 220px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
    filter: grayscale(100%) invert(92%) contrast(83%);
    transition: all 0.3s ease;
}

.footer-map:hover {
    filter: none;
    border-color: var(--accent-color);
}

.booking-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    color: #333;
    position: relative;
    top: -10px;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.85rem;
    color: #6c757d;
}

.footer-bottom a {
    color: #aebdbb;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: var(--accent-color);
}

/* =========================================
   12. BUTTONS & KEYFRAMES
   ========================================= */
@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(0, 95, 86, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 95, 86, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 95, 86, 0); }
}

.btn-primary, .btn-dark {
    background: linear-gradient(135deg, #005f56 0%, #004d46 100%) !important;
    border: none !important;
    color: white !important;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0, 95, 86, 0.3);
    transition: all 0.3s ease;
    animation: pulse-green 2s infinite; 
}

.btn-primary:hover, .btn-dark:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #007065 0%, #005f56 100%) !important;
    box-shadow: 0 15px 35px rgba(140, 198, 63, 0.4); 
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* =========================================
   13. MOBILE & RESPONSIVE
   ========================================= */
.mobile-sticky-cta {
    position: fixed; 
    bottom: 0; left: 0; width: 100%;
    z-index: 1050;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #eee;
    padding: 15px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    display: none !important; 
}

@media (max-width: 991px) {
    .tech-card.featured {
        transform: none;
        margin-top: 20px;
        margin-bottom: 20px;
        z-index: 1;
    }
    
    .tech-card.featured:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .mobile-sticky-cta { display: flex !important; }
    .hero-section { padding: 60px 0; }
}