/* CSS Variables - Medical Theme */
:root {
    --primary-color: #0b7a75;       /* Medical Teal/Green */
    --primary-dark: #085a56;
    --primary-light: #d6edea;
    --secondary-color: #19535f;     /* Deep Blue */
    --accent-color: #d7263d;        /* Emergency Red */
    --accent-hover: #b81f33;
    
    --text-main: #2b2d42;
    --text-muted: #6c757d;
    --bg-main: #f8f9fa;
    --bg-white: #ffffff;
    
    --font-family: 'Inter', sans-serif;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4, h5, h6 { margin-top: 0; color: var(--secondary-color); font-weight: 700; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.py-5 { padding: 4rem 0; }
.text-accent { color: var(--primary-color); }

/* Top Bar */
.top-bar {
    background: var(--secondary-color);
    color: white;
    font-size: 0.85rem;
    padding: 8px 0;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-info {
    display: flex;
    align-items: center;
    gap: 5px;
}
.top-info.emergency {
    color: #ffcccc;
}
.top-info span { font-size: 16px; }

/* Main Header */
.main-header {
    background: var(--bg-white);
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-icon {
    font-size: 40px;
    color: var(--primary-color);
}
.logo-text {
    display: flex;
    flex-direction: column;
}
.logo-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1.1;
}
.logo-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}
.main-nav a {
    font-weight: 500;
    color: var(--secondary-color);
    transition: var(--transition);
}
.main-nav a:hover {
    color: var(--primary-color);
}
.phone-link {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.phone-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
}
.phone-desc {
    font-size: 0.75rem;
    color: var(--accent-color);
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 100px 0;
    background: var(--secondary-color);
    color: white;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('../images/narcology_hero.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    transition: opacity 0.5s ease;
}
.hero-content {
    position: relative;
    max-width: 650px;
    z-index: 2;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.hero-content h1 {
    color: white;
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}
.lead-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}
.hero-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}
.btn-primary {
    background: var(--primary-color);
    color: white;
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(11, 122, 117, 0.4);
}
.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}
.btn-outline:hover {
    background: white;
    color: var(--secondary-color);
}
.emergency-notice {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(215, 38, 61, 0.2);
    border-left: 4px solid var(--accent-color);
    padding: 10px 15px;
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
}

/* Glass panel */
.glass-panel {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--box-shadow);
}

/* Services Grid */
.section-title { font-size: 2.2rem; margin-bottom: 15px; }
.section-subtitle { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: block;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}
.service-card:hover::before {
    transform: scaleX(1);
}
.service-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
    background: var(--primary-light);
    padding: 15px;
    border-radius: 50%;
}
.service-card h3 { font-size: 1.4rem; margin-bottom: 15px; }
.service-card p { color: var(--text-muted); margin-bottom: 20px; }
.link-text {
    font-weight: 600;
    color: var(--primary-color);
    display: inline-block;
    transition: var(--transition);
}
.service-card:hover .link-text { padding-left: 10px; }

/* Advantages Section */
.advantages-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.adv-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}
.adv-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}
.adv-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    flex-shrink: 0;
}
.adv-icon span { font-size: 30px; color: var(--primary-color); }
.adv-text strong { display: block; font-size: 1.1rem; color: var(--secondary-color); margin-bottom: 5px; }
.adv-text p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

.adv-image-box {
    background-image: url('../images/narcology_detox.jpg');
    background-size: cover;
    background-position: center;
    height: 400px;
    border-radius: var(--border-radius);
    position: relative;
    box-shadow: var(--box-shadow);
}
.image-badge {
    position: absolute;
    top: -20px; left: -20px;
    background: var(--accent-color);
    color: white;
    width: 90px; height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    box-shadow: 0 5px 15px rgba(215, 38, 61, 0.4);
}
.image-desc {
    position: absolute;
    bottom: 20px; right: 20px;
    background: rgba(255,255,255,0.9);
    padding: 15px;
    border-radius: 8px;
    max-width: 250px;
    margin: 0;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Inner Pages Header */
.page-header {
    background: var(--secondary-color);
    padding: 60px 0;
    color: white;
    text-align: center;
}
.page-header h1 {
    color: white;
    margin-bottom: 10px;
}
.breadcrumb {
    opacity: 0.8;
    margin: 0;
}
.breadcrumb a {
    color: var(--primary-light);
    text-decoration: underline;
}

/* Article content styling */
.article-content h2 { margin-top: 0; margin-bottom: 20px; }
.article-content h3 { margin-top: 30px; margin-bottom: 15px; color: var(--primary-color); }
.article-content p { margin-bottom: 15px; font-size: 1.05rem; }

/* Timeline Steps */
.steps-timeline {
    position: relative;
    padding-left: 20px;
    margin: 30px 0;
}
.steps-timeline::before {
    content: '';
    position: absolute;
    top: 0; left: 35px;
    width: 2px;
    height: 100%;
    background: var(--primary-light);
}
.timeline-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
}
.timeline-icon {
    width: 32px; height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 2;
    flex-shrink: 0;
}
.timeline-text h4 { margin-bottom: 5px; }

/* Feature list with checks */
.feature-list.style-check {
    list-style: none;
    padding: 0;
}
.feature-list.style-check li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
}
.feature-list.style-check li::before {
    content: '\e876'; /* check icon */
    font-family: 'Material Symbols Outlined';
    position: absolute;
    left: 0; top: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Alert Boxes */
.alert-box {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-radius: var(--border-radius);
    background: white;
    align-items: flex-start;
}
.alert-box.info-alert {
    background: #eef2f7;
    border-left: 4px solid #3b82f6;
}
.alert-box .icon-alert { color: #3b82f6; font-size: 30px; }

/* Two Col Layout */
.two-col-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}
.options-card h3 {
    margin-top: 0;
    font-size: 1.2rem;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
}

/* Methods/Programs Grid */
.methods-grid, .programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.method-card, .program-card {
    background: var(--bg-main);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
}
.method-card span { font-size: 40px; color: var(--secondary-color); margin-bottom: 15px; }
.program-card .icon-badge {
    width: 60px; height: 60px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 15px;
}
.program-card .icon-badge span { color: var(--primary-dark); font-size: 30px; }

/* Pricing Tables */
.table-responsive { overflow-x: auto; }
.price-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}
.price-table th {
    background: var(--primary-color);
    color: white;
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
}
.price-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}
.price-table tr:last-child td { border-bottom: none; }
.price-table tbody tr:hover { background: #f8f9fa; }
.text-end { text-align: right; }
.font-weight-bold { font-weight: 700; color: var(--secondary-color); font-size: 1.1rem; }

/* About grid */
.about-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.stat-number { font-size: 3rem; font-weight: 800; line-height: 1; margin-bottom: 5px; }
.stat-desc { color: var(--text-muted); font-weight: 500; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px;}

/* Footer */
.main-footer {
    background: #1a1a24;
    color: #a0a0b0;
    padding: 60px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-logo .logo-title { color: white; }
.footer-logo .logo-icon { color: var(--primary-light); }
.footer-about { margin-top: 15px; font-size: 0.95rem; }
.footer-col h3 { color: white; font-size: 1.2rem; margin-bottom: 20px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 12px; }
.links-col a { transition: var(--transition); }
.links-col a:hover { color: var(--primary-light); padding-left: 5px; }
.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
}
.contact-info span { font-size: 20px; color: var(--primary-light); }
.footer-bottom {
    text-align: center;
    border-top: 1px solid #2a2a35;
    padding-top: 20px;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 900px) {
    .advantages-wrapper, .two-col-layout, .about-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.2rem; }
}
@media (max-width: 768px) {
    .header-inner { flex-direction: column; gap: 15px; text-align: center; }
    .main-nav ul { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .contact-info li { justify-content: center; }
    .top-bar-inner { flex-direction: column; gap: 5px; }
}
