/* Main CSS for SFIB Theme */

:root {
    /* Colors */
    --background: #fdfbf7;
    /* 30 20% 98% */
    --foreground: #321b42;
    /* 270 30% 15% */

    --primary: #8a33b8;
    /* 270 60% 45% */
    --primary-foreground: #ffffff;

    --secondary: #659c2e;
    /* 90 35% 45% */
    --secondary-foreground: #ffffff;

    --muted: #eeeadd;
    /* 30 15% 92% */
    --muted-foreground: #73677a;
    /* 270 15% 40% */

    --accent: #e6c031;
    /* 45 80% 55% */
    --accent-foreground: #321b42;

    --border: #e6e0eb;

    /* Custom SFIB Colors */
    --iris-purple: #8a33b8;
    --iris-purple-light: #b87ad6;
    --iris-purple-dark: #4d1c66;
    --garden-green: #659c2e;
    --golden-yellow: #e6c031;

    /* Gradients */
    --gradient-iris: linear-gradient(135deg, #8a33b8 0%, #b352cb 50%, #d194e0 100%);
    --gradient-hero: linear-gradient(180deg, rgba(138, 51, 184, 0.9) 0%, rgba(77, 28, 102, 0.95) 100%);
    --gradient-golden: linear-gradient(135deg, #e6c031 0%, #d99a26 100%);

    /* Shadows */
    --shadow-soft: 0 4px 20px -2px rgba(138, 51, 184, 0.15);
    --shadow-elevated: 0 20px 50px -10px rgba(138, 51, 184, 0.2);

    /* Layout */
    --container-width: 1152px;
    /* 6xl = 1152px roughly */
    --header-height: 80px;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    margin-top: 0;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities */
.container {
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
    margin-right: auto;
    margin-left: auto;
}

.container-narrow {
    max-width: var(--container-width);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 1.25rem 0;
    transition: all 0.3s ease;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
    color: white;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
    color: var(--foreground);
    padding: 0.75rem 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--gradient-iris);
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-letter {
    color: white;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.25rem;
}

.brand-text {
    display: none;
}

@media (min-width: 640px) {
    .brand-text {
        display: block;
    }
}

.brand-title {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.125rem;
    margin: 0;
}

.brand-subtitle {
    font-size: 0.75rem;
    opacity: 0.8;
    margin: 0;
}

/* Navigation */
.main-navigation {
    display: none;
}

@media (min-width: 1024px) {
    .main-navigation {
        display: block;
    }
}

.nav-menu {
    display: flex;
    gap: 0.25rem;
}

.nav-menu li a {
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.nav-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.site-header.scrolled .nav-menu li a:hover {
    background-color: var(--muted);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    padding: 0.5rem;
}

@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.hamburger-icon {
    display: block;
    width: 24px;
    height: 2px;
    background-color: currentColor;
    position: relative;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: currentColor;
    transition: all 0.2s;
}

.hamburger-icon::before {
    top: -8px;
}

.hamburger-icon::after {
    bottom: -8px;
}

.mobile-menu-container {
    display: none;
    /* Toggled via JS */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    padding: 1rem;
    box-shadow: var(--shadow-elevated);
    color: var(--foreground);
}

.mobile-menu-container.is-open {
    display: block;
    animation: slideUp 0.3s ease-out;
}

.mobile-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-menu li a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
}

.mobile-nav-menu li a:hover {
    background-color: var(--muted);
}

.mobile-cta {
    margin-top: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    opacity: 0.9;
    box-shadow: var(--shadow-elevated);
}

.btn-hero-outline {
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    color: white;
}

.btn-hero-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.site-header.scrolled .btn-hero-outline,
.header-cta .btn {
    /* If header is scrolled, CTA usually matches standard styling or primary */
}

.site-header.scrolled .btn-hero-outline {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

/* Footer */
.site-footer {
    background-color: var(--foreground);
    color: var(--primary-foreground);
}

.footer-grid {
    display: grid;
    gap: 3rem;
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }
}

.footer-heading {
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-menu li {
    margin-bottom: 0.75rem;
}

.footer-menu a {
    font-size: 0.875rem;
    opacity: 0.7;
}

.footer-menu a:hover {
    opacity: 1;
}

.footer-description {
    font-size: 0.875rem;
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
}

.footer-bottom-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.6;
}

@media (min-width: 768px) {
    .footer-bottom-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}