/* style.css */
:root {
    /* Color Palette derived from the Seal */
    --primary: #4a154b; /* Deep vivid purple */
    --primary-light: #733c75;
    --primary-dark: #31005a;
    --secondary: #d4c4e2; /* Soft lavender */
    --secondary-light: #f1ebf5;
    --bg-color: #fcfafc; /* Very soft warm white */
    --text-main: #2b2131;
    --text-muted: #5e5264;
    --white: #ffffff;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --container-width: 1100px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --shadow-soft: 0 4px 20px rgba(74, 21, 75, 0.08);
    --shadow-hover: 0 10px 30px rgba(74, 21, 75, 0.12);
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

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

a:hover {
    color: var(--primary-light);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.seal-img {
    height: 60px;
    width: 60px;
    object-fit: contain;
    border-radius: 50%;
    /* Soft border frame for seal */
    border: 2px solid var(--secondary);
    padding: 2px;
}

.logo-text h1 {
    margin: 0;
    font-size: 1.6rem;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.logo-text .est {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-nav a {
    font-weight: 500;
    color: var(--text-main);
    position: relative;
    padding-bottom: 5px;
}

.main-nav a.active, .main-nav a:hover {
    color: var(--primary);
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    padding: 8rem 0;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6)), url('../assets/sanctuary-hero.png') center/cover no-repeat;
    text-align: center;
    border-bottom: 1px solid var(--secondary);
}

.hero-content h2 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--white);
    text-shadow: 0 3px 15px rgba(0,0,0,0.6);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--secondary-light);
    max-width: 800px;
    margin: 0 auto 2.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    font-weight: 500;
}

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

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white) !important;
    box-shadow: 0 4px 15px rgba(74, 21, 75, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 21, 75, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary) !important;
    border-color: var(--primary);
}

.btn-secondary:hover {
    background-color: var(--secondary-light);
    transform: translateY(-2px);
}

/* Hero specific button overrides */
.hero-actions .btn-secondary {
    color: var(--white) !important;
    border-color: var(--white);
    background-color: rgba(0, 0, 0, 0.2);
}

.hero-actions .btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-dark) !important;
}

/* Features grid */
.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    padding: 5rem 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border-top: 4px solid var(--secondary);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--primary);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Banner */
.banner-purple {
    background-color: var(--primary);
    color: var(--white);
    padding: 4rem 0;
}

.banner-purple blockquote {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.banner-purple cite {
    font-size: 1rem;
    color: var(--secondary);
    font-weight: 600;
    letter-spacing: 1px;
}

.text-center {
    text-align: center;
}

/* Footer */
.site-footer {
    background-color: var(--primary-dark);
    color: var(--secondary-light);
    padding: 4rem 0 0;
}

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

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

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

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: var(--secondary);
}

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

.footer-bottom {
    background-color: rgba(0,0,0,0.2);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--secondary);
    text-decoration: underline;
}

@media (max-width: 768px) {
    body, html {
        overflow-x: hidden;
    }
    
    .container {
        padding: 0 1.2rem;
    }
    
    /* Header */
    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 1.5rem 0 1rem;
        gap: 0.8rem;
    }
    .logo {
        margin-bottom: 0.2rem;
    }
    .seal-img {
        height: 50px;
        width: 50px;
    }
    .logo-text h1 {
        font-size: 1.4rem;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem 1.2rem;
        padding: 0 0.5rem;
    }
    .main-nav a {
        font-size: 0.95rem;
    }

    /* Hero */
    .hero-section {
        padding: 4rem 1rem;
    }
    .hero-content h2 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        gap: 0.8rem;
    }
    .hero-actions .btn {
        width: 100%;
    }

    /* Features Grid */
    .features-section {
        padding: 3rem 1rem;
        gap: 1.5rem;
    }
    .feature-card {
        padding: 1.5rem;
    }
    
    /* Advanced Mobile Normalizer for Inline Desktop Layouts */
    *[style*="padding: 4rem"], 
    *[style*="padding: 3.5rem"], 
    *[style*="padding: 3rem"],
    *[style*="padding: 4rem 2rem"] {
        padding: 1.8rem 1.2rem !important;
    }
    
    /* Typography scaling */
    h1[style*="font-size: 2.5rem"],
    h2[style*="font-size: 2.5rem"] {
        font-size: 1.8rem !important;
    }
    h2[style*="font-size: 3rem"],
    h2[style*="font-size: 2.2rem"] {
        font-size: 1.8rem !important;
    }
    
    /* Seal scaling under founding members */
    img[style*="height: 140px"] {
        width: 100px !important;
        height: 100px !important;
    }
    
    /* Footer elements */
    footer [style*="gap: 2rem"] {
        gap: 1rem !important;
    }
}
