/* ==========================================================
       Font Configuration
       - "Francy" for Headings & Titles (with fallback)
       - "Poppins" for Small Text & Body
       ========================================================== */
@font-face {
    font-family: 'Francy';
    src: local('Francy'), local('Francy Regular'), local('Francy-Regular'),
        url('fonts/Francy.woff2') format('woff2'),
        url('fonts/Francy.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-title: 'Francy', 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --bg-color: #000000;
    --text-white: #ffffff;
    --border-color: rgba(255, 255, 255, 0.28);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-color);
    /* Real authentic background image extracted directly from the reference */
    background-image: url('bg.png');
    background-position: right center;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--text-white);
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Page Container */
.page-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* max-width: 1440px; */
    margin: 0 auto;
    padding: 0 4rem;
    overflow: hidden;
    isolation: isolate;
}

/* ==========================================================
       Header / Navigation
       ========================================================== */
.header {
    width: 100%;
    padding: 2.2rem 0 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 102;
}

.brand-logo-group {
    display: block;
    line-height: 0;
    text-decoration: none;
    filter: invert(1);
    flex-shrink: 0;
}

.brand-logo-group img {
    display: block;
    width: 150px;
    height: auto;
    aspect-ratio: 259 / 74;
    max-width: 100%;
    object-fit: contain;
}

.brand-title {
    font-family: var(--font-title);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1;
}

.header-divider {
    width: 1.5px;
    height: 26px;
    background-color: rgba(255, 255, 255, 0.45);
}

.brand-subtitle {
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    line-height: 1.35;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.6rem;
}

.corporate-info-link {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-white);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.corporate-info-link:hover {
    opacity: 0.75;
}

/* Hamburger Menu Button */
.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 14px;
    padding: 0;
}

.menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-white);
    border-radius: 1px;
}

/* ==========================================================
       Hero Section
       ========================================================== */
.hero-section {
    position: relative;
    padding: 3.5rem 0 3rem 0;
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
    /* max-width: 800px; */
}

.hero-title {
    font-family: var(--font-title);
    font-size: clamp(2.4rem, 4.4vw, 4.2rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.015em;
    text-transform: uppercase;
    color: #ffffff;
}

/* Legal Entity & Brand Notice */
.legal-notice {
    display: flex;
    align-items: stretch;
    gap: 1.1rem;
    margin-top: 0.2rem;
}

.legal-bar {
    width: 2px;
    background-color: rgba(255, 255, 255, 0.75);
    border-radius: 1px;
}

.legal-text {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.5;
    color: rgb(182, 182, 182);
}

.legal-text p {
    margin: 0;
}

.legal-text p span {
    color: white;
}

/* Doors Studio CTA */
.doors-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
    text-decoration: none;
    color: var(--text-white);
    width: fit-content;
    margin-top: 0.4rem;
    transition: transform 0.25s ease;
}

.doors-title {
    filter: brightness(0) invert(1);
    width: 150px;
    height: auto;
}

.arrow-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    color: var(--text-white);
    transition: all 0.25s ease;
}

.arrow-icon-circle svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    stroke-width: 2;
    transition: transform 0.25s ease;
}

.doors-brand-link:hover .arrow-icon-circle {
    background-color: var(--text-white);
    color: #000000;
    border-color: var(--text-white);
    transform: scale(1.08);
}

.doors-brand-link:hover .arrow-icon-circle svg {
    transform: translate(2px, -2px);
}

/* Keep page content above the curves */
.page-wrapper>* {
    position: relative;
    z-index: 2;
}

.page-wrapper::before,
.page-wrapper::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

/* Upper curved edge */
.page-wrapper::before {
    width: 850px;
    height: 850px;
    top: -50%;
    right: -40%;
    background-color: #000000;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
        0 1px 3px rgba(255, 255, 255, 0.12),
        0 0 12px rgba(255, 255, 255, 0.12),
        0 0 30px rgba(255, 255, 255, 0.07);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.15));
}

/* Lower diagonal curved edge */
.page-wrapper::after {
    width: 1100px;
    height: 1100px;
    bottom: -440px;
    right: -770px;
    background-color: #000000;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        0 0 20px rgba(255, 255, 255, 0.12),
        0 0 25px rgba(255, 255, 255, 0.08),
        0 0 50px rgba(255, 255, 255, 0.05);
    /* filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4)); */
    filter:
        drop-shadow(0 0 5px rgba(255, 255, 255, .4)) drop-shadow(0 0 10px rgba(255, 255, 255, .22)) drop-shadow(0 0 25px rgba(255, 255, 255, .12));
    z-index: 1;
}


@media (min-width:300px) and (max-width:767px ) {
    .brand-logo-group img {
        width: 100px;
    }
}
@media (min-width:100px) and (max-width:767px) {

    .page-wrapper::before,
    .page-wrapper::after {
        display: none;
    }

    .doors-title{
        width: 120px;
    }
}

@media (min-width:1100px) and (max-width:1280px) {
    .page-wrapper::before {
        top: -84%;
        right: -36%;
    }

    .page-wrapper::after {
        bottom: -95%;
        right: -750px;
    }
}

@media (min-width:1281px) and (max-width:1380px) {
    .page-wrapper::before {
        top: -75%;
        right: -32%;
    }

    .page-wrapper::after {
        bottom: -90%;
        right: -700px;
    }
}

@media (min-width:1381px) and (max-width:1480px) {
    .page-wrapper::before {
        top: -75%;
        right: -32%;
    }

    .page-wrapper::after {
        bottom: -85%;
        right: -700px;
    }
}

@media (min-width:1481px) and (max-width:1680px) {
    .page-wrapper::before {
        top: -75%;
        right: -32%;
    }

    .page-wrapper::after {
        bottom: -70%;
        right: -705px;
    }
}

@media (min-width:1681px) {
    .page-wrapper::before {
        top: -43%;
        right: -23%;
    }

    .page-wrapper::after {
        bottom: -55%;
        right: -650px;
    }
}

/* ==========================================================
       Footer Section
       ========================================================== */
.footer {
    width: 100%;
    border-top: 1px solid var(--border-color);
    padding: 1.6rem 0 2rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.footer-locations {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.footer-dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.75);
    border-radius: 50%;
}

.footer-copyright {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: rgba(209, 209, 209, 0.75);
    text-transform: uppercase;
}

/* ==========================================================
       Corporate Menu Card (Popup Modal)
       ========================================================== */
.menu-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s ease;
}

.menu-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.corporate-menu-card {
    position: fixed;
    top: 5rem;
    right: 4rem;
    width: 100%;
    max-width: 380px;
    max-height: calc(100vh - 6.5rem);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
    background: #ffffff;
    color: #111111;
    border-radius: 20px;
    padding: 1.4rem 1.6rem;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.35),
        0 10px 20px -5px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 101;
    opacity: 0;
    visibility: hidden;
    transform-origin: top right;
    transform: scale(0.65) translate3d(0, -10px, 0);
    transition:
        opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.45s ease;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.corporate-menu-card.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translate3d(0, 0, 0);
}

/* Card Header */
.menu-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid #e8e8e8;

    img {
        width: 100px;
    }
}

.menu-brand-group {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.menu-brand-title {
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #000000;
    line-height: 1;
}

.menu-brand-divider {
    width: 1px;
    height: 18px;
    background-color: #bbbbbb;
}

.menu-brand-subtitle {
    font-family: var(--font-body);
    font-size: 0.48rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1.35;
    text-transform: uppercase;
    color: #333333;
}

.menu-card-close {
    background: none;
    border: none;
    color: #111111;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    line-height: 1;
    border-radius: 50%;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, opacity 0.2s ease;
}

.menu-card-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: rotate(90deg) scale(1.08);
}

/* Section Heading */
.menu-section-header {
    padding: 1.1rem 0 0.85rem 0;
    border-bottom: 1px solid #e8e8e8;
}

.menu-section-title {
    font-family: var(--font-title);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0a0a0a;
    margin: 0;
}

/* Menu Items List */
.menu-items-list {
    display: flex;
    flex-direction: column;
}

.menu-item-wrapper {
    border-bottom: 1px solid #e8e8e8;
}

.menu-item-row {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    color: #111111;
    text-align: left;
    font-family: var(--font-body);
    transition: background-color 0.22s ease, padding-left 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.menu-item-row:hover {
    background-color: rgba(0, 0, 0, 0.035);
    padding-left: 0.75rem;
}

.menu-item-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111111;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.menu-item-row:hover .menu-item-icon {
    transform: scale(1.08);
}

.menu-item-label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #111111;
}

.menu-item-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666666;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}

.menu-item-row:hover .menu-item-arrow {
    color: #000000;
    transform: translateX(2px);
}

.menu-item-row.expanded .menu-item-arrow {
    transform: rotate(90deg);
    color: #000000;
}

/* Expandable Content with CSS Grid for 100% Smooth Height Animation */
.menu-item-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.35s ease;
    opacity: 0;
    font-size: 0.8rem;
    line-height: 1.55;
    color: #444444;
}

.menu-item-content.open {
    grid-template-rows: 1fr;
    opacity: 1;
}

.menu-item-inner {
    overflow: hidden;
    padding: 0 0.5rem 0.85rem 0.5rem;
}

.content-address strong,
.content-row strong,
.office-location strong {
    color: #0a0a0a;
    font-weight: 700;
}

.content-contact {
    margin-top: 0.4rem;
}

.content-contact a {
    color: #111111;
    text-decoration: underline;
}

.content-row {
    margin: 0.25rem 0;
}

.content-row code {
    background: #f3f3f3;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.82rem;
    color: #000000;
}

.office-location {
    margin: 0.3rem 0;
}

/* Office Cards in Corporate Menu */
.office-card {
    padding: 0.5rem 0;
}

.office-card:not(:last-child) {
    border-bottom: 1px dashed #e2e2e2;
    padding-bottom: 0.75rem;
    margin-bottom: 0.5rem;
}

.office-brand-name {
    font-size: 0.84rem;
    font-weight: 700;
    color: #050505;
    line-height: 1.3;
}

.office-tag {
    font-size: 0.68rem;
    font-weight: 500;
    color: #666666;
    letter-spacing: 0.04em;
    margin: 0.15rem 0 0.4rem 0;
    text-transform: uppercase;
}

.office-address-link {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.35rem;
    color: #333333;
    font-size: 0.76rem;
    line-height: 1.45;
    text-decoration: none;
    transition: color 0.2s ease;
    margin-bottom: 0.35rem;
}

.office-address-link:hover {
    color: #000000;
}

.office-address-link:hover span:first-child {
    text-decoration: underline;
}

.office-arrow-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    color: #666666;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}

.office-address-link:hover .office-arrow-icon {
    transform: translate(2px, -2px);
    color: #000000;
}

.office-contact {
    margin-top: 0.2rem;
}

.office-phone-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: #111111;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.office-phone-link:hover {
    color: #000000;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .corporate-menu-card {
        top: 4.5rem;
        left: 50%;
        right: auto;
        bottom: auto;
        width: calc(100% - 2.5rem);
        max-width: 380px;
        max-height: calc(100vh - 6rem);
        transform-origin: top center;
        transform: translateX(-50%) scale(0.9);
    }

    .corporate-menu-card.active {
        transform: translateX(-50%) scale(1);
    }
}

/* ==========================================================
       Responsive Media Queries
       ========================================================== */
@media (max-width: 1024px) {
    .page-wrapper {
        padding: 0 2.5rem;
    }

    .corporate-menu-card {
        right: 2.5rem;
    }

    .hero-title {
        font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    }
}

@media (max-width: 768px) {
    .page-wrapper {
        padding: 0 1.5rem;
    }

    .header {
        padding: 1.6rem 0 1.2rem 0;
    }

    .brand-logo-group img {
        width: 130px;
        height: auto;
        aspect-ratio: 259 / 74;
    }

    .brand-title {
        font-size: 1.35rem;
    }

    .header-divider {
        height: 22px;
    }

    .brand-subtitle {
        font-size: 0.55rem;
        letter-spacing: 0.15em;
    }

    .corporate-info-link {
        display: none;
    }

    .hero-section {
        padding: 3rem 0 2.5rem 0;
        gap: 1.8rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .legal-text {
        font-size: 0.95rem;
    }

    .arrow-icon-circle {
        width: 36px;
        height: 36px;
    }

    .footer {
        padding: 1.4rem 0 1.8rem 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .footer-locations {
        font-size: 0.72rem;
        gap: 1rem;
        letter-spacing: 0.18em;
    }

    .footer-copyright {
        font-size: 0.8rem;
    }
}
