/* ==========================================================
   Elite Township Properties
   Interactive Client Handbook v3.0
   Sprint 1.2 - Executive Styling
========================================================== */

/* ===========================
   CSS Variables
=========================== */

:root{

    --primary:#111111;
    --secondary:#1d1d1d;
    --accent:#c7a84b;
    --accent-hover:#d8b95b;

    --background:#f3f2ef;
    --surface:#ffffff;

    --text:#222222;
    --text-light:#666666;

    --border:#e4e4e4;

    --header-height:140px;
    --sidebar-width:280px;

    --radius:12px;

    --shadow:
        0 8px 20px rgba(0,0,0,.08);

    --transition:.25s ease;

    --font:
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

}

/* ===========================
   Reset
=========================== */

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    font-family:var(--font);

    background:var(--background);

    color:var(--text);

    line-height:1.6;

}

/* ===========================
   Links
=========================== */

a{

    color:inherit;
    text-decoration:none;

}

/* ===========================
   Skip Link
=========================== */

.skip-link{

    position:absolute;

    left:-9999px;

}

.skip-link:focus{

    left:20px;
    top:20px;

    background:white;

    padding:10px 18px;

    border-radius:8px;

    z-index:5000;

}

/* ===========================
   Layout
=========================== */

#app{

    min-height:100vh;

    display:flex;

    flex-direction:column;

}

/* ===========================
   Header
=========================== */

.app-header{

    height:var(--header-height);

    background:var(--primary);

    color:white;

    display:flex;

    justify-content:center;

    align-items:center;

    padding:0 30px;

    box-shadow:var(--shadow);

    z-index:100;

    position:relative;

}

.brand{

    display:flex;

    align-items:center;

    gap:18px;

}

.header-right{

    position:absolute;

    right:30px;

}

.logo{

    width:150px;

    height:150px;

    object-fit:contain;

}

.brand h1{

    font-family:"Cinzel", serif;

    font-size:1.8rem;

    font-weight:700;

    letter-spacing:1px;

    color:#d4af37;

    text-transform:uppercase;

}
.brand p{

    font-family:"Montserrat", sans-serif;

    color:#d0d0d0;

    font-size:.9rem;

    font-weight:500;

    letter-spacing:2px;

    text-transform:uppercase;

}

.menu-button{

    background:none;

    border:none;

    color:white;

    font-size:1.6rem;

    cursor:pointer;

}

/* ===========================
   Body
=========================== */

.app-body{

    flex:1;

    display:flex;

}

/* ===========================
   Sidebar
=========================== */

.sidebar{

    width:var(--sidebar-width);

    background:var(--secondary);

    color:white;

    padding:30px 0;

    overflow-y:auto;

}

.sidebar ul{

    list-style:none;

}

.sidebar li{

    margin-bottom:6px;

}

.nav-link{

    width:100%;

    background:none;

    border:none;

    color:white;

    text-align:left;

    padding:15px 30px;

    font-size:1rem;

    cursor:pointer;

    transition:var(--transition);

}

.nav-link:hover{

    background:#2d2d2d;

}

.nav-link.active{

    background:var(--accent);

    color:black;

    font-weight:700;

}

/* ===========================
   Main
=========================== */

main{

    flex:1;

    padding:40px;

    overflow-y:auto;

}

.content-page{

    display:none;

}

.content-page.active-page{

    display:block;

}

/* ===========================
   Typography
=========================== */

h2{

    font-size:2rem;

    margin-bottom:20px;

}

h3{

    margin-bottom:10px;

}

p{

    margin-bottom:18px;

}

/* ===========================
   Dashboard Grid
=========================== */

.dashboard-grid{

    display:grid;

    grid-template-columns:

        repeat(auto-fit,minmax(260px,1fr));

    gap:25px;

    margin-top:40px;

}

/* ===========================
   Cards
=========================== */

.card{

    background:white;

    border-radius:var(--radius);

    padding:30px;

    box-shadow:var(--shadow);

    transition:var(--transition);

    border:1px solid var(--border);

}

.card:hover{

    transform:translateY(-5px);

    border-color:var(--accent);

}

.card h3{

    color:var(--primary);

}

.card p{

    color:var(--text-light);

}

/* ===========================
   Footer
=========================== */

.app-footer{

    background:var(--primary);

    color:white;

    text-align:center;

    padding:20px;

    font-size:.9rem;

}

/* ===========================
   Scrollbar
=========================== */

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#efefef;

}

::-webkit-scrollbar-thumb{

    background:#888;

    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:#666;

}

/* ===========================
   Responsive
=========================== */

@media(max-width:900px){

    .sidebar{

        width:220px;

    }

    main{

        padding:25px;

    }

}

@media(max-width:768px){

    .app-body{

        flex-direction:column;

    }

    .sidebar{

        width:100%;

        padding:0;

    }

    .sidebar ul{

        display:flex;

        overflow-x:auto;

    }

    .sidebar li{

        flex:1;

        margin:0;

    }

    .nav-link{

        text-align:center;

        padding:16px;

        white-space:nowrap;

    }

    main{

        padding:20px;

    }

    .dashboard-grid{

        grid-template-columns:1fr;

    }

}
/* ==========================================
   Collapsible Sidebar
========================================== */

.sidebar{

    width:var(--sidebar-width);

    background:var(--secondary);

    color:white;

    padding:30px 0;

    overflow-y:auto;

    transition:var(--transition);

}

.sidebar.sidebar-open{

    display:none;

}

@media(max-width:900px){

    .sidebar{

        width:220px;

    }

}

@media(max-width:768px){

    .app-body{

        flex-direction:column;

    }

    .sidebar{

        display:none;

        width:100%;

        padding:0;

    }

    .sidebar.sidebar-open{

        display:block;

    }

    .sidebar ul{

        display:flex;

        overflow-x:auto;

    }

    .sidebar li{

        flex:1;

        margin:0;

    }

    .nav-link{

        text-align:center;

        padding:16px;

        white-space:nowrap;

    }

}
/* ==========================================
   Desktop Sidebar Toggle
========================================== */

@media (min-width:769px){

    .sidebar.sidebar-open{

        display:none;

    }

}
/* =====================================================
   BUYER GUIDE STYLES
===================================================== */

.guide{

    max-width:1000px;

    margin:0 auto;

    padding:40px;

}

.guide-header{

    background:#1f1f1f;

    color:#ffffff;

    padding:45px 40px;

    border-radius:12px;

    margin-bottom:40px;

    border-left:5px solid #c9a227;

    box-shadow:0 6px 18px rgba(0,0,0,.10);

}

.guide-header h1{

    color:#d4af37;

    margin-bottom:16px;

    font-size:2.6rem;

    line-height:1.2;

}

.guide-header p{

    line-height:1.8;

    margin-bottom:20px;

}

.guide-section{

    margin-bottom:50px;

}

.guide-section h2{

    color:#1f1f1f;

    border-bottom:2px solid #d4af37;

    padding-bottom:12px;

    margin-top:0;

    margin-bottom:22px;

    font-size:1.6rem;

}

.guide-section h3{

    margin-top:25px; li

    margin-bottom:10px;

}

.guide-section p{

    line-height:1.8;

    margin-bottom:18px;

}

.guide-section ul,
.guide-section ol{

    padding-left:30px;

    line-height:1.8;

}
/* =====================================================
   BUYER GUIDE TABLES
===================================================== */

.contact-table{

    width:100%;

    border-collapse:collapse;

    margin-top:20px;

    margin-bottom:30px;

}

.contact-table th{

    background:#d4af37;

    color:#111;

    text-align:left;

    padding:14px;

    border:1px solid #c9c9c9;

}

.contact-table td{

    padding:14px;

    border:1px solid #dddddd;

    vertical-align:top;

}

.contact-table tr:nth-child(even){

    background:#f8f8f8;

}

.contact-table tr:hover{

    background:#f2f2f2;

}
/* =====================================================
   GUIDE TIP BOXES
===================================================== */

.guide-tip{

    margin-top:25px;

    padding:22px;

    background:#fffdf7;

    border:1px solid #eadfb8;

    border-left:5px solid #c9a227;

    border-radius:10px;

    line-height:1.7;

    box-shadow:0 3px 10px rgba(0,0,0,.04);

}

.guide-tip strong{

    display:block;

    margin-bottom:8px;

    color:#7a5b00;

    font-size:1.05rem;

}
/* =====================================================
   GUIDE CONTENT CARDS
===================================================== */

.guide-section{

    background:#ffffff;

    padding:32px;

    margin-bottom:35px;

    border:1px solid #e5e5e5;

    border-left:4px solid #c9a227;

    border-radius:12px;

    box-shadow:0 4px 14px rgba(0,0,0,.06);

    position:relative;

    overflow:hidden;

}



.guide-section:last-child{

    margin-bottom:0;

}
.guide-section ul,
.guide-section ol{

    padding-left:24px;

    margin-top:15px;

    margin-bottom:20px;

}

.guide-section ul li,
.guide-section ol li{

    margin-bottom:12px;

    line-height:1.6;

}

.guide-section p:last-child{

    margin-bottom:0;

}
/* =====================================================
   RESPONSIVE BUYER GUIDE
===================================================== */

@media (max-width: 768px){

    .guide{

        padding:20px;

    }

    .guide-header{

        padding:25px;

    }

    .guide-header h1{

        font-size:2rem;

    }

    .guide-section{

        padding:20px;

    }

    .contact-table{

        display:block;

        overflow-x:auto;

        white-space:nowrap;

    }

}

@media print{

    .guide{

        max-width:100%;

        padding:0;

    }

    .guide-header{

        background:#ffffff;

        color:#000000;

        border:2px solid #d4af37;

    }

    .guide-header h1{

        color:#000000;

    }

    .guide-section{

    box-shadow:none;

    border:1px solid #cccccc;

    break-inside:avoid;

    page-break-inside:avoid;

    page-break-before:auto;

    page-break-after:auto;
    
}

    .guide-tip{

    background:#ffffff;

    border-left:4px solid #000000;

    break-inside:avoid;

    page-break-inside:avoid;

}
.contact-table{

    break-inside:avoid;

    page-break-inside:avoid;

}

.guide-section h2,
.guide-section h3{

    page-break-after:avoid;

}

}
/* Remove bullets from Buyer Guide TOC subitems */

.guide-section ul{
    list-style-type:disc;
}
/* ==========================================
   Buyer Guide Table of Contents
========================================== */

.toc-section ul{

    list-style:none;

    padding-left:0;

}

.toc-section li{

    margin-bottom:10px;

}

.toc-section li a{

    display:block;

    background:#f8f8f8;

    border:1px solid #dddddd;

    border-left:4px solid #d4af37;

    border-radius:8px;

    padding:12px 16px;

    transition:.2s ease;

}

.toc-section li a:hover{

    background:#ffffff;

    border-color:#d4af37;

    transform:translateX(4px);

    box-shadow:0 4px 10px rgba(0,0,0,.08);

}
/* ==========================================
   FAQ Directory Buttons
   Matches Guide Table of Contents Styling
========================================== */

.faq-directory-button {
    display: block;
    width: 100%;
    text-align: left;

    background: #f8f8f8 !important;
    color: inherit;

    border: 1px solid #dddddd !important;
    border-left: 4px solid #c9a227 !important;

    border-radius: 8px;

    padding: 12px 16px;

    font: inherit;
    font-weight: 600;

    cursor: pointer;
    transition: 0.2s ease;
}

.faq-directory-button:hover {
    background: #ffffff !important;

    border: 1px solid #c9a227 !important;
    border-left: 4px solid #c9a227 !important;

    transform: translateX(4px);

    box-shadow: 0 4px 10px rgba(0, 0, 0, .08);
}
/* ==========================================
   Dashboard Guide Buttons
   Matches FAQ and TOC Styling
========================================== */

.dashboard-button {
    display: block;
    width: 100%;

    text-align: left;

    background: #f8f8f8 !important;
    color: inherit;

    border: 1px solid #dddddd !important;
    border-left: 4px solid #c9a227 !important;

    border-radius: 8px;

    padding: 12px 16px;

    font: inherit;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease;
}

.dashboard-button:hover {
    background: #ffffff !important;

    border: 1px solid #c9a227 !important;
    border-left: 4px solid #c9a227 !important;

    transform: translateX(4px);

    box-shadow: 0 4px 10px rgba(0, 0, 0, .08);
}
/* ==========================================
   Contact Page
========================================== */

.contact-methods{

    display:grid;

    grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));

    gap:15px;

    margin-top:25px;

}

.contact-box{

    background:#f8f8f8;

    border:1px solid #dddddd;

    border-left:4px solid #c9a227;

    border-radius:8px;

    padding:18px;

    transition:.2s ease;

}

.contact-box:hover{

    background:#ffffff;

    border-color:#c9a227;

    transform:translateX(4px);

    box-shadow:0 4px 10px rgba(0,0,0,.08);

}

.contact-box h3{

    margin-top:0;

    margin-bottom:8px;

}

.contact-box a{

    font-weight:600;

}
.contact-next-buttons{

    display:grid;

    grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));

    gap:15px;

    margin-top:25px;

}

.contact-next-buttons .contact-box{

    margin:0;

}
/* =====================================================
   MAIN GUIDE STEPS
===================================================== */

.step-section{

    border-left-width:6px;

    box-shadow:0 5px 16px rgba(0,0,0,.07);

}

.step-section h2{

    font-size:1.8rem;

    color:#1f1f1f;

}
/* =====================================================
   GUIDE INTRODUCTION SECTIONS
===================================================== */

.intro-section{

    background:#fafafa;

    border-left:4px solid #d4af37;

}

.intro-section h2{

    font-size:1.7rem;

}

.intro-section ul,
.intro-section ol{

    margin-bottom:0;

}
/* =====================================================
   GUIDE JOURNEY ROADMAP
===================================================== */

.journey-roadmap{

    display:grid;

    gap:12px;

    margin-top:20px;

}

.journey-step{

    display:flex;

    align-items:center;

    gap:15px;

    padding:14px 16px;

    background:#ffffff;

    border:1px solid #e5e5e5;

    border-left:4px solid #c9a227;

    border-radius:8px;

    font-weight:600;

    box-shadow:0 2px 6px rgba(0,0,0,.04);

}

.journey-step span{

    display:flex;

    align-items:center;

    justify-content:center;

    width:32px;

    height:32px;

    flex-shrink:0;

    background:#1f1f1f;

    color:#d4af37;

    border-radius:50%;

    font-weight:700;

}
/* =====================================================
   WHAT YOU'LL LEARN
===================================================== */

.learn-list{

    display:grid;

    gap:12px;

    margin-top:20px;

}

.learn-item{

    display:flex;

    align-items:center;

    gap:15px;

    padding:14px 16px;

    background:#ffffff;

    border:1px solid #e5e5e5;

    border-left:4px solid #c9a227;

    border-radius:8px;

    box-shadow:0 2px 6px rgba(0,0,0,.04);

}

.learn-item span{

    display:flex;

    align-items:center;

    justify-content:center;

    width:28px;

    height:28px;

    flex-shrink:0;

    background:#1f1f1f;

    color:#d4af37;

    border-radius:50%;

    font-weight:700;

}
/* =====================================================
   STEP CONTENT LISTS
===================================================== */

.step-list{

    display:grid;

    gap:10px;

    margin-top:18px;

    margin-bottom:20px;

}

.step-list-item{

    display:flex;

    align-items:center;

    gap:14px;

    padding:13px 16px;

    background:#ffffff;

    border:1px solid #e5e5e5;

    border-left:4px solid #c9a227;

    border-radius:8px;

}

.step-list-item span{

    display:flex;

    align-items:center;

    justify-content:center;

    width:26px;

    height:26px;

    flex-shrink:0;

    background:#1f1f1f;

    color:#d4af37;

    border-radius:50%;

    font-weight:700;

}
/* ==========================================
   MOBILE HEADER
========================================== */

@media (max-width:768px){

    .app-header{

        height:120px;

        padding:0 15px;

    }

    .brand{

        gap:10px;

        width:100%;

        justify-content:center;

    }

    .logo{

        width:85px;

        height:85px;

        flex-shrink:0;

    }

    .brand-text{

        min-width:0;

    }

    .brand h1{

        font-size:1.05rem;

        letter-spacing:.5px;

        line-height:1.2;

    }

    .brand p{

        font-size:.62rem;

        letter-spacing:1px;

        line-height:1.3;

        margin:4px 0 0;

    }

    .header-right{

        right:10px;

    }

}
