/* Custom Properties (Variables) */
:root {
    /* Core Colors */
    --primary: #81001c;
    --primary-container: #a6192e;
    --on-primary: #ffffff;
    
    --secondary: #515f7a;
    
    --tertiary: #735c00;
    --tertiary-fixed: #ffe088;
    
    --surface: #fcf9f6;
    --surface-low: #f6f3f0;
    --surface-lowest: #ffffff;
    --surface-container: #f0edea;
    
    --on-surface: #1c1c1a;
    --on-surface-variant: #594040;
    --on-background: #1c1c1a;
    --outline: #8d7070;
    --outline-variant: #e1bebe;

    /* Typography */
    --font-headline: 'Noto Serif', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --nav-height: 5rem;
}

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

body {
    background-color: var(--surface);
    color: var(--on-surface);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background-color: var(--primary-container);
    color: var(--on-primary);
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography Utilities */
h1, h2, h3, h4, .font-headline {
    font-family: var(--font-headline);
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

.icon-filled {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Shadows */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-large { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

/* Layout Utilities */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 768px) {
    .container { padding: 0 2rem; }
}

@media (min-width: 1024px) {
    .container { padding: 0 3rem; }
}

.section-padding { padding: 6rem 0; }
@media (min-width: 1024px) {
    .section-padding { padding: 8rem 0; }
}

.bg-surface { background-color: var(--surface); }
.bg-surface-low { background-color: var(--surface-low); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    border-radius: 9999px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
}

.btn:active { transform: scale(0.95); }

.btn-primary {
    background-color: var(--primary);
    color: var(--on-primary);
}

.btn-primary:hover {
    background-color: var(--primary-container);
}

/* Navigation (Consistent Across Pages) */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    background-color: rgba(252, 249, 246, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    height: 9vh;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.logo {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
}


.nav-links {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-links { display: flex; }
}

.nav-links a {
    color: var(--secondary);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--primary); }

.nav-links a.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.25rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.icon-group {
    display: none;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .icon-group { display: flex; }
}

.icon-btn {
    color: var(--secondary);
    cursor: pointer;
    transition: color 0.3s;
}

.icon-btn:hover { color: var(--primary); }

.nav-btn { display: none; }

@media (min-width: 1024px) {
    .nav-btn { display: inline-flex; }
}

.mobile-menu-btn {
    display: block;
    color: var(--on-surface);
}

@media (min-width: 768px) {
    .mobile-menu-btn { display: none; }
}

/* Mobile Menu Styles */
@media (max-width: 767px) {
    .nav-links.nav-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background-color: var(--surface);
        padding: 1rem 1.5rem 2rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        z-index: 49;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .nav-links.nav-open a {
        width: 100%;
        padding: 1rem;
        text-align: center;
        border-bottom: 1px solid var(--surface-container);
    }

    .nav-links.nav-open a:last-child {
        border-bottom: none;
    }
}

/* Hero Section */
.hero-about {
    position: relative;
    width: 100%;
    height: 60vh;
    margin-top: var(--nav-height);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 10;
}

.hero-content {
    position: relative;
    z-index: 20;
    width: 100%;
    padding-bottom: 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    line-height: 1.1;
    letter-spacing: -0.025em;
    max-width: 48rem;
}

@media (min-width: 768px) {
    .hero-content h1 { font-size: 4.5rem; }
}

/* Motto Section */
.motto-section {
    background-color: var(--primary);
    height: 40vh;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.motto-content {
    position: relative;
    z-index: 10;
}

.motto-subtitle {
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.motto-text {
    font-family: var(--font-headline);
    font-size: 2.25rem;
    font-weight: 700;
    font-style: italic;
    color: white;
    line-height: 1.2;
}

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

.motto-line {
    width: 6rem;
    height: 0.25rem;
    background-color: var(--tertiary-fixed);
    margin: 2rem auto 0;
    border-radius: 9999px;
}

.motto-decoration {
    position: absolute;
    top: -8rem;
    right: -8rem;
    width: 16rem;
    height: 16rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
}

/* History Section */
.history-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .history-grid { grid-template-columns: 5fr 7fr; gap: 4rem; }
}

.history-image-col h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .history-image-col h2 { font-size: 3rem; }
}

.image-frame {
    aspect-ratio: 4 / 5;
    border-radius: 0.75rem;
    overflow: hidden;
}

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

.history-content-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.history-intro p {
    color: var(--on-surface-variant);
    font-size: 1.125rem;
    line-height: 1.625;
    margin-bottom: 1.5rem;
}

.history-intro .intro-lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--on-surface);
}

.timeline {
    margin-top: 2rem;
    margin-left: 1rem;
    border-left: 2px solid rgba(225, 190, 190, 0.5);
    padding-left: 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.timeline-item {
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -2.6rem;
    top: 0;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: rgba(129, 0, 28, 0.4);
    box-shadow: 0 0 0 4px var(--surface);
}

.dot-active {
    background-color: var(--primary);
}

.timeline-item h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--on-background);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.timeline-item p {
    color: var(--on-surface-variant);
    line-height: 1.625;
}

/* Values Section */
.section-header-center {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header-center h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--on-background);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-header-center h2 { font-size: 2.5rem; }
}

.section-header-center p {
    color: var(--secondary);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

@media (min-width: 1024px) {
    .values-grid { grid-template-columns: repeat(3, 1fr); }
    .card-wide { grid-column: span 1; }
}

.value-card {
    background-color: var(--surface-lowest);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.icon-box {
    width: 3.5rem;
    height: 3.5rem;
    background-color: rgba(129, 0, 28, 0.1);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: background-color 0.3s ease;
}

.value-card:hover .icon-box {
    background-color: var(--primary);
}

.icon-box .material-symbols-outlined {
    color: var(--primary);
    font-size: 1.875rem;
    transition: color 0.3s ease;
}

.value-card:hover .material-symbols-outlined {
    color: white;
}

.value-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--on-background);
    margin-bottom: 1rem;
}

.value-card p {
    color: var(--on-surface-variant);
    line-height: 1.625;
}

.values-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    list-style: none;
}

.values-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--on-surface);
}

.values-list .icon-filled {
    color: var(--primary);
    font-size: 1.25rem;
}

.value-card:hover .values-list .icon-filled {
    color: var(--primary); /* Maintain primary color for list icons on hover */
}

/* Leadership Section */
.leadership-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

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

.leadership-image-col {
    position: relative;
}

.accent-circle {
    position: absolute;
    top: -1.5rem;
    left: -1.5rem;
    width: 8rem;
    height: 8rem;
    background-color: rgba(129, 0, 28, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.leadership-image-frame {
    position: relative;
    z-index: 10;
    border-radius: 1rem;
    overflow: hidden;
    transform: rotate(1deg);
    transition: transform 0.5s ease;
}

.leadership-image-frame:hover {
    transform: rotate(0deg);
}

.leadership-image-frame img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.leadership-content-col {
    display: flex;
    flex-direction: column;
}

.quote-icon {
    font-size: 3.75rem;
    color: rgba(129, 0, 28, 0.2);
    margin-bottom: 1.5rem;
}

.leadership-content-col h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--on-background);
    margin-bottom: 2rem;
}

.leadership-content-col blockquote {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--secondary);
    line-height: 1.625;
    margin-bottom: 2.5rem;
}

.leader-info h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.leader-info p {
    color: var(--on-surface-variant);
    font-weight: 500;
}

/* Footer (Consistent Across Pages) */
.footer {
    background-color: var(--surface-container);
    border-top: 1px solid rgba(225, 190, 190, 0.2);
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

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

.footer-logo {
    font-family: var(--font-headline);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--on-background);
    margin-bottom: 1.5rem;
}

.footer-contact {
    color: var(--secondary);
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}

.footer-links h4 {
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
}

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

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--secondary);
    font-size: 0.875rem;
    transition: color 0.3s, text-decoration-color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: var(--primary);
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(225, 190, 190, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--secondary);
}

@media (min-width: 768px) {
    .footer-bottom { flex-direction: row; }
}

.footer-badges {
    display: flex;
    gap: 2rem;
}