/* 
    Krishna Dental Care - Clinical, Modern, High-Trust Design System
*/

:root {
    /* Color Palette */
    --primary-blue: #0A365C;
    --secondary-teal: #008080;
    --accent-blue: #1E90FF;
    --wa-green: #25D366;
    --wa-green-dark: #128C7E;
    --text-main: #333333;
    /* Dark gray for readability */
    --text-light: #666666;
    /* Medium gray for secondary text */
    --bg-main: #FFFFFF;
    /* Pure white for cleanliness */
    --bg-soft: #F4f8fb;
    /* Soft cool gray-blue for sections */
    --success: #2E8B57;
    /* For ratings/trust elements */

    /* Typography */
    --font-main: 'Inter', sans-serif;

    /* Spacing */
    --spacing-1: 0.5rem;
    --spacing-2: 1rem;
    --spacing-3: 1.5rem;
    --spacing-4: 2rem;
    --spacing-5: 3rem;
    --spacing-6: 5rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows - Enhanced for Visual Depth */
    --shadow-sm: 0 3px 6px rgba(10, 54, 92, 0.08);
    --shadow-md: 0 8px 16px rgba(10, 54, 92, 0.12);
    --shadow-lg: 0 16px 32px rgba(10, 54, 92, 0.18);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Layout Classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-3);
}

/* Typography Base */
h1,
h2,
h3,
h4 {
    color: var(--primary-blue);
    font-weight: 700;
    line-height: 1.2;
}

/* Components: Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    /* Structured, non-pill for medical feel */
    font-weight: 600;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--bg-main);
}

.btn-primary:hover {
    background-color: var(--secondary-teal);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--bg-main);
    color: var(--primary-blue);
}

.btn-secondary:hover {
    background-color: var(--bg-soft);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-wa {
    background-color: var(--wa-green);
    color: white;
}

.btn-wa:hover {
    background-color: var(--wa-green-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-wa {
    background-color: transparent;
    border: 1px solid var(--wa-green);
    color: var(--wa-green-dark);
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
}

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

.wa-icon-sm {
    width: 18px;
    height: 18px;
    margin-right: 6px;
}

/* Base Nav/Header */
.top-banner {
    background-color: var(--primary-blue);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    font-weight: 500;
}

.banner-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.banner-text a {
    text-decoration: underline;
    margin-left: 0.5rem;
    font-weight: 600;
    color: var(--secondary-teal);
}

.header {
    background-color: var(--bg-main);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition-smooth);
}

.header.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-blue);
}

.logo-icon {
    width: 32px;
    height: 32px;
    stroke-width: 2.5;
}

.logo-text h1 {
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

.logo-text h1 span {
    color: var(--secondary-teal);
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-list {
    display: flex;
    gap: 1rem;
}

.nav-list a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: var(--transition-fast);
}

.nav-list a:hover {
    color: var(--secondary-teal);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.contact-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-blue);
    font-weight: 600;
}

.contact-pill i {
    width: 18px;
    height: 18px;
    color: var(--secondary-teal);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary-blue);
    cursor: pointer;
}

/* Mobile Responsiveness Basics */
@media (max-width: 1024px) {
    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .banner-hours {
        display: none;
    }

    .banner-container {
        justify-content: center;
    }
}

/* Button Sizes */
.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-text {
    max-width: 600px;
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--spacing-3);
    border: 1px solid rgba(10, 54, 92, 0.1);
}

.star-icon {
    color: #FFB800;
    fill: #FFB800;
    width: 18px;
    height: 18px;
}

.hero-text h2 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-2);
    color: var(--primary-blue);
    letter-spacing: -1px;
    text-shadow: 0 4px 12px rgba(255, 255, 255, 0.9);
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-4);
    max-width: 500px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--success);
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background-color: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 139, 87, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(46, 139, 87, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(46, 139, 87, 0);
    }
}

/* Trust Section */
.trust-section {
    padding: var(--spacing-5) 0;
    background-color: var(--bg-main);
    position: relative;
    z-index: 4;
    margin-top: -50px;
    /* Overlap hero slightly */
}

.trust-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-3);
}

.trust-card {
    background-color: var(--bg-main);
    padding: var(--spacing-4);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--secondary-teal);
    transition: var(--transition-smooth);
}

.trust-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.trust-icon-wrapper {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 128, 128, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-2);
}

.trust-icon {
    color: var(--secondary-teal);
    width: 24px;
    height: 24px;
}

.trust-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.trust-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .hero-text h2 {
        font-size: 2.5rem;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.95) 100%);
    }

    .trust-section {
        margin-top: 0;
        padding-top: var(--spacing-4);
    }
}

/* Section Header Base */
.section-header {
    margin-bottom: var(--spacing-5);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Services Section */
.services-section {
    padding: var(--spacing-6) 0;
    background-color: var(--bg-soft);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-4);
    align-items: stretch;
}

.service-card {
    background-color: var(--bg-main);
    border-radius: 12px;
    padding: var(--spacing-4);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid rgba(10, 54, 92, 0.05);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
}

.service-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(10, 54, 92, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-3);
    color: var(--primary-blue);
}

.service-icon i {
    width: 24px;
    height: 24px;
    color: white;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.service-list {
    margin-top: auto;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.service-list li::before {
    content: "•";
    color: var(--secondary-teal);
    font-weight: bold;
}

/* Featured Service Cards (with image) */
.service-card.featured {
    padding: 0;
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-content {
    padding: var(--spacing-3) var(--spacing-4);
}

.service-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* About / Trust Reinforcement Section */
.about-section {
    padding: var(--spacing-6) 0;
    background-color: var(--bg-main);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-6);
    align-items: center;
}

.about-content h2 {
    font-size: 2.2rem;
    margin-bottom: var(--spacing-3);
    color: var(--primary-blue);
}

.about-content>p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-4);
}

.about-features li {
    display: flex;
    gap: 1rem;
    margin-bottom: var(--spacing-3);
}

.feature-icon {
    flex-shrink: 0;
    color: var(--secondary-teal);
    margin-top: 2px;
}

.about-features h4 {
    font-size: 1.1rem;
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
}

.about-features p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.about-image-wrapper {
    background-color: var(--bg-soft);
    border-radius: 12px;
    padding: var(--spacing-5);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 350px;
}

.review-highlight {
    background-color: var(--bg-main);
    padding: var(--spacing-4);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
    border-left: 4px solid var(--secondary-teal);
}

.review-highlight .stars {
    display: flex;
    gap: 2px;
    margin-bottom: 1rem;
}

.review-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.review-author {
    font-weight: 600;
    color: var(--primary-blue);
}

/* Reviews Section */
.reviews-section {
    padding: var(--spacing-6) 0;
    background-color: var(--bg-soft);
}

.header-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 0.5rem;
}

/* Reviews Carousel Updates */
.reviews-grid {
    display: flex;
    gap: var(--spacing-4);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--spacing-3);
    /* space for scrollbar/shadows */
}

/* Hide scrollbar for clean carousel */
.reviews-grid::-webkit-scrollbar {
    display: none;
}

.reviews-grid {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.review-card {
    background-color: var(--bg-main);
    padding: var(--spacing-4);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
    flex: 0 0 calc(100% - 2rem);
    /* Mobile full width */
    scroll-snap-align: center;
}

@media (min-width: 768px) {
    .review-card {
        flex: 0 0 calc(50% - 1rem);
        /* 2 per view on tablet */
    }
}

@media (min-width: 1024px) {
    .review-card {
        flex: 0 0 calc(33.333% - 1.33rem);
        /* 3 per view on desktop */
    }
}

.review-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.initial-avatar {
    width: 48px;
    height: 48px;
    background-color: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.reviewer-name {
    font-size: 1.1rem;
    color: var(--primary-blue);
    margin-bottom: 0.1rem;
}

.review-meta {
    font-size: 0.85rem;
    color: var(--text-light);
}

.small-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 1rem;
}

.small-stars .star-icon {
    width: 16px;
    height: 16px;
    color: #FFB800;
    fill: #FFB800;
}

.review-content {
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.6;
    font-style: italic;
    opacity: 0.9;
}

/* CTA Section */
.cta-section {
    padding: var(--spacing-6) 0;
    background-color: var(--primary-blue);
    color: white;
}

.cta-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-4);
    opacity: 0.9;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.cta-actions .btn {
    background-color: var(--bg-main);
    color: var(--primary-blue);
}

.cta-actions .btn:hover {
    background-color: var(--secondary-teal);
    color: white;
}

/* Footer */
.footer {
    background-color: #051e33;
    color: #e0e0e0;
    padding-top: var(--spacing-5);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-4);
    padding-bottom: var(--spacing-4);
}

.footer-col h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.brand-col p {
    margin-top: 1rem;
    max-width: 300px;
    color: #a0aec0;
}

.footer-contact li,
.footer-hours li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #a0aec0;
}

.footer-contact i {
    color: var(--secondary-teal);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-hours li {
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.footer-bottom {
    background-color: #03121f;
    padding: 1.5rem 0;
    text-align: center;
    color: #a0aec0;
    font-size: 0.9rem;
}

/* Floating Elements */
.scroll-top-btn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background-color: var(--primary-blue);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    z-index: 998;
    cursor: pointer;
    border: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background-color: var(--secondary-teal);
    transform: translateY(-3px);
}

.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--wa-green);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    text-decoration: none;
    animation: wa-pulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
    transition: var(--transition-fast);
}

.floating-wa i {
    width: 32px;
    height: 32px;
}

.floating-wa:hover {
    transform: scale(1.1);
    animation: none;
    background-color: var(--wa-green-dark);
}

@keyframes wa-pulse {
    to {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
}

.floating-book-tab {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: bottom right;
    background-color: var(--primary-blue);
    z-index: 998;
    border-radius: 8px 8px 0 0;
    box-shadow: -2px -2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    /* Hide on mobile by default */
}

@media (min-width: 1200px) {
    .floating-book-tab {
        display: block;
    }
}

.floating-book-tab a {
    display: block;
    color: white;
    padding: 10px 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.floating-book-tab:hover {
    background-color: var(--secondary-teal);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .about-container {
        grid-template-columns: 1fr;
    }

    .hero-text h2 {
        font-size: 2.5rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .floating-wa {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .scroll-top-btn {
        bottom: 80px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* Animations (Intersection Observer Targets) */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-fade-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

.animate-zoom-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-zoom-in.in-view {
    opacity: 1;
    transform: scale(1);
}

.stagger-group .animate-fade-up:nth-child(1) {
    transition-delay: 0.1s;
}

.stagger-group .animate-fade-up:nth-child(2) {
    transition-delay: 0.2s;
}

.stagger-group .animate-fade-up:nth-child(3) {
    transition-delay: 0.3s;
}

.stagger-group .animate-fade-up:nth-child(4) {
    transition-delay: 0.4s;
}

.stagger-group .animate-fade-up:nth-child(5) {
    transition-delay: 0.5s;
}

.stagger-group .animate-fade-up:nth-child(6) {
    transition-delay: 0.6s;
}