/* ===========================================
   Sukoon: Muslim Marriage - Static Website
   Shared Styles for Legal Pages
   =========================================== */

:root {
    --primary: #5B8A72;
    --primary-dark: #4A7260;
    --primary-light: #7BA896;
    --accent-gold: #D4A574;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a68;
    --text-muted: #6b6b8a;
    --bg-primary: #fafbfc;
    --bg-secondary: #ffffff;
    --border-light: #e8e8ef;
    --success: #34C759;
    --warning: #FF9500;
    --error: #FF3B30;
    --info: #007AFF;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; color: var(--primary); margin: 48px 0 24px; padding-bottom: 12px; border-bottom: 2px solid var(--border-light); }
h3 { font-size: 1.2rem; color: var(--text-primary); margin: 32px 0 16px; font-family: 'Inter', sans-serif; font-weight: 600; }
h4 { font-size: 1rem; color: var(--text-primary); margin: 24px 0 12px; font-family: 'Inter', sans-serif; font-weight: 600; }

p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

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

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

strong {
    color: var(--text-primary);
    font-weight: 600;
}

ul, ol {
    margin: 16px 0 24px 24px;
    color: var(--text-secondary);
}

li {
    margin-bottom: 10px;
    padding-left: 8px;
}

li::marker {
    color: var(--primary);
}

/* Navigation */
.nav {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.nav-logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.nav-logo:hover {
    text-decoration: none;
    color: var(--primary-dark);
}

.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0;
    padding: 0;
}

.nav-links a {
    display: block;
    padding: 8px 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 20px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--primary);
    color: white;
    text-decoration: none;
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 16px 24px;
        border-bottom: 1px solid var(--border-light);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        padding: 12px 16px;
        border-radius: 8px;
    }
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 60px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.header h1 {
    color: white;
    margin-bottom: 16px;
    font-size: 2.5rem;
}

.header .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 24px;
}

.header .meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    opacity: 0.85;
}

.header .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 768px) {
    .header {
        padding: 40px 20px;
    }
    
    .header h1 {
        font-size: 1.75rem;
    }
    
    .header .meta {
        flex-direction: column;
        gap: 12px;
    }
}

/* Main Content */
.main {
    flex: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 24px;
    width: 100%;
}

.content-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 48px;
}

@media (max-width: 768px) {
    .main {
        padding: 32px 16px;
    }
    
    .content-card {
        padding: 24px 20px;
        border-radius: 12px;
    }
}

/* Highlight Boxes */
.highlight-box {
    background: linear-gradient(135deg, rgba(91, 138, 114, 0.08) 0%, rgba(91, 138, 114, 0.04) 100%);
    border-left: 4px solid var(--primary);
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 0 12px 12px 0;
}

.highlight-box p {
    margin: 0;
    color: var(--text-primary);
}

.info-box {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.08) 0%, rgba(0, 122, 255, 0.04) 100%);
    border-left: 4px solid var(--info);
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 0 12px 12px 0;
}

.warning-box {
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.1) 0%, rgba(255, 149, 0, 0.05) 100%);
    border-left: 4px solid var(--warning);
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 0 12px 12px 0;
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin: 24px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

th, td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

th {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

tr:hover {
    background: #f8f9fa;
}

td:first-child {
    font-weight: 500;
    color: var(--text-primary);
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

.card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.card h4 {
    color: var(--primary);
    margin: 0 0 12px 0;
    font-size: 1rem;
}

.card ul {
    margin: 0;
    padding-left: 20px;
    font-size: 0.9rem;
}

.card li {
    margin-bottom: 6px;
}

/* TOC */
.toc {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 40px;
}

.toc h3 {
    margin-top: 0;
    color: var(--primary);
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
}

.toc ol {
    margin: 16px 0 0;
    padding-left: 24px;
}

.toc li {
    margin-bottom: 8px;
}

.toc a {
    color: var(--text-secondary);
}

.toc a:hover {
    color: var(--primary);
    text-decoration: none;
}

/* Legal Text */
.legal-caps {
    font-size: 0.95rem;
    background: #f8f9fa;
    padding: 20px 24px;
    border-radius: 12px;
    margin: 24px 0;
    line-height: 1.8;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 48px 24px;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin: 0;
    padding: 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-gold);
    text-decoration: none;
}

.footer-contact {
    margin-bottom: 24px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.footer-contact a {
    color: var(--accent-gold);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin: 0;
}

/* Print Styles */
@media print {
    .nav, .footer {
        display: none;
    }
    
    .header {
        background: white;
        color: black;
        padding: 20px;
    }
    
    .header h1 {
        color: black;
    }
    
    .content-card {
        box-shadow: none;
        padding: 0;
    }
    
    body {
        background: white;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

