/* 
   CSS pro logopedickou poradnu Olinek
   Styl: Moderní, vzdušný, pastelové tóny
*/

:root {
    /* Barevná paleta */
    --primary-color: #6da9d2; /* Pastelová modrá */
    --primary-dark: #568cb1;
    --secondary-color: #a8d5ba; /* Pastelová zelená */
    --accent-color: #fdf5e6; /* Krémová / Béžová */
    --text-color: #4a4a4a;
    --text-light: #7a7a7a;
    --bg-light: #f9fbfd;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    
    /* Fonty */
    --font-main: 'Open Sans', system-ui, -apple-system, sans-serif;
    --font-heading: 'Nunito', system-ui, -apple-system, sans-serif;
}

/* Reset a základní styly */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

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

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.section {
    padding: 80px 0;
    scroll-margin-top: 25px;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.bg-light {
    background-color: var(--bg-light);
}

.grid {
    display: grid;
    gap: 30px;
}

/* Tlačítka */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
}

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

.btn-secondary:hover {
    background-color: #8fba9e;
}

/* Header a Navigace */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo span {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

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

/* Mobilní menu tlačítko */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

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

/* Hero Sekce */
.hero {
    scroll-margin-top: 75px;

    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    padding: 100px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 100%;
    max-width: 450px;
    height: 350px;
    background-color: var(--accent-color);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    color: var(--primary-dark);
    font-weight: 600;
    box-shadow: var(--shadow);
    animation: blob 10s infinite alternate;
}

@keyframes blob {
    from { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    to { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
}

/* Karty služeb */
.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.services-grid > *:last-child:nth-child(odd) {
	grid-column: 1 / span 2;
	justify-self: center;
	width: 50%;
}

.services h2 {
	text-align: center;
}

.card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.card .card-header {
	text-align: center;
}

.card ul {
	margin-top: 2rem;
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px 40px;
}

.card ul li {
	position: relative;
	padding-left: 30px;
}

.card ul li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: var(--secondary-color);
	font-weight: bold;
}

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

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

/* Ceník a hodiny */
.pricing-container {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.pricing-table-wrapper {
    flex: 2;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table th, .pricing-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.pricing-table th {
    background-color: var(--primary-color);
    color: var(--white);
}

.hours {
    flex: 1;
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.hours h3 {
    margin-bottom: 1.5rem;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.hours-list span {
    font-weight: 600;
}

.note {
    margin-top: 1rem;
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-light);
}

.hours .note {
	margin-bottom: 2rem;
}

/* Rady a tipy */
.tips-content {
    background: var(--accent-color);
    padding: 50px;
    border-radius: 30px;
}

.tips-content ul {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px 40px;
}

.tips-content ul li {
    position: relative;
    padding-left: 30px;
}

.tips-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.tips-content p:last-child {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px dashed rgba(0,0,0,0.1);
    font-weight: 600;
    color: var(--primary-dark);
}

/* Kontakt */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.contact-subtitle {
    padding: 40px;
	text-align: center;
}

.contact-subtitle h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.contact-subtitle p {
    margin-bottom: 1.5rem;
}

.info-item {
    margin-bottom: 2rem;
}

.info-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.map-container {
    height: 100%;
    min-height: 300px;
    background-color: #eee;
    border-radius: 20px;
    overflow: hidden;
}

.map-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e3eaf0;
    color: var(--text-light);
    text-align: center;
    padding: 20px;
}

/* Footer */
.footer {
    padding: 40px 0;
    text-align: center;
    background-color: var(--primary-dark);
    color: var(--white);
}

/* Responzivita */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .pricing-container {
        flex-direction: column;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    /* Animace burgeru */
    .mobile-menu-btn.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .mobile-menu-btn.open span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.open span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -8px);
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .section {
        padding: 60px 0;
    }

    .tips-list {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) {
    .tips-list {
        grid-template-columns: repeat(2, 1fr);
    }
}
