/*
Theme Name: FK Dental
Author: Synetiq IT 
Description: FK Dental
Version: 2.0
*/

:root {
    --primary-color: #dcb360;
    --secondary-color: #37424a;
    --text-dark: #2c2c2c;
    --text-light: #f4f4f4;
    --bg-white: #ffffff;
    --nav-bg: #1a1a1a;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --content-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

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

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

header {
    background-color: var(--nav-bg);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: 80px;
    display: flex;
    align-items: center;
}

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

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

.main-nav ul { display: flex; gap: 30px; }
.main-nav a {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
}
.main-nav a:hover { color: var(--primary-color); }
.main-nav a:hover::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: var(--primary-color);
}

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('IMG_1313.jpeg');
    background-size: cover;
    background-position: center;
    filter: blur(8px) brightness(0.6);
    transform: scale(1.1); 
    z-index: -1;
}

.hero-infoblock {
    position: absolute;
    z-index: 100;
    top: 80px; 
    left: 0;
    height: 120px;
}

.hero-infoblock img {
    height: 100%;
    width: auto;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.4);
}

.hero-content { color: #fff; max-width: 900px; z-index: 1; padding: 0 20px; }
.hero-content h1 { font-size: 2rem; margin-bottom: 30px; letter-spacing: 2px; }
.hero-quote { font-style: italic; color: var(--primary-color); font-family: serif; display: block; margin-top: 20px;}

section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 60px; padding: 0 10px; }
.section-title h2 { font-size: 2.5rem; color: var(--secondary-color); margin-bottom: 10px; word-wrap: break-word; }
.section-title span { display: block; width: 80px; height: 3px; background: var(--primary-color); margin: 20px auto 0; }

#services { background-color: var(--secondary-color); color: #fff; }
#services .section-title h2 { color: #fff; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-item {
    display: flex; align-items: center; justify-content: center; text-align: center;
    padding: 30px 20px; background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 4px; transition: 0.3s; height: 100%;
}
.service-item:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--primary-color); }
.service-text h3 { font-size: 1rem; color: var(--text-light); margin: 0; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 40px; justify-content: center; }
.team-member { text-align: center; }
.team-photo-wrapper { height: 350px; overflow: hidden; margin-bottom: 15px; border-radius: 4px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.team-photo-wrapper img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: 0.5s; }
.team-member:hover .team-photo-wrapper img { transform: scale(1.05); }
.team-member h3 { font-size: 1.1rem; color: var(--secondary-color); margin-bottom: 5px; }
.team-member .role { font-weight: 700; color: #666; font-size: 0.9rem; margin-bottom: 3px; }
.team-member .degree { font-size: 0.8rem; color: var(--primary-color); font-style: italic; }

.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.gallery-item { height: 450px; overflow: hidden; border-radius: 4px; }
.gallery-item img { height: 100%; width: 100%; object-fit: cover; transition: 0.5s; }
.gallery-item:hover img { transform: scale(1.03); }

#contact { background: #f9f9f9; text-align: center; }
.contact-simple { display: flex; justify-content: center; flex-wrap: wrap; gap: 30px; margin-top: 40px; }
.contact-block { 
    flex: 1; min-width: 250px; max-width: 350px; 
    padding: 30px; background: #fff; 
    border-top: 3px solid var(--primary-color); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center; 
    display: flex;
    flex-direction: column;
    align-items: center;
}
.contact-block i { font-size: 2rem; color: var(--primary-color); margin-bottom: 15px; }

footer { background: var(--secondary-color); color: #888; text-align: center; padding: 30px 0; font-size: 0.85rem; }

.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

@media (max-width: 900px) {
    .services-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    header {
        position: relative;
        height: auto;
        padding: 15px 0;
        display: block; 
    }

    .header-container {
        flex-direction: column;
        padding: 0 20px;
        align-items: center;
        max-width: 100%;
    }

    .logo { margin: 0 auto 15px auto; text-align: center; }
    .logo img { height: 55px; }

    .main-nav {
        display: block; width: 100%;
        margin-top: 5px; padding-top: 10px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .main-nav ul { flex-wrap: wrap; justify-content: center; gap: 15px 20px; }
    .main-nav a { font-size: 0.8rem; display: inline-block; padding: 5px 0; }

    .hero { 
        padding-top: 20px; 
        height: auto; 
        min-height: 80vh; 
        align-items: center;
        justify-content: center;
        overflow: hidden; 
    }

    .hero-infoblock {
        position: absolute; 
        top: 0; 
        left: 0;
        height: auto; 
        width: auto;
        max-width: 50%; 
    }
    
    .hero-infoblock img {
        height: auto;
        width: 100%; 
        max-height: 80px; 
        object-fit: contain;
    }

    .hero-content { margin-top: 80px; padding: 0 15px; }
    .hero-content h1 { font-size: 1.4rem; line-height: 1.4; }
    
    .section-title h2 { font-size: 1.8rem; line-height: 1.3; }
    
    .services-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }

    .contact-simple { 
        flex-direction: column; 
        align-items: center;
    }
    .contact-block {
        width: 100%; 
        max-width: 350px; 
        margin-bottom: 20px; 
    }
}