/* ============================================
   Yucca Dental Center — Editorial Style
   Plum + Amber Palette
   ============================================ */

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

:root {
    --plum: #7B3F5E;
    --plum-dark: #5C2D45;
    --plum-deep: #3D1E30;
    --plum-light: #A0607A;
    --plum-pale: #F3E8EC;
    --amber: #C8923A;
    --amber-light: #E8B960;
    --amber-pale: #FDF5E6;
    --cream: #FDF9F4;
    --cream-dark: #F5EDE4;
    --charcoal: #1A1A1A;
    --text: #2C2C2C;
    --text-light: #5A5A5A;
    --text-muted: #8A8A8A;
    --white: #FFFFFF;
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 249, 244, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(123, 63, 94, 0.08);
    transition: var(--transition);
}

.nav.scrolled {
    background: rgba(253, 249, 244, 0.97);
    box-shadow: 0 1px 20px rgba(123, 63, 94, 0.08);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--plum-dark);
    letter-spacing: -0.01em;
}

.nav-logo-icon {
    color: var(--plum);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-light);
    transition: color var(--transition);
    letter-spacing: 0.01em;
}

.nav-links a:hover {
    color: var(--plum);
}

.nav-cta {
    background: var(--plum);
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: 100px;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    transition: background var(--transition), transform var(--transition) !important;
    letter-spacing: 0.01em;
}

.nav-cta:hover {
    background: var(--plum-dark);
    transform: translateY(-1px);
    color: var(--white) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: var(--transition);
}

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

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

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

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--cream);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--plum);
    padding: 8px;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.mobile-menu-link {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 600;
    color: var(--charcoal);
    padding: 12px 0;
    transition: color var(--transition);
}

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

.mobile-menu-divider {
    width: 60px;
    height: 1px;
    background: var(--plum-light);
    margin: 16px 0;
}

.mobile-menu-cta {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--plum);
    padding: 12px 0;
}

.mobile-menu-address {
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.6;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(61, 30, 48, 0.88) 0%,
        rgba(123, 63, 94, 0.75) 50%,
        rgba(92, 45, 69, 0.65) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    width: 100%;
}

.hero-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--amber-light);
    margin-bottom: 24px;
    padding: 8px 16px;
    border: 1px solid rgba(200, 146, 58, 0.4);
    border-radius: 100px;
}

.hero-headline {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--white);
    max-width: 800px;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-headline em {
    font-style: italic;
    color: var(--amber-light);
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 560px;
    line-height: 1.75;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--sans);
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    letter-spacing: 0.01em;
}

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

.btn-primary:hover {
    background: var(--amber-light);
    border-color: var(--amber-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200, 146, 58, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-light {
    background: var(--white);
    color: var(--plum-dark);
    border-color: var(--white);
}

.btn-light:hover {
    background: var(--plum-pale);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: float 2s ease-in-out infinite;
}

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

/* --- Intro Strip --- */
.intro-strip {
    background: var(--plum-deep);
    padding: 48px 0;
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.intro-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.intro-number {
    font-family: var(--serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--amber);
    line-height: 1;
}

.intro-item p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    font-weight: 300;
}

/* --- Section Shared --- */
.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--plum);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--charcoal);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    line-height: 1.75;
    font-weight: 300;
}

/* --- Services --- */
.services {
    padding: 120px 0;
    background: var(--cream);
}

.section-header {
    margin-bottom: 64px;
}

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

.service-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px 32px;
    transition: all var(--transition);
    border: 1px solid rgba(123, 63, 94, 0.06);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--plum), var(--amber));
    opacity: 0;
    transition: opacity var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(123, 63, 94, 0.1);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--plum-pale);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--plum);
    margin-bottom: 24px;
    transition: all var(--transition);
}

.service-card:hover .service-icon {
    background: var(--plum);
    color: var(--white);
}

.service-card h3 {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.service-card p {
    font-size: 0.925rem;
    color: var(--text-light);
    line-height: 1.7;
    font-weight: 300;
}

/* --- About --- */
.about {
    padding: 120px 0;
    background: var(--white);
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 20px;
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.about-image-accent {
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 200px;
    height: 200px;
    background: var(--plum-pale);
    border-radius: 20px;
    z-index: -1;
}

.about-content {
    padding: 20px 0;
}

.about-text {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: 300;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 40px;
}

.about-value {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

.about-value svg {
    color: var(--amber);
    flex-shrink: 0;
}

/* --- Patients --- */
.patients {
    padding: 120px 0;
    background: var(--cream);
}

.patients-header {
    text-align: center;
    margin-bottom: 64px;
}

.patients-header .section-desc {
    margin: 0 auto;
}

.patients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.patient-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px 28px;
    border: 1px solid rgba(123, 63, 94, 0.06);
    transition: all var(--transition);
}

.patient-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(123, 63, 94, 0.08);
}

.patient-card-number {
    font-family: var(--serif);
    font-size: 3rem;
    font-weight: 700;
    color: var(--plum-pale);
    line-height: 1;
    margin-bottom: 20px;
    transition: color var(--transition);
}

.patient-card:hover .patient-card-number {
    color: var(--plum);
}

.patient-card h3 {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 12px;
}

.patient-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
    font-weight: 300;
}

.patient-card a {
    color: var(--plum);
    font-weight: 500;
    border-bottom: 1px solid rgba(123, 63, 94, 0.2);
    transition: border-color var(--transition);
}

.patient-card a:hover {
    border-color: var(--plum);
}

/* --- CTA Band --- */
.cta-band {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--plum-deep) 0%, var(--plum) 100%);
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(200, 146, 58, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-headline {
    font-family: var(--serif);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.cta-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 40px;
    font-weight: 300;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info {
    padding: 20px 0;
}

.contact-desc {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.75;
    margin-bottom: 40px;
    font-weight: 300;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-detail-icon {
    width: 44px;
    height: 44px;
    background: var(--plum-pale);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--plum);
    flex-shrink: 0;
}

.contact-detail-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-detail a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--charcoal);
    transition: color var(--transition);
}

.contact-detail a:hover {
    color: var(--plum);
}

.contact-detail span {
    font-size: 1rem;
    color: var(--charcoal);
    line-height: 1.6;
}

/* --- Contact Form --- */
.contact-form-wrap {
    background: var(--cream);
    border-radius: 20px;
    padding: 48px;
    border: 1px solid rgba(123, 63, 94, 0.06);
}

.contact-form h3 {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.form-note {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

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

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

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid rgba(123, 63, 94, 0.15);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: var(--sans);
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

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

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--plum);
    box-shadow: 0 0 0 3px rgba(123, 63, 94, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #E8F5E9;
    border-radius: 10px;
    margin-top: 16px;
    font-size: 0.9rem;
    color: #2E7D32;
    font-weight: 500;
}

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

.form-success svg {
    flex-shrink: 0;
    color: #2E7D32;
}

/* --- Map --- */
.map-section {
    border-top: 1px solid rgba(123, 63, 94, 0.08);
}

.map-container {
    height: 400px;
    filter: saturate(0.7) contrast(1.05);
}

.map-container iframe {
    width: 100%;
    height: 100%;
}

/* --- Footer --- */
.footer {
    background: var(--charcoal);
    padding: 80px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-logo svg {
    color: var(--amber);
}

.footer-tagline {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    max-width: 300px;
    font-weight: 300;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-col h4 {
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    padding: 6px 0;
    transition: color var(--transition);
}

.footer-col span {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
}

.footer-col a:hover {
    color: var(--amber-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}

/* --- Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .patients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-layout {
        gap: 48px;
    }
    
    .contact-layout {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-content {
        padding: 100px 24px 60px;
    }
    
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image img {
        height: 400px;
    }
    
    .about-image-accent {
        display: none;
    }
    
    .about-values {
        grid-template-columns: 1fr;
    }
    
    .patients-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contact-form-wrap {
        padding: 32px 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .btn {
        padding: 14px 24px;
    }
}
