/* ==========================================
   MENU PAGE - CSS STYLES
   ========================================== */

/* ==========================================
   CSS RESET & BASE STYLES
   ========================================== */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    background: #fff;
}

#page {
    overflow-x: hidden;
    background: #fff;
}

/* Burger menu styles for menu page */
@media (max-width: 768px) {
    .header__contacts {
        z-index: 1 !important;
    }

    .header__telephone {
        pointer-events: none;
    }

    .header__telephone a {
        pointer-events: auto;
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: auto;
        height: auto;
        z-index: 1000;
    }

    .nav__humburger {
        position: fixed;
        top: 15px;
        right: 15px;
        width: 32px;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0;
        cursor: pointer;
        z-index: 1001;
    }

    .nav__humburger::before {
        display: none;
    }

    .nav__humburger__line {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #f9f6e5;
        margin-bottom: 6px;
        -webkit-transition: margin .2s, opacity .3s, -webkit-transform .3s;
        transition: margin .2s, transform .3s, opacity .3s;
        transition: margin .2s, transform .3s, opacity .3s, -webkit-transform .3s;
    }

    .nav__humburger__line:last-child {
        margin-bottom: 0;
    }

    .nav__humburger__line_open {
        margin-bottom: 0;
    }

    .nav__humburger__line_open:first-child {
        -webkit-transform: rotate(-45deg) !important;
        -ms-transform: rotate(-45deg) !important;
        transform: rotate(-45deg) !important;
        margin-top: 10px;
    }

    .nav__humburger__line_open:nth-child(2) {
        opacity: 0;
    }

    .nav__humburger__line_open:last-child {
        -webkit-transform: rotate(45deg) !important;
        -ms-transform: rotate(45deg) !important;
        transform: rotate(45deg) !important;
        margin-top: -6px;
    }

    .nav__nav {
        position: fixed;
        top: 0;
        right: 0;
        transform: translateX(100%);
        transition: transform 0.35s ease;
    }

    .nav_open .nav__nav {
        transform: translateX(0);
    }

    .nav__humburger_open {
        -webkit-transform: translateX(-228px);
        -ms-transform: translateX(-228px);
        transform: translateX(-228px);
    }
}

body {
    font-family: Bebas, sans-serif;
    background: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 769px) {
    .button.button-nav_menu {
        transition: background-color .175s, color .175s;
    }

    .button.button-nav_menu:hover {
        background-color: rgba(51, 43, 19, 1);
        color: #d9c8a3;
        text-decoration: none;
    }
}

/* ==========================================
   HEADER SECTION
   ========================================== */

.header {
    position: relative;
    width: 100%;
    height: 900px;
    overflow: hidden;
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(rgba(26, 28, 28, 0.8), rgba(26, 28, 28, 0.8)),
        url('../img/menu-page/hero-bg-45144f.png') center center/cover;
    z-index: 0;
}

/* Back Button */
.back-btn {
    position: absolute;
    top: 214px;
    left: 364px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 112px;
    padding: 11px 10px 8px;
    background: rgba(51, 43, 19, 0.4);
    border: 1px solid #D9C8A3;
    font-family: Bebas, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1em;
    color: #F9F6E5;
    z-index: 10;
    transition: all 0.3s ease;
}

.back-btn:hover {
    text-decoration: none;
    color: #F9F6E5;
}

.back-icon {
    width: 24px;
    height: 24px;
}

/* Header styles are inherited from main.css */

/* Hero Title */
.header .hero-title {
    position: absolute !important;
    top: 360px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 40px !important;
    z-index: 10 !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 !important;
}

.hero-title h1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    text-align: center;
}

.hero-menu-text {
    font-family: Bebas, sans-serif;
    font-size: 150px;
    font-weight: 700;
    line-height: 1em;
    color: #F9F6E5;
    text-stroke: 1px #F9F6E5;
    -webkit-text-stroke: 1px #F9F6E5;
    text-align: center;
    display: block;
}

.hero-decoration {
    width: 668px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ==========================================
   MENU BUTTONS
   ========================================== */

.header .menu-buttons {
    position: absolute !important;
    top: 608px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 24px !important;
    width: 668px !important;
    max-width: calc(100% - 40px) !important;
    margin: 0 !important;
    z-index: 10 !important;
}

.menu-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    height: 80px;
    padding: 24px 0;
    background: #1887A2;
    border: 2px solid rgba(249, 246, 229, 0.64);
    font-family: Bebas, sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1em;
    color: #F9F6E5;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0px 0px 16px 0px rgba(0, 96, 112, 0.48);
    cursor: pointer;
}

.menu-btn:hover {
    background: #1a9ab8;
    text-decoration: none;
    color: #F9F6E5;
    transform: translateY(-3px);
    box-shadow: 0px 4px 24px 0px rgba(0, 96, 112, 0.6);
}

.menu-btn:active {
    transform: none;
}

.menu-btn.menu-btn_disabled,
.menu-btn:disabled {
    background: #5e8f99;
    border-color: rgba(249, 246, 229, 0.35);
    color: rgba(249, 246, 229, 0.75);
    box-shadow: none;
    cursor: not-allowed;
}

.menu-btn.menu-btn_disabled:hover,
.menu-btn:disabled:hover,
.menu-btn.menu-btn_disabled:active,
.menu-btn:disabled:active {
    background: #5e8f99;
    transform: none;
    box-shadow: none;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    padding: 50px 0;
    background: #FFFFFF;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-info {
    align-items: flex-end;
    gap: 6px;
    width: 152px;
}

.footer-info p {
    font-family: Bebas, sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1em;
    color: #020202;
}

.footer-divider {
    width: 2px;
    height: 162px;
    background: #020202;
}

.footer-logo {
    align-items: center;
    gap: 12px;
    width: 203px;
    height: 162px;
}

.footer-logo img {
    width: 100%;
    height: 107px;
    object-fit: contain;
}

.footer-line {
    width: 100%;
    height: 2px;
    background: #020202;
    border: none;
    margin: 0;
}

.footer-since {
    font-family: Bebas, sans-serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1em;
    color: #000000;
    text-align: center;
}

.footer-social {
    align-items: center;
    gap: 5px;
    width: 210px;
}

.footer-social-text {
    font-family: Bebas, sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1em;
    color: #020202;
    text-align: center;
}

.footer-instagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 100%;
}

.footer-instagram img {
    width: 100%;
    height: auto;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Tablet - 768px to 1199px */
@media (max-width: 1199px) {
    .header {
        height: 800px;
    }

    .back-btn {
        top: 180px;
        left: 5%;
    }

    .header .header__contacts {
        gap: 40px !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .hero-title {
        top: 280px;
    }

    .hero-menu-text {
        font-size: 100px;
    }

    .hero-decoration {
        width: 450px;
    }

    .menu-buttons {
        top: 500px;
        width: 90%;
        max-width: 600px;
    }

    .menu-btn {
        font-size: 22px;
        height: 70px;
    }

    .footer {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .footer-divider {
        width: 80%;
        height: 2px;
    }
}

/* Mobile - 320px to 767px */
@media (max-width: 767px) {
    .header {
        height: 800px;
        min-height: 800px;
        padding: 0;
    }

    .header-bg {
        background-position: center;
    }

    /* Hide back button on mobile */
    .back-btn {
        display: none !important;
    }

    /* Hide desktop elements */
    .header__ntw {
        display: none !important;
    }

    .header__telephone__title {
        display: none !important;
    }

    /* Mobile header styles - matching main.css */
    .header__contacts {
        padding-top: 15px !important;
        font-size: 14px !important;
    }

    .header__logo {
        width: 80px !important;
        top: 10px !important;
        margin-left: 15px !important;
        left: 0 !important;
    }

    .header__logo__img {
        width: 80px !important;
        height: auto !important;
    }

    .header__telephone {
        padding: 0 !important;
        margin-right: 50px !important;
    }

    /* Hero title - mobile */
    .header .hero-title {
        position: absolute !important;
        top: 222px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 339px !important;
        max-width: calc(100% - 32px) !important;
        gap: 12px !important;
        margin: 0 !important;
    }

    .hero-menu-text {
        font-size: 40px !important;
        -webkit-text-stroke: 1px #F9F6E5;
    }

    .hero-decoration {
        width: 100% !important;
        max-width: 339px !important;
    }

    /* Menu buttons - mobile */
    .header .menu-buttons {
        position: absolute !important;
        top: 345px !important;
        bottom: auto !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        flex-direction: column !important;
        width: 339px !important;
        max-width: calc(100% - 32px) !important;
        gap: 24px !important;
        margin: 0 !important;
    }

    .menu-btn {
        width: 100% !important;
        height: auto !important;
        padding: 24px 0 !important;
        font-size: 24px !important;
    }

    /* Footer - mobile */
    .footer {
        flex-direction: column;
        align-items: center;
        padding: 32px 16px;
        gap: 16px;
    }

    /* Reorder footer sections for mobile */
    .footer-social {
        order: 1;
        width: 210px;
        gap: 5px;
    }

    .footer-social-text {
        font-size: 22px;
        text-align: center;
    }

    .footer-instagram {
        width: 100%;
    }

    /* Company info and logo together */
    .footer-section {
        order: 2;
        width: 100%;
    }

    .footer-info {
        align-items: flex-end;
        width: auto;
        gap: 6px;
    }

    .footer-info p {
        font-size: 16px;
    }

    .footer-divider {
        width: 2px;
        height: 162px;
    }

    .footer-logo {
        width: auto;
        align-items: center;
    }

    .footer-logo img {
        width: 133px;
        height: auto;
    }

    .footer-since {
        font-size: 20px;
    }
}

/* Extra Small Mobile - 320px */
@media (max-width: 374px) {
    .hero-menu-text {
        font-size: 48px;
    }

    .hero-decoration {
        width: 100%;
        max-width: 280px;
    }

    .menu-btn {
        font-size: 18px;
        height: 56px;
    }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Disable click/focus outlines and sticky pressed state */
a:focus,
a:focus-visible,
a:active,
button:focus,
button:focus-visible,
button:active {
    outline: none !important;
    box-shadow: none !important;
}

body button:focus {
    background: inherit !important;
    -webkit-transform: none !important;
    -ms-transform: none !important;
    transform: none !important;
}

.menu-btn:focus,
.menu-btn:focus-visible {
    outline: none;
}

.header .menu-btn:focus,
.header .menu-btn:focus-visible,
.header .back-btn:focus,
.header .back-btn:focus-visible,
.header .header__logo:focus,
.header .header__logo:focus-visible {
    outline: none;
    box-shadow: none;
}

.header .menu-btn,
.header .back-btn,
.header .header__logo {
    -webkit-tap-highlight-color: transparent;
}

/* ==========================================
   ANIMATIONS
   ========================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero elements animation */
.hero-title {
    animation: fadeIn 0.8s ease-out forwards;
}

.menu-buttons {
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.3s forwards;
}

.back-btn {
    opacity: 0;
    animation: fadeIn 0.5s ease-out 0.2s forwards;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-title,
    .menu-buttons,
    .back-btn {
        opacity: 1;
        animation: none;
    }
}
