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

:root {
    --primary-color: #d32f2f;
    --secondary-color: #b71c1c;
    --accent-color: #e57373;
    --text-dark: #333;
    --text-light: #fff;
    --gray-light: #f5f5f5;
    --gray-medium: #ddd;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 15px;
    border-radius: 5px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: rgba(139, 71, 137, 0.1);
}

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

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

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)), 
                url('images/aleksandr-ledogorov-G-JJy-Yv_dA-unsplash-scaled-2.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    position: relative;
    margin-top: 80px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(139, 71, 137, 0.3);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 50px;
    position: relative;
}

.section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 20px auto;
    border-radius: 2px;
}

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

.content-wrapper.reverse {
    direction: rtl;
}

.content-wrapper.reverse > * {
    direction: ltr;
}

.text-content {
    padding: 20px;
}

.text-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #555;
}

.image-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Cards Section */
.cards-section {
    padding: 80px 0;
    background: var(--gray-light);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 0 auto;
}

.card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.card-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
}

.card-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
    flex: 1;
    font-size: 1rem;
}

.card-content .btn {
    align-self: center;
    margin-top: auto;
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-light);
    text-align: center;
    padding: 60px 20px;
}

.cta-section h2 {
    color: var(--text-light);
    margin-bottom: 20px;
}

.cta-section h2::after {
    background: var(--text-light);
}

.phone-number {
    display: block;
    font-size: 2.5rem;
    color: var(--text-light);
    text-decoration: none;
    margin: 20px 0;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.phone-number:hover {
    transform: scale(1.05);
}

/* Footer */
.footer {
    background: #2c2c2c;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    text-align: center;
}

.footer-social {
    margin-bottom: 30px;
}

.footer-social h3 {
    margin-bottom: 15px;
    color: var(--accent-color);
}

.footer-phone {
    margin-bottom: 30px;
}

.footer-phone h3 {
    margin-bottom: 15px;
    color: var(--accent-color);
}

.footer-phone .phone-number {
    display: inline-block;
    font-size: 2rem;
    color: var(--text-light);
    text-decoration: none;
    margin: 10px 0;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer-phone .phone-number:hover {
    color: var(--accent-color);
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    background: rgba(139, 71, 137, 0.3);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-info {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

.footer-info p {
    margin: 10px 0;
    font-size: 0.9rem;
}

.footer-links {
    margin: 15px 0;
}

.footer-links a {
    color: var(--accent-color);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-credit {
    color: #c0c0c0 !important;
}

.footer-credit a {
    color: #c0c0c0 !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-credit a:hover {
    color: #ffffff !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .content-wrapper {
        gap: 30px;
    }

    .section h2 {
        font-size: 2.2rem;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .card:last-child {
        grid-column: 1 / -1;
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        transform: translateY(-200%);
        opacity: 0;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }

    .logo {
        font-size: 1rem;
    }

    .logo img {
        height: 40px;
    }

    .hero {
        margin-top: 70px;
        min-height: 70vh;
    }

    .hero-content h1 {
        font-size: 2rem;
        padding: 0 20px;
        margin-bottom: 20px;
    }

    .content-wrapper,
    .content-wrapper.reverse {
        grid-template-columns: 1fr;
        gap: 30px;
        direction: ltr;
    }

    .section {
        padding: 60px 0;
    }

    .section h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .section h2::after {
        width: 60px;
        margin: 15px auto;
    }

    .text-content {
        padding: 10px;
    }

    .text-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .card:last-child {
        grid-column: 1;
        max-width: 100%;
    }

    .card-image {
        height: 220px;
    }

    .card-content {
        padding: 25px;
    }

    .card-content h2 {
        font-size: 1.6rem;
    }

    .phone-number {
        font-size: 1.8rem;
    }

    .cta-section {
        padding: 40px 20px;
    }

    .footer-content {
        padding: 0 10px;
    }

    .footer-links a {
        display: inline-block;
        margin: 5px 10px;
    }

    /* Subpage specific */
    .page-header {
        padding: 120px 20px 80px;
    }

    .page-header h1 {
        font-size: 2.2rem !important;
    }

    .content-section {
        padding: 50px 0;
    }

    .content-section h2 {
        font-size: 1.6rem;
        margin: 30px 0 15px;
    }

    .content-section h3 {
        font-size: 1.3rem;
    }

    .content-section p,
    .content-section li {
        font-size: 1rem;
    }

    .highlight-box {
        padding: 20px;
        margin: 20px 0;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .info-card {
        padding: 25px;
    }

    .image-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 30px 0;
    }

    .schedule-table {
        font-size: 0.9rem;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 10px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-info,
    .contact-form {
        padding: 25px;
    }

    .contact-item {
        margin: 20px 0;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .navbar .container {
        padding: 10px 15px;
    }

    .logo {
        font-size: 0.9rem;
        gap: 10px;
    }

    .logo img {
        height: 35px;
    }

    .hero {
        margin-top: 60px;
        min-height: 60vh;
    }

    .hero-content h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .btn {
        padding: 12px 25px;
        font-size: 0.85rem;
        letter-spacing: 0.5px;
    }

    .section {
        padding: 40px 0;
    }

    .section h2 {
        font-size: 1.7rem;
        margin-bottom: 25px;
    }

    .text-content p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .cards-section {
        padding: 50px 0;
    }

    .card-image {
        height: 200px;
    }

    .card-content {
        padding: 20px;
    }

    .card-content h2 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .card-content p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .phone-number {
        font-size: 1.5rem;
        margin: 15px 0;
    }

    .cta-section {
        padding: 30px 15px;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .footer {
        padding: 30px 0 15px;
    }

    .footer-social h3 {
        font-size: 1.1rem;
    }

    .social-link {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .footer-info p {
        font-size: 0.8rem;
    }

    .footer-links a {
        font-size: 0.8rem;
        margin: 3px 5px;
    }

    /* Subpage specific */
    .page-header {
        padding: 100px 15px 60px;
    }

    .page-header h1 {
        font-size: 1.8rem !important;
        line-height: 1.2;
    }

    .page-header p {
        font-size: 0.9rem;
    }

    .content-section {
        padding: 40px 0;
    }

    .content-section h2 {
        font-size: 1.4rem;
        margin: 25px 0 12px;
    }

    .content-section h3 {
        font-size: 1.2rem;
        margin: 20px 0 10px;
    }

    .content-section p,
    .content-section li {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .highlight-box {
        padding: 15px;
        margin: 15px 0;
    }

    .info-card {
        padding: 20px;
    }

    .info-card h3 {
        font-size: 1.3rem;
    }

    .schedule-table {
        font-size: 0.85rem;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 8px;
    }

    .contact-info,
    .contact-form {
        padding: 20px;
    }

    .contact-info h3,
    .contact-form h3 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .contact-item {
        margin: 15px 0;
        gap: 10px;
    }

    .contact-item h4 {
        font-size: 1rem;
    }

    .contact-item p,
    .contact-item a {
        font-size: 0.95rem;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }

    .form-group textarea {
        min-height: 120px;
    }

    /* Table scroll on mobile */
    .schedule-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 1.3rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .phone-number {
        font-size: 1.3rem;
    }

    .page-header h1 {
        font-size: 1.5rem !important;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Scroll padding for fixed nav */
section {
    scroll-margin-top: 80px;
}
