/* Import Design System Variables */
@import 'Theme/variables.css';

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body, 'Lato', sans-serif);
    background-color: var(--bg-darker);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading, 'Cinzel', serif);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 0;
    transition: all var(--transition-slow);
}

.site-header.scrolled {
    padding: 1rem 0;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: var(--glass-border);
    box-shadow: var(--glass-shadow);
}

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

.header-logo {
    height: 60px;
    filter: drop-shadow(0 0 5px rgba(220, 20, 60, 0.3));
    transition: transform var(--transition-fast);
}

.header-logo:hover {
    transform: scale(1.05);
}

.site-nav ul {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-link {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    position: relative;
    opacity: 0.8;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-crimson);
    transition: width var(--transition-fast);
}

.nav-link:hover {
    opacity: 1;
    color: var(--color-crimson);
}

.nav-link:hover::after {
    width: 100%;
}

.cta-link {
    border: 1px solid var(--color-gold);
    padding: 0.5rem 1.5rem;
    border-radius: 2px;
    color: var(--color-gold);
}

.cta-link:hover {
    background: var(--color-gold);
    color: var(--bg-darker);
    opacity: 1;
}

.cta-link::after {
    display: none;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: var(--bg-darker);
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(220, 20, 60, 0.15) 0%, transparent 70%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-crest-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

.hero-crest {
    max-height: 400px;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
    animation: float 6s ease-in-out infinite;
}

.crest-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: var(--color-crimson);
    filter: blur(80px);
    opacity: 0.2;
    z-index: -1;
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

.hero-title {
    font-size: 5rem;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.hero-title span {
    display: block;
}

.text-kindness {
    font-weight: 900;
}

.text-is {
    font-weight: 300;
    font-style: italic;
    color: var(--color-crimson);
}

.text-weakness {
    font-weight: 900;
}

.hero-tagline {
    font-size: 1.5rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.hero-divider {
    width: 50px;
    height: 2px;
    background: var(--color-gold);
    margin: 1rem auto;
}

.hero-latin {
    font-family: var(--font-heading);
    color: var(--color-gold);
    letter-spacing: 3px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
    z-index: 10;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.arrow-down {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-primary);
    border-bottom: 2px solid var(--text-primary);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

/* About Section */
.about-section {
    padding: 8rem 0;
    background-color: var(--bg-dark);
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.content-card {
    background: var(--bg-surface);
    padding: 4rem;
    border-radius: 8px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.section-title {
    font-size: 3rem;
    color: var(--color-crimson);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-gold);
}

.about-text .lead {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-weight: 300;
}

.highlight {
    color: var(--color-crimson);
    font-weight: 700;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Contact Section */
.contact-section {
    padding: 8rem 0;
    background: linear-gradient(to bottom, var(--bg-dark) 0%, var(--bg-darker) 100%);
    text-align: center;
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.primary-btn {
    display: inline-block;
    margin-top: 3rem;
    padding: 1.2rem 4rem;
    background: transparent;
    border: 1px solid var(--color-crimson);
    color: var(--color-crimson);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.primary-btn:hover {
    background: var(--color-crimson);
    color: var(--bg-darker);
    box-shadow: 0 0 30px var(--color-crimson-glow);
}

/* Footer */
.site-footer {
    background-color: #000;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--color-gold-muted);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    height: 50px;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

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

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.footer-content p {
    color: #444;
    font-size: 0.8rem;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.15;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.25;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.15;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) rotate(45deg);
    }

    40% {
        transform: translateY(-10px) rotate(45deg);
    }

    60% {
        transform: translateY(-5px) rotate(45deg);
    }
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Content Pages (Global) */
.page-header {
    padding-top: 8rem;
    /* Default Desktop Padding */
    text-align: center;
}

.page-content {
    padding-top: 2rem;
    padding-bottom: 6rem;
}

.text-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-surface);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.text-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.text-content h2 {
    color: var(--color-gold);
    font-size: 2rem;
    margin-top: 2.5rem;
    /* Increased separation before heading */
    margin-bottom: 0.5rem;
    /* Reduced gap after heading */
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    padding-bottom: 0.2rem;
    /* Reduced padding */
}

.text-content h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-top: 2.5rem;
    /* Increased separation before sub-heading */
    margin-bottom: 0.5rem;
}

blockquote {
    border-left: 4px solid var(--color-crimson);
    background: rgba(220, 20, 60, 0.05);
    margin: 3rem 0;
    /* More distinct separation for quotes */
    padding: 1.5rem 2rem;
    font-style: italic;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    position: relative;
}

blockquote::before {
    content: '"';
    font-size: 4rem;
    color: var(--color-crimson);
    opacity: 0.2;
    position: absolute;
    top: -10px;
    left: 10px;
}

blockquote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--color-gold);
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 0 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
        flex-direction: column;
        gap: 0;
    }

    .hero-tagline {
        font-size: 1.2rem;
        padding: 0 1rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .site-nav ul {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0 1rem;
    }

    .nav-link {
        font-size: 0.8rem;
    }

    /* Fix Philosophy Overflow */
    .about-section,
    .contact-section {
        padding: 4rem 0;
    }

    /* Mobile Hero & Page Header Adjustments */
    .hero-section,
    .page-header {
        padding-top: 240px;
        /* Standardized mobile padding for fixed header */
    }

    .hero-section {
        min-height: 100dvh;
        height: auto;
        padding-bottom: 8rem;
    }

    .hero-crest {
        max-height: 250px;
        /* Reduce crest size significantly */
    }

    .hero-title {
        margin-bottom: 2rem;
    }

    .content-card {
        padding: 3rem 1.5rem;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
        word-wrap: break-word;
    }

    .section-title::after {
        width: 40px;
    }

    .about-text .lead {
        font-size: 1.2rem;
    }

    /* Content page adjustments */
    .text-content {
        padding: 2rem 1.5rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .text-content h2 {
        font-size: 1.5rem;
    }
}

/* Small mobile devices */
@media (max-width: 380px) {
    .hero-title {
        font-size: 2rem;
    }

    .site-nav ul {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.75rem;
    }
}