/* RESET & BASE */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    color: inherit;
    text-decoration: none;
}
ul,
ol {
    list-style: none;
}
button {
    cursor: pointer;
}

/* DESIGN TOKENS */
:root {
    --red: #ff3333;
    --dark: #011111;
    --navy: #394b7b;
    --text: #4b4b4b;
    --green-bg: #d4e6bf;
    --yellow-bg: #ffe19b;
    --blue-bg: #a2cadc;
    --salmon-bg: rgba(253, 130, 89, 0.37);
    --cream-bg: #fef6d1;
    --container: 1280px;
}

/* LAYOUT */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}
.section {
    padding: 80px 0;
}
.section-sm {
    padding: 60px 0;
}

/* TYPOGRAPHY HELPERS */
.label {
    font-size: 17px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--red);
    letter-spacing: 0.4px;
    margin-bottom: 6px;
}
.heading {
    font-family: "Playfair Display", serif;
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 14px;
}
.heading-center {
    text-align: center;
}
.divider {
    width: 60px;
    height: 4px;
    background: var(--red);
    margin-bottom: 24px;
}
.divider-center {
    margin-left: auto;
    margin-right: auto;
}

/* BUTTON */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 35px;
    border-radius: 40px;
    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    border: none;
    transition:
        background 0.25s,
        transform 0.15s;
    line-height: 1;
}
.btn:hover {
    transform: translateY(-1px);
}
.btn-primary {
    background: var(--red);
    color: #fff;
    box-shadow: -3px 3px 15px -7px rgba(0, 0, 0, 0.5);
}
.btn-primary:hover {
    background: var(--navy);
}
.btn-sm {
    font-size: 14px;
    padding: 10px 24px;
}

/* HEADER */
.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}
.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 110px;
}
.header-logo img {
    height: 94px;
    width: auto;
    max-width: 220px;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-list {
    display: flex;
    align-items: center;
}
.nav-item {
    position: relative;
}
.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
    font-weight: 400;
    color: #000;
    padding: 13px 20px;
    transition: color 0.2s;
    white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
    color: var(--navy);
}
.nav-link .fa-angle-down {
    font-size: 13px;
}
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    padding-top: 12px;
    background: transparent;
    min-width: 230px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition:
        opacity 0.2s,
        transform 0.2s;
}
.nav-dropdown::before {
    content: "";
    display: block;
    position: absolute;
    inset: 12px 0 0 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
    z-index: -1;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}
.nav-dropdown a {
    display: block;
    padding: 13px 28px;
    font-size: 14px;
    color: #33373d;
    border-bottom: 1px solid #e3e3e3;
    transition:
        background 0.15s,
        color 0.15s;
}
.nav-dropdown a:last-child {
    border-bottom: none;
}
.nav-dropdown a:hover {
    background: #f5f5f5;
    color: var(--navy);
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: #33373d;
    padding: 4px 8px;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* WAVE DIVIDERS */
.wave-top {
    position: absolute;
    top: -79px;
    left: 0;
    width: 100%;
    height: 80px;
    pointer-events: none;
    z-index: 2;
    line-height: 0;
}
.wave-top img {
    display: block;
    width: 3386px;
    height: 79px;
    position: absolute;
    bottom: 0;
    object-fit: cover;
}
.wave-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 110px;
    pointer-events: none;
    z-index: 2;
    line-height: 0;
    overflow: hidden;
}
.wave-bottom svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* SOCIAL */
.social-row {
    display: flex;
    gap: 14px;
}
.social-link {
    width: 44px;
    height: 44px;
    border-radius: 10%;
    background: var(--red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: opacity 0.2s;
}
.social-link:hover {
    opacity: 0.82;
}

/* CONTACT FORM */
.form-wrap {
    padding: 30px 50px;
    background: rgba(254, 239, 172, 0.55);
    border-radius: 25px;
    box-shadow: 4px 3px 10px rgba(0, 0, 0, 0.5);
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.form-ctrl {
    width: 100%;
    border: 1px solid #dadbdd;
    border-radius: 7px;
    padding: 12px 15px;
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    color: #606266;
    background: #fff;
    transition: border-color 0.2s;
}
.form-ctrl:focus {
    outline: none;
    border-color: var(--navy);
}
.form-check-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
}
.form-check-row input {
    margin-top: 3px;
    flex-shrink: 0;
}
.form-check-row a {
    color: var(--red);
    font-weight: 600;
}
.contact-form .btn {
    font-size: 15px;
    padding: 13px 20px;
    border-radius: 19px;
    align-self: center;
}

/* FOOTER */
.site-footer {
    background: #fff;
}
.footer-main {
    padding: 50px 20px;
    background: #fff;
}
.footer-grid {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 220px 2fr 1fr 1.4fr;
    gap: 40px;
    align-items: start;
}
.footer-logo img {
    width: 200px;
}
.footer-logo-sub {
    font-family: "Playfair Display", serif;
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--dark);
    text-align: center;
    margin-top: -6px;
}
.footer-desc {
    font-size: 14px;
    line-height: 1.55;
    padding-right: 20px;
}
.footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--dark);
    margin-bottom: 14px;
}
.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    padding-left: 0;
}
.footer-col ul a {
    font-size: 14px;
    line-height: 1.4;
    color: var(--dark);
    font-weight: 700;
    transition: color 0.2s;
    text-decoration: none;
}
.footer-col ul a:hover {
    color: var(--red);
}
.footer-bottom {
    background: #e8eef3;
    padding: 14px 20px;
    text-align: center;
    font-size: 12.5px;
    line-height: 1.5;
}
.footer-bottom a {
    color: var(--navy);
    font-weight: 600;
}

/* PAGE HERO – alap (rolam + adatkezelesi) */
.page-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 60px 20px 110px;
}
.page-hero-inner {
    position: relative;
    z-index: 1;
}
.page-hero-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(32px, 5vw, 42px);
    font-weight: 800;
    margin-bottom: 0;
}
.page-hero-sub {
    font-family: "Montserrat", sans-serif;
    font-size: 22px;
    font-weight: 400;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 767px) {
    .main-nav {
        display: none;
    }
    .main-nav.open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 110px;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
        padding: 8px 0 18px;
        z-index: 800;
        gap: 0;
    }
    .main-nav.open .nav-list {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .main-nav.open .nav-item {
        border-bottom: 1px solid #eee;
    }
    .main-nav.open .nav-link {
        padding: 16px 24px;
        font-size: 16px;
        font-weight: 600;
        justify-content: space-between;
        width: 100%;
    }
    .main-nav.open .nav-dropdown {
        position: static;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        padding-top: 0;
        background: #faf8f3;
        min-width: 0;
        width: 100%;
    }
    .main-nav.open .nav-dropdown::before {
        display: none;
    }
    .main-nav.open .nav-dropdown a {
        padding: 12px 40px;
        font-size: 14px;
        border-bottom: 1px solid #ececec;
        color: #555;
    }
    .main-nav.open .nav-dropdown a:last-child {
        border-bottom: none;
    }
    .main-nav.open .header-right {
        padding: 14px 24px 0;
    }
    .main-nav.open .header-right .btn {
        width: 100%;
        justify-content: center;
    }
    .nav-toggle {
        display: flex;
        align-items: center;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .form-wrap {
        padding: 20px 22px;
    }
}
