/* ========================
   THEME SETUP
   ======================== */
:root {
    --primary-color: #7A9E7E;    /* Sage Green */
    --secondary-color: #F3EFEA;  /* Off-White */
    --dark-text: #2F3E46;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-text);
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Playfair Display', serif;
}
/* ========================
   NAVBAR STYLES
   ======================== */

/* 1. Navbar Spacing */
.navbar {
    padding-top: 15px;
    padding-bottom: 15px;
}

/* 2. Text Logo Styling */
.navbar-brand {
    text-decoration: none;
}

.logo-text {
    font-family: 'Playfair Display', serif; /* Luxury Font */
    font-weight: 700; /* Bold */
    font-size: 1.5rem;
    color: var(--dark-text); /* Dark Slate color */
    letter-spacing: 0.5px;
}

.logo-icon {
    font-size: 1.5rem;
}

/* 3. Navigation Links */
.nav-link {
    color: var(--dark-text) !important;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important; /* Green on hover */
}

/* 4. Mobile Offcanvas Tweaks */
@media (max-width: 991px) {
    .offcanvas {
        max-width: 80%; /* Takes 80% of screen width on mobile */
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }
    
    .nav-link {
        padding: 12px 0; /* More space for touch targets */
        border-bottom: 1px solid #f8f9fa; /* Divider lines */
    }
    
    .logo-text {
        font-size: 1.3rem; /* Slightly smaller on mobile */
    }
}
/* ========================
   HERO SECTION STYLES
   ======================== */

#hero {
    /* Desktop Default Height (Taller for better impact on big screens) */
    min-height: 75vh;
    margin-top: 60px; /* Ensure no gaps */
}

/* Background Image Styling */
.hero-bg {
    background-size: cover !important;
    background-position: center center !important;
}

/* Customize WhatsApp Button Color to match brand */
.btn-success {
    background-color: #25D366; /* Official WhatsApp Green */
    border-color: #25D366;
}
.btn-success:hover {
    background-color: #1da851;
    border-color: #1da851;
}


/* ========== MOBILE SPECIFIC TWEAKS (The 50vh Magic) ========== */

@media (max-width: 767.98px) {
    
    /* 1. Force 50vh Height on Mobile */
    #hero {
        min-height: 50vh !important;
        height: 50vh !important;
    }

    /* 2. Adjust Headline Size for smaller screens */
    .hero-title {
        font-size: 2rem; /* Smaller H1 so it fits well in 50vh */
    }

    /* 3. Button Container adjustments */
    .mobile-btn-container {
        /* Ensures buttons take full available width together */
        width: 100%; 
        padding: 0 10px; /* Slight padding from screen edges */
    }

    /* The 'flex-grow-1' in the HTML makes them stretch evenly side-by-side.
       We just ensure the text isn't too big on very small phones. */
    #hero .btn-lg {
        font-size: 0.95rem;
        padding-left: 10px !important;
        padding-right: 10px !important;
        white-space: nowrap; /* Prevents text wrapping inside button */
    }
}

/* ==================================================
   Bullet Point Text Alignment - Procedure Section
   ==================================================*/
.card-body ul li {
    line-height: 1.6; /* Improves readability */
    align-items: start; /* Ensures the bullet stays at the top if text wraps */
}
/* ========================
   SERVICES SECTION STYLES
   ======================== */

/* Background color using theme variable */
.section-bg {
    background-color: var(--secondary-color); /* Using the off-white defined in boilerplate */
}

/* Letter spacing utility for subheading */
.ls-2 {
    letter-spacing: 2px;
}

/* --- Service Card Styling --- */

.service-card {
    /* Smooth transition for hover effect */
    transition: all 0.3s ease-in-out;
    background-color: #fff;
}

/* The Hover Effect: Lift up and increase shadow */
.service-card:hover {
    transform: translateY(-10px); /* Moves card up by 10px */
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.1) !important; /* Softer, deeper shadow */
}

/* Card Image Styling */
.service-card .card-img-top {
    height: 240px; /* Fixed height ensures all images are the same size */
    object-fit: cover; /* Ensures image covers the area without stretching */
    transition: transform 0.3s ease-in-out;
}

/* Optional: Subtle zoom on image hover */
.service-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Card Title Font */
.service-card .card-title {
    color: var(--dark-text);
    /* Using the serif font from boilerplate */
    font-family: 'Playfair Display', serif; 
    font-weight: 600;
}
/* ========================
   SMART TEXT JUSTIFICATION
   ======================== */

.text-justify-smart {
    text-align: justify;
    
    /* 1. This ensures the last line is always left-aligned (standard) */
    text-align-last: left; 

    /* 2. THE SECRET: Hyphenation */
    /* This breaks long words (e.g., "tre-atment") so you don't get huge gaps */
    -webkit-hyphens: auto; /* Chrome/Safari */
    -ms-hyphens: auto;     /* Edge */
    hyphens: auto;         /* Standard */
}

/* ========================
   BENEFITS SECTION STYLES
   ======================== */

/* Smooth Hover Transition */
.transition-300 {
    transition: all 0.3s ease-in-out;
}

/* Hover Effect: Card background turns slightly off-white, shadow increases */
.shadow-hover:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    background-color: var(--secondary-color); /* Light cream color from theme */
    border-color: transparent !important;
    transform: translateY(-5px);
}

/* Icon Container Sizing */
.flex-shrink-0 {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Tweak: Stack icon on top for very small screens if text feels cramped */
@media (max-width: 400px) {
    .d-flex.align-items-start {
        flex-direction: column;
        text-align: center;
    }
    .flex-shrink-0 {
        margin-right: 0 !important;
        margin-bottom: 1rem;
        margin-left: auto;
        margin-right: auto;
    }
}
/* =================== Service Card Section==================== */
/* Animation for See More content */
.more-content {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Button Styling */
.see-more-btn {
    color: var(--primary-color);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.see-more-btn:hover {
    color: var(--dark-text); /* Changes to dark color on hover */
    text-decoration: underline !important;
}


/* ========================
   FIX HORIZONTAL SCROLL
   ======================== */
html, body {
    overflow-x: hidden; /* Hides horizontal scrollbar */
    width: 100%;        /* Ensures body doesn't stretch beyond screen */
    position: relative; /* Stabilizes layout */
}
/* ========================
   MINIMAL FOOTER STYLES
   ======================== */

/* Brand Font */
.footer-brand {
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
}

/* Social Icons */
.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1); /* Subtle transparent white */
    color: #fff;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--primary-color); /* Turns Green on Hover */
    transform: translateY(-3px);
    color: #fff;
}

/* Footer Links */
.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Mobile Tweak: Stack links if screen is too small */
@media (max-width: 400px) {
    .list-inline-item {
        display: block;
        margin: 10px 0;
    }
}
