@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Outfit:wght@300;400;600;700&display=swap');

:root {
    /* Color Palette */
    --primary: #0f172a; /* Deep charcoal/blue */
    --secondary: #1d4ed8; /* Vibrant blue */
    --accent: #f59e0b; /* Amber/Gold */
    --background: #f8fafc; /* Light slate */
    --surface: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    
    /* Spacing */
    --section-spacing: 80px;
    --container-width: 1200px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-outfit {
    font-family: 'Outfit', sans-serif;
}

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

ul {
    list-style: none;
}

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

/* Layout */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    height: 90px; /* Increased from 60px */
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-light);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--secondary);
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    background: var(--primary);
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Services Section */
.services {
    padding: var(--section-spacing) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Info Section (RSS, Calendar, Links) */
.info-section {
    background: #eff6ff;
    padding: var(--section-spacing) 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.info-block h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.links-list li {
    margin-bottom: 0.75rem;
}

.links-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.links-list a:hover {
    color: var(--secondary);
}

#rss-feed li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

#rss-feed li:last-child {
    border-bottom: none;
}

/* Calendar Wrapper */
.calendar-wrapper {
    background: white;
    padding: 10px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.calendar-wrapper iframe {
    width: 100%;
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo-centered {
    text-align: center;
    margin-bottom: 2.5rem;
    width: 100%;
}

.footer-logo-centered img {
    height: 150px; /* Increased from 80px */
    width: auto;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Newsletter-like section for Granada silhouette */
.granada-footer {
    height: 150px;
    background: url('images/modern/footer_bg.png') no-repeat center bottom;
    background-size: contain;
    opacity: 0.1;
    margin-top: 0; /* Removed negative margin to prevent overlap */
    pointer-events: none;
}

/* Internal Pages */
.page-content {
    padding: var(--section-spacing) 0;
    min-height: 60vh;
}

.page-content h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.page-content h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

.page-content h2 {
    font-size: 1.75rem;
    color: var(--primary);
    margin: 2rem 0 1rem;
}

.page-content p {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 1.5rem;
    max-width: 900px;
    opacity: 0.85;
}

.page-content ul {
    margin: 1.5rem 0 2.5rem 1.5rem;
    list-style: none;
}

.page-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text);
    opacity: 0.85;
}

.page-content ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

/* Responsiveness */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .nav-links {
        display: none; /* simple hidden for now, could add burger */
    }
    .hero {
        height: 60vh;
    }
}
