/* ===================================
   CREUL DENTAL — Premium Dark Luxury
   =================================== */

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

:root {
    --color-bg: #0a0f0d;
    --color-bg-elevated: #111a15;
    --color-bg-card: #151f1a;
    --color-bg-card-hover: #1a2520;
    --color-cream: #f5f0e8;
    --color-cream-muted: #c8c0b4;
    --color-emerald: #0d6b45;
    --color-emerald-light: #1a8a5c;
    --color-emerald-dark: #074d31;
    --color-gold: #d4af37;
    --color-gold-light: #e8c95a;
    --color-gold-dark: #b8941f;
    --color-text: #f5f0e8;
    --color-text-muted: #8a9a8e;
    --color-border: rgba(212, 175, 55, 0.15);
    --color-border-light: rgba(255, 255, 255, 0.06);
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Subtle background pattern */
.bg-pattern {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: 
        radial-gradient(ellipse at 20% 20%, rgba(13, 107, 69, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
}

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

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

ul {
    list-style: none;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-cream);
}

.gold {
    color: var(--color-gold);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-gold {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
    color: var(--color-bg);
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.3);
}

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

.btn-outline:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: var(--color-cream);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline-light:hover {
    border-color: var(--color-cream);
    color: var(--color-bg);
    background: var(--color-cream);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 40px;
    font-size: 0.9375rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    transition: var(--transition);
    background: transparent;
}

.header.scrolled {
    background: rgba(10, 15, 13, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-cream);
    z-index: 1001;
}

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

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

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav ul {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-cream-muted);
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-gold);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--color-gold);
}

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

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

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-cream);
    transition: var(--transition);
    transform-origin: center;
}

.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);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: 
        linear-gradient(135deg, 
            #0a0f0d 0%, 
            #0d1f17 25%, 
            #0a2a1e 50%, 
            #1a1a0a 75%, 
            #0a0f0d 100%);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 30% 50%, rgba(13, 107, 69, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 50%, rgba(212, 175, 55, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--color-bg), transparent);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 120px 24px 80px;
}

.hero-eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 24px;
}

.hero-headline {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--color-cream);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-cream-muted);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero-details {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--color-cream-muted);
}

.hero-detail svg {
    color: var(--color-gold);
    flex-shrink: 0;
}

/* --- Section Shared --- */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
}

.section-desc {
    font-size: 1rem;
    color: var(--color-cream-muted);
    line-height: 1.8;
}

/* --- Services --- */
.services {
    position: relative;
    z-index: 1;
    padding: 120px 0;
}

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

.service-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    padding: 40px 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

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

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

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(13, 107, 69, 0.15);
    border: 1px solid rgba(13, 107, 69, 0.3);
    margin-bottom: 24px;
    color: var(--color-emerald-light);
}

.service-card h3 {
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-cream);
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--color-cream-muted);
    line-height: 1.7;
}

/* --- About --- */
.about {
    position: relative;
    z-index: 1;
    padding: 120px 0;
    background: var(--color-bg-elevated);
}

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

.about-image {
    position: relative;
}

.image-frame {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border-light);
    aspect-ratio: 6/7;
}

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

.about-stat {
    position: absolute;
    bottom: -24px;
    right: -24px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 24px 32px;
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-gold);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-cream-muted);
    margin-top: 4px;
}

.about-content .section-eyebrow {
    text-align: left;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.about-content > p {
    color: var(--color-cream-muted);
    margin-bottom: 16px;
    font-size: 0.9375rem;
}

.about-features {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9375rem;
    color: var(--color-cream);
}

.about-features li svg {
    color: var(--color-gold);
    flex-shrink: 0;
}

/* --- Patient Info --- */
.patient-info {
    position: relative;
    z-index: 1;
    padding: 120px 0;
}

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

.info-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    padding: 40px 32px;
    transition: var(--transition);
}

.info-card:hover {
    border-color: var(--color-border);
    background: var(--color-bg-card-hover);
}

.info-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    margin-bottom: 24px;
    color: var(--color-gold);
}

.info-card h3 {
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--color-cream);
}

.info-card p {
    font-size: 0.9375rem;
    color: var(--color-cream-muted);
    line-height: 1.8;
}

/* --- CTA --- */
.cta {
    position: relative;
    z-index: 1;
    padding: 120px 0;
    background: 
        linear-gradient(135deg, var(--color-emerald-dark) 0%, var(--color-bg) 100%);
    text-align: center;
}

.cta-content {
    max-width: 640px;
    margin: 0 auto;
}

.cta .section-eyebrow {
    margin-bottom: 16px;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
}

.cta > .container > .cta-content > p {
    font-size: 1rem;
    color: var(--color-cream-muted);
    margin-bottom: 40px;
    line-height: 1.8;
}

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

/* --- Contact --- */
.contact {
    position: relative;
    z-index: 1;
    padding: 120px 0;
    background: var(--color-bg-elevated);
}

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

.contact-info .section-eyebrow {
    text-align: left;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.contact-info > p {
    color: var(--color-cream-muted);
    font-size: 0.9375rem;
    margin-bottom: 40px;
}

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

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

.contact-detail svg {
    color: var(--color-gold);
    flex-shrink: 0;
    margin-top: 2px;
}

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

.contact-detail p, .contact-detail a {
    font-size: 0.9375rem;
    color: var(--color-cream-muted);
}

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

.map-placeholder {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border-light);
    aspect-ratio: 2/1;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    padding: 40px;
}

.contact-form-wrapper h3 {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 32px;
    color: var(--color-cream);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    border-radius: 4px;
    color: var(--color-cream);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    transition: var(--transition);
    outline: none;
}

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

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-gold);
    background: var(--color-bg-elevated);
}

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

.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.form-success svg {
    color: var(--color-emerald-light);
    margin-bottom: 16px;
}

.form-success h4 {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-success p {
    color: var(--color-cream-muted);
    font-size: 0.9375rem;
}

/* --- Footer --- */
.footer {
    position: relative;
    z-index: 1;
    padding: 80px 0 40px;
    border-top: 1px solid var(--color-border-light);
}

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

.footer-brand p {
    color: var(--color-cream-muted);
    font-size: 0.9375rem;
    margin-top: 16px;
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9375rem;
    color: var(--color-cream-muted);
    transition: var(--transition);
}

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

.footer-contact p {
    font-size: 0.9375rem;
    color: var(--color-cream-muted);
    line-height: 1.8;
}

.footer-contact a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--color-border-light);
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    text-align: center;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
}

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

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        inset: 0;
        background: rgba(10, 15, 13, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }
    
    .nav.open {
        opacity: 1;
        pointer-events: all;
    }
    
    .nav ul {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
    
    .nav-link {
        font-size: 1.125rem;
    }
    
    .nav .btn-gold {
        margin-top: 16px;
    }
    
    .nav-close {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-details {
        flex-direction: column;
        gap: 16px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .about-content .section-eyebrow,
    .about-content .section-title {
        text-align: center;
    }
    
    .about-content > p {
        text-align: center;
    }
    
    .about-stat {
        right: 0;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info .section-eyebrow,
    .contact-info .section-title {
        text-align: center;
    }
    
    .contact-info > p {
        text-align: center;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .section-header {
        margin-bottom: 48px;
    }
    
    .services,
    .about,
    .patient-info,
    .cta,
    .contact {
        padding: 80px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .service-card,
    .info-card,
    .contact-form-wrapper {
        padding: 28px 20px;
    }
    
    .contact-form-wrapper {
        padding: 28px 20px;
    }
    
    .about-stat {
        right: -16px;
        bottom: -16px;
        padding: 16px 24px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal[data-reveal] {
        opacity: 1;
        transform: none;
    }
}
