* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f7f7f7;
    color: #333;
}

img {
    width: 100%;
    display: block;
}

/* ================= HEADER ================= */
header {
    width: 100%;
    padding: 24px 2%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 18px;
}

.logo-area img {
    width: 120px; /* Restored back to original scaling */
}

.logo-area h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem; /* Restored back to original scaling */
    color: #0c6d84;
    font-weight: 600;
}

.logo-area p {
    color: #777;
    font-size: 1.2rem;
}

nav {
    display: flex;
    align-items: center;
    gap: 36px;
}

nav a {
    text-decoration: none;
    color: #444;
    font-size: 1rem;
    transition: 0.3s;
}

nav a:hover {
    color: #f08d35;
}

.contact-btn {
    background: #f08d35;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.contact-btn:hover {
    transform: translateY(-2px);
    background: #db7d2b;
}

/* ================= SERVICES DROPDOWN INTERACTION ================= */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown .dropbtn {
    background: none;
    border: none;
    padding: 0;
    color: #444;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.dropdown:hover .dropbtn {
    color: #f08d35;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    border-radius: 4px;
    margin-top: 12px;
    z-index: 1010;
    overflow: hidden;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: #0c6d84;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* ================= FADED BLUE BLURB SECTION ================= */
.blurb-section {
    width: 100%;
    background-color: #e6f0f3; /* Faded blue box across the screen */
    padding: 60px 10%;
    text-align: center;
}

.blurb-section p {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    line-height: 1.8;
    color: #0c6d84;
    max-width: 900px;
    margin: 0 auto;
    font-weight: 400;
}

/* ================= GALLERY (HORIZONTAL ROW) ================= */
.gallery {
    width: 100%;
    padding: 60px 7%;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 images lined up horizontally */
    gap: 24px;
}

.gallery img {
    border-radius: 18px;
    height: 250px;
    object-fit: cover;
    transition: 0.3s;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.gallery img:hover {
    transform: translateY(-6px);
}

/* ================= REVIEWS (RESTORED STYLE) ================= */
/* ================= IDEA 3: MINIMALIST EDITORIAL REVIEWS ================= */
.editorial-reviews-section {
    background-color: #ffffff;
    padding: 100px 4%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.reviews-subtitle {
    display: block;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: #f08d35;
    font-weight: 600;
    margin-bottom: 30px;
}

.editorial-review-container {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Faded signature accent quote mark behind text */
.decorative-quote-mark {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Cormorant Garamond', serif;
    font-size: 12rem;
    color: rgba(12, 109, 132, 0.1); /* Faded teal accent signature */
    line-height: 1;
    z-index: 1;
    user-select: none;
}

.editorial-review-window {
    position: relative;
    z-index: 2;
    min-height: 220px; /* Prevents layout shifting when content swaps */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stars-badge {
    color: #f08d35;
    font-size: 1.1rem;
    letter-spacing: 3px;
    margin-bottom: 25px;
}

.editorial-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    color: #0c6d84;
    line-height: 1.4;
    font-weight: 500;
    margin: 0 0 20px 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.editorial-author {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-size: 0.95rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
}

/* Minimalist Navigation Alignment Under Quote */
.editorial-nav-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
    position: relative;
    z-index: 3;
}

.editorial-arrow {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: #0c6d84;
    cursor: pointer;
    padding: 10px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.editorial-arrow:hover {
    color: #f08d35;
    transform: scale(1.15);
}

.editorial-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.edit-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #e0e0e0;
    transition: all 0.3s ease;
}

.edit-dot.active {
    background-color: #0c6d84;
    transform: scale(1.3);
}

/* Quick utility class for the JavaScript fade animation transition */
.review-fade-out {
    opacity: 0;
    transform: translateY(5px);
}

/* Responsive adjustment for clean reading on mobile viewports */
@media (max-width: 768px) {
    .editorial-quote {
        font-size: 1.6rem;
    }
    .decorative-quote-mark {
        font-size: 9rem;
        top: -10px;
    }
}

/* ================= CONTACT OVERLAY PANEL ================= */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 2000;
}

.contact-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100vh;
    background: white;
    padding: 40px;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: 0.3s ease;
    z-index: 3000;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.contact-panel.active {
    transform: translateX(0);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #333;
}

.panel-line {
    width: 40px;
    height: 3px;
    background: #f08d35;
    margin: 15px 0 30px 0;
}

.contact-info-block {
    margin-bottom: 30px;
}

.contact-info-block h3 {
    font-size: 1.2rem;
    color: #0c6d84;
    margin-bottom: 8px;
}

.contact-info-block p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}
/* ================= DROPDOWN FIXES & ACTIVE STATES ================= */
.active-link {
    color: #f08d35 !important;
    font-weight: 500;
}

/* Modifying dropdown styles to read the JavaScript state engine seamlessly */
.dropdown.open .dropdown-content {
    display: block !important;
}

/* Fallback padding protection when cursor bridges down into menu link boxes */
.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}


/* ================= REFINED DENTIST ABOUT PAGE STYLES ================= */
.about-container {
    width: 100%;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 4%;
    display: flex;
    align-items: flex-start; /* Keeps items cleanly aligned at the top */
    gap: 50px;
    position: relative;
}

/* Smaller profile element setting image to roughly 1/3 layout space width */
.dentist-photo-box {
    flex: 0 0 350px; 
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.dentist-photo-box img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}


/* Faded blue box design for the biographical copy details */
.dentist-bio-box {
    flex: 1;
    background-color: #e6f0f3; /* Faded blue box across the section */
    padding: 50px;
    border-radius: 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

/* Doctor name font configuration matched strictly to the logo typography colors */
.dentist-bio-box h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    color: #0c6d84; /* Signature blue brand color */
    font-weight: 600;
    margin-bottom: 15px;
}

.orange-line-short {
    width: 50px;
    height: 4px;
    background: #f08d35;
    margin-bottom: 25px;
}

/* Bio copy matching color assignment */
.dentist-bio-box p {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #0c6d84; /* Deep teal-blue typography */
    margin-bottom: 20px;
}

.dentist-bio-box p:last-child {
    margin-bottom: 0;
}

.certificate-photo-box {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.certificate-photo-box img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    display: block;
}

/* Responsive adjustment if screens become narrow */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        align-items: center;
    }
    .dentist-photo-box {
        flex: 0 0 auto;
        width: 100%;
        max-width: 350px;
    }
}
/* ================= SURGICAL PAGE STRUCTURAL LAYOUTS ================= */
.service-detail-container {
    width: 100%;
    max-width: 900px;
    margin: 60px auto 120px;
    padding: 0 4%;
}

.service-page-title {
    text-align: center;
    font-size: 3.2rem;
    color: #0c6d84;
    font-family: 'Cormorant Garamond', serif;
}

.central-line {
    width: 60px;
    height: 4px;
    background: #f08d35;
    margin: 15px auto 50px;
}

.service-items-wrapper {
    display: flex;
    flex-direction: column;
    gap: 45px;
}

/* Horizontal line alignment layout */
.detailed-service-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    background: white;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

/* Perfect icon bounding parameters */
.service-icon-container {
    flex: 0 0 80px; 
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-page-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-text-block {
    flex: 1;
}

.service-text-block h3 {
    font-size: 1.6rem;
    color: #0c6d84;
    margin-bottom: 10px;
    font-weight: 600;
}

.service-text-block p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
}

/* Mobile responsive collapse protection */
@media (max-width: 600px) {
    .detailed-service-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .service-icon-container {
        margin-bottom: 10px;
    }
}

/* ================= HERO SECTION STYLING ================= */
.hero-section {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 40px auto 80px;
    padding: 0 4%;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.hero-subtitle {
    display: block;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: #f08d35;
    font-weight: 600;
    margin-bottom: 12px;
}

.hero-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    color: #0c6d84;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 30px;
}

.hero-cta-group {
    display: flex;
    gap: 15px;
}

.hero-primary-btn {
    background: #0c6d84;
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease;
}

.hero-primary-btn:hover {
    background: #095264;
}

.hero-secondary-btn {
    background: transparent;
    border: 2px solid #0c6d84;
    color: #0c6d84;
    padding: 12px 26px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.hero-secondary-btn:hover {
    background: #0c6d84;
    color: white;
}

.hero-image-pane {
    flex: 1;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.hero-image-pane img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ================= SERVICE SNAPSHOT GRID STYLING ================= */
.home-services-section {
    background: #f7fbfb;
    padding: 80px 4%;
    text-align: center;
}

.home-section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    color: #0c6d84;
}

.services-grid {
    display: flex;
    max-width: 1100px;
    margin: 0 auto;
    gap: 30px;
}

.service-card {
    flex: 1;
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
}

/* The structural lift effect on hover */
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(12, 109, 132, 0.08);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 25px;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-card h3 {
    font-size: 1.4rem;
    color: #0c6d84;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-link-text {
    color: #f08d35;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Responsive adjustment */
@media (max-width: 850px) {
    .hero-section, .services-grid {
        flex-direction: column;
    }
    .hero-image-pane {
        width: 100%;
        height: 300px;
    }
}

/* ================= INTERACTIVE SCROLL ANIMATIONS ================= */

/* Initial state for items sliding from the left */
.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Initial state for items sliding from the right */
.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* The active trigger state that glides them into center view */
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Reveal Up Animation */
.reveal-up {
    opacity: 0;
    transform: translateY(60px); /* Starts 60px lower than its natural position */
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0); /* Rises to its natural position */
}

/* Accessibility fallback: if a user disables system motion effects */
@media (prefers-reduced-motion: reduce) {
    .reveal-left, .reveal-right {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.about-section {
    position: relative; /* This makes the SVG anchor to this section */
    width: 100%;
    overflow-x: hidden;
}

.background-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Pushes lines behind your content */
    pointer-events: none; /* Keeps the page clickable */
}

/* Ensure your container sits in front */
.about-container {
    position: relative;
    z-index: 1;
}
