/* ===================================
   COMBS PEDIATRIC DENTISTRY
   Bold Editorial Style
   Charcoal + Coral Palette
   =================================== */

/* CSS Variables */
:root {
    --charcoal: #2C2C2C;
    --charcoal-light: #3D3D3D;
    --charcoal-dark: #1A1A1A;
    --coral: #FF6B6B;
    --coral-light: #FF8E8E;
    --coral-dark: #E55555;
    --cream: #FAFAFA;
    --off-white: #F5F5F5;
    --white: #FFFFFF;
    --gray-100: #F7F7F7;
    --gray-200: #E5E5E5;
    --gray-300: #D4D4D4;
    --gray-600: #666666;
    --gray-800: #333333;
    
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.15);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--charcoal);
    background-color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
    color: var(--charcoal);
}

h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
    font-size: 1.0625rem;
    color: var(--gray-600);
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

/* Text Utilities */
.text-coral {
    color: var(--coral);
}

.text-serif {
    font-family: var(--font-serif);
}

.lead {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--coral);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.35);
}

.btn-primary:hover {
    background: var(--coral-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 107, 107, 0.45);
}

.btn-secondary {
    background: var(--charcoal);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--charcoal-light);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--charcoal);
    border: 2px solid var(--charcoal);
}

.btn-outline:hover {
    background: var(--charcoal);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2.25rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 1rem;
    background: rgba(255, 107, 107, 0.1);
    padding: 0.375rem 1rem;
    border-radius: 100px;
}

.section-title {
    margin-top: 0.5rem;
}

/* ===================================
   NAVBAR
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--charcoal);
}

.logo-icon {
    font-size: 1.5rem;
    color: var(--coral);
}

.logo-text {
    letter-spacing: 0.05em;
}

.logo .accent {
    color: var(--coral);
}

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

.nav-links a:not(.btn) {
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--gray-600);
}

.nav-links a:not(.btn):hover {
    color: var(--coral);
}

.nav-cta {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: var(--transition);
}

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

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cream);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    transform: translateX(0);
}

.close-menu-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--charcoal);
    line-height: 1;
}

.mobile-link {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--charcoal);
}

.mobile-link:hover {
    color: var(--coral);
}

.mobile-cta {
    margin-top: 1rem;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
    background: var(--cream);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--charcoal);
}

.hero-subhead {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--gray-600);
    margin-bottom: 2.5rem;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    z-index: 2;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

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

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,107,107,0.15) 0%, transparent 60%);
    pointer-events: none;
}

/* Floating Stat Cards */
.stat-card {
    position: absolute;
    background: var(--white);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 3;
}

.stat-card .stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--coral);
    line-height: 1;
}

.stat-card .stat-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.25rem;
}

.card-1 {
    top: 5%;
    left: -10%;
    animation: float 4s ease-in-out infinite;
}

.card-2 {
    bottom: 20%;
    right: -8%;
    animation: float 4s ease-in-out infinite 1s;
}

.card-3 {
    bottom: 5%;
    left: -5%;
    animation: float 4s ease-in-out infinite 2s;
}

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

/* Background Shapes */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--coral);
    top: -200px;
    right: -200px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--charcoal);
    bottom: -100px;
    left: -100px;
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content .lead {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    line-height: 1.5;
    color: var(--charcoal);
}

.about-content p {
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
    display: grid;
    gap: 0.75rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--charcoal);
}

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 107, 107, 0.15);
    color: var(--coral);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.about-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ===================================
   SERVICES SECTION
   =================================== */
.services {
    background: var(--charcoal);
    color: var(--white);
}

.services .section-tag {
    background: rgba(255, 107, 107, 0.2);
}

.services .section-title {
    color: var(--white);
}

.services .section-title .text-coral {
    color: var(--coral-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--charcoal-light);
    padding: 2rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    border-color: var(--coral);
    transform: translateY(-4px);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 107, 0.15);
    border-radius: var(--radius-sm);
    color: var(--coral);
    margin-bottom: 1.25rem;
}

.service-card h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--gray-300);
    line-height: 1.6;
}

/* ===================================
   GALLERY SECTION
   =================================== */
.gallery {
    background: var(--cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

/* ===================================
   CTA SECTION
   =================================== */
.cta-section {
    background: var(--coral);
    padding: 5rem 0;
}

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

.cta-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
}

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

.cta-actions .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

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

/* ===================================
   CONTACT SECTION
   =================================== */
.contact {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.contact-info {
    display: grid;
    gap: 1.25rem;
}

.info-card {
    background: var(--gray-100);
    padding: 1.75rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--coral);
}

.info-card h3 {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--charcoal);
}

.info-card p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.info-card a {
    color: var(--coral);
    font-weight: 600;
}

.info-card a:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--gray-100);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
}

.contact-form {
    display: grid;
    gap: 1.25rem;
}

.form-group {
    display: grid;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--charcoal);
    letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--charcoal);
    background: var(--white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-300);
}

.form-success {
    display: none;
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 107, 107, 0.1);
    border-radius: var(--radius-sm);
    color: var(--coral-dark);
    font-weight: 600;
    margin-top: 1rem;
}

.form-success.show {
    display: block;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--charcoal-dark);
    color: var(--gray-300);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--charcoal-light);
    margin-bottom: 2rem;
}

.footer-brand p {
    color: var(--gray-600);
    font-size: 0.9375rem;
    margin-top: 0.75rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--gray-300);
    font-size: 0.9375rem;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    color: var(--gray-600);
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .card-1 { left: 0; }
    .card-2 { right: 0; }
    .card-3 { left: 0; }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .about-img {
        height: 350px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding: 7rem 0 3rem;
        min-height: auto;
    }
    
    .hero-headline {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .stat-card {
        padding: 1rem 1.25rem;
    }
    
    .stat-card .stat-number {
        font-size: 1.375rem;
    }
    
    .stat-card .stat-label {
        font-size: 0.6875rem;
    }
    
    .card-1 { top: 0; left: -5%; }
    .card-2 { bottom: 15%; right: -5%; }
    .card-3 { bottom: 0; left: -3%; }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .gallery-img {
        height: 200px;
    }
    
    .cta-section {
        padding: 3.5rem 0;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .cta-actions .btn {
        width: 100%;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.25rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .hero {
        padding: 6rem 0 2rem;
    }
    
    .hero-img {
        height: 350px;
    }
    
    .about-img {
        height: 280px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-img {
        height: 220px;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
