/**
 * DentaPro — Clean Minimal Design with Animations
 * Cream background, navy blue accents
 */

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
    --bg: #faf8f5;
    --bg-dark: #1a3a5c;
    --surface: #ffffff;
    --text: #1a3a5c;
    --text-light: #ffffff;
    --text-muted: #6b7c8a;
    --accent: #d4a853;
    --accent-dark: #b8923e;
    --border: rgba(26, 58, 92, 0.1);
    --shadow: 0 20px 60px rgba(26, 58, 92, 0.1);
    --shadow-hover: 0 30px 80px rgba(26, 58, 92, 0.15);
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Back to Portfolio Button */
.back-to-portfolio {
    position: fixed;
    top: 100px;
    left: 24px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-dark);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    border-radius: 100px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.back-to-portfolio:hover {
    background: var(--accent);
    transform: translateX(-4px);
}

.back-to-portfolio svg {
    transition: transform 0.3s ease;
}

.back-to-portfolio:hover svg {
    transform: translateX(-3px);
}

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

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

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

/* ==========================================================================
   Typography
   ========================================================================== */
h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--text);
}

h1 {
    font-size: clamp(56px, 8vw, 96px);
    line-height: 1.0;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.1;
}

h3 {
    font-size: 22px;
}

p {
    color: var(--text-muted);
}

/* ==========================================================================
   Animations
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.fade-right {
    transform: translateX(-40px);
}

.reveal.fade-left {
    transform: translateX(40px);
}

.reveal.revealed,
.revealed {
    opacity: 1;
    transform: translate(0);
}

/* Stagger children */
.stagger-children>* {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-children>*.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 36px;
    background: var(--accent);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    transition: all var(--transition);
    box-shadow: 0 4px 20px rgba(212, 168, 83, 0.3);
}

.btn-primary:hover {
    background: var(--bg-dark);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(26, 58, 92, 0.3);
}

.btn-primary.full {
    width: 100%;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 36px;
    border: 2px solid var(--border);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    transition: all var(--transition);
}

.btn-outline:hover {
    border-color: var(--text);
    background: var(--text);
    color: var(--text-light);
}

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

.header.scrolled {
    background: rgba(250, 248, 245, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
}

.logo.light {
    color: var(--text-light);
}

.logo-icon {
    width: 28px;
    height: 28px;
    stroke: currentColor;
}

.nav {
    display: flex;
    gap: 36px;
    margin-left: auto;
}

.nav a {
    font-size: 14px;
    color: var(--text-muted);
    transition: color var(--transition);
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}

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

.nav a:hover::after {
    width: 100%;
}

.header-phone {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.header .btn-primary {
    padding: 14px 28px;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    padding: 180px 0 160px;
    background: linear-gradient(180deg, #faf8f5 0%, #f5f0e8 100%);
    position: relative;
    overflow: hidden;
}

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

.hero-badge {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(212, 168, 83, 0.15);
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 24px;
}

.hero h1 {
    margin-bottom: 24px;
}

.hero-text p {
    font-size: 18px;
    max-width: 420px;
    margin-bottom: 40px;
    line-height: 1.8;
}

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

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
}

.hero-wave svg {
    width: 100%;
    height: 100px;
    display: block;
}

/* ==========================================================================
   Stats
   ========================================================================== */
.stats {
    padding: 80px 0;
    background: var(--surface);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-card {
    padding: 32px;
}

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

/* ==========================================================================
   Section Label
   ========================================================================== */
.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-label.light {
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Praxis (Clinic)
   ========================================================================== */
.praxis {
    padding: 120px 0;
    background: var(--surface);
}

.praxis-content {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 100px;
    align-items: center;
}

.praxis h2 {
    margin-bottom: 20px;
}

.praxis-text>p {
    margin-bottom: 36px;
    font-size: 16px;
    line-height: 1.8;
}

.praxis-features {
    list-style: none;
}

.praxis-features li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
    color: var(--text);
    transition: padding-left var(--transition);
}

.praxis-features li:hover {
    padding-left: 10px;
}

.praxis-features li::before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(212, 168, 83, 0.15);
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    border-radius: 50%;
}

.praxis-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

/* ==========================================================================
   Section Header
   ========================================================================== */
.section-header {
    margin-bottom: 60px;
}

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

.section-header p {
    margin-top: 16px;
    font-size: 17px;
}

/* ==========================================================================
   Team
   ========================================================================== */
.team {
    padding: 120px 0;
    background: var(--bg);
}

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

.team-card {
    text-align: center;
    padding: 24px;
    background: var(--surface);
    border-radius: 20px;
    transition: all var(--transition);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.team-photo {
    width: 100%;
    height: 280px;
    margin-bottom: 24px;
    overflow: hidden;
    border-radius: 16px;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.team-card:hover .team-photo img {
    transform: scale(1.08);
}

.team-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.team-role {
    display: block;
    font-size: 14px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 8px;
}

.team-card>p {
    font-size: 14px;
}

/* ==========================================================================
   Steps
   ========================================================================== */
.steps {
    padding: 120px 0;
    background: var(--surface);
}

.steps .section-header {
    max-width: 400px;
}

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

.step-card {
    padding: 48px 40px;
    background: var(--bg);
    border-radius: 24px;
    position: relative;
    transition: all var(--transition);
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--accent);
    color: var(--text);
    font-size: 22px;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 28px;
    box-shadow: 0 8px 24px rgba(212, 168, 83, 0.3);
}

.step-card h3 {
    margin-bottom: 16px;
}

.step-card p {
    font-size: 15px;
    line-height: 1.7;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
    padding: 120px 0 100px;
    background: var(--bg-dark);
    color: var(--text-light);
    position: relative;
}

.contact-wave {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
}

.contact-wave svg {
    width: 100%;
    height: 100px;
    display: block;
}

.contact h2 {
    color: var(--text-light);
    margin-bottom: 40px;
}

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

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

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

.contact-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--accent);
}

.contact-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.5;
    margin-bottom: 4px;
}

.contact-value {
    font-size: 17px;
    font-weight: 500;
}

.contact-form {
    background: var(--surface);
    padding: 48px;
    border-radius: 24px;
    color: var(--text);
    box-shadow: var(--shadow);
}

.contact-form h3 {
    margin-bottom: 28px;
    font-size: 24px;
}

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 18px 20px;
    background: var(--bg);
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 15px;
    color: var(--text);
    outline: none;
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent);
}

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

.form-note {
    font-size: 13px;
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    padding: 80px 0 40px;
    background: #152d45;
    color: var(--text-light);
}

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

.footer-brand p {
    margin-top: 20px;
    font-size: 15px;
    opacity: 0.6;
    line-height: 1.7;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 24px;
    opacity: 0.8;
}

.footer-col a,
.footer-col span {
    display: block;
    font-size: 15px;
    opacity: 0.6;
    margin-bottom: 14px;
    transition: opacity var(--transition);
}

.footer-col a:hover {
    opacity: 1;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    opacity: 0.5;
}

.footer-bottom a {
    color: var(--accent);
    opacity: 1;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .nav {
        display: none;
    }

    .header-phone {
        display: none;
    }

    .hero {
        padding: 160px 0 120px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-image {
        order: -1;
    }

    .hero-image img {
        height: 400px;
    }

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

    .praxis-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

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

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 140px 0 100px;
    }

    .hero-image img {
        height: 300px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-value {
        font-size: 42px;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}