/* ============================================
FRONT PAGE OPTIMIZED STYLES - v5.3.0
============================================ */

/* Hero Section */
.hero-container {
position: relative;
z-index: 1;
}

.hero-badge-inline {
display: inline-flex;
align-items: center;
gap: 0.5rem;
margin-bottom: 1rem;
font-size: 0.85rem;
}

.hero-badge-dot {
width: 8px;
height: 8px;
background: #4caf50;
border-radius: 50%;
display: inline-block;
}

.hero-title-white {
color: #fff;
}

.hero-subtitle {
font-size: clamp(1rem, 3vw, 1.3rem);
margin: 0 0 1rem;
opacity: 0.95;
font-weight: 300;
}

.hero-description {
font-size: clamp(0.9rem, 2.5vw, 1.05rem);
line-height: 1.5;
margin-bottom: 1.5rem;
opacity: 0.9;
}

/* Contact Card */
.contact-card {
margin-bottom: 1rem;
}

.contact-phone-link {
display: flex;
align-items: center;
gap: 0.75rem;
color: #fff;
text-decoration: none;
margin-bottom: 0.75rem;
}

.contact-phone-icon {
width: 40px;
height: 40px;
background: rgba(255,255,255,0.2);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.1rem;
flex-shrink: 0;
}

.contact-phone-info {
min-width: 0;
flex: 1;
}

.contact-phone-label {
font-size: 0.75rem;
opacity: 0.85;
margin-bottom: 0.15rem;
}

.contact-phone-number {
font-size: clamp(1.3rem, 4vw, 1.8rem);
font-weight: 700;
}

.contact-address,
.contact-hours {
margin-top: 0.5rem;
}

/* Hero Buttons Grid */
.hero-buttons-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.5rem;
margin-top: 1rem;
}

.hero-btn-primary {
background: #fff;
color: #333 !important;
}

.hero-btn-primary:hover {
background: var(--med-accent);
color: #fff !important;
}

.hero-btn-outline {
background: transparent;
color: #fff;
border: 2px solid rgba(255,255,255,0.6);
}

/* Desktop Info Panel */
.hero-info-panel {
text-align: center;
max-width: 400px;
margin: 0 auto;
}

.hero-info-icon {
width: 100%;
aspect-ratio: 1;
background: rgba(255,255,255,0.1);
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
font-size: 4rem;
margin-bottom: 1rem;
}

.hero-ogrn {
font-family: monospace;
font-size: 0.9rem;
opacity: 0.9;
}

/* Feature Cards */
.feature-card {
border-top: 3px solid;
text-align: center;
}

.feature-icon {
width: 48px;
height: 48px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 0.75rem;
font-size: 1.3rem;
}

.feature-title {
margin: 0 0 0.25rem;
font-size: 0.95rem;
}

.feature-desc {
color: var(--med-text-light);
margin: 0;
font-size: 0.8rem;
}

/* Quick Services */
.quick-service-card {
border-top: 3px solid;
}

.quick-service-icon-wrap {
width: 56px;
height: 56px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 0.75rem;
}

.quick-service-icon-wrap .dashicons {
font-size: 1.5rem;
}

.quick-service-title-sm {
font-weight: 600;
margin: 0 0 0.25rem;
font-size: 0.95rem;
}

.quick-service-desc-sm {
color: var(--med-text-light);
margin: 0;
font-size: 0.8rem;
}

/* Doctor Cards */
.doctor-card {
display: flex;
flex-direction: column;
height: 100%;
}

.doctor-image-wrap {
position: relative;
padding-top: 100%;
background: #f0f0f0;
}

.doctor-image-wrap img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.3s;
}

.doctor-image-wrap:hover img {
transform: scale(1.05);
}

.doctor-image-placeholder {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg,#667eea20,#764ba220);
}

.doctor-info-sm {
padding: 1rem;
flex: 1;
display: flex;
flex-direction: column;
}

.doctor-name-sm {
font-size: 1rem;
font-weight: 600;
margin: 0 0 0.25rem;
}

.doctor-position-sm {
color: var(--med-primary);
font-weight: 500;
font-size: 0.85rem;
margin: 0 0 0.25rem;
}

.doctor-specialty-sm {
color: var(--med-text-light);
font-size: 0.8rem;
line-height: 1.4;
flex: 1;
margin: 0 0 1rem;
}

.doctor-actions-sm {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.5rem;
margin-top: auto;
}

.doctor-btn-outline {
background: var(--med-bg);
color: var(--med-text);
border: 1px solid var(--med-border);
font-size: 0.85rem;
padding: 0.6rem;
}

.doctor-btn-primary {
background: var(--med-primary);
color: #fff;
font-size: 0.85rem;
padding: 0.6rem;
}

/* FAQ */
.faq-container {
max-width: 700px;
margin: 0 auto;
}

.faq-item {
margin-bottom: 0.5rem;
}

.faq-summary {
display: flex;
align-items: center;
justify-content: space-between;
cursor: pointer;
font-weight: 500;
font-size: 0.95rem;
list-style: none;
user-select: none;
}

.faq-summary::-webkit-details-marker {
display: none;
}

.faq-icon {
transition: transform 0.2s;
font-size: 0.8rem;
}

.faq-item[open] .faq-icon {
transform: rotate(180deg);
}

.faq-content {
margin-top: 0.75rem;
color: var(--med-text-light);
font-size: 0.9rem;
line-height: 1.5;
}

/* Hospitalization Tests */
.hospitalization-tests details {
margin-bottom: 0.75rem;
border: 1px solid var(--med-border);
border-radius: 8px;
background: var(--med-bg);
}

.hospitalization-tests summary {
padding: 1rem 1.25rem;
cursor: pointer;
font-weight: 600;
color: var(--med-text);
background: var(--med-bg-light);
border-radius: 8px;
list-style: none;
display: flex;
align-items: center;
gap: 0.5rem;
}

.hospitalization-tests summary::-webkit-details-marker {
display: none;
}

.hospitalization-tests details[open] summary {
border-bottom: 1px solid var(--med-border);
border-radius: 8px 8px 0 0;
}

.hospitalization-tests ul {
margin: 0;
padding: 1rem 1.25rem 1rem 2rem;
list-style: disc;
color: var(--med-text-light);
font-size: 0.95rem;
line-height: 1.6;
}

.hospitalization-tests li {
margin-bottom: 0.25rem;
}

.test-notice {
margin-top: 1.5rem;
padding: 1rem;
background: rgba(255, 152, 0, 0.1);
border-left: 4px solid var(--med-warning);
border-radius: 0 8px 8px 0;
font-size: 0.9rem;
color: var(--med-text);
}



/* License Section */
.license-grid {
margin-bottom: 1.5rem;
}

.license-card {
max-width: 500px;
margin: 0 auto;
text-align: center;
}

.license-label {
margin-bottom: 0.5rem;
color: var(--med-text-light);
font-size: 0.9rem;
}

.license-copy-btn {
font-family: monospace;
font-size: 1.1rem;
font-weight: 600;
background: #7d7d7d;
margin-bottom: 1rem;
width: 100%;
position: relative;
}

.license-tooltip {
position: absolute;
top: -35px;
left: 50%;
transform: translateX(-50%);
background: #333;
color: #fff;
padding: 6px 12px;
border-radius: 4px;
font-size: 13px;
opacity: 0;
transition: opacity 0.3s;
pointer-events: none;
white-space: nowrap;
z-index: 10;
}

.license-copy-btn:hover .license-tooltip,
.license-copy-btn:focus .license-tooltip {
opacity: 1;
}

/* Appointment Section */
.appointment-phone-link {
font-size: clamp(1.3rem, 4vw, 1.7rem);
font-weight: 700;
color: var(--med-info);
text-decoration: none;
display: block;
margin-bottom: 0.5rem;
}

.appointment-address-box {
margin: 1rem 0;
padding: 0.75rem;
background: var(--med-bg);
border-radius: 8px;
border-left: 4px solid var(--med-success);
}

.appointment-address-label {
font-size: 0.8rem;
color: var(--med-text-light);
}

.appointment-address-value {
font-weight: 500;
}

.appointment-hours-label {
font-size: 0.8rem;
color: var(--med-text-muted);
margin-bottom: 0.25rem;
}

.appointment-hours-list {
font-size: 0.9rem;
line-height: 1.6;
}

.appointment-hours-closed {
color: var(--med-accent);
}

/* Online Booking Card */
.booking-card {
text-align: center;
border: 2px solid var(--med-info);
background: linear-gradient(to bottom, #f0f9ff, #fff);
}

.booking-icon {
font-size: 2rem;
margin-bottom: 0.5rem;
}

.booking-title {
margin: 0 0 0.75rem;
font-size: 1rem;
}

/* Section backgrounds */
.section-bg-white {
background: var(--med-bg-light);
}

.section-bg-gray {
background: var(--med-bg);
}

/* ARIA enhancements for emoji links */
.emoji-link {
text-decoration: none;
}

.emoji-link:focus-visible {
outline: 3px solid var(--med-focus);
outline-offset: 2px;
border-radius: 4px;
}

/* Smooth scroll offset for fixed header */
html {
scroll-padding-top: 80px;
}

/* Print improvements */
@media print {
.hero-buttons-grid,
.messengers-scroll,
.map-container,
.license-copy-btn {
display: none !important;
}

.medical-hero {
background: #fff !important;
color: #000 !important;
min-height: auto !important;
padding: 2rem 0 !important;
}

.medical-hero .med-h1,
.medical-hero p {
color: #000 !important;
}
}
