/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors based on original site */
    --primary-green: #2d8f47;
    --light-green: #4caf50;
    --dark-green: #1b5e20;
    --accent-green: #66bb6a;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --gray: #757575;
    --dark-gray: #424242;
    --text-dark: #212121;
    --border-light: #e0e0e0;
    
    /* Typography */
    --font-primary: 'Inter', 'Roboto', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 80px 0;
    --element-spacing: 24px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 16px;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.1rem; }

p {
    margin-bottom: 16px;
    color: var(--gray);
}

a {
    text-decoration: none;
    color: var(--primary-green);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--dark-green);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1.5;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--dark-green);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 143, 71, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-secondary:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    padding: 10px 20px;
    font-size: 14px;
}

.btn-outline:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 1.5rem;
    color: var(--primary-green);
    margin-bottom: 4px;
}

.logo-text p {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 0;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    font-weight: 500;
    color: var(--text-dark);
    padding: 8px 0;
    position: relative;
}

.main-nav a:hover {
    color: var(--primary-green);
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-green);
    transition: width 0.3s ease;
}

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

.header-contacts {
    display: flex;
    gap: 20px;
}

.phone-group {
    text-align: center;
}

.location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 4px;
}

.location i {
    color: var(--primary-green);
}

.phones {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.phones a {
    font-size: 0.9rem;
    font-weight: 500;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

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

.hero-text h2 {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 8px;
}

.hero-text h3 {
    font-size: 1.5rem;
    color: var(--gray);
    font-weight: 400;
    margin-bottom: 24px;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 32px;
    line-height: 1.7;
}

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

.hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.features {
    padding: var(--section-padding);
    background-color: var(--white);
}

.features h2 {
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 40px 24px;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: var(--light-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.feature-icon i {
    font-size: 2rem;
    color: var(--white);
}

.feature-card h3 {
    margin-bottom: 16px;
    color: var(--text-dark);
}

.feature-card p {
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Services Section */
.services {
    padding: var(--section-padding);
    background-color: var(--light-gray);
}

.services h2 {
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-content {
    padding: 24px;
}

.service-content h3 {
    margin-bottom: 12px;
    color: var(--text-dark);
}

.service-content p {
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Team Section */
.team {
    padding: var(--section-padding);
    background-color: var(--white);
    text-align: center;
}

.team h2 {
    margin-bottom: 16px;
    color: var(--text-dark);
}

.team-description {
    font-size: 1.1rem;
    margin-bottom: 50px;
    color: var(--gray);
}

.team-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 50px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-green);
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: var(--gray);
    margin-top: 8px;
}

.team-image img {
    width: 100%;
    max-width: 600px;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Reviews Section */
.reviews {
    padding: var(--section-padding);
    background-color: var(--light-gray);
}

.reviews h2 {
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-dark);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

.review-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: var(--light-green);
    opacity: 0.3;
    font-weight: bold;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.review-header h4 {
    color: var(--primary-green);
    margin-bottom: 0;
}

.review-date {
    font-size: 0.9rem;
    color: var(--gray);
}

.review-card p {
    margin-bottom: 16px;
    font-style: italic;
    line-height: 1.6;
}

.review-doctors {
    font-size: 0.9rem;
    color: var(--dark-green);
    font-weight: 500;
}

/* Contacts Section */
.contacts {
    padding: var(--section-padding);
    background-color: var(--white);
}

.contacts h2 {
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-dark);
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
}

.contact-card {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 12px;
}

.contact-card h3 {
    color: var(--primary-green);
    margin-bottom: 24px;
    text-align: center;
}

.contact-info {
    margin-bottom: 24px;
}

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

.contact-item i {
    color: var(--primary-green);
    margin-top: 2px;
    width: 20px;
}

.phones-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.phones-list a {
    font-weight: 500;
    font-size: 0.95rem;
}

.contact-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo img {
    width: 50px;
    height: 50px;
    filter: brightness(0) invert(1);
}

.footer-logo .logo-text h3 {
    color: var(--white);
    margin-bottom: 4px;
}

.footer-logo .logo-text p {
    color: var(--gray);
    margin-bottom: 0;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    color: var(--light-green);
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: var(--gray);
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-contacts div {
    margin-bottom: 16px;
}

.footer-contacts strong {
    color: var(--light-green);
}

.footer-contacts a {
    color: var(--gray);
    display: block;
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--dark-gray);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-legal p {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 4px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: var(--dark-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: background-color 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--dark-green);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .team-stats {
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-card {
        margin: 0 auto;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    .main-nav {
        display: none;
    }
    
    .header-contacts {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-text h2 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .team-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-text h2 {
        font-size: 2rem;
    }
    
    .hero-text h3 {
        font-size: 1.25rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .service-content {
        padding: 20px;
    }
    
    .review-card {
        padding: 24px;
    }
    
    .contact-card {
        padding: 24px;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .scroll-to-top {
        display: none;
    }
    
    * {
        background: white !important;
        color: black !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-green: #004d00;
        --text-dark: #000000;
        --gray: #333333;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}