/* =============================================
   EUROMEDICALL - Pages Specific Styles
   Premium Design for Inner Pages
   ============================================= */

/* Header on inner pages - always has background */
.header {
    background: var(--primary) !important;
    box-shadow: var(--shadow);
}

.header__phone {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

/* =============================================
   PAGE HERO / BREADCRUMB
   ============================================= */
.page-hero {
    padding: 160px 0 80px;
    background: var(--primary);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.page-hero::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(201, 169, 98, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero__title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.page-hero__title span {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Breadcrumbs */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9375rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--gold);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb__current {
    color: var(--gold);
}

/* =============================================
   SERVICES PAGE - Price Tables
   ============================================= */
.services-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 60px;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.services-nav__link {
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.services-nav__link:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: transparent;
}

.services-nav__link.active {
    background: var(--primary);
    color: var(--white);
}

/* Price Section */
.price-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--border);
}

.price-section:last-child {
    border-bottom: none;
}

.price-section__header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.price-section__icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-gold);
}

.price-section__icon svg {
    width: 36px;
    height: 36px;
    color: var(--white);
}

.price-section__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
}

/* Page Header */
.page-header {
    padding: 140px 0 60px;
    background: var(--primary);
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.page-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 20px 0;
    background: var(--bg-light);
}

.breadcrumbs__list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    flex-wrap: wrap;
}

.breadcrumbs__list li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
}

.breadcrumbs__list li::after {
    content: '/';
    color: var(--text-muted);
}

.breadcrumbs__list li:last-child::after {
    display: none;
}

.breadcrumbs__list a {
    color: var(--primary);
    transition: var(--transition);
}

.breadcrumbs__list a:hover {
    color: var(--gold);
}

/* Services Navigation */
.services-nav__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.services-nav__item {
    padding: 12px 24px;
    background: var(--bg-light);
    border-radius: var(--radius-full);
    font-weight: 600;
    color: var(--text);
    transition: var(--transition);
}

.services-nav__item:hover {
    background: var(--primary);
    color: var(--white);
}

/* Price Section Title */
.price-section__title {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 32px;
}

.price-section__title svg {
    color: var(--gold);
}

/* Price Table - Div Structure */
.price-table {
    width: 100%;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.price-table__header {
    display: flex;
    justify-content: space-between;
    padding: 20px 28px;
    background: var(--primary);
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
}

.price-table__group {
    padding: 24px 28px;
    border-bottom: 1px solid var(--border);
}

.price-table__group:last-child {
    border-bottom: none;
}

.price-table__group h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gold-dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gold-light);
}

.price-table__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.price-table__row:last-child {
    border-bottom: none;
}

.price-table__row:hover {
    background: rgba(201, 169, 98, 0.05);
    padding-left: 12px;
    padding-right: 12px;
    margin-left: -12px;
    margin-right: -12px;
    border-radius: var(--radius);
}

.price-table__row .price {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--gold-dark);
    white-space: nowrap;
}

/* Table fallback for old structure */
.price-table thead {
    background: var(--primary);
}

.price-table th {
    padding: 20px 28px;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
    text-align: left;
}

.price-table th:last-child {
    text-align: right;
}

.price-table td {
    padding: 20px 28px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 1rem;
}

.price-table tbody tr {
    transition: var(--transition);
}

.price-table tbody tr:hover {
    background: rgba(201, 169, 98, 0.05);
}

.price-table tbody tr:last-child td {
    border-bottom: none;
}

.price-table td:last-child {
    text-align: right;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--gold-dark);
    font-size: 1.0625rem;
    white-space: nowrap;
}

/* =============================================
   ABOUT PAGE
   ============================================= */
.about-section {
    padding: 100px 0;
}

.about-section--alt {
    background: var(--bg-section);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-grid--reverse {
    direction: rtl;
}

.about-grid--reverse > * {
    direction: ltr;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.0625rem;
    line-height: 1.8;
}

.about-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-xl);
}

.about-placeholder {
    height: 450px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.about-placeholder::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(201, 169, 98, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

/* Directions Grid */
.directions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.direction-card {
    padding: 40px 32px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.direction-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(201, 169, 98, 0.3);
}

.direction-card__icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.05) 0%, rgba(30, 58, 95, 0.1) 100%);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.direction-card:hover .direction-card__icon {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    box-shadow: var(--shadow-gold);
}

.direction-card__icon svg {
    width: 36px;
    height: 36px;
    color: var(--primary);
    transition: var(--transition);
}

.direction-card:hover .direction-card__icon svg {
    color: var(--white);
}

.direction-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

.direction-card__text {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* Licenses Grid */
.licenses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.license-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.license-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.license-card__image {
    height: 200px;
    background: var(--bg-section);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.license-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

/* =============================================
   DOCTORS PAGE
   ============================================= */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.doctor-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.doctor-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
}

.doctor-card__image {
    height: 320px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.doctor-card__image::before {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(201, 169, 98, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.doctor-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.doctor-card:hover .doctor-card__image img {
    transform: scale(1.05);
}

.doctor-card__content {
    padding: 32px;
}

.doctor-card__name {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.doctor-card__specialty {
    font-size: 0.9375rem;
    color: var(--gold-dark);
    font-weight: 600;
    margin-bottom: 16px;
    display: block;
}

.doctor-card__info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.doctor-card__info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    color: var(--text-light);
}

.doctor-card__info-item svg {
    width: 18px;
    height: 18px;
    color: var(--gold);
    flex-shrink: 0;
}

/* Trust Reasons */
.trust-reasons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.trust-reason {
    text-align: center;
    padding: 40px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.trust-reason:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.trust-reason__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-radius: var(--radius);
    box-shadow: var(--shadow-gold);
}

.trust-reason__icon svg {
    width: 32px;
    height: 32px;
    color: var(--white);
}

.trust-reason__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}

.trust-reason__text {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
}

/* =============================================
   CONTACTS PAGE
   ============================================= */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contacts-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(8px);
}

.contact-item__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-radius: var(--radius);
    flex-shrink: 0;
    box-shadow: var(--shadow-gold);
}

.contact-item__icon svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.contact-item__content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.contact-item__content p,
.contact-item__content a {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1rem;
}

.contact-item__content a:hover {
    color: var(--gold);
}

.contact-item__content small {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Working Hours */
.working-hours {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
}

.working-hours h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.working-hours__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.working-hours__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border);
}

.working-hours__item:last-child {
    border-bottom: none;
}

.working-hours__item span:first-child {
    color: var(--text);
    font-weight: 500;
}

.working-hours__item span:last-child {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--gold-dark);
}

/* Contact Form */
.contacts-form {
    background: var(--white);
    padding: 48px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.contacts-form h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.contacts-form > p {
    color: var(--text-light);
    margin-bottom: 32px;
}

/* =============================================
   CTA SECTION - Dark Elegant
   ============================================= */
.cta-section {
    padding: 100px 0;
    background: var(--primary);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.cta-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 169, 98, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-inner h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.cta-inner p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* =============================================
   RESPONSIVE - Pages
   ============================================= */
@media (max-width: 1024px) {
    .directions-grid,
    .licenses-grid,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .trust-reasons {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 40px;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .page-hero {
        padding: 140px 0 60px;
    }
    
    .page-hero__title {
        font-size: 2rem;
    }
    
    .breadcrumbs {
        padding: 16px 0;
    }
    
    .breadcrumbs__list {
        font-size: 0.875rem;
    }
    
    .services-nav {
        padding: 16px 0;
    }
    
    .services-nav__inner {
        padding: 16px;
        gap: 8px;
    }
    
    .services-nav__item {
        padding: 10px 16px;
        font-size: 0.8125rem;
    }
    
    .services-nav__link {
        padding: 12px 20px;
        font-size: 0.8125rem;
    }
    
    .price-section {
        padding: 40px 0;
    }
    
    .price-section__header {
        flex-direction: column;
        text-align: center;
    }
    
    .price-section__title {
        font-size: 1.25rem;
        flex-direction: column;
        text-align: center;
    }
    
    .price-table__header {
        padding: 16px 20px;
        font-size: 0.75rem;
    }
    
    .price-table__group {
        padding: 20px;
    }
    
    .price-table__group h3 {
        font-size: 1rem;
    }
    
    .price-table__row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 0;
    }
    
    .price-table__row .price {
        font-size: 1rem;
    }
    
    .price-table th,
    .price-table td {
        padding: 16px;
        font-size: 0.9375rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-grid--reverse {
        direction: ltr;
    }
    
    .directions-grid,
    .licenses-grid,
    .team-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .trust-reasons {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .trust-reason {
        padding: 28px 16px;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contacts-form {
        padding: 32px 24px;
    }
    
    .cta-inner h2 {
        font-size: 1.75rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .price-table {
        display: block;
        overflow-x: auto;
    }
    
    .doctor-card__image {
        height: 260px;
    }
    
    .trust-reasons {
        grid-template-columns: 1fr;
    }
}
