/* ============================================
   SONYDENT - Cabinet Stomatologic Piatra Neamț
   Professional Medical Theme
   MOBILE-FIRST RESPONSIVE DESIGN
   ============================================ */

:root {
    /* Modern Clinical Teal Palette */
    --primary: #0D9488;
    --primary-dark: #0F766E;
    --primary-light: #14B8A6;
    --accent: #06B6D4;
    --dark: #1E293B;
    --white: #FFFFFF;
    --off-white: #F8FAFC;
    --gray: #64748B;
    --gray-light: #E2E8F0;

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Roboto', sans-serif;

    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 15px 40px rgba(0,0,0,0.1);
    --radius: 12px;
    --transition: all 0.3s ease;

    /* Touch target minimum size */
    --touch-target: 44px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 100%; } /* 16px base */
body { font-family: var(--font-body); color: var(--dark); background: var(--white); line-height: 1.7; font-size: 1rem; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }

/* Focus states for accessibility */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.3; }
h1 { font-size: clamp(1.75rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.125rem, 3vw, 1.5rem); }

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

/* Buttons - Mobile first with adequate touch targets */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.875rem 1.5rem;
    min-height: var(--touch-target);
    min-width: var(--touch-target);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover, .btn-primary:focus { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover, .btn-accent:focus { background: #00A896; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover, .btn-outline:focus { background: var(--primary); color: var(--white); }
.btn-submit { width: 100%; }

/* Header - Mobile first */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 0.625rem 0;
}
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    min-height: var(--touch-target);
}
.logo i { font-size: 1.5rem; }

/* Nav menu hidden on mobile */
.nav-menu {
    display: none;
    list-style: none;
    gap: 1.875rem;
}
.nav-menu a {
    color: var(--dark);
    font-size: 1rem;
    font-weight: 500;
    min-height: var(--touch-target);
    display: flex;
    align-items: center;
}
.nav-menu a:hover, .nav-menu a:focus { color: var(--primary); }

/* Nav CTA hidden on mobile */
.nav-cta { display: none; align-items: center; gap: 1rem; }
.nav-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    min-height: var(--touch-target);
}

/* Hero - Mobile first */
.hero {
    padding: 7rem 0 3rem;
    background: linear-gradient(135deg, var(--off-white) 0%, #E3F2FD 100%);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0,119,182,0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
}
.hero h1 { margin-bottom: 1.25rem; color: var(--dark); }
.hero p { font-size: 1rem; color: var(--gray); margin-bottom: 1.5rem; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-image img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}
.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}
.hero-feature i { color: var(--accent); font-size: 1.25rem; }

/* Sections - Mobile first */
.section { padding: 3.75rem 0; }
.section-light { background: var(--off-white); }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 2.5rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { color: var(--gray); }

/* Services - Mobile first (single column) */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.service-card {
    background: var(--white);
    padding: 1.75rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.service-card:hover, .service-card:focus-within {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.service-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.service-icon i { font-size: 1.25rem; color: var(--white); }
.service-card h3 { margin-bottom: 0.75rem; }
.service-card p { color: var(--gray); font-size: 1rem; }

/* Trust Badges - Mobile first */
.trust-section { background: var(--primary); color: var(--white); padding: 3rem 0; }
.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: center;
}
.trust-item i { font-size: 2rem; margin-bottom: 0.75rem; opacity: 0.9; }
.trust-item h4 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.trust-item p { opacity: 0.8; font-size: 0.875rem; }

/* Team - Mobile first */
.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.team-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.team-card img {
    width: 9.375rem;
    height: 9.375rem;
    border-radius: var(--radius);
    object-fit: cover;
    margin: 0 auto;
}
.team-info h3 { margin-bottom: 0.25rem; }
.team-role { color: var(--primary); font-size: 0.9rem; margin-bottom: 1rem; }
.team-info p { color: var(--gray); font-size: 1rem; }

/* Team card highlight (philosophy) */
.team-card-highlight {
    background: var(--primary);
    color: var(--white);
}
.team-card-highlight h3 {
    color: var(--white);
}
.team-info-centered {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 12.5rem;
}
.philosophy-text {
    color: rgba(255,255,255,0.9);
    font-size: 1.0625rem;
    line-height: 1.8;
}

/* Contact - Mobile first */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.contact-info h3 { margin-bottom: 1.5rem; }
.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.contact-icon {
    width: 3rem;
    height: 3rem;
    min-width: 3rem;
    background: var(--off-white);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.125rem;
}
.contact-item a {
    min-height: var(--touch-target);
    display: inline-flex;
    align-items: center;
}
.map-container {
    margin-top: 1.875rem;
}
.map-container iframe {
    width: 100%;
    height: 12.5rem;
    border: none;
    border-radius: var(--radius);
}
.contact-form {
    background: var(--off-white);
    padding: 1.5rem;
    border-radius: var(--radius);
}
.form-title {
    margin-bottom: 1.5rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--dark);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    min-height: var(--touch-target);
    border: 1px solid var(--gray-light);
    border-radius: 0.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,119,182,0.1);
}

/* Footer - Mobile first */
.footer { background: var(--dark); color: var(--white); padding: 3rem 0 1.5rem; }
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-about .logo { margin-bottom: 1.25rem; color: var(--white); }
.footer-about p { color: rgba(255,255,255,0.7); margin-bottom: 1.25rem; }
.footer h4 { margin-bottom: 1.25rem; font-size: 1.0625rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a {
    color: rgba(255,255,255,0.7);
    min-height: var(--touch-target);
    display: inline-flex;
    align-items: center;
}
.footer-links a:hover, .footer-links a:focus { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255,255,255,0.5);
}

/* CTA Button Fixed */
.cta-fixed {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 999;
}
.cta-fixed .btn {
    box-shadow: var(--shadow-lg);
    padding: 1rem 1.25rem;
}

/* ============================================
   TABLET BREAKPOINT (min-width: 768px)
   ============================================ */
@media (min-width: 48em) {
    .section { padding: 5rem 0; }

    .hero {
        padding: 8rem 0 5rem;
    }
    .hero p { font-size: 1.0625rem; }
    .hero-features {
        flex-direction: row;
        gap: 1.5rem;
    }

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

    .trust-grid { grid-template-columns: repeat(4, 1fr); }

    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .team-card {
        flex-direction: row;
        gap: 1.875rem;
    }
    .team-card img {
        margin: 0;
    }

    .contact-form {
        padding: 2rem;
    }

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

/* ============================================
   DESKTOP BREAKPOINT (min-width: 992px)
   ============================================ */
@media (min-width: 62em) {
    .nav-menu { display: flex; }
    .nav-cta { display: flex; }

    .logo { font-size: 1.5rem; }
    .logo i { font-size: 1.8rem; }

    .hero {
        padding: 8.75rem 0 6.25rem;
    }
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3.75rem;
    }
    .hero p { font-size: 1.125rem; }
    .hero-features { gap: 1.875rem; }

    .section { padding: 6.25rem 0; }
    .section-header { margin-bottom: 3.75rem; }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.875rem;
    }
    .service-card { padding: 2.1875rem; }
    .service-card:hover { transform: translateY(-10px); }
    .service-icon { width: 3.75rem; height: 3.75rem; }
    .service-icon i { font-size: 1.5rem; }

    .trust-section { padding: 3.75rem 0; }
    .trust-grid { gap: 2.5rem; }
    .trust-item i { font-size: 2.5rem; margin-bottom: 0.9375rem; }
    .trust-item h4 { font-size: 2rem; }
    .trust-item p { font-size: 0.9rem; }

    .team-grid { gap: 2.5rem; }
    .team-card { padding: 1.875rem; }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3.75rem;
    }
    .contact-form { padding: 2.5rem; }

    .footer { padding: 3.75rem 0 1.875rem; }
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 2.5rem;
        margin-bottom: 2.5rem;
    }

    .cta-fixed { bottom: 1.875rem; right: 1.875rem; }
}

/* ============================================
   REDUCED MOTION for accessibility
   ============================================ */
@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; }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .header, .cta-fixed, .nav-cta { display: none; }
    .hero { padding-top: 2rem; }
    .section { padding: 2rem 0; }
    body { font-size: 12pt; }
}
