/* ============================================
   Auri Sacra Fames LLC - Website Styles
   ============================================ */

/* CSS Variables */
:root {
    /* Colors */
    --gold: hsl(38, 60%, 45%);
    --gold-light: hsl(38, 65%, 60%);
    --gold-dark: hsl(38, 55%, 35%);
    --charcoal: hsl(30, 10%, 6%);
    --charcoal-light: hsl(30, 8%, 10%);
    --charcoal-lighter: hsl(30, 8%, 15%);
    --cream: hsl(38, 25%, 90%);
    --cream-muted: hsl(38, 15%, 55%);
    
    /* Gradients */
    --gradient-gold: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
    --gradient-dark: linear-gradient(180deg, var(--charcoal), var(--charcoal-light));
    --gradient-radial: radial-gradient(ellipse at center, var(--charcoal-light) 0%, var(--charcoal) 70%);
    
    /* Shadows */
    --shadow-gold: 0 4px 30px -5px hsla(38, 60%, 45%, 0.3);
    --shadow-gold-hover: 0 8px 40px -5px hsla(38, 60%, 45%, 0.5);
    
    /* Typography */
    --font-display: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --section-padding: 6rem 1.5rem;
    --container-max: 1200px;
}

@media (min-width: 768px) {
    :root {
        --section-padding: 8rem 3rem;
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--charcoal);
    color: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.025em;
    line-height: 1.2;
}

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

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

/* Utilities */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-gradient {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-primary {
    color: var(--gold);
}

.font-display {
    font-family: var(--font-display);
}

.glow-gold {
    filter: drop-shadow(0 0 20px hsla(38, 60%, 45%, 0.4));
}

.hidden {
    display: none !important;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

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

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

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

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background-color 0.5s, backdrop-filter 0.5s, border-color 0.5s;
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background-color: hsla(30, 10%, 6%, 0.9);
    backdrop-filter: blur(16px);
    border-bottom-color: hsla(38, 15%, 20%, 1);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
}

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

.logo-img {
    width: 2.5rem;
    height: 2.5rem;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    color: var(--cream);
    display: none;
}

@media (min-width: 640px) {
    .logo-text {
        display: inline;
    }
}

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

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

.nav-link {
    font-size: 0.875rem;
    color: var(--cream-muted);
    transition: color 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: var(--gold);
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: none;
    border: none;
    color: var(--cream);
    cursor: pointer;
}

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

.menu-icon, .close-icon {
    width: 1.5rem;
    height: 1.5rem;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 90;
    background-color: hsla(30, 10%, 6%, 0.98);
    backdrop-filter: blur(16px);
    padding-top: 6rem;
    display: none;
}

.mobile-menu.open {
    display: block;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
}

.mobile-nav-link {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--cream);
    transition: color 0.3s;
}

.mobile-nav-link:hover {
    color: var(--gold);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-radial);
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: radial-gradient(circle at 2px 2px, hsla(38, 60%, 45%, 0.3) 1px, transparent 0);
    background-size: 40px 40px;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background-color: hsla(38, 60%, 45%, 0.05);
    filter: blur(64px);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

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

@media (min-width: 768px) {
    .hero-logo {
        margin-bottom: 3rem;
    }
}

.hero-logo img {
    width: 10rem;
    height: auto;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .hero-logo img {
        width: 14rem;
    }
}

@media (min-width: 1024px) {
    .hero-logo img {
        width: 16rem;
    }
}

.hero-subtitle {
    color: var(--cream-muted);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1rem;
    }
}

.hero-title {
    font-size: 2.25rem;
    margin-bottom: 2rem;
    line-height: 1.1;
}

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

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-description {
    max-width: 42rem;
    margin: 0 auto 3rem;
    font-size: 1.125rem;
    color: var(--cream-muted);
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.25rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: var(--font-display);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 0.25rem;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--charcoal);
}

.btn-primary:hover {
    box-shadow: var(--shadow-gold-hover);
    transform: scale(1.05);
}

.btn-large {
    padding: 1rem 2.5rem;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: var(--section-padding);
    position: relative;
}

.section-dark {
    background: var(--gradient-dark);
}

.section-card {
    background-color: var(--charcoal-light);
}

.section-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 33%;
    height: 100%;
    background: linear-gradient(to left, hsla(38, 60%, 45%, 0.05), transparent);
    pointer-events: none;
}

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

.section-subtitle {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.875rem;
    color: var(--cream);
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

.section-divider {
    width: 6rem;
    height: 1px;
    background: var(--gradient-gold);
    margin: 0 auto;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
    max-width: 64rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.about-text p {
    font-size: 1.125rem;
    color: var(--cream-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-card {
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    border: 1px solid transparent;
    background: linear-gradient(var(--charcoal-light), var(--charcoal-light)) padding-box,
                var(--gradient-gold) border-box;
    transition: box-shadow 0.3s;
}

.stat-card:hover {
    box-shadow: var(--shadow-gold);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.875rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .stat-number {
        font-size: 2.25rem;
    }
}

.stat-label {
    font-size: 0.75rem;
    color: var(--cream-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-grid {
    display: grid;
    gap: 2rem;
    max-width: 72rem;
    margin: 0 auto;
}

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

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    padding: 2rem;
    border-radius: 0.5rem;
    background-color: hsla(30, 10%, 6%, 0.5);
    border: 1px solid hsla(38, 15%, 20%, 1);
    transition: border-color 0.5s, box-shadow 0.5s;
}

.service-card:hover {
    border-color: hsla(38, 60%, 45%, 0.5);
    box-shadow: var(--shadow-gold);
}

.service-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: hsla(38, 20%, 18%, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: background 0.3s, transform 0.3s;
}

.service-card:hover .service-icon {
    background: var(--gradient-gold);
    transform: scale(1.1);
}

.service-icon svg {
    width: 1.75rem;
    height: 1.75rem;
    color: var(--gold);
    transition: color 0.3s;
}

.service-card:hover .service-icon svg {
    color: var(--charcoal);
}

.service-title {
    font-size: 1.25rem;
    color: var(--cream);
    margin-bottom: 0.75rem;
}

.service-description {
    color: var(--cream-muted);
    line-height: 1.7;
}

/* ============================================
   PHILOSOPHY SECTION
   ============================================ */
.philosophy-decor {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.decor-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--gold);
    opacity: 0.1;
    filter: blur(4px);
}

.decor-circle-1 {
    width: 16rem;
    height: 16rem;
    top: 5rem;
    left: 5rem;
}

.decor-circle-2 {
    width: 24rem;
    height: 24rem;
    bottom: 5rem;
    right: 5rem;
}

.philosophy-content {
    text-align: center;
    max-width: 56rem;
    margin: 0 auto 3rem;
}

.philosophy-quote {
    margin-bottom: 2rem;
}

.quote-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-style: italic;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.5;
}

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

.quote-translation {
    font-size: 1.125rem;
    color: var(--cream-muted);
    font-style: italic;
    margin-bottom: 2rem;
}

.quote-attribution {
    font-size: 0.875rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.philosophy-cards {
    display: grid;
    gap: 2rem;
    max-width: 56rem;
    margin: 0 auto;
}

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

.philosophy-card {
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    background: linear-gradient(var(--charcoal-light), var(--charcoal-light)) padding-box,
                var(--gradient-gold) border-box;
}

.philosophy-card-title {
    font-size: 1.25rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.philosophy-card-text {
    color: var(--cream-muted);
    line-height: 1.7;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-grid {
    display: grid;
    gap: 2rem;
    max-width: 56rem;
    margin: 0 auto;
}

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

.contact-card {
    text-align: center;
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid hsla(38, 15%, 20%, 1);
    transition: border-color 0.3s;
}

.contact-card:hover {
    border-color: hsla(38, 60%, 45%, 0.5);
}

.contact-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: hsla(38, 20%, 18%, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.contact-icon svg {
    width: 1.75rem;
    height: 1.75rem;
    color: var(--gold);
}

.contact-title {
    font-size: 1.125rem;
    color: var(--cream);
    margin-bottom: 0.5rem;
}

.contact-text {
    font-size: 0.875rem;
    color: var(--cream-muted);
    line-height: 1.6;
}

.contact-link {
    font-size: 0.875rem;
    color: var(--cream-muted);
    transition: color 0.3s;
    position: relative;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.contact-link:hover {
    color: var(--gold);
}

.contact-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.contact-cta {
    text-align: center;
    margin-top: 4rem;
}

.cta-text {
    color: var(--cream-muted);
    margin-bottom: 1.5rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 3rem 1.5rem;
    background-color: var(--charcoal);
    border-top: 1px solid hsla(38, 15%, 20%, 1);
    text-align: center;
}

.footer-logo {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    opacity: 0.7;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-link {
    font-size: 0.875rem;
    color: var(--cream-muted);
    transition: color 0.3s;
}

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

.footer-divider {
    width: 100%;
    max-width: 20rem;
    height: 1px;
    background: var(--gradient-gold);
    opacity: 0.3;
    margin: 0 auto 2rem;
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--cream-muted);
}

.footer-legal {
    font-size: 0.75rem;
    color: hsla(38, 15%, 55%, 0.6);
    margin-top: 0.5rem;
}
