/* ===== Alap ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

body {
    min-height: 100vh;
}


/* ===== Header ===== */

header {
    position: sticky;
    top: -30px;
    z-index: 1000;
    min-width: 360;
}

.top-bar {
    height: 30px;
    background: #0f766e;
    min-width: 360px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.5s ease;

    font-size: 15px;
    font-weight: 300;
    color: #ffffff;
}

.top-bar.hidden {
  transform: translateY(-100%);
}

.top-bar span {
    display: flex;
    align-items: center;

}

.top-bar i {
    font-size: 13px;
    margin: 0 0.4rem;
}

@media (max-width: 420px) {

    .top-bar {
        font-size: 13px;
    }

    .top-bar i {
        font-size: 10px;
    }
}

.top-nav {
    background-color: #ffffff;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    padding: 1rem 2rem;
}

.top-nav nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#logo {
    max-height: 54px;
    cursor: pointer;
}

/* ===== Navigáció ===== */

.top-nav-links {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.top-nav-links button {
    font-weight: 500;
    font-size: 16px;

    position: relative;

    display: flex;
    align-items: center;
    gap: 0.45rem;

    padding: 0.7rem 0.9rem;

    border: none;
    background: transparent;
    color: #333;

    cursor: pointer;

    transition:
        color 0.25s ease,
        background-color 0.25s ease;
    border-radius: 25px;
}

/* Alsó vonal */
.top-nav-links button::after {
    content: "";
    position: absolute;
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.25rem;
    height: 2px;
    background: #0f766e;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

/* Hover háttér */
.top-nav-links button:hover {
    color: #0f766e;
    background: rgba(15, 118, 110, 0.06);
    border-radius: 25px;
}

/* Hover vonal */
.top-nav-links button:hover::after {
    transform: scaleX(1);
    border-radius: 25px;
}

.top-nav-links button.active {
    color: #0f766e;
    font-weight: 600;
}

.top-nav-links button.active::after {
    content: "";

    position: absolute;
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.25rem;

    height: 2px;

    background: linear-gradient(
        90deg,
        transparent,
        #0f766e,
        transparent
    );

    transform: scaleX(0);
    transform-origin: center;

    transition: transform 0.35s ease;
}

.top-nav-links button.active i {
    color: #0f766e;
}

/* ===== Hamburger ===== */

.hamburger {
    display: none;

    width: 44px;
    height: 44px;

    border: none;
    background: transparent;
    border-radius: 50%;

    cursor: pointer;

    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;

    transition: background-color 0.25s ease;
}

.hamburger:hover {
        background: rgba(15, 118, 110, 0.08);
}

.hamburger span {
    width: 23px;
    height: 2px;

    background: #333;
    border-radius: 2px;

    transition:
        transform 0.3s ease,
        opacity 0.2s ease;
}

/* ===== Mobil ===== */

@media (max-width: 1000px) {

    .top-nav {
        padding: 0.8rem 1.2rem;
    }

    #logo {
        max-height: 48px;
    }

    .hamburger {
        display: flex;
    }

    .top-nav nav {
        position: relative;
    }

    .top-nav-links {
        position: absolute;

        top: calc(100% + 0.8rem);
        left: 0;
        right: 0;

        display: flex;
        flex-direction: column;
        align-items: stretch;

        padding: 0.6rem;

        background: #ffffff;

        border: 1px solid #e5e5e5;
        border-radius: 10px;

        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);

        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);

        transition:
            opacity 0.25s ease,
            transform 0.25s ease,
            visibility 0.25s ease;
    }

    .top-nav-links.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .top-nav-links button {
        width: 100%;
        justify-content: flex-start;

        padding: 0.85rem 1rem;

        font-size: 15px;
        border-radius: 25px;
    }

    .top-nav-links button::after {
        display: none;
    }

    .top-nav-links button:hover {
        background: rgba(15, 118, 110, 0.07);
    }

    .top-nav-links button.active {
        background: rgba(15, 118, 110, 0.08);
    }


    /* Hamburger -> X */

    .hamburger.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

.hero-container {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 1.5s ease-in-out;
}

.hero-image.visible {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.hero-text {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 0 2rem;
  color: white;
  user-select: none;       /* Alapértelmezett modern böngészők */
  -webkit-user-select: none; /* Chrome, Safari */
  -moz-user-select: none;
}

.hero-text h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 1.5rem;
  margin: 0;
  text-align: center;
  gap: 0.2em;
  font-weight: 500;
}

.hero-text span {
  font-size: 1.2rem;
  color: #ffffff;
  font-weight: lighter;
}

.hero-contact-button {
  margin-top: 1rem;
  padding: 0.5rem 1.2rem;
  background-color: #469975;
  border: none;
  border-radius: 1rem;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
  letter-spacing: 2px;
  font-weight: light;
  text-decoration: none;
}

.hero-contact-button:hover {
  background-color: #275c42;
}


/* ===== Main ===== */

main {
    background: #F4F6F6;
}

.container {
    width: 100%;
    max-width: 1200px;
    min-width: 360px;
    min-height: 800px;
    margin: 0 auto;
    background: #82E0AA;
}


/* ===== Footer ===== */

footer {
    font-weight: 300;
    background: #458366;
    color: white;
    padding: 2rem 2rem 0;
    font-size: 0.8rem;
}

/* ===== Footer felső rész ===== */

.footer-top {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

.footer-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 0 1rem;
}

.footer-column p {
    max-width: 400px;
    line-height: 1.5;
}

.doctor-short-info {
  max-width: 400px;
  user-select: none;       /* Alapértelmezett modern böngészők */
  -webkit-user-select: none; /* Chrome, Safari */
  -moz-user-select: none;
}

.important-link {
    font-weight: 400;
}

.footer-column a {
    color: white;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: #ffbaba;
}

/* ===== Kapcsolat ===== */

.footer-contact {
    align-items: center;
    gap: 1rem;
}

.footer-contact > b {
    width: 100%;
    text-align: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-align: left;
    width: 100%;
    max-width: 300px;
}

.contact-item i {
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.contact-item div {
    display: flex;
    flex-direction: column;
}

.contact-item .label {
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.address-links {
    display: none !important;
    margin-top: 4px;
}

.address-links span:first-child {
    color: #fce2e2;
}

/* ===== Footer alsó rész ===== */

.footer-row {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.5);
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a,
.footer-bottom {
    color: white;
    text-decoration: none;
}


/* ===== Mobil ===== */

@media (max-width: 1000px) {

    .footer-top {
        flex-direction: column;
        padding-bottom: 0rem;
    }

    .footer-column {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.5);
    }

    .footer-column:last-child {
        border-bottom: none;
    }
    
    .footer-contact {
        align-items: center;
    }

    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.35rem;
    }

    .contact-item i {
        width: auto;
    }

    .contact-item div {
        align-items: center;
        text-align: center;
    }

    .address-links {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .footer-row {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .footer-links a {
        text-decoration: underline;
    }
}