/* ====================================================================
   GLOBAL THEME CONFIGURATION
   Edit these variables to change the entire site's look and feel
   ==================================================================== */

/* FONTS - Change the site's typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

/* Alternative font options (uncomment to use):
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');
*/

:root {
    /* ================== COLOR PALETTE - DARK THEME ================== */
    /* Primary Colors */
    --primary-hue: 220;           /* Blue: 220, Green: 150, Purple: 270, Orange: 30 */
    --primary-saturation: 100%;   /* Vividness (0-100%) */
    --primary-lightness: 55%;     /* Brightness (brighter for dark backgrounds) */

    /* Calculated colors (auto-generated from primary) */
    --buildersstream-blue: var(--primary-hue) var(--primary-saturation) var(--primary-lightness);
    --buildersstream-light: var(--primary-hue) 15% 20%;     /* Dark blue for backgrounds */
    --buildersstream-dark: var(--primary-hue) 5% 90%;       /* Light for text/contrast */

    /* Neutral Colors - Dark Theme */
    --background-color: #0f1419;   /* Dark page background */
    --card-background: #1a1f2e;    /* Slightly lighter card background */
    --text-primary: #e4e7eb;       /* Light text color */
    --text-secondary: #9ca3af;     /* Muted secondary text */
    --border-color: #2d3748;       /* Subtle borders */

    /* ================== TYPOGRAPHY ================== */
    --font-family: 'Inter', sans-serif;  /* Change to: 'Roboto', 'Poppins', 'Montserrat' */
    --font-size-base: 16px;              /* Base font size */
    --line-height-base: 1.6;             /* Line height for readability */

    /* ================== SPACING ================== */
    --spacing-unit: 0.5rem;              /* Base spacing unit (8px) */
    --section-spacing: 5rem;             /* Space between sections */
    --card-padding: 2rem;                /* Card internal padding */

    /* ================== BORDERS & SHADOWS ================== */
    --border-radius-sm: 0.5rem;          /* Small radius (buttons, inputs) */
    --border-radius-md: 1rem;            /* Medium radius (cards) */
    --border-radius-lg: 1.5rem;          /* Large radius (hero sections) */

    --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.5);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.6);

    /* ================== ANIMATIONS ================== */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
}

/* ================== GLOBAL STYLES ================== */

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
}

/* ================== CUSTOM SCROLLBAR ================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    background-color: hsl(var(--buildersstream-blue) / 0.6);
    border-radius: 4px;
    transition: background-color var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
    background-color: hsl(var(--buildersstream-blue) / 0.8);
}

::-webkit-scrollbar-track {
    background-color: var(--background-color);
}

/* ================== UTILITY CLASSES ================== */

/* Apply consistent card styling */
.custom-card {
    background: var(--card-background);
    padding: var(--card-padding);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    transition: box-shadow var(--transition-normal);
}

.custom-card:hover {
    box-shadow: var(--shadow-xl);
}

/* Consistent button styling */
.custom-button {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-sm);
    background-color: hsl(var(--buildersstream-blue));
    color: white;
    font-weight: 500;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.custom-button:hover {
    opacity: 0.9;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Section spacing */
.custom-section {
    margin-bottom: var(--section-spacing);
}

/* ================== RESPONSIVE TYPOGRAPHY ================== */

@media (max-width: 768px) {
    :root {
        --font-size-base: 14px;
        --section-spacing: 3rem;
        --card-padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-base: 13px;
        --section-spacing: 2rem;
        --card-padding: 1rem;
    }
}

/* ====================================================================
   CONSOLIDATED COMPONENT STYLES
   All page-specific styles moved here for central control
   ==================================================================== */

/* ================== LAYOUT COMPONENTS ================== */

/* Page container */
.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main content area */
.main-content {
    flex-grow: 1;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

@media (min-width: 768px) {
    .main-content {
        padding-top: 3rem;
        padding-bottom: 4rem;
    }
}

/* Section containers */
.section-container {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-bottom: 5rem;
}

.section-container-narrow {
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-bottom: 5rem;
}

.section-container-wide {
    max-width: 90rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-bottom: 5rem;
}

/* ================== HERO SECTION ================== */

.hero-section {
    position: relative;
    width: 100%;
    margin-bottom: 4rem;
}

.hero-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(17, 24, 39, 0.9),
        rgba(17, 24, 39, 0.8),
        rgba(17, 24, 39, 0.7));
}

.hero-content {
    position: relative;
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding: 5rem 1rem;
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: hsl(var(--buildersstream-dark));
    margin-bottom: 1rem;
}

.hero-subtitle {
    margin-top: 0.75rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.25rem;
    color: #d1d5db;
    font-weight: 500;
}

.hero-description {
    margin-top: 0.5rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.125rem;
    color: #e5e7eb;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

@media (min-width: 1024px) {
    .hero-content {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* ================== FEATURE CARDS ================== */

.feature-grid {
    display: block;
}

.feature-grid h2 {
    margin-bottom: 2rem;
}

.feature-grid > div:not(.feature-card) {
    display: grid;
    gap: 2rem;
}

/* Auto-create grid for direct feature-card children */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.feature-grid h2 {
    grid-column: 1 / -1;
}

@media (min-width: 768px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .feature-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-card {
    background-color: #1f2937;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    transition: all 300ms ease-in-out;
    border-top: 4px solid hsl(var(--buildersstream-blue));
}

.feature-card:hover {
    box-shadow: var(--shadow-xl);
    transform: scale(1.03);
}

.feature-image-container {
    margin-bottom: 1.5rem;
    background-color: #e5e7eb;
    border-radius: 0.5rem;
    height: 12rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.feature-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.feature-icon {
    height: 2rem;
    width: 2rem;
    color: hsl(var(--buildersstream-blue));
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f3f4f6;
}

.feature-description {
    color: #9ca3af;
}

/* ================== TYPOGRAPHY ================== */

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: hsl(var(--buildersstream-dark));
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
}

.heading-lg {
    font-size: 1.875rem;
    font-weight: 700;
    color: hsl(var(--buildersstream-dark));
    margin-bottom: 1rem;
}

.heading-md {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--buildersstream-dark));
    margin-bottom: 1rem;
}

.heading-sm {
    font-size: 1.125rem;
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 0.25rem;
}

.text-muted {
    color: #9ca3af;
}

.text-small {
    font-size: 0.875rem;
}

/* ================== BUTTONS & LINKS ================== */

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 1rem;
    transition: all 300ms ease-in-out;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: hsl(var(--buildersstream-blue));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid hsl(var(--buildersstream-blue));
    color: hsl(var(--buildersstream-blue));
    background-color: white;
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background-color: hsl(var(--buildersstream-light));
}

.btn-icon {
    height: 1rem;
    width: 1rem;
    margin-left: 0.25rem;
    display: inline;
}

/* ================== CTA SECTIONS ================== */

.cta-section {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding: 1rem;
    background-color: hsl(var(--buildersstream-light));
    border-radius: 0.75rem;
    padding: 3rem;
}

.cta-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: hsl(var(--buildersstream-dark));
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.125rem;
    color: #9ca3af;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* ================== GRID LAYOUTS ================== */

.grid-2 {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.grid-3 {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Form layout utilities */
.form-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-grid-3 {
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .form-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

/* ================== SPECIAL SECTIONS ================== */

.info-section {
    background-color: #1f2937;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    padding: 3rem;
}

.info-section-bordered {
    background-color: #1f2937;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-xl);
    padding: 3rem;
    border-left: 8px solid hsl(var(--buildersstream-blue));
}

.gradient-section {
    background: linear-gradient(to bottom right, #f9fafb, hsl(var(--buildersstream-light)));
    border-radius: 1.5rem;
    padding: 3rem;
}

/* ================== INSIGHT CARDS ================== */

.insight-card {
    background-color: #374151;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.insight-icon {
    font-size: 2.25rem;
    font-weight: 700;
    color: hsl(var(--buildersstream-blue));
    margin-bottom: 0.5rem;
}

.insight-card-title {
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.insight-card-description {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Legacy support */
.insight-title {
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 0.5rem;
}

.insight-description {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* ================== FORM STYLES ================== */

.form-container {
    background-color: #1f2937;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-xl);
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #e4e7eb;
    margin-bottom: 0.5rem;
}

/* Required field notice text should also be white */
form p.text-sm,
form p.text-gray-500,
form .text-gray-500 {
    color: #e4e7eb !important;
}

/* Contact form spacing */
.contact-form > * {
    margin-bottom: 1.5rem;
}

.contact-form > *:last-child {
    margin-bottom: 0;
}

/* Checkbox labels in form should be white */
.checkbox-label span {
    color: #e4e7eb;
}

form label span.text-gray-700,
form .text-gray-700 {
    color: #e4e7eb !important;
}

/* Submit button responsive */
.btn-submit {
    width: 100%;
}

@media (min-width: 768px) {
    .btn-submit {
        width: auto;
    }
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: all 150ms ease-in-out;
}

.form-input:focus {
    outline: none;
    border-color: hsl(var(--buildersstream-blue));
    box-shadow: 0 0 0 2px hsl(var(--buildersstream-blue) / 0.2);
}

.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: all 150ms ease-in-out;
    resize: vertical;
}

.form-textarea:focus {
    outline: none;
    border-color: hsl(var(--buildersstream-blue));
    box-shadow: 0 0 0 2px hsl(var(--buildersstream-blue) / 0.2);
}

.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: all 150ms ease-in-out;
}

.form-select:focus {
    outline: none;
    border-color: hsl(var(--buildersstream-blue));
    box-shadow: 0 0 0 2px hsl(var(--buildersstream-blue) / 0.2);
}

.form-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    color: hsl(var(--buildersstream-blue));
    border-color: #d1d5db;
    border-radius: 0.25rem;
}

.form-checkbox:focus {
    outline: 2px solid hsl(var(--buildersstream-blue));
    outline-offset: 2px;
}

/* ================== CONTACT CARDS ================== */

.contact-card {
    background-color: #1f2937;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    text-align: center;
    transition: box-shadow 300ms ease-in-out;
}

.contact-card:hover {
    box-shadow: var(--shadow-xl);
}

.contact-icon-wrapper {
    width: 4rem;
    height: 4rem;
    background-color: hsl(var(--buildersstream-light));
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}

.contact-icon {
    color: hsl(var(--buildersstream-blue));
}

.contact-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 0.5rem;
}

.contact-description {
    color: #9ca3af;
    margin-bottom: 1rem;
}

.contact-link {
    color: hsl(var(--buildersstream-blue));
    font-weight: 500;
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}

/* ================== NUMBERED LIST ITEMS ================== */

.numbered-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.numbered-item-number {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background-color: hsl(var(--buildersstream-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.numbered-item-title {
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 0.25rem;
}

.numbered-item-description {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Legacy support */
.numbered-badge {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background-color: hsl(var(--buildersstream-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.numbered-content h4 {
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 0.25rem;
}

.numbered-content p {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* ================== CHECKMARK LIST ITEMS ================== */

.checkmark-item {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-left: 2rem;
    color: #f3f4f6;
}

.checkmark-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 1.25rem;
    height: 1.25rem;
    background-color: hsl(var(--buildersstream-blue));
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkmark-item::after {
    content: '✓';
    position: absolute;
    left: 0.375rem;
    top: 0.125rem;
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
}

.checkmark-item-small {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-left: 1.5rem;
    color: #9ca3af;
    font-size: 0.875rem;
}

.checkmark-item-small::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 1rem;
    height: 1rem;
    background-color: hsl(var(--buildersstream-blue));
    border-radius: 50%;
    flex-shrink: 0;
}

.checkmark-item-small::after {
    content: '✓';
    position: absolute;
    left: 0.3rem;
    top: 0.1rem;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
}

.checkmark-item-title {
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 0.25rem;
}

.checkmark-item-description {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Legacy support */
.checkmark-icon {
    height: 1.5rem;
    width: 1.5rem;
    color: hsl(var(--buildersstream-blue));
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.checkmark-content h4 {
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 0.25rem;
}

.checkmark-content p {
    color: #9ca3af;
}

/* ================== ALERT/NOTICE BANNERS ================== */

.notice-banner {
    background-color: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: flex-start;
}

.notice-icon {
    flex-shrink: 0;
    height: 1.5rem;
    width: 1.5rem;
    color: #d97706;
}

.notice-content {
    margin-left: 1rem;
}

.notice-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 0.5rem;
}

.notice-description {
    color: #b45309;
}

/* ================== DOCUMENT FOLDER SECTION ================== */

.folder-section {
    background: linear-gradient(to bottom right,
        hsl(var(--buildersstream-light)),
        rgb(239 246 255));
    border-radius: 0.75rem;
    padding: 3rem;
    text-align: center;
}

.folder-icon-wrapper {
    width: 5rem;
    height: 5rem;
    background-color: white;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.folder-icon {
    color: hsl(var(--buildersstream-blue));
}

.folder-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: hsl(var(--buildersstream-dark));
    margin-bottom: 1rem;
}

.folder-description {
    font-size: 1.125rem;
    color: #4b5563;
    margin-bottom: 2rem;
}

/* ================== UTILITY CLASSES ================== */

/* Screen reader only - accessible skip link */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.sr-only:focus,
.focus\:not-sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: inherit;
    margin: inherit;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 50;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
    background-color: hsl(var(--buildersstream-blue));
    color: white;
}

.skip-link:focus {
    position: absolute;
    width: auto;
    height: auto;
    padding: 1rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Layout utility classes */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-20 {
    margin-top: 5rem;
}

/* Tour section with proper spacing */
.tour-section {
    text-align: center;
    margin-top: 5rem;
}

/* Image error icon styling */
.image-error-icon {
    color: #9ca3af;
    font-size: 0.875rem;
    font-weight: 500;
}

.gap-8 {
    gap: 2rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-4 {
    gap: 1rem;
}

.flex-wrap {
    flex-wrap: wrap;
}

/* ================== HEADER & NAVIGATION ================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: #111827;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #374151;
}

.header-container {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.logo-link {
    font-size: 1.875rem;
    font-weight: 800;
    color: hsl(var(--buildersstream-blue));
    text-decoration: none;
    transition: color 150ms ease-in-out;
}

.logo-link:hover {
    color: hsl(var(--buildersstream-dark));
}

.logo-version {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    margin-left: 0.25rem;
}

/* Mobile Menu Button */
.mobile-menu-button {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.mobile-menu-button:focus {
    outline: 2px solid hsl(var(--buildersstream-blue));
    outline-offset: 2px;
}

.mobile-menu-button span {
    width: 2rem;
    height: 0.25rem;
    background: hsl(var(--buildersstream-blue));
    border-radius: 10px;
    transition: all 300ms ease-in-out;
    transform-origin: 1px;
}

.mobile-menu-button.active span:first-child {
    transform: rotate(45deg);
}

.mobile-menu-button.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.mobile-menu-button.active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Desktop Navigation */
.main-nav {
    display: none;
    gap: 2rem;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: #d1d5db;
    text-decoration: none;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
    transition: all 150ms ease-in-out;
}

.nav-link:hover {
    color: hsl(var(--buildersstream-blue));
}

.nav-link.active {
    color: hsl(var(--buildersstream-blue));
    font-weight: 700;
    border-bottom-color: hsl(var(--buildersstream-blue));
}

/* Mobile Navigation */
.mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #111827;
    border-top: 1px solid #374151;
    display: none;
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid #374151;
}

.mobile-nav .nav-link:last-child {
    border-bottom: none;
}

.mobile-nav .mobile-header-cta {
    display: flex;
    margin-top: 1rem;
    color: white !important;
}

/* Contact Button */
.header-cta {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background-color: hsl(var(--buildersstream-blue));
    color: white !important;
    text-decoration: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 300ms ease-in-out;
}

.header-cta:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* ================== FOOTER ================== */

.site-footer {
    background-color: #111827;
    color: white;
    padding: 1.5rem 1rem;
    margin-top: 3rem;
}

.footer-container {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.footer-text {
    font-size: 0.875rem;
    margin: 0;
}

@media (min-width: 768px) {
    .site-footer {
        padding: 1.5rem 2rem;
    }
}

/* ================== RESPONSIVE ADJUSTMENTS ================== */

/* Mobile First - Base Styles Already Defined Above */

/* Small tablets and up (640px+) */
@media (min-width: 640px) {
    .header-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .section-container,
    .section-container-narrow,
    .section-container-wide {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .form-container {
        padding: 3rem;
    }
    
    .hero-content {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .mobile-menu-button {
        display: none;
    }
    
    .main-nav {
        display: flex;
    }
    
    .mobile-nav {
        display: none !important;
    }
}

/* Tablets and up (768px+) */
@media (min-width: 768px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .header-cta {
        display: flex;
        margin-left: 2rem;
    }
    
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .cta-buttons {
        flex-direction: row;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .header-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .section-container,
    .section-container-narrow,
    .section-container-wide {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .hero-content {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large Desktop (1280px+) */
@media (min-width: 1280px) {
    .header-container {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
    
    .section-container,
    .section-container-narrow,
    .section-container-wide {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

/* Mobile Specific Adjustments (max-width: 639px) */
@media (max-width: 639px) {
    .mobile-menu-button {
        display: flex;
    }
    
    .main-nav {
        display: none;
    }
    
    .header-cta {
        display: none;
    }
    
    .logo-link {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-content {
        padding: 3rem 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .tour-section {
        margin-top: 3rem;
    }
}

/* Extra Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .header-container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .section-container,
    .section-container-narrow,
    .section-container-wide {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .hero-content {
        padding: 2rem 0.75rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    .logo-link {
        font-size: 1.25rem;
    }
}
