/* XIDOIT Brand Styles */
:root {
    --white: #FFFFFF;
    --black: #000000;
    --brand-red: #E11900;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--black);
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.25rem;
    font-weight: 700;
}

h3 {
    font-size: 1.875rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--gray-700);
}

a {
    color: var(--black);
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    position: sticky;
    top: 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-200);
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    letter-spacing: -0.02em;
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav a {
    color: var(--gray-700);
    font-weight: 500;
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--black);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    font-size: 1rem;
    line-height: 1.5;
}

.btn-primary {
    background-color: var(--brand-red);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #c51600;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--black);
    border: 2px solid var(--black);
}

.btn-secondary:hover {
    background-color: var(--black);
    color: var(--white);
}

.btn-ghost {
    background-color: transparent;
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
}

.btn-ghost:hover {
    border-color: var(--black);
    color: var(--black);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    margin-bottom: 1.5rem;
}

.hero .subhead {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.card {
    background-color: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 0.5rem;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--black);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.card h3 {
    margin-bottom: 1rem;
}

.card p {
    margin-bottom: 1.5rem;
    color: var(--gray-600);
}

.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray-100);
    border-radius: 0.5rem;
    font-size: 1.5rem;
}

/* Division Cards (Homepage) */
.division-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 4rem 0;
}

@media (min-width: 768px) {
    .division-cards {
        grid-template-columns: 1fr 1fr;
    }
}

.division-card {
    background-color: var(--white);
    border: 3px solid var(--black);
    border-radius: 0.75rem;
    padding: 3rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.division-card:hover {
    background-color: var(--gray-50);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.division-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.division-card p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Trust Bar */
.trust-bar {
    background-color: var(--gray-50);
    padding: 2rem;
    border-radius: 0.5rem;
    margin: 3rem 0;
    text-align: center;
}

.trust-items {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    font-weight: 600;
    color: var(--gray-700);
}

.trust-items span::before {
    content: "·";
    margin-right: 2rem;
    color: var(--gray-400);
}

.trust-items span:first-child::before {
    display: none;
}

/* Section */
.section {
    padding: 5rem 0;
}

.section-gray {
    background-color: var(--gray-50);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--gray-600);
}

/* Value Props */
.value-props {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.value-prop {
    padding: 1.5rem;
    border-left: 3px solid var(--brand-red);
    background-color: var(--white);
}

.value-prop h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.value-prop p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: 0.375rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--black);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.form-selector .btn {
    flex: 1;
    min-width: 200px;
}

.form-selector .btn.active {
    background-color: var(--black);
    color: var(--white);
}

/* Footer */
footer {
    background-color: var(--gray-900);
    color: var(--gray-400);
    padding: 3rem 0 2rem;
    margin-top: 5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-content p {
    color: var(--gray-400);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.8;
}

.footer-content a {
    color: var(--gray-300);
}

.footer-content a:hover {
    color: var(--white);
}

/* Neighborhoods */
.neighborhoods {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.neighborhood-badge {
    padding: 0.5rem 1rem;
    background-color: var(--gray-100);
    border-radius: 2rem;
    font-weight: 500;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 0.75rem;
    max-width: 600px;
    width: 90%;
    position: relative;
    margin: 2rem;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-500);
    background: none;
    border: none;
}

.modal-close:hover {
    color: var(--black);
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.hidden {
    display: none;
}

/* Success Message */
.success-message {
    background-color: #10B981;
    color: white;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    display: none;
}

.success-message.show {
    display: block;
}

.error-message {
    background-color: var(--brand-red);
    color: white;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    display: none;
}

.error-message.show {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
}
