/* ========================================
   K Dentistry - Complete Stylesheet
   Mobile-First Responsive Design
   ======================================== */

/* CSS Variables */
:root {
    --primary-green: #5A7D2C;
    --primary-green-dark: #4a6a24;
    --light-mint: #E0F2F1;
    --soft-grey: #F5F5F5;
    --dark-grey: #333333;
    --white: #FFFFFF;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Lato', sans-serif;
    --header-height: 70px;
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-grey);
    background-color: var(--soft-grey);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1em;
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-green-dark);
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Header Styles
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all var(--transition-medium);
}

.header.scrolled {
    height: 60px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 20px;
}

.logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    height: 50px;
    width: auto;
}

.header-tagline {
    display: none;
    font-size: 0.85rem;
    color: var(--dark-grey);
    font-weight: 400;
    white-space: nowrap;
}

.nav-desktop {
    display: none;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    color: var(--dark-grey);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: all var(--transition-medium);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-green);
    font-weight: 700;
}

.header-contact {
    display: none;
}

.phone-link {
    font-size: 0.9rem;
    color: var(--dark-grey);
    font-weight: 500;
}

.phone-link:hover {
    color: var(--primary-green);
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark-grey);
    transition: all var(--transition-medium);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--white);
    z-index: 999;
    transition: right var(--transition-medium);
    overflow-y: auto;
    padding: 80px 20px 40px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark-grey);
    width: 44px;
    height: 44px;
}

.mobile-nav-list {
    list-style: none;
    margin-bottom: 30px;
}

.mobile-nav-link {
    display: block;
    padding: 15px 0;
    font-size: 1.25rem;
    color: var(--dark-grey);
    border-bottom: 1px solid var(--soft-grey);
}

.mobile-nav-link.active {
    color: var(--primary-green);
    font-weight: 600;
}

.mobile-cta {
    display: inline-block;
    margin-bottom: 20px;
}

.mobile-phone {
    font-size: 1.1rem;
    color: var(--primary-green);
    font-weight: 600;
}

/* ========================================
   Button Styles
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--primary-green-dark);
    border-color: var(--primary-green-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(90, 125, 44, 0.3);
}

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

.btn-secondary:hover {
    background: var(--primary-green);
    color: var(--white);
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(90, 125, 44, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(90, 125, 44, 0); }
    100% { box-shadow: 0 0 0 0 rgba(90, 125, 44, 0); }
}

/* ========================================
   Hero Sections
   ======================================== */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    margin-top: var(--header-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 40px 0;
}

.hero-title {
    font-size: 1.75rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    margin-bottom: 15px;
}

.hero-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--white);
    font-size: 0.9rem;
    margin-bottom: 25px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.separator {
    color: var(--primary-green);
    font-weight: bold;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ========================================
   Section Titles
   ======================================== */
.section-title {
    text-align: center;
    color: var(--dark-grey);
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* ========================================
   Welcome Message Section
   ======================================== */
.welcome-message {
    background: var(--soft-grey);
    padding: 60px 0;
}

.welcome-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.welcome-divider {
    display: flex;
    justify-content: center;
    margin: 20px 0 30px;
}

.welcome-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--dark-grey);
    margin-bottom: 20px;
}

/* ========================================
   Services Section
   ======================================== */
.key-services,
.general-dentistry,
.cosmetic-dentistry {
    background: var(--white);
    padding: 60px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 40px;
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all var(--transition-medium);
}

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

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 60px;
    height: 60px;
}

.service-title {
    font-size: 1.25rem;
    color: var(--dark-grey);
    margin-bottom: 15px;
}

.service-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* ========================================
   Technology Highlight
   ======================================== */
.technology-highlight,
.digital-xrays-detail {
    background: var(--light-mint);
    padding: 60px 0;
    position: relative;
}

.tech-content,
.xray-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}

.tech-image,
.xray-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.tech-img,
.xray-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.tech-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 30px 20px 20px;
}

.tech-title {
    color: var(--white);
    font-size: 1.25rem;
}

.tech-benefits,
.xray-text {
    padding: 20px 0;
}

.tech-title.section-title,
.xray-text .section-title {
    text-align: left;
}

.tech-list,
.xray-benefits {
    list-style: none;
    margin-top: 20px;
}

.tech-list li,
.xray-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.tech-list svg,
.xray-icon svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 3px;
}

.tech-list strong,
.xray-benefits h4 {
    color: var(--primary-green);
}

/* ========================================
   Dr. Introduction
   ======================================== */
.dr-intro,
.dr-expanded {
    background: var(--white);
    padding: 60px 0;
}

.dr-content,
.dr-expanded-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}

.dr-image,
.dr-expanded-image {
    border-radius: 12px;
    overflow: hidden;
}

.dr-img,
.dr-expanded-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.dr-text,
.dr-expanded-text {
    padding: 20px 0;
}

.dr-bio,
.dr-expanded-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--dark-grey);
    margin-bottom: 15px;
}

.dr-quote {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--primary-green);
    border-left: 3px solid var(--primary-green);
    padding-left: 20px;
    margin: 20px 0;
}

/* ========================================
   Testimonials
   ======================================== */
.patient-testimonials,
.testimonials-grid {
    background: var(--soft-grey);
    padding: 60px 0;
}

.testimonial-carousel {
    position: relative;
    margin-top: 40px;
}

.carousel-track {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--primary-green);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 10;
    transition: all var(--transition-fast);
}

.carousel-arrow:hover {
    background: var(--primary-green);
    color: var(--white);
}

.carousel-prev { left: -20px; }
.carousel-next { right: -20px; }

.testimonial-card {
    flex: 0 0 85%;
    max-width: 400px;
    scroll-snap-align: center;
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.testimonial-quote {
    position: relative;
    margin-bottom: 20px;
}

.quote-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 10px;
}

.testimonial-quote p {
    font-size: 1rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--dark-grey);
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--dark-grey);
}

.author-location {
    font-size: 0.85rem;
    color: #888;
}

/* Testimonials Grid */
.testimonial-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 40px;
}

/* ========================================
   Why Choose Us
   ======================================== */
.why-choose-us {
    background: var(--white);
    padding: 60px 0;
}

.why-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

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

.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.why-item {
    text-align: center;
    padding: 25px;
    background: var(--soft-grey);
    border-radius: 12px;
}

.why-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
}

.why-icon svg {
    width: 50px;
    height: 50px;
}

.why-title {
    font-size: 1.1rem;
    color: var(--dark-grey);
    margin-bottom: 10px;
}

.why-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* ========================================
   CTA Banner
   ======================================== */
.cta-banner {
    background: var(--primary-green);
    padding: 60px 0;
}

.cta-banner-content {
    text-align: center;
}

.cta-title {
    color: var(--white);
    font-size: 1.75rem;
    margin-bottom: 15px;
}

.cta-text {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.cta-phone {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 600;
    transition: transform var(--transition-fast);
}

.cta-phone:hover {
    color: var(--white);
    transform: scale(1.05);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--soft-grey);
    padding: 50px 0 20px;
    border-top: 1px solid #ddd;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
}

.footer-mission {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    color: var(--primary-green);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: scale(1.1);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.footer-heading {
    font-size: 1.1rem;
    color: var(--dark-grey);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: 10px;
}

.footer-list a {
    color: #666;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.footer-list a:hover {
    color: var(--primary-green);
}

.footer-address {
    font-style: normal;
}

.footer-address p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.footer-address a {
    color: #666;
}

.footer-address a:hover {
    color: var(--primary-green);
}

.footer-hours h5 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--dark-grey);
}

.footer-hours p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #888;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    font-size: 0.85rem;
    color: #888;
}

/* ========================================
   Scroll Progress Bar
   ======================================== */
.scroll-progress-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--primary-green);
    z-index: 1001;
    transition: width 0.1s linear;
}

/* ========================================
   Floating CTA
   ======================================== */
.floating-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--white);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-medium);
}

.floating-cta.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-cta-text {
    font-size: 0.85rem;
    color: var(--dark-grey);
    font-weight: 500;
}

/* ========================================
   Accordion
   ======================================== */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--white);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--white);
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-grey);
    transition: all var(--transition-fast);
}

.accordion-header:hover {
    background: var(--light-mint);
}

.accordion-icon {
    width: 24px;
    height: 24px;
    transition: transform var(--transition-fast);
}

.accordion-header[aria-expanded="true"] .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-medium);
}

.accordion-content p {
    padding: 0 20px 20px;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* ========================================
   Forms
   ======================================== */
.contact-form,
.testimonial-form {
    max-width: 600px;
    margin: 30px auto 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-grey);
    margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: var(--white);
    transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-green);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-checkbox input {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-green);
}

.form-checkbox label {
    font-weight: 400;
    margin-bottom: 0;
}

.btn-submit {
    width: 100%;
    margin-top: 10px;
}

/* ========================================
   Additional Page Styles
   ======================================== */

/* About Page */
.about-hero .hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
}

.about-hero .hero-content {
    text-align: center;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 40px;
}

.philosophy-item {
    text-align: center;
    padding: 25px;
    background: var(--soft-grey);
    border-radius: 12px;
}

.philosophy-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
}

.philosophy-icon svg {
    width: 50px;
    height: 50px;
}

.philosophy-title {
    font-size: 1.1rem;
    color: var(--dark-grey);
    margin-bottom: 10px;
}

.philosophy-desc {
    font-size: 0.9rem;
    color: #666;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 40px;
}

.feature-card {
    text-align: center;
    padding: 25px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
}

.feature-icon svg {
    width: 50px;
    height: 50px;
}

.feature-title {
    font-size: 1.1rem;
    color: var(--dark-grey);
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 0.9rem;
    color: #666;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    text-align: center;
    padding: 25px;
    background: var(--soft-grey);
    border-radius: 12px;
}

.team-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-size: 1.25rem;
    color: var(--dark-grey);
    margin-bottom: 5px;
}

.team-role {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.team-bio {
    font-size: 0.9rem;
    color: #666;
}

.community-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}

.community-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
}

.community-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--dark-grey);
}

.community-note {
    font-style: italic;
    color: var(--primary-green);
}

/* Services Page */
.service-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.service-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--dark-grey);
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

.service-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.service-item-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.service-item-icon svg {
    width: 40px;
    height: 40px;
}

.service-item-title {
    font-size: 1rem;
    color: var(--dark-grey);
    margin-bottom: 5px;
}

.service-item-desc {
    font-size: 0.85rem;
    color: #666;
}

.cosmetic-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 40px;
}

.cosmetic-card {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.cosmetic-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
}

.cosmetic-icon svg {
    width: 50px;
    height: 50px;
}

.cosmetic-title {
    font-size: 1.1rem;
    color: var(--dark-grey);
    margin-bottom: 10px;
}

.cosmetic-desc {
    font-size: 0.9rem;
    color: #666;
}

/* Before/After Slider */
.before-after-slider {
    position: relative;
    width: 100%;
    height: 300px;
    margin: 30px 0 40px;
    overflow: hidden;
    border-radius: 12px;
}

.before-image,
.after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.before-image img,
.after-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.before-label,
.after-label {
    position: absolute;
    top: 15px;
    padding: 5px 15px;
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
}

.before-label { left: 15px; }
.after-label { right: 15px; }

.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: var(--white);
    cursor: ew-resize;
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Family Dentistry */
.family-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.family-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
}

.family-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--dark-grey);
}

.family-benefits-title {
    font-size: 1.2rem;
    color: var(--dark-grey);
    margin: 25px 0 15px;
}

.family-benefits {
    list-style: none;
}

.family-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.family-benefits svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 3px;
}

/* Testimonials Page */
.featured-video {
    background: var(--soft-grey);
    padding: 60px 0;
}

.video-container {
    max-width: 800px;
    margin: 30px auto 0;
}

.video-placeholder {
    width: 100%;
    height: 400px;
    background: var(--dark-grey);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.play-button {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    color: var(--white);
}

.case-studies {
    background: var(--white);
    padding: 60px 0;
}

.case-study {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
    padding: 30px;
    background: var(--soft-grey);
    border-radius: 12px;
}

.case-study-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
}

.case-study-title {
    font-size: 1.5rem;
    color: var(--dark-grey);
    margin-bottom: 20px;
}

.case-study-item {
    margin-bottom: 20px;
}

.case-study-item h4 {
    color: var(--primary-green);
    font-size: 1rem;
    margin-bottom: 8px;
}

.case-study-item p {
    font-size: 0.95rem;
    color: var(--dark-grey);
    line-height: 1.6;
}

.case-study-quote {
    font-style: italic;
    color: var(--primary-green);
    border-left: 3px solid var(--primary-green);
    padding-left: 15px;
    margin-top: 15px;
}

.submit-testimonial {
    background: var(--soft-grey);
    padding: 60px 0;
}

/* Contact Page */
.contact-details {
    background: var(--white);
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background: var(--light-mint);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-text h3 {
    font-size: 1.1rem;
    color: var(--dark-grey);
    margin-bottom: 5px;
}

.contact-text p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 5px;
}

.contact-link {
    font-size: 0.9rem;
    font-weight: 600;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: var(--soft-grey);
    border-radius: 8px;
}

.hours-day {
    font-weight: 600;
    color: var(--dark-grey);
}

.hours-time {
    color: #666;
}

.hours-special {
    background: var(--light-mint);
}

.hours-note {
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
}

.contact-map {
    height: 400px;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: var(--light-mint);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.map-placeholder svg {
    width: 60px;
    height: 60px;
}

.contact-form-section {
    background: var(--white);
    padding: 60px 0;
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
}

.form-intro {
    text-align: center;
    color: #666;
    margin-bottom: 0;
}

.emergency-section {
    background: var(--light-mint);
    padding: 40px 0;
}

.emergency-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.emergency-icon svg {
    width: 50px;
    height: 50px;
}

.emergency-text h3 {
    font-size: 1.3rem;
    color: var(--dark-grey);
    margin-bottom: 10px;
}

.emergency-text p {
    font-size: 1rem;
    color: var(--dark-grey);
    margin-bottom: 10px;
}

.emergency-phone {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-green);
}

.emergency-note {
    font-size: 0.9rem;
    color: #666;
}

/* Patient Info Page */
.new-patients {
    background: var(--white);
    padding: 60px 0;
}

.steps-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

.step-item {
    text-align: center;
    padding: 30px;
    background: var(--soft-grey);
    border-radius: 12px;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 15px;
}

.step-title {
    font-size: 1.2rem;
    color: var(--dark-grey);
    margin-bottom: 10px;
}

.step-desc {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
}

.btn-download {
    font-size: 0.85rem;
    padding: 10px 20px;
}

.insurance-payment {
    background: var(--soft-grey);
    padding: 60px 0;
}

.insurance-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 40px;
}

.insurance-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.insurance-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}

.insurance-icon svg {
    width: 45px;
    height: 45px;
}

.insurance-card h3 {
    font-size: 1.1rem;
    color: var(--dark-grey);
    margin-bottom: 10px;
}

.insurance-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
}

.patient-faq {
    background: var(--white);
    padding: 60px 0;
}

.patient-resources {
    background: var(--soft-grey);
    padding: 60px 0;
}

.resources-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 40px;
}

.resource-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 2px solid transparent;
    transition: all var(--transition-fast);
}

.resource-card:hover {
    border-color: var(--primary-green);
}

.resource-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
}

.resource-icon svg {
    width: 45px;
    height: 45px;
}

.resource-title {
    font-size: 1.1rem;
    color: var(--dark-grey);
    margin-bottom: 10px;
}

.resource-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.resource-link {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Blog Page */
.featured-post {
    background: var(--white);
    padding: 60px 0;
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 40px;
    background: var(--soft-grey);
    border-radius: 12px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.featured-content {
    padding: 25px;
}

.featured-category {
    display: inline-block;
    background: var(--primary-green);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.featured-title {
    font-size: 1.3rem;
    color: var(--dark-grey);
    margin-bottom: 15px;
}

.featured-excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
}

.blog-categories {
    background: var(--soft-grey);
    padding: 20px 0;
    position: sticky;
    top: var(--header-height);
    z-index: 100;
}

.categories-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
}

.categories-list::-webkit-scrollbar {
    display: none;
}

.category-btn {
    padding: 10px 20px;
    background: var(--white);
    border: 2px solid transparent;
    border-radius: 25px;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    color: var(--dark-grey);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary-green);
    color: var(--white);
}

.blog-posts {
    background: var(--white);
    padding: 60px 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

.post-card {
    background: var(--soft-grey);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition-medium);
}

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

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

.post-content {
    padding: 20px;
}

.post-category {
    display: inline-block;
    background: var(--light-mint);
    color: var(--primary-green);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.post-title {
    font-size: 1.1rem;
    color: var(--dark-grey);
    margin-bottom: 10px;
}

.post-excerpt {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-date {
    font-size: 0.8rem;
    color: #888;
}

.post-link {
    font-size: 0.9rem;
    font-weight: 600;
}

.blog-pagination {
    background: var(--soft-grey);
    padding: 40px 0;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 10px 15px;
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 5px;
    color: var(--dark-grey);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.pagination-btn:hover,
.pagination-btn.active {
    background: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
}

/* ========================================
   Responsive - Tablet (768px+)
   ======================================== */
@media (min-width: 768px) {
    :root {
        --header-height: 80px;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .header-tagline {
        display: block;
    }

    .nav-desktop {
        display: block;
    }

    .header-contact {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .hamburger {
        display: none;
    }

    .hero {
        min-height: 70vh;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-cta {
        flex-direction: row;
        gap: 15px;
    }

    .services-grid,
    .features-grid,
    .team-grid,
    .philosophy-grid,
    .why-grid,
    .testimonial-cards,
    .posts-grid,
    .insurance-grid,
    .resources-grid,
    .service-grid,
    .cosmetic-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dr-content,
    .dr-expanded-content,
    .tech-content,
    .xray-content,
    .family-content,
    .community-content,
    .case-study,
    .featured-card,
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }

    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .carousel-arrow {
        display: block;
    }

    .steps-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .emergency-content {
        flex-direction: row;
        text-align: left;
    }
}

/* ========================================
   Responsive - Desktop (1024px+)
   ======================================== */
@media (min-width: 1024px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }

    .container {
        padding: 0 40px;
    }

    .hero {
        min-height: 85vh;
    }

    .hero-title {
        font-size: 2.75rem;
        max-width: 800px;
    }

    .hero-benefits {
        font-size: 1rem;
    }

    .services-grid,
    .testimonial-cards,
    .posts-grid,
    .resources-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    }

    .nav-list {
        gap: 40px;
    }

    .service-content {
        grid-template-columns: 1fr 1fr;
    }

    .before-after-slider {
        height: 450px;
    }

    .dr-img,
    .dr-expanded-img,
    .family-img,
    .community-img {
        height: 450px;
    }

    .tech-img,
    .xray-img {
        height: 400px;
    }

    .featured-image img {
        height: 350px;
    }

    .post-image img {
        height: 220px;
    }

    .xray-benefits {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .form-container {
        max-width: 800px;
    }
}

/* ========================================
   Reduced Motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
