/* ==========================================================================
   RELIANT SERVICES - REVOLUTIONARY SPLIT-SCREEN LAYOUT CSS
   ========================================================================== */

/* Setup & Core Variables */
:root {
    --primary: #122a1e;          /* Luxury deep moss/forest green */
    --primary-dark: #07120c;
    --primary-light: #1c3d2c;
    
    --secondary: #c5a059;        /* Warm copper/gold highlights */
    --secondary-light: #e0bc7a;
    --secondary-dark: #a17f3d;
    
    --bg-light: #f6f5f0;         /* Soft warm editorial alabaster */
    --bg-dark: #0a110d;
    
    --text-dark: #151c18;        /* High-contrast organic black */
    --text-muted: #5e6b63;
    
    --white: #ffffff;
    
    --ff-heading: 'Lora', serif;
    --ff-body: 'DM Sans', sans-serif;
    
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 40px rgba(18, 42, 30, 0.08);
}

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

html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--ff-body);
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow: hidden; /* Main window lock - scroll is inside columns */
}

/* ==========================================
   LAYOUT: SPLIT-SCREEN MAIN FRAME
   ========================================== */
.app-layout {
    display: flex;
    flex-direction: row;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* LEFT COLUMN: FIXED SIDEBAR PANEL (55% on large desktop) */
.sidebar-panel {
    width: 42%;
    height: 100%;
    background: linear-gradient(rgba(10, 17, 13, 0.72), rgba(10, 17, 13, 0.88)), url('./assets/enhanced/IMG_3394.webp') no-repeat center center;
    background-size: cover;
    color: white;
    flex-shrink: 0;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.sidebar-inner {
    height: 100%;
    padding: 60px;
    overflow-y: auto; /* Allow side content scroll on small screens */
}
.logo-img { height: 48px; width: auto; object-fit: contain; }
.logo-meta { display: flex; flex-direction: column; }
.logo-title { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; color: white; }
.logo-subtitle { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; color: var(--secondary); }

/* Sidebar Body - Editorial Copy */
.sidebar-body {
    margin: 60px 0;
}
.eyebrow {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 15px;
}
.text-gold { color: var(--secondary); }
.main-title {
    font-family: var(--ff-heading);
    font-size: 3rem;
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 25px;
    letter-spacing: -0.01em;
}
.main-lead {
    font-size: 1.05rem;
    color: #cbd5e1;
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 35px;
}
.chip-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 18px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

/* Sidebar Footer */
.copyright { font-size: 0.75rem; color: #94a3b8; }
.preview-note { font-size: 0.65rem; color: var(--secondary); margin-top: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

/* ==========================================
   RIGHT COLUMN: SCROLLABLE EXPERIENCE PANEL
   ========================================== */
.content-panel {
    flex: 1;
    height: 100%;
    overflow-y: auto; /* Independent vertical scroll! */
    background: var(--bg-light);
    padding: 0 60px 60px 60px;
}

/* Sticky top sub-navigation */
.floating-navbar {
    position: sticky;
    top: 0;
    background: rgba(246, 245, 240, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    padding: 25px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 40px;
}
.sticky-link {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}
.sticky-link:hover { color: var(--secondary-dark); }

/* Common Content sections */
.content-section {
    padding: 60px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.content-section:last-child { border-bottom: none; }
.section-tag { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--secondary-dark); display: block; margin-bottom: 10px; }
.section-title { font-family: var(--ff-heading); font-size: 2.25rem; font-weight: 500; color: var(--primary); margin-bottom: 15px; letter-spacing: -0.01em; }
.section-description { font-size: 1rem; color: var(--text-muted); max-width: 650px; margin-bottom: 40px; }

/* ==========================================
   INTERACTIVE SCOPE ESTIMATOR
   ========================================== */
.card-estimator {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 45px 40px;
    border: 1px solid rgba(0,0,0,0.03);
}
.estimator-head h3 { font-family: var(--ff-heading); font-size: 1.6rem; color: var(--primary); margin-bottom: 6px; }
.estimator-group { margin-top: 35px; border-bottom: 1px solid #e5e7eb; padding-bottom: 30px; }
.estimator-group:last-of-type { border-bottom: none; padding-bottom: 0; }
.group-title { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 20px; color: var(--text-dark); }

/* Beautiful Interactive Grid Cards (Google-style) */
.interactive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
}
.select-box-card {
    background: #fbf9f5;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.hidden-check { display: none; }
.card-icon { font-size: 1.75rem; }
.card-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dark); }

/* Checked State Styles */
.select-box-card:has(.hidden-check:checked) {
    background: var(--primary);
    border-color: var(--primary);
    color: white !important;
}
.select-box-card:has(.hidden-check:checked) .card-title {
    color: white !important;
}
.select-box-card:hover { transform: translateY(-3px); border-color: var(--primary); }

/* Flat Form Fields */
.form-group-flat { display: flex; flex-direction: column; }
.form-group-flat label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.form-group-flat select, .form-grid-3 input {
    background: #fbf9f5;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-family: var(--ff-body);
    font-size: 0.85rem;
    color: var(--text-dark);
    outline: none;
    transition: border 0.3s;
}
.form-group-flat select:focus, .form-grid-3 input:focus {
    border-color: var(--primary);
    background: white;
}
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }

/* Buttons & Status */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 99px; /* Pill */
    cursor: pointer;
    transition: all 0.25s;
    border: none;
}
.btn-sm { padding: 8px 18px; font-size: 0.7rem; }
.btn-lg { padding: 18px 36px; font-size: 0.85rem; }
.btn-full { width: 100%; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-light); transform: scale(1.02); }
.btn-secondary { background: var(--secondary); color: var(--primary-dark); }
.btn-secondary:hover { background: var(--secondary-light); transform: scale(1.02); }
.btn-outline-light { background: transparent; border: 2px solid white; color: white; }
.btn-outline-light:hover { background: white; color: var(--primary-dark); }

.quote-form-status { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.8rem; font-weight: 600; margin-bottom: 20px; display: none; }
.quote-form-status.is-error { display: block; background: rgba(239, 68, 68, 0.1); border: 1px solid #ef4444; color: #ef4444; }

/* ==========================================
   SERVICES DRAWER TABS
   ========================================== */
.drawer-list { display: flex; flex-direction: column; gap: 20px; margin-top: 40px; }
.drawer-item { background: white; border-radius: var(--radius-md); border: 1px solid rgba(0,0,0,0.04); overflow: hidden; box-shadow: var(--shadow-sm); transition: all 0.3s; }
.drawer-header { padding: 25px 30px; cursor: pointer; user-select: none; }
.drawer-header h3 { font-family: var(--ff-heading); font-size: 1.25rem; font-weight: 500; display: flex; align-items: center; gap: 15px; color: var(--primary); }
.drawer-num { font-size: 0.85rem; font-weight: 800; color: var(--secondary-dark); background: #fbf9f5; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.drawer-arrow { font-size: 1.25rem; font-weight: 700; color: var(--text-muted); }
.drawer-content { max-height: 0; padding: 0 30px; overflow: hidden; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.drawer-content p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.6; }
.drawer-img-preview { height: 180px; background-size: cover; background-position: center; border-radius: var(--radius-sm); margin-bottom: 25px; }

/* Open State */
.drawer-item.is-open .drawer-content { max-height: 400px; padding: 0 30px 10px 30px; }
.drawer-item.is-open { border-left: 4px solid var(--secondary); }

/* ==========================================
   PORTFOLIO WIDESCREEN BLOCKS
   ========================================== */
.editorial-portfolio { display: flex; flex-direction: column; gap: 45px; margin-top: 40px; }
.portfolio-block { background: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid rgba(0,0,0,0.03); }
.portfolio-img-holder { height: 320px; background-size: cover; background-position: center; }
.portfolio-caption { padding: 30px; border-top: 4px solid var(--primary); }
.portfolio-caption h4 { font-family: var(--ff-heading); font-size: 1.15rem; color: var(--primary-dark); margin-bottom: 6px; }
.portfolio-caption p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; }
.port-year { font-size: 0.65rem; font-weight: 800; letter-spacing: 0.1em; color: var(--secondary-dark); padding-top: 5px; }

/* ==========================================
   CLEAN FAQ ACCORDION
   ========================================== */
.clean-accordion { display: flex; flex-direction: column; gap: 15px; margin-top: 40px; }
.accordion-item { background: white; padding: 25px 30px; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.03); }
.accordion-item[open] { border-left: 3px solid var(--secondary); }
.accordion-item summary { font-family: var(--ff-heading); font-size: 1.05rem; font-weight: 600; color: var(--primary); cursor: pointer; list-style: none; outline: none; }
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item p { font-size: 0.85rem; color: var(--text-muted); margin-top: 15px; line-height: 1.6; }

/* ==========================================
   FINAL CONTACT BLOCKS
   ========================================== */
.final-contact-card { background: var(--primary-dark); color: white; border-radius: var(--radius-lg); padding: 50px 40px; }
.final-contact-card h2 { font-family: var(--ff-heading); font-size: 2rem; margin-bottom: 12px; color: var(--secondary); }
.final-contact-card p { font-size: 0.95rem; color: #cbd5e1; margin-bottom: 35px; }
.contact-methods { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; }
.contact-box { background: rgba(255, 255, 255, 0.04); padding: 20px 25px; border-radius: var(--radius-md); border: 1px solid rgba(255,255,255,0.08); flex: 1; min-width: 180px; text-decoration: none; color: white !important; transition: all 0.3s; }
.contact-box:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--secondary); transform: translateY(-2px); }
.box-label { font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--secondary); margin-bottom: 4px; }
.box-val { font-size: 0.85rem; font-weight: 500; }

/* ==========================================
   RESPONSIVE DESIGN (FLUID CUT-DOWN)
   ========================================= */
@media (max-width: 1024px) {
    .app-layout { flex-direction: column; overflow-y: auto; height: auto; }
    .sidebar-panel { width: 100%; height: auto; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .sidebar-inner { padding: 40px 24px; }
    .sidebar-body { margin: 40px 0; }
    .main-title { font-size: 2.25rem; }
    .content-panel { padding: 40px 24px; overflow-y: visible; height: auto; }
    .floating-navbar { margin-bottom: 20px; }
    .form-grid-3 { grid-template-columns: 1fr; }
    .asym-card-wide { grid-template-columns: 1fr; }
}
