/* ========================================
   Integrity Dental - Modern Stylesheet
   ======================================== */


/* ===== CSS Variables ===== */

:root {
    --primary-color: #497e8c;
    --secondary-color: #1890d7;
    --success-color: #28a745;
    --dark-color: #333;
    --light-gray: #f8f9fa;
    --border-color: #ddd;
    --transition: all 0.3s ease;
}


/* ===== Global Styles ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
}

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

a {
    text-decoration: none;
    transition: var(--transition);
}


/* ===== Top Header Bar ===== */

.top-header {
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
}

.top-header i {
    color: var(--primary-color);
}


/* ===== Navigation ===== */

.navbar {
    padding: 1rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3a6570 100%);
}

.navbar-brand img {
    transition: var(--transition);
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-item {
    margin: .5rem .9rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem .5rem;
    color: #fff;
    background: transparent;
    position: relative;
    transition: var(--transition);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.navbar-nav .nav-link:hover {
    color: #fff;
}

.navbar-nav .nav-link.active {
    color: #fff;
    font-weight: 600;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 2px;
    background-color: var(--primary-color);
}


/* Dropdown hover functionality */

.navbar-nav .dropdown:hover>.dropdown-menu {
    display: block;
    margin-top: 0;
}

.dropdown-menu {
    margin-top: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3a6570 100%);
}

.dropdown-item {
    transition: var(--transition);
    background: linear-gradient(135deg, var(--primary-color) 0%, #3a6570 100%);
    color: #fff;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3a6570 100%);
    color: white;
}


/* ===== Hero/Carousel Section ===== */

.hero-carousel .carousel-item {
    height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-carousel .carousel-caption {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 2rem;
    border-radius: 10px;
    bottom: 10%;
    left: 5%;
    right: auto;
    max-width: 500px;
    text-align: left;
    z-index: 10;
    position: absolute;
    pointer-events: auto;
}

.hero-carousel .carousel-caption .btn {
    position: relative;
    z-index: 20;
    pointer-events: auto;
}

.hero-carousel h2 {
    color: var(--primary-color);
    font-size: 2.0rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.hero-carousel p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}


/* ===== Buttons ===== */

.btn {
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #3a6570;
    border-color: #3a6570;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(73, 126, 140, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}


/* ===== Service Cards ===== */

.service-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-card img {
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

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

.service-card .card-body {
    padding: 1.5rem;
}

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

.service-card .stretched-link {
    color: inherit;
}


/* ===== Doctor/Staff Cards ===== */

.doctor-card {
    margin-bottom: 2rem;
}

.doctor-image {
    float: left;
    margin-right: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.doctor-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.doctor-card p {
    line-height: 1.8;
    color: #555;
}

.doctor-card ul {
    margin-top: 1rem;
}


/* ===== Insurance Section ===== */

.insurance-section {
    background-color: var(--light-gray);
}

.insurance-logo {
    max-height: 60px;
    object-fit: contain;
    padding: 10px;
    transition: var(--transition);
}

.insurance-logo:hover {
    transform: scale(1.1);
}


/* ===== Content Sections ===== */

.content-section {
    padding: 2.5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    text-align: center;
}

.text-large {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #555;
}


/* Call to Action Section */

.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3a6570 100%);
    color: #fff;
    padding: 3rem 0;
    margin-top: 2rem;
}

.cta-section h2 {
    color: #fff;
    font-weight: 600;
}

.cta-section .lead {
    color: rgba(255, 255, 255, 0.95);
}


/* ===== Footer ===== */

.footer {
    background-color: #2c3e50;
    color: #fff;
}

.footer a {
    color: #fff;
}

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

.footer-action-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.6rem;
}

.footer-contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}


/* ===== Back to Top Button ===== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: none;
    z-index: 999;
    transition: var(--transition);
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

.back-to-top.active {
    display: flex;
}


/* ===== Responsive Design ===== */

@media (max-width: 991px) {
    .doctor-image {
        float: none;
        display: block;
        margin: 0 auto 20px;
    }
    .our-staff-section .row.mb-5.align-items-center {
        align-items: flex-start !important;
    }
    .our-staff-section .row.mb-5.align-items-center>.col-md-3,
    .our-staff-section .row.mb-5.align-items-center>.col-md-9 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .our-staff-section .row.mb-5.align-items-center>.col-md-9 {
        margin-top: 0.75rem;
    }
    .navbar {
        padding: 0 !important;
        min-height: 0;
        background: linear-gradient(135deg, var(--primary-color) 0%, #3a6570 100%) !important;
        box-shadow: none !important;
    }
    .navbar>.container {
        max-width: 100%;
        padding-top: 0;
        padding-bottom: 0;
        padding-left: 0;
        padding-right: 0;
    }
    .navbar .navbar-collapse {
        background: linear-gradient(135deg, var(--primary-color) 0%, #3a6570 100%);
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.08);
        padding: 0.5rem 1rem;
    }
    .header-social-link {
        display: none;
    }
    .mobile-header-toggler {
        border-color: rgba(0, 0, 0, 0.25);
    }
    .mobile-header-toggler .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    .navbar-nav {
        margin-top: 1rem;
    }
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
    }
    .navbar-nav .nav-link.active::after {
        display: none;
    }
    .cta-section {
        text-align: center;
    }
    .cta-section .text-lg-end {
        text-align: center !important;
    }
    .hero-carousel .carousel-item {
        height: 400px;
    }
    .hero-carousel .carousel-caption {
        max-width: 500px;
        left: 5%;
        right: 5%;
    }
    .hero-carousel h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 767px) {
    .content-box {
        padding: 1.25rem;
    }
    .header-actions {
        position: relative;
        text-align: center !important;
    }
    .mobile-header-toggler {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        vertical-align: middle;
        border-color: rgba(0, 0, 0, 0.25);
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
    }
    .footer-action-links {
        column-gap: 0.5rem;
    }
    .footer-contact-links {
        row-gap: 0.5rem;
    }
    .footer-contact-links a {
        margin-right: 0 !important;
        text-align: center;
    }
    .top-header {
        font-size: 12px;
    }
    .top-header .col-lg-6 {
        margin-bottom: 0.5rem;
    }
    .hero-carousel .carousel-item {
        height: 500px;
    }
    .hero-carousel .carousel-caption {
        bottom: 3%;
        left: 3%;
        right: 3%;
        max-width: none;
        padding: 1.5rem;
    }
    .hero-carousel h2 {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
    }
    .hero-carousel p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    .doctor-image {
        float: none;
        display: block;
        margin: 0 auto 20px;
        text-align: center;
    }
    .content-box img.float-md-end,
    .content-box img.float-end {
        float: none !important;
        display: block;
        width: 100%;
        max-width: 520px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 1rem !important;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 575px) {
    .hero-carousel .carousel-item {
        height: 350px;
    }
    .hero-carousel .carousel-caption {
        padding: 1rem;
    }
    .hero-carousel h2 {
        font-size: 1.15rem;
        margin-bottom: 0.5rem;
    }
    .hero-carousel p {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 0.75rem;
    }
    .insurance-logo {
        max-height: 50px;
    }
    .service-card img {
        height: 150px;
    }
}


/* ===== Utility Classes ===== */

.shadow-sm-hover:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.bg-primary-light {
    background-color: rgba(73, 126, 140, 0.1);
}

.text-primary-custom {
    color: var(--primary-color);
}

.border-rounded {
    border-radius: 10px;
}


/* ===== Animations ===== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}


/* ===== Additional Content Styling ===== */

.content-box {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

hr {
    border-top: 2px solid var(--border-color);
    margin: 2rem 0;
}