/* --- Global Styles --- */
:root {
    --primary-color: #007bff; /* Blue for branding/CTA */
    --secondary-color: #0056b3; /* Darker blue */
    --accent-color: #20c997; /* Teal for the wave background */
    --text-dark: #333;
    --text-light: #fff;
    --bg-light: #f8f9fa;
    --max-width: 1200px;
}

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

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    padding-top: 60px;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Navigation Bar --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background-color: var(--text-light);
    
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.logo {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--primary-color);
}

.tooth-icon {
    font-size: 1.2em;
    margin-right: 5px;
}


.navbar ul {
    list-style: none;
    display: flex;
}

.navbar li {
    margin-left: 30px;
}

.navbar a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9em;
    padding: 5px 0;
    transition: color 0.3s;
}

.navbar a:hover, .navbar a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* --- Hero Section --- */
.hero-section {
    background-color:  var(--bg-light);
    padding: 0 50px;
    margin-bottom: 40px;
}

.hero-content {
    display: flex;
    max-width: var(--max-width);
    margin: 0 auto;
    background-color: var(--text-light);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-height: 400px;
    border-radius: 8px;
    overflow: hidden;
}

.team-photo-placeholder {
    flex: 2;
    background-color: #eee; /* Background if image is missing */
    overflow: hidden;
}

.team-photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cta-box {
    flex: 1.5;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    color: var(--text-light);
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    overflow: hidden;
}

/* Animated wave background overlay */
.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(32, 201, 151, 0.4) 0%, rgba(32, 201, 151, 0.1) 100%);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    z-index: 1;
    animation: waveFlow 6s ease-in-out infinite;
}

/* Floating accent elements */
.cta-box::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(32, 201, 151, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    z-index: 0;
}

.cta-box h1, .cta-box .btn-primary , .cta-box h3 {
    position: relative; /* Bring content above the pseudo-element */
    z-index: 2;
}

.cta-box h1 {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
    animation: slideInDown 0.8s ease-out 0.2s both;
}

.cta-box h3 {
    font-size: 1.5em;
    font-weight: 500;
    margin-bottom: 25px;
    line-height: 1.2;
    color: var(--text-light);
    animation: slideInUp 0.8s ease-out 0.4s both;
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-light);
    padding: 12px 25px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-color);
    animation: slideInUp 0.8s ease-out 0.6s both;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
    z-index: 0;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover::before {
    left: 100%;
}

/* --- Trust Section --- */
.trust-section {
    max-width: var(--max-width);
    margin: 0 auto 50px auto;
    padding: 0 20px;
}

.trust-section h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: center;
    color: var(--secondary-color);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns across */
    gap: 20px;
}

.grid-item {
    background-color: var(--text-light);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.grid-item h3 {
    font-size: 1.1em;
    color: var(--primary-color);
    margin-top: 10px;
    margin-bottom: 5px;
}

.grid-item .icon {
    font-size: 2em;
    color: var(--accent-color);
}

/* Styling for the highlighted item (Dentist Profile) */
.special-highlight {
    background-color: var(--primary-color);
    color: var(--text-light);
    display: flex;
    align-items: center;
    padding: 15px;
}

.special-highlight .profile-thumb {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
    border: 3px solid var(--text-light);
}

.special-highlight .text-content {
    text-align: left;
}

.highlight-text {
    font-weight: 300;
    font-size: 0.9em;
    opacity: 0.8;
}

.name {
    font-weight: 700;
    font-size: 1.2em;
    line-height: 1.2;
}

.role {
    font-size: 0.8em;
    font-weight: 300;
}

/* Styling for the list item (Differentiators list) */
.grid-item ul {
    list-style: none;
    text-align: left;
    padding-left: 0;
}

.grid-item ul li {
    font-weight: 500;
    padding: 5px 0;
    border-bottom: 1px dashed #eee;
    font-size: 0.95em;
}

.grid-item ul li:last-child {
    border-bottom: none;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        min-height: auto;
    }

    .team-photo-placeholder {
        height: 250px;
    }

    .cta-box {
        text-align: center;
        padding: 30px 20px;
    }

    .cta-box::before {
        /* Remove complex wave on smaller screens for simplicity */
        clip-path: none;
        opacity: 1;
    }
    
    .trust-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 15px 20px;
    }
    body {
        padding-top: 120px; /* Adjust this value if your navbar is taller/shorter on mobile */
    }
    /* ************************************************************************* */
    
    .navbar nav {
        margin-top: 10px;
    }
    
    .navbar nav {
        margin-top: 10px;
    }

    .navbar ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .navbar li {
        margin: 5px 10px;
    }

    .hero-section {
        padding: 20px;
    }

    .trust-grid {
        grid-template-columns: 1fr; /* Single column on phones */
    }
}

/* --- Horizontal services scroller --- */
.services-scroll{
    display:flex;
    gap:16px;
    overflow-x:auto;
    padding:12px 6px;
    -webkit-overflow-scrolling:touch;
    scroll-snap-type:x mandatory;
}
.services-scroll::-webkit-scrollbar{height:10px}
.services-scroll::-webkit-scrollbar-thumb{background:rgba(0,0,0,0.08);border-radius:8px}

.service-card{
    flex:0 0 300px; /* increased width for a slightly longer card */
    background-color:var(--text-light);
    border-radius:10px;
    padding:14px;
    box-shadow:0 6px 18px rgba(0,0,0,0.06);
    scroll-snap-align:center;
    display:flex;
    flex-direction:column;
    gap:12px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.12);
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.service-card:hover::before {
    left: 100%;
}

.service-card .thumb{
    height:160px;
    border-radius:8px;
    overflow:hidden;
    background:#f3f4f6;
    position: relative;
    transition: transform 0.4s ease;
}

.service-card:hover .thumb {
    transform: scale(1.05);
}

.service-card .thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition: transform 0.6s ease;
}

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

.service-card h3{
    font-size:1em;
    color:var(--primary-color);
    margin:0;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.service-card:hover h3 {
    color: var(--accent-color);
}

.service-card p{
    margin:0;
    color:#666;
    font-size:0.95em;
    position: relative;
    z-index: 2;
}

@media (max-width:900px){
    .service-card{flex:0 0 260px}
    .service-card .thumb{height:140px}
}

@media (max-width:640px){
    .service-card{flex:0 0 220px}
    .service-card .thumb{height:120px}
}

/* scroller wrapper + arrows */
.services-wrapper{position:relative;margin:8px 0;padding:6px 0}
.services-wrapper .scroll-btn{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border-radius:10px;border:none;background:linear-gradient(180deg,rgba(255,255,255,0.9),rgba(250,250,250,0.85));box-shadow:0 6px 18px rgba(2,6,23,0.08);display:flex;align-items:center;justify-content:center;font-size:22px;cursor:pointer;z-index:10}
.services-wrapper .scroll-btn.left{left:6px}
.services-wrapper .scroll-btn.right{right:6px}
.services-wrapper .scroll-btn[disabled]{cursor:default;opacity:0.35}

.services-scroll{scroll-behavior:smooth}
.services-scroll.is-dragging{cursor:grabbing}

/* subtle gradient edges to hint there's more to scroll */
.services-wrapper::before, .services-wrapper::after{content:'';position:absolute;top:0;bottom:0;width:64px;pointer-events:none;z-index:5}
.services-wrapper::before{left:0;background:linear-gradient(90deg,rgba(248,249,250,1),rgba(248,249,250,0));}
.services-wrapper::after{right:0;background:linear-gradient(270deg,rgba(248,249,250,1),rgba(248,249,250,0));}

@media (max-width:640px){
    .services-wrapper .scroll-btn{display:none}
    .services-wrapper::before, .services-wrapper::after{display:none}
}

/* --- Contact / Location Styles --- */
.contact-section{padding:40px 0;background:transparent}
.contact-grid{display:grid;grid-template-columns:1fr 380px;gap:24px;align-items:start;max-width:var(--max-width);margin:0 auto;padding:0 20px}
.contact-form{background:var(--text-light);padding:20px;border-radius:10px;box-shadow:0 6px 20px rgba(0,0,0,0.04)}
.contact-form h2{margin-bottom:8px;color:var(--primary-color)}
.contact-form .muted{margin-bottom:12px}
.form-row{display:block;margin-bottom:12px;font-weight:600;color:var(--text-dark)}
.form-row input,.form-row textarea{width:100%;padding:10px;border:1px solid #e6e9ef;border-radius:8px;margin-top:6px;font-size:14px}
.form-row textarea{resize:vertical;min-height:110px}
.contact-form .btn-primary{border-radius:8px;padding:10px 16px}

.contact-location{display:flex;flex-direction:column;gap:14px}
.map-wrap{background:#f3f4f6;border-radius:10px;overflow:hidden;box-shadow:0 6px 18px rgba(0,0,0,0.04)}
.map-wrap iframe{width:100%;height:240px;border:0;display:block}
.contact-location .details{background:var(--text-light);padding:12px;border-radius:8px;box-shadow:0 4px 12px rgba(0,0,0,0.03)}
.contact-location .details p{margin:6px 0;color:var(--text-dark)}

@media (max-width:900px){
    .contact-grid{grid-template-columns:1fr}
    .map-wrap iframe{height:200px}
}

/* --- Animations for CTA Box --- */
@keyframes waveFlow {
    0%, 100% {
        clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    }
    50% {
        clip-path: polygon(0 0, 100% 0, 100% 80%, 0 95%);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

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

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


