/* ============================================================
   site.css — Custom Framework for Kirkson Realty Group
   Includes: frame, nav, slide-in panels, hero, footer
   ============================================================ */

/* Base reset */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body {
    font-family: 'Questrial', sans-serif;
    background: #000;
    color: #222;
}

/* ============================================================
   40px INTELLIGENT FRAME
   ============================================================ */
.frame-border {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100500;
}
.frame-border::before,
.frame-border::after,
.frame-border .vert::before,
.frame-border .vert::after {
    content: "";
    position: fixed;
    background: #fff;
    pointer-events: none;
    z-index: 100500;
}

/* Top 40px */
.frame-border::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
}

/* Bottom 40px */
.frame-border::after {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
}

/* Left 40px */
.frame-border .vert::before {
    top: 40px;
    bottom: 40px;
    left: 0;
    width: 40px;
}

/* Right 40px */
.frame-border .vert::after {
    top: 40px;
    bottom: 40px;
    right: 0;
    width: 40px;
}

/* CONTENT AREA INSIDE THE FRAME */
.frame-inner {
    position: absolute;
    top: 40px;
    bottom: 40px;
    left: 40px;
    right: 40px;
    overflow: hidden;
    z-index: 1;
}

/* ============================================================
   TOP NAVIGATION (centered, tight spacing)
   ============================================================ */
.top-nav-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    z-index: 100600;
    pointer-events: auto;
}

.top-nav-inner {
    box-sizing: border-box;
    width: calc(100% - 80px);
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 26px; /* Tighter for large nav sets */
    padding: 0 40px;
}

.top-nav-inner .nav-item {
    color: #000;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-block;
}
.top-nav-inner .nav-item:hover {
    opacity: 0.85;
}

/* ============================================================
   MOBILE HAMBURGER
   ============================================================ */
.mobile-hamburger {
    display: none;
    position: absolute;
    right: 12px;
    top: 6px;
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    cursor: pointer;
    z-index: 100700;
}
.mobile-hamburger span {
    display: block;
    height: 2px;
    background: #000;
    margin: 5px 0;
    transition: all .18s ease;
}
.mobile-hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.mobile-hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hide desktop menu on mobile */
@media(max-width: 991px) {
    .top-nav-inner {
        display: none;
    }

    .mobile-hamburger {
        display: block;
    }
}

/* ============================================================
   SLIDE-IN PANEL (Tabbed / Shared)
   ============================================================ */
.panel-base {
    position: fixed;
    top: 40px;
    bottom: 40px;
    left: 40px;
    width: 318px;
    background: rgba(0,0,0,0.20);
    backdrop-filter: blur(12px);
    color: #fff;
    border-radius: 6px;
    z-index: 100450;
    overflow-y: auto;

    transform: translateX(-360px);
    opacity: 0;
    pointer-events: none;

    transition: transform .36s cubic-bezier(.22,.9,.36,1),
                opacity .32s ease;
}

body.panel-open .panel-base {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

/* Dark overlay */
#panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 100440;
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease;
}
body.panel-open #panel-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* Panel structure */
.panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.panel-tabs {
    display: flex;
    gap: 6px;
}
.tab-btn {
    background: none;
    border: 0;
    color: #fff;
    padding: 8px 10px;
    cursor: pointer;
    font-weight: 600;
    border-radius: 6px;
    opacity: .95;
}
.tab-btn.active {
    background: rgba(255,255,255,0.06);
}

.panel-close {
    background: none;
    border: 0;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

.panel-body {
    padding: 12px 14px 28px;
}

.panel-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.panel-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.panel-list a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}
.panel-list a:hover {
    color: #d9534f;
}

/* ============================================================
   ABOUT PANEL (Option D – updated typography)
   ============================================================ */
#custom-panel .group-title {
    font-family: "Questrial", sans-serif;
    font-size: 13px;               /* smaller */
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.65;
    margin: 18px 0 6px 25px;
    letter-spacing: 0.5px;
}

#custom-panel .about-groups .panel-list li a {
    display: block;
    padding: 7px 0;
    font-size: 17px;               /* larger */
    font-family: "Questrial", sans-serif;
    color: white;
    text-decoration: none;
    margin-left: 35px;             /* +10px indentation */
    transition: opacity .25s ease;
}
#custom-panel .about-groups .panel-list li a:hover {
    opacity: .6;
}

/* ============================================================
   HERO BLOCK
   ============================================================ */
.hero-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}
.hero-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 2;
}
.hero-content {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 3;
    color: #fff;
}
.hero-content h1 {
    font-size: 54px;
    margin: 0 0 10px 0;
    font-weight: 400;
}
.hero-content p {
    font-size: 20px;
    margin: 0;
}

/* ============================================================
   FOOTER on TOP of frame
   ============================================================ */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100600;
    pointer-events: auto;
}
.site-footer a {
    color: #000;
    text-decoration: none;
    font-weight: 600;
}

/* ============================================================
   MOBILE FULL-PANEL MODE
   ============================================================ */
@media(max-width: 991px) {
    .panel-base {
        left: 0;
        width: 100%;
        transform: translateX(-100%);
    }
    body.panel-open .panel-base {
        transform: translateX(0);
    }
    .panel-base {
        border-radius: 0;
    }
}

/* Accessibility */
a:focus, button:focus {
    outline: 2px solid rgba(217,83,79,0.6);
    outline-offset: 2px;
}
