/* NS Trust Website - Main Stylesheet */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

/* CSS Variables */
:root {
    --primary-color: #D4AF37;
    --navy-color: #003366;
    --background-light: #fcfcfc;
    --background-dark: #001a33;
    --charcoal: #1b120d;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-light);
    color: var(--charcoal);
    line-height: 1.6;
}

.serif-title {
    font-family: 'Playfair Display', serif;
}

.body-font {
    font-family: 'Inter', sans-serif;
}

/* Header Styles */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 51, 102, 0.05);
}

/* Navigation Styles */
nav a {
    color: rgba(0, 51, 102, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
}

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

nav a.active {
    color: var(--navy-color);
    font-weight: bold;
}

/* Desktop Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    z-index: 1000;
}

/* Desktop: Show dropdown on hover */
@media (min-width: 769px) {
    .dropdown:hover .dropdown-content {
        display: block;
    }
    
    .dropdown:hover .dropdown-toggle .material-symbols-outlined {
        transform: rotate(180deg);
    }
    
    .dropdown-toggle .material-symbols-outlined {
        transition: transform 0.3s ease;
    }
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--navy-color);
    opacity: 0.7;
    text-decoration: none;
}

.dropdown-content a:hover {
    background: rgba(212, 175, 55, 0.1);
    opacity: 1;
}

/* Mobile Menu Styles */
.mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out;
}

.mobile-menu.active {
    max-height: 800px;
    opacity: 1;
}

/* Mobile Dropdown Styles */
.mobile-dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.mobile-dropdown-content.active {
    max-height: 300px;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.dropdown-arrow.rotated {
    transform: rotate(180deg);
}

/* Footer Styles */
footer {
    background: white;
    color: rgba(0, 51, 102, 0.4);
    padding: 6rem 1.5rem;
    border-top: 1px solid rgba(0, 51, 102, 0.05);
}

.footer-container {
    max-width: 1440px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo-text {
    color: var(--navy-color);
    font-size: 1.25rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-description {
    font-size: 0.875rem;
    max-width: 20rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-links a {
    color: rgba(0, 51, 102, 0.2);
    transition: color 0.3s;
}

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

.footer-section h4 {
    color: var(--navy-color);
    font-size: 0.625rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
}

.footer-links a {
    color: rgba(0, 51, 102, 0.4);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

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

.footer-bottom {
    padding-top: 2.5rem;
    border-top: 1px solid rgba(0, 51, 102, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.footer-bottom-links {
    display: flex;
    gap: 2.5rem;
}

.footer-bottom-links a {
    color: rgba(0, 51, 102, 0.4);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom-links a:hover {
    color: var(--navy-color);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
    }
}

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

.section-padding {
    padding: 4rem 1.5rem;
}

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

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
