/* Safe Place Housing - Comprehensive Stylesheet */

/* ============================================
   GENERAL STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: #333;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.7rem 1rem;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(255,255,255,0.2);
}

.nav-menu a.crisis-link {
    background: #e74c3c;
    font-weight: 700;
}

.nav-menu a.crisis-link:hover {
    background: #c0392b;
}

/* ============================================
   CRISIS BANNER
   ============================================ */
.crisis-banner {
    background: #e74c3c;
    color: white;
    padding: 12px 0;
    text-align: center;
    font-weight: 600;
}

.crisis-banner p {
    margin: 0;
}

.crisis-banner strong {
    font-size: 1.1rem;
}

/* ============================================
   HERO SECTIONS
   ============================================ */
.hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.2);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

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

.page-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary {
    background: white;
    color: #667eea;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
}

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

/* ============================================
   SECTIONS
   ============================================ */
section {
    padding: 70px 0;
}

.content-section {
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0 auto;
    border-radius: 2px;
}

.intro-text {
    font-size: 1.25rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.content-block {
    max-width: 900px;
    margin: 0 auto;
}

.content-block p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.content-block h3 {
    color: #667eea;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.content-block ul {
    margin: 1rem 0 1.5rem 2rem;
    line-height: 1.9;
}

.content-block li {
    margin-bottom: 0.7rem;
}

/* ============================================
   NOTICE BOXES
   ============================================ */
.important-notice {
    background: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 25px;
    margin: 30px 0;
    border-radius: 5px;
}

.important-notice h3 {
    color: #856404;
    margin-bottom: 1rem;
}

.important-notice p {
    color: #856404;
    line-height: 1.8;
}

.important-notice ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.warning-box {
    background: #f8d7da;
    border-left: 5px solid #d32f2f;
    padding: 25px;
    margin: 30px 0;
    border-radius: 5px;
}

.warning-box h3 {
    color: #721c24;
    margin-bottom: 1rem;
}

.warning-box p,
.warning-box li {
    color: #721c24;
    line-height: 1.8;
}

.warning-box ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

/* ============================================
   CARDS & GRIDS
   ============================================ */
.mission-cards,
.purpose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.mission-card,
.purpose-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
}

.mission-card:hover,
.purpose-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    border-color: #667eea;
}

.card-icon,
.purpose-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.mission-card h3,
.purpose-card h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.mission-card p,
.purpose-card p {
    color: #666;
    line-height: 1.7;
}

/* ============================================
   VALUES SECTION
   ============================================ */
.values-section {
    background: #f8f9fa;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.value-item {
    background: white;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.value-item h3 {
    color: #667eea;
    margin-bottom: 1rem;
}

.value-item p {
    color: #666;
    line-height: 1.7;
}

/* ============================================
   STEPS / PROCESS
   ============================================ */
.how-we-help {
    background: white;
}

.help-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.step {
    text-align: center;
    padding: 30px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step h3 {
    color: #333;
    margin-bottom: 1rem;
}

.step p {
    color: #666;
    line-height: 1.7;
}

/* ============================================
   PROVIDED / AMENITIES
   ============================================ */
.provided-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.provided-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.provided-item h4 {
    color: #667eea;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.provided-item p {
    color: #666;
    font-size: 0.95rem;
}

/* ============================================
   STAY INFO
   ============================================ */
.stay-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.stay-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #e0e0e0;
}

.stay-card.primary-stay {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
}

.stay-card.important-stay {
    border-color: #ffc107;
    background: #fff3cd;
}

.stay-card h3 {
    color: #667eea;
    margin-bottom: 1rem;
}

.stay-card p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.stay-card ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.stay-card li {
    margin-bottom: 0.7rem;
}

/* ============================================
   FOR LIST
   ============================================ */
.for-list {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin: 20px 0;
}

.for-list li {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* ============================================
   CAPACITY & AVAILABILITY
   ============================================ */
.capacity-overview {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin: 40px 0;
}

.capacity-stat {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    min-width: 200px;
}

.stat-number {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.capacity-stat p {
    font-size: 1.1rem;
    font-weight: 500;
}

.status-note {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    color: #1976d2;
}

/* ============================================
   ROOMS GRID
   ============================================ */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.room-card {
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
}

.room-card.available {
    border-color: #4caf50;
}

.room-card.occupied {
    border-color: #f44336;
    opacity: 0.6;
}

.room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.room-header h3 {
    color: #333;
    font-size: 1.5rem;
}

.status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.available-badge {
    background: #4caf50;
    color: white;
}

.occupied-badge {
    background: #f44336;
    color: white;
}

.room-details p {
    margin-bottom: 0.7rem;
    color: #666;
}

.status-text {
    font-weight: 600;
    color: #4caf50;
}

/* ============================================
   LEGEND
   ============================================ */
.legend {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 30px 0;
}

.legend h4 {
    color: #333;
    margin-bottom: 1rem;
}

.legend-items {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-color {
    width: 30px;
    height: 30px;
    border-radius: 5px;
    border: 2px solid #333;
}

.available-color {
    background: #4caf50;
}

.occupied-color {
    background: #f44336;
}

/* ============================================
   ROOM AMENITIES
   ============================================ */
.room-amenities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.amenity-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
}

.amenity-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.amenity-item h4 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

.amenity-item p {
    color: #666;
    font-size: 0.95rem;
}

/* ============================================
   SHARED SPACES
   ============================================ */
.shared-spaces {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.shared-card {
    background: #fff9e6;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #ffc107;
}

.shared-card h4 {
    color: #856404;
    margin-bottom: 1rem;
}

.shared-card p {
    color: #856404;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   ALTERNATIVES LIST
   ============================================ */
.alternatives-list {
    background: #e3f2fd;
    padding: 25px;
    border-radius: 10px;
    margin: 20px 0;
}

.alternatives-list li {
    margin-bottom: 1rem;
    color: #1976d2;
    line-height: 1.8;
}

/* ============================================
   QUALIFICATIONS
   ============================================ */
.qualifications-list {
    margin: 30px 0;
}

.qualification-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
}

.qualification-item.required {
    border-color: #667eea;
}

.qual-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.qual-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.qual-header h3 {
    flex: 1;
    color: #333;
    font-size: 1.4rem;
}

.required-badge {
    background: #e74c3c;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.qual-content {
    padding-left: 65px;
}

.qual-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.qual-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.qual-content li {
    margin-bottom: 0.7rem;
    line-height: 1.7;
}

.qual-content .note {
    background: #fff3cd;
    padding: 15px;
    border-radius: 8px;
    margin-top: 1rem;
    font-style: italic;
}

/* ============================================
   STAY REQUIREMENTS
   ============================================ */
.stay-requirements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.stay-box {
    background: white;
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #e0e0e0;
}

.stay-box.important {
    border-color: #e74c3c;
    background: #ffebee;
}

.stay-box h3 {
    color: #667eea;
    margin-bottom: 1rem;
}

.stay-box p {
    line-height: 1.8;
}

/* ============================================
   CHECKLIST
   ============================================ */
.checklist {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
    border: 2px solid #e0e0e0;
}

.checklist h3 {
    color: #333;
    margin-bottom: 1.5rem;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 1rem;
    padding: 10px;
}

.checklist-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    cursor: pointer;
    flex-shrink: 0;
}

.checklist-item label {
    font-size: 1.05rem;
    line-height: 1.7;
    cursor: pointer;
}

.checklist-result {
    background: #e8f5e9;
    padding: 20px;
    border-radius: 10px;
    margin-top: 2rem;
    border-left: 4px solid #4caf50;
}

.checklist-result p {
    color: #2e7d32;
    font-weight: 500;
    line-height: 1.8;
}

/* ============================================
   CONTRACT / RULES
   ============================================ */
.contract-section {
    background: white;
    border: 3px solid #667eea;
    border-radius: 15px;
    padding: 40px;
    margin: 40px 0;
}

.contract-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 3px solid #667eea;
}

.contract-header h2 {
    color: #667eea;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.contract-subtitle {
    color: #666;
    font-style: italic;
}

.contract-content h3 {
    color: #667eea;
    font-size: 1.4rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.contract-content h3:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.contract-content h4 {
    color: #333;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.7rem;
}

.rule-box {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin: 1.5rem 0;
    border-left: 4px solid #667eea;
}

.rule-box.critical {
    background: #ffebee;
    border-left-color: #e74c3c;
}

.rule-box p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.rule-box ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.rule-box li {
    margin-bottom: 0.7rem;
    line-height: 1.7;
}

/* ============================================
   SIGNATURE SECTION
   ============================================ */
.signature-section {
    background: #e8f5e9;
    padding: 40px;
    border-radius: 15px;
    margin-top: 40px;
    border: 2px solid #4caf50;
}

.signature-section h3 {
    color: #2e7d32;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.6rem;
}

.acknowledgment-box {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.acknowledgment-box p {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.acknowledgment-box ul {
    padding-left: 2rem;
}

.acknowledgment-box li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.signature-fields {
    margin-top: 2rem;
}

.sig-field {
    margin-bottom: 2rem;
}

.sig-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.sig-line {
    border-bottom: 2px solid #333;
    min-height: 40px;
    margin-top: 5px;
}

.final-notice {
    background: #fff3cd;
    padding: 20px;
    border-radius: 10px;
    margin-top: 2rem;
    text-align: center;
}

.final-notice p {
    color: #856404;
    font-weight: 600;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 70px 20px;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #2d3748;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #a0aec0;
}

.footer-section p {
    color: #cbd5e0;
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.confidential-notice {
    background: #e74c3c;
    padding: 8px 12px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #4a5568;
    color: #a0aec0;
}

.safety-notice {
    font-size: 0.9rem;
    color: #ffc107;
    margin-top: 10px;
}

/* ============================================
   TEXT UTILITIES
   ============================================ */
.text-link {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.3s ease;
}

.text-link:hover {
    border-bottom-color: #667eea;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 968px) {
    .nav-menu {
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .qual-content {
        padding-left: 0;
    }

    .contract-section {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .capacity-overview {
        flex-direction: column;
    }

    .rooms-grid,
    .qualifications-list,
    .stay-requirements {
        grid-template-columns: 1fr;
    }

    .qual-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .navbar,
    .crisis-banner,
    .footer,
    .cta-section,
    .hero,
    .page-hero {
        display: none;
    }

    .contract-section {
        border: 2px solid #000;
        page-break-inside: avoid;
    }

    .sig-line {
        border-bottom: 2px solid #000;
    }
}
