/*
Theme Name: Várhegy Dental
Author: Synetiq IT
Description: Várhegy Dental egyedi WordPress sablon
Version: 1.0
*/

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    line-height: 1.8;
    background-color: #fcfcfc;
    font-size: 18px;
    padding-top: 100px;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: #1a1a1a;
}

section {
    scroll-margin-top: 100px;
}

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

@keyframes headerFadeIn {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    z-index: 9999;
    padding: 15px 0;
    animation: headerFadeIn 1.2s ease-out forwards;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    padding: 0 20px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
}

.hamburger span {
    width: 35px;
    height: 3px;
    background: #1a1a1a;
    border-radius: 2px;
    transition: 0.3s;
}

.menu-overlay {
    display: none;
}

.close-menu {
    display: none;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.main-nav a {
    text-decoration: none;
    color: #000;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #777;
}

.menu-infobanner {
    display: none;
}

.nav-logo-link {
    display: flex;
    align-items: center;
    transition: transform 0.3s, opacity 0.3s ease;
}

.nav-logo-link:hover {
    transform: scale(1.02);
}

.header-logo {
    height: 70px;
    width: auto;
}

.hero-section {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-size: cover;
    background-position: center;
    filter: blur(8px);
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.65);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    max-width: 650px;
    width: 90%;
    margin-top: -100px;
    margin-bottom: 40px;
    filter: drop-shadow(0px 4px 10px rgba(0,0,0,0.15));
}

.hero-booking-btn {
    text-decoration: none;
    color: #1a1a1a;
    background-color: transparent;
    border: 2px solid #1a1a1a;
    padding: 16px 45px;
    border-radius: 40px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 16px;
    transition: all 0.4s ease;
    display: inline-block;
    backdrop-filter: blur(5px);
}

.hero-booking-btn:hover {
    background-color: #1a1a1a;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.infobanner {
    position: absolute;
    top: 0;
    left: 0;
    height: 200px;
    width: auto;
    z-index: 4;
    transform-origin: top left;
    transition: transform 0.3s ease;
}

.infobanner:hover {
    transform: scale(1.15);
}

.intro-section {
    padding: 100px 20px;
    background: #fff;
    text-align: center;
}

.intro-text p {
    font-size: 20px;
    max-width: 900px;
    margin: 0 auto 20px auto;
    color: #444;
}

.intro-text p:first-child {
    font-size: 32px;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #000;
    margin-bottom: 30px;
}

.section-title {
    text-align: center;
    font-size: 42px;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background: #1a1a1a;
    margin: 20px auto 0;
}

.services-section {
    padding: 100px 0;
    background: #f4f8f7;
}

.services-row {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    gap: 40px;
}

.services-row.reverse-layout {
    flex-direction: row-reverse;
}

.services-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.services-image img {
    max-width: 350px;
    height: auto;
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.services-image img:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.services-text {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.service-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    font-size: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.service-item span {
    color: #1a1a1a;
    font-weight: bold;
    margin-right: 15px;
    font-size: 20px;
}

.doctors-section {
    padding: 100px 0;
    background: #fff;
}

.doctors-flex {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.doctor-card {
    background: #ffffff;
    padding: 50px 40px;
    border-radius: 16px;
    width: 100%;
    max-width: 450px;
    border: 1px solid #f0f0f0;
    border-top: 6px solid #1a1a1a;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.doctor-photo-frame {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #f4f8f7;
    background-color: #f9f9f9;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="40" r="20" fill="%23ddd"/><path d="M50 65c-20 0-35 15-35 35h70c0-20-15-35-35-35z" fill="%23ddd"/></svg>');
    background-size: 60%;
    background-position: center 70%;
    background-repeat: no-repeat;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.doctor-info h3 {
    font-size: 26px;
    margin-bottom: 15px;
    color: #1a1a1a;
    position: relative;
    padding-bottom: 15px;
}

.doctor-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #1a1a1a;
    border-radius: 2px;
}

.doctor-info p {
    font-size: 16px;
    color: #555;
    margin-bottom: 8px;
    line-height: 1.6;
}

.gallery-section {
    padding: 100px 0;
    background: #f4f8f7;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 5px;
    z-index: 10001;
    cursor: pointer;
}

.close-btn {
    position: absolute;
    top: 25px;
    right: 45px;
    color: #fff;
    font-size: 50px;
    cursor: pointer;
    user-select: none;
    z-index: 10010;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #777;
}

.nav-btn {
    position: absolute;
    top: 15%;
    height: 70%;
    width: 15%;
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 60px;
    cursor: pointer;
    user-select: none;
    z-index: 10002;
    background: rgba(0,0,0,0);
    transition: background 0.3s;
}

.nav-btn:hover {
    background: rgba(0,0,0,0.2);
}

.nav-btn.prev {
    left: 0;
    justify-content: flex-start;
    padding-left: 40px;
}

.nav-btn.next {
    right: 0;
    justify-content: flex-end;
    padding-right: 40px;
}

.contact-section {
    padding: 100px 0;
    background: #fff;
}

.contact-wrapper {
    display: flex;
    flex-direction: column;
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-doctor {
    background: #ffffff;
    color: #333;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    border-top: 6px solid #1a1a1a;
    flex: 1;
    min-width: 320px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-doctor:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.contact-doctor h3 {
    color: #1a1a1a;
    font-size: 26px;
    margin-bottom: 5px;
}

.contact-doctor .subtitle {
    font-style: italic;
    color: #555;
    margin-bottom: 25px;
    font-weight: 600;
    font-size: 18px;
}

.time-title {
    font-weight: bold;
    color: #1a1a1a;
    font-size: 20px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.time-table td {
    padding: 10px 0;
    font-size: 18px;
    color: #555;
    border-bottom: 1px solid #f4f8f7;
}

.time-table tr:last-child td {
    border-bottom: none;
}

.time-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: #333;
}

.contact-details {
    text-align: center;
    background: #f9f9f9;
    padding: 50px;
    border-radius: 16px;
    border: 1px solid #eee;
}

.contact-details .highlight {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.contact-details .phone {
    font-size: 28px;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.contact-details .small-text {
    font-size: 16px;
    color: #888;
    margin-bottom: 25px;
}

.contact-details .notice {
    font-size: 16px;
    color: #d9534f;
    margin-bottom: 40px;
    font-weight: 600;
}

.locations {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 25px;
    border-top: 1px solid #ddd;
    padding-top: 25px;
    font-size: 18px;
    color: #444;
}

.main-footer {
    background: #1a1a1a;
    color: #fff;
    text-align: center;
    padding: 25px 0;
    font-size: 16px;
}

@media (max-width: 1000px) {
    body {
        padding-top: 70px;
    }

    .main-header {
        padding: 10px 0;
    }
    
    .header-container {
        position: relative;
        flex-direction: row;
        justify-content: center;
        padding: 5px 20px;
        gap: 0;
    }

    .header-logo {
        height: 45px;
    }

    .hamburger {
        display: flex;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 60px 20px 30px;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        transition: right 0.4s ease;
        z-index: 2001;
        gap: 20px;
        overflow-y: auto;
    }
    
    .main-nav.open {
        right: 0;
    }
    
    .menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        opacity: 0;
        visibility: hidden;
        transition: 0.4s;
        z-index: 2000;
    }
    
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .close-menu {
        display: block;
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 40px;
        cursor: pointer;
        color: #1a1a1a;
        line-height: 1;
        transition: color 0.3s;
    }
    
    .close-menu:hover {
        color: #777;
    }

    .infobanner {
        display: none !important;
    }

    .menu-infobanner {
        display: block;
        width: 100%;
        max-width: 260px;
        margin-top: 30px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 0;
        height: auto;
        object-fit: contain;
    }
    
    .services-row, .services-row.reverse-layout {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }
    .intro-section {
        padding: 60px 20px;
    }
    .services-section, .doctors-section, .gallery-section, .contact-section {
        padding: 60px 0;
    }
    .hero-logo {
        width: 95%;
        margin-top: -30px;
    }
    .services-image img {
        max-width: 100%;
    }
    .doctor-card {
        padding: 30px 20px;
    }
    .contact-wrapper {
        gap: 40px;
    }
    .contact-doctor {
        padding: 25px;
        min-width: 100%;
    }
    .contact-details {
        padding: 30px 20px;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .lightbox img {
        max-width: 95vw;
        max-height: 80vh;
    }
    
    .close-btn {
        top: 15px;
        right: 20px;
        font-size: 40px;
    }
    
    .nav-btn.prev {
        padding-left: 10px;
    }
    
    .nav-btn.next {
        padding-right: 10px;
    }
}

@media (max-width: 480px) {
    .hero-booking-btn {
        padding: 12px 25px;
        font-size: 14px;
        border-width: 1px;
    }
    .section-title {
        font-size: 28px;
    }
    .time-table td {
        font-size: 15px;
    }
    .contact-details .phone {
        font-size: 22px;
    }
    .locations {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}