/* ==========================================================================
   1. GLOBAL STYLES & VARIABLE DEFINITIONS
   ========================================================================== */
:root {
    --bg-charcoal-blue: #1a2332;
    --bg-charcoal-green: #182620;
    --bg-charcoal-gray: #242b2e;
    --text-off-white: #f4f6f8;
    --hover-blue-light: rgba(74, 144, 226, 0.15);
    
    /* Low-Contrast Premium Gray Button Palette */
    --btn-gray-bg: #d1d5db;
    --btn-gray-text: #111827;
    
    --font-heading: 'Cinzel', 'Playfair Display', serif;
    --font-body: 'Inter', 'Plus Jakarta Sans', sans-serif;
}

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

body {
    background-color: var(--bg-charcoal-blue);
    background-image: linear-gradient(135deg, var(--bg-charcoal-blue) 0%, var(--bg-charcoal-blue) 100%); /* Unified Uniform Blue Theme */
    background-attachment: fixed;
    color: var(--text-off-white);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--text-off-white);
    text-decoration: none;
    transition: all 0.25s ease-in-out;
}

/* ==========================================================================
   2. RESPONSIVE NAVIGATION & SOCIAL ELEMENTS (LIGHTENED TEXT & ICONS)
   ========================================================================== */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(26, 35, 50, 0.95);
    border-bottom: 1px solid rgba(74, 144, 226, 0.15);
    backdrop-filter: blur(8px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

/* Row 1 Layout */
.nav-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-off-white);
}

/* Row 2 Layout */
.nav-bottom-row {
    width: 100%;
    border-top: 1px solid rgba(74, 144, 226, 0.15);
    padding-top: 12px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-menu a {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 10px;
    color: #cbd5e1; /* Lighter silver-gray instead of dark gray */
}

.nav-menu a:hover {
    color: var(--text-off-white); /* Brightens to your off-white tone */
    background-color: var(--hover-blue-light);
    border-radius: 4px;
}

/* Dedicated Corporate Profiles - Icon Styling */
.nav-social-profiles {
    display: flex;
    gap: 16px;
    align-items: center;
}

.nav-social-profiles a {
    display: inline-flex;
    align-items: center;
    color: #cbd5e1; /* Lighter silver-gray for icons */
    opacity: 0.85;   /* Boosted opacity for better visibility */
}

.nav-social-profiles a:hover {
    opacity: 1;
    color: #60a5fa;  /* Slightly brighter blue glow on hover */
}

/* Responsive Mobile Rules for Header */
@media (max-width: 768px) {
    .nav-top-row {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .nav-menu {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
}


/* ==========================================================================
   3. ADAPTIVE HERO ARCHITECTURE
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 90px 20px; /* Taller home height */
    text-align: center;
    background-color: var(--bg-charcoal-blue);
    border-bottom: 1px solid rgba(74, 144, 226, 0.15);
    overflow: hidden;
    transition: padding 0.3s ease;
}

/* Inner Page Utility Class Modifier: Scales height exactly in half */
.hero-section.hero-inner {
    padding: 45px 20px;
}

.hero-section.hero-inner .hero-bookshelf-accent,
.hero-section.hero-inner .hero-tagline {
    display: none;
}

.hero-bg-image {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    opacity: 0.69;
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
}

.hero-bookshelf-accent {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    opacity: 0.25;
}

.vector-book {
    width: 18px;
    height: 45px;
    border: 2px solid var(--text-off-white);
    border-radius: 3px 3px 0 0;
}
.vector-book.lean { transform: rotate(-15deg); margin-left: -4px; }

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.8);
    text-align: center;
}

.hero-tagline {
    font-size: 1.15rem;
    color: rgba(244, 246, 248, 0.85);
    max-width: 777px;
    margin: 0 auto 25px auto;
    text-align: center;
}

/* Centered Search Layout Styles */
.search-wrapper {
    margin: 0 auto 25px auto;
    max-width: 550px;
    width: 100%;
}

.catalog-search-input {
    width: 100%;
    padding: 14px 20px;
    background-color: rgba(36, 43, 46, 0.9);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 4px;
    color: var(--text-off-white);
    font-family: var(--font-body);
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    text-align: center;
}

.catalog-search-input:focus {
    outline: none;
    border-color: #4a90e2;
}

/* ==========================================================================
   4. CONTENT DIRECTORY MODULES (UNIFIED BLUE INTEGRATION)
   ========================================================================== */
.main-wrapper {
    max-width: 1200px; /*   This clamps the text block from stretching on large screens */
    margin: 0 auto;    /* Centers the entire container perfectly on your 36" monitor */
    padding: 40px 20px;
    flex: 1;
    width: 100%;       /* Allows it to be fluid and responsive on smaller laptop screens */
    box-sizing: border-box;
}


.index-breadcrumb {
    margin-bottom: 30px;
}

.index-breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.9rem;
}

.index-breadcrumb li+li:before {
    content: "›";
    padding: 0 8px;
    color: rgba(74, 144, 226, 0.4);
}

.index-breadcrumb a {
    color: rgba(244, 246, 248, 0.6);
}

.index-breadcrumb a:hover {
    color: var(--text-off-white);
    background-color: var(--hover-blue-light);
    padding: 2px 6px;
    border-radius: 4px;
}

.index-breadcrumb .active {
    color: var(--text-off-white);
    font-weight: 500;
}

h1.index-category {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.7);
    margin-bottom: 0.5rem;
}

h2.index-subcategory {
    font-family: var(--font-body);
    font-size: 1.5rem;
    color: rgba(244, 246, 248, 0.85);
    text-shadow: 1px 3px 6px rgba(0, 0, 0, 0.5);
    margin-top: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(74, 144, 226, 0.2);
}

/* Combined Search Architecture Components */
.catalog-card {
    background-color: rgba(36, 43, 46, 0.3);
    border: 1px solid rgba(74, 144, 226, 0.2); /* Soft Blue Border */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 20px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.catalog-card:hover {
    border-color: rgba(74, 144, 226, 0.6);
    transform: translateY(-2px);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin-bottom: 8px;
}

.card-meta-row {
    font-size: 0.85rem;
    color: rgba(244, 246, 248, 0.5);
    margin-bottom: 12px;
}

table.catalog-table {
    width: 100%;
    border-collapse: collapse;
    background-color: rgba(36, 43, 46, 0.3);
    border: 1px solid rgba(74, 144, 226, 0.3); /* Blue Accent Border */
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
    margin: 30px 0;
}

table.catalog-table th, table.catalog-table td {
    padding: 14px;
    border-bottom: 1px solid rgba(74, 144, 226, 0.15);
    text-align: left;
}

table.catalog-table th {
    font-family: var(--font-heading);
    background-color: rgba(26, 35, 50, 0.8);
}




/* ==========================================================================
   5. SINGLE ARTICLE DISPLAY MODULE
   ========================================================================== */
.article-card {
    background-color: rgba(36, 43, 46, 0.3);
    border: 1px solid rgba(74, 144, 226, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    padding: 24px;
    max-width: 800px;
    margin: 0 auto 20px auto;
}

.article-body {
    margin-top: 15px;
    line-height: 1.6;
    color: rgba(244, 246, 248, 0.85);
}

.article-body img.article-image {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
    border-radius: 4px;
}

/* Bullet-point fix, scoped only to pasted article content */
.article-body ul ul,
.article-body ol ul,
.article-body ul ol,
.article-body ol ol {
    margin-left: 20px;
}







/* ==========================================================================
   6. MODULAR PRE-BUILT PLUG & PLAY CONTENT LAYOUTS
   ========================================================================== */
.modular-section-stack {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.mod-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    background-color: rgba(36, 43, 46, 0.2);
    border: 1px solid rgba(74, 144, 226, 0.15);
    border-radius: 4px;
    padding: 30px;
}

@media(min-width: 768px) {
    .mod-row.split-layout {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.mod-image-holder {
    width: 100%;
    height: 250px;
    background-color: var(--bg-charcoal-gray);
    border: 1px solid rgba(74, 144, 226, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: rgba(244, 246, 248, 0.4);
}

/* ==========================================================================
   7. LOW-CONTRAST TACTILE INTERFACE BUTTON
   ========================================================================== */
.btn-matrix {
    background-color: #0073aa; /* Put your new background color here */
    color: #ffffff;            /* Put your new text color here */
    font-family: var(--font-body);
    font-weight: 600;
    border: 1px solid #000000;
    padding: 12px 28px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn-matrix:hover {
    transform: translate(-1px, -1px);
    box-shadow: 5px 5px 0px rgba(0, 0, 0, 1);
}

.btn-matrix:active {
    transform: translate(3px, 3px);
    box-shadow: 1px 1px 0px rgba(0, 0, 0, 1);
}

/* ==========================================================================
   8. FOOTER & POPULAR SOCIAL DISTRIBUTION LINKS
   ========================================================================== */
footer {
    background-color: var(--bg-charcoal-gray);
    border-top: 1px solid rgba(74, 144, 226, 0.2);
    padding: 40px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media(min-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.footer-brand p {
    font-family: var(--font-heading);
    color: var(--text-off-white);
    margin-bottom: 4px;
}




/* Inline Article Images */
.catalog-img {
  width: 100%; max-width: 300px; height: auto; 
  cursor: pointer; border: 2px solid #ddd; border-radius: 4px;
  transition: 0.2s; margin: 10px;
}
.catalog-img:hover { opacity: 0.8; }

/* The Modal (Hidden by Default) */
.modal {
  display: none; position: fixed; z-index: 1000;
  left: 0; top: 0; width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.9); justify-content: center; align-items: center;
}
.modal-content { max-width: 80%; max-height: 80%; border-radius: 4px; }

/* Modal Controls */
.close, .prev, .next {
  position: absolute; color: white; font-size: 40px; font-weight: bold; cursor: pointer; user-select: none;
}
.close { top: 20px; right: 35px; }
.prev { left: 20px; top: 50%; transform: translateY(-50%); }
.next { right: 20px; top: 50%; transform: translateY(-50%); }






/* ==========================================================================
   9. PASTED CONTENT ENGINE GRAPHICS & TYPOGRAPHY INHERITANCE
   ========================================================================== */
#content-container h1, 
#content-container h2, 
#content-container h3 {
    font-family: var(--font-heading);
    color: var(--text-off-white);
    margin: 35px 0 15px 0;
    font-weight: 700;
}

#content-container h2 { font-size: 1.85rem; border-bottom: 1px solid rgba(74, 144, 226, 0.15); padding-bottom: 8px; }
#content-container h3 { font-size: 1.4rem; }

#content-container p {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: rgba(244, 246, 248, 0.85);
    margin-bottom: 20px;
    line-height: 1.8;
}

#content-container ul, 
#content-container ol {
    margin: 20px 0 20px 30px;
    color: rgba(244, 246, 248, 0.85);
}

#content-container li {
    margin-bottom: 8px;
}

#content-container a {
    color: #4a90e2;
    text-decoration: underline;
}

#content-container a:hover {
    color: var(--text-off-white);
}

/* Automated target styling for any image pasted into the wrapper */
#content-container img {
    width: 100%;
    max-width: 450px;
    height: auto;
    display: block;
    margin: 30px auto;
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transition: opacity 0.2s ease-in-out;
}

#content-container img:hover {
    opacity: 0.85;
}




/* ==========================================================================
   10. SEARCH BUTTON
   ========================================================================== */

/* Layout wrapper to align the input and button horizontally */
.search-form-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

/* Ensure the input takes up the available space and accounts for the button */
.catalog-search-input {
    flex: 1;
    padding-right: 50px; /* Leaves room inside the bar for the icon if needed, or adjust based on layout */
}

/* Styled magnifying glass button */
.catalog-search-submit {
    background: none;
    border: none;
    padding: 10px;
    margin-left: -45px; /* Pulls the button inside the right edge of the input bar */
    color: #555555;     /* Dark grey icon color */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: color 0.2s ease;
}

/* Subtle color change when hovering over the search icon */
.catalog-search-submit:hover {
    color: #0073aa;     /* Changes to a blue accent on hover */
}




/* ==========================================================================
   11. DYNAMIC CATALOG SUBMISSION COMPONENT STYLES
   ========================================================================== */
.submission-form-section {
    width: 100%;
    padding: 20px 0;
}

.form-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: rgba(36, 43, 46, 0.4);
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: 6px;
    padding: 40px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

.form-instructions {
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(74, 144, 226, 0.15);
    padding-bottom: 25px;
}

.form-instructions h2 {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    color: var(--text-off-white);
    margin-bottom: 10px;
}

.instruction-lead {
    font-size: 1.05rem;
    color: rgba(244, 246, 248, 0.9);
}

/* Call-to-action block for founding chamber members */
.cta-membership-box {
    background-color: rgba(74, 144, 226, 0.12);
    border-left: 4px solid #4a90e2;
    padding: 18px 22px;
    border-radius: 4px;
    margin: 20px 0;
}

.cta-membership-box p {
    font-size: 0.95rem;
    color: #cbd5e1;
    margin-bottom: 12px;
    line-height: 1.5;
}

.btn-matrix-small {
    background-color: var(--btn-gray-bg);
    color: var(--btn-gray-text);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #000;
    padding: 6px 14px;
    border-radius: 3px;
    display: inline-block;
    box-shadow: 2px 2px 0px #000;
    text-shadow: 1px 1px 1px rgba(255,255,255,0.4);
}

.btn-matrix-small:hover {
    transform: translate(-0.5px, -0.5px);
    box-shadow: 2.5px 2.5px 0px #000;
}

.services-pricing-notice {
    margin-top: 15px;
}

.services-pricing-notice h3 {
    font-size: 1.1rem;
    color: var(--text-off-white);
    margin-bottom: 8px;
}

.services-list {
    margin: 10px 0 15px 20px !important;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.services-list li {
    margin-bottom: 6px;
}

.price-placeholder {
    font-weight: 500;
    color: #60a5fa;
    font-size: 0.95rem;
}

/* Base structural form control parameters */
.form-group {
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
}

.form-row-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media(min-width: 600px) {
    .form-row-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.field-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.radio-toggle-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: rgba(26, 35, 50, 0.4);
    padding: 12px 16px;
    border-radius: 4px;
    border: 1px solid rgba(74, 144, 226, 0.1);
}

.radio-label {
    font-size: 0.9rem;
    color: var(--text-off-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: rgba(36, 43, 46, 0.9);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 4px;
    color: var(--text-off-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a90e2;
}

.field-help-text {
    font-size: 0.8rem;
    color: rgba(244, 246, 248, 0.5);
    margin-top: 5px;
}

.TOS-group {
    margin-top: 30px;
    border-top: 1px solid rgba(74, 144, 226, 0.15);
    padding-top: 20px;
}

.checkbox-label {
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.5;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-label input {
    margin-top: 3px;
}

.tos-link {
    color: #4a90e2;
    text-decoration: underline;
}

.tos-link:hover {
    color: var(--text-off-white);
}



/* Terms of Service Date Text Properties */
.tos-effective-date {
    font-size: 0.95rem;
    color: rgba(244, 246, 248, 0.6);
    font-family: var(--font-body);
    margin-top: 5px;
    letter-spacing: 0.5px;
}
