/* ===================================
   VoxSprout.tech - Academia/Classical Design System
   =================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Texture Overlay */
.texture-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

/* Vignette Overlay */
.vignette-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    background: radial-gradient(ellipse at center, transparent 0%, transparent 50%, rgba(28, 23, 20, 0.4) 100%);
}

/* Navigation Links */
.nav-link {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #C9A962;
    transition: all 300ms ease-out;
    position: relative;
}

.nav-link:hover {
    letter-spacing: 0.2em;
    color: #D4B872;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #1C1714;
    background: linear-gradient(180deg, #D4B872 0%, #C9A962 50%, #B8953F 100%);
    padding: 0.75rem 2rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 300ms ease-out;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4), -1px -1px 1px rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
                inset 0 -1px 0 rgba(0, 0, 0, 0.2),
                0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    filter: brightness(1.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
                inset 0 -1px 0 rgba(0, 0, 0, 0.2),
                0 4px 12px rgba(201, 169, 98, 0.3);
}

.btn-primary:active {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    display: inline-block;
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #C9A962;
    background: transparent;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    border: 2px solid #C9A962;
    cursor: pointer;
    transition: all 300ms ease-out;
}

.btn-secondary:hover {
    background: #8B2635;
    border-color: #8B2635;
    color: #E8DFD4;
}

/* Ornate Frame - Large (Hero) */
.ornate-frame-large {
    position: relative;
    background: rgba(37, 30, 25, 0.5);
    border: 1px solid #4A3F35;
    border-radius: 4px;
}

.ornate-frame-large::before,
.ornate-frame-large::after {
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid #C9A962;
}

.ornate-frame-large::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.ornate-frame-large::after {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

/* Ornate Frame - Small (Cards) */
.ornate-frame {
    position: relative;
}

.ornate-frame::before,
.ornate-frame::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    border: 1px solid #C9A962;
    opacity: 0.6;
    transition: opacity 300ms ease-out;
}

.ornate-frame::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.ornate-frame::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.ornate-frame:hover::before,
.ornate-frame:hover::after {
    opacity: 1;
}

/* Arch-Top Images */
.arch-top {
    border-radius: 40% 40% 0 0 / 20% 20% 0 0;
    overflow: hidden;
    aspect-ratio: 4 / 5;
}

/* Sepia Image Effect */
.sepia-image {
    filter: sepia(0.6) contrast(0.95) brightness(0.9);
    transition: all 700ms ease-out;
}

.sepia-image:hover {
    filter: sepia(0) contrast(1) brightness(1);
}

/* Stats */
.stat-item {
    text-align: center;
    transition: all 300ms ease-out;
    padding: 1rem;
    border-radius: 4px;
}

.stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 600;
    color: #E8DFD4;
    margin-bottom: 0.5rem;
    transition: all 300ms ease-out;
}

.stat-label {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #9C8B7A;
    transition: all 300ms ease-out;
}

.stat-item:hover {
    background: rgba(37, 30, 25, 0.5);
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
    color: #C9A962;
}

.stat-item:hover .stat-label {
    color: #C9A962;
}

/* Drop Cap */
.drop-cap::first-letter {
    font-family: 'Cinzel', serif;
    font-size: 4.5rem;
    line-height: 0.8;
    float: left;
    margin-right: 1rem;
    margin-top: 0.2rem;
    color: #C9A962;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Ornate Divider */
.ornate-divider {
    position: relative;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #4A3F35 20%, #C9A962 50%, #4A3F35 80%, transparent 100%);
    margin: 2rem 0;
}

.ornate-divider::before {
    content: "✶";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #C9A962;
    font-size: 12px;
    background: #251E19;
    padding: 0 12px;
}

/* Feature Cards */
.feature-card {
    background: #251E19;
    border: 1px solid #4A3F35;
    border-radius: 4px;
    padding: 2rem;
    transition: all 300ms ease-out;
    position: relative;
}

.feature-card::before,
.feature-card::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    border: 1px solid #C9A962;
    opacity: 0.6;
    transition: opacity 300ms ease-out;
}

.feature-card::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.feature-card::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.feature-card:hover {
    border-color: rgba(201, 169, 98, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before,
.feature-card:hover::after {
    opacity: 1;
}

.icon-container {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 1px solid rgba(201, 169, 98, 0.3);
    background: #1C1714;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C9A962;
    margin-bottom: 1rem;
}

/* Benefit Cards */
.benefit-card {
    background: #251E19;
    border: 1px solid #4A3F35;
    border-radius: 4px;
    padding: 2rem;
    transition: all 300ms ease-out;
}

.benefit-card:hover {
    border-color: rgba(201, 169, 98, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Pricing Cards */
.pricing-card {
    background: #251E19;
    border: 2px solid #4A3F35;
    border-radius: 4px;
    padding: 2.5rem 2rem;
    transition: all 300ms ease-out;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(201, 169, 98, 0.1);
}

.pricing-card:hover {
    border-color: rgba(201, 169, 98, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3),
                inset 0 0 0 1px rgba(201, 169, 98, 0.2);
}

.pricing-card.featured {
    border-color: #C9A962;
    box-shadow: 0 0 0 2px #C9A962,
                inset 0 0 0 1px rgba(201, 169, 98, 0.2);
}

.pricing-card.featured:hover {
    box-shadow: 0 8px 24px rgba(201, 169, 98, 0.3),
                0 0 0 2px #C9A962,
                inset 0 0 0 1px rgba(201, 169, 98, 0.3);
}

/* Wax Seal Badge */
.wax-seal {
    position: absolute;
    top: -1rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #A63D4A, #8B2635);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E8DFD4;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.2),
                inset 0 -2px 4px rgba(0, 0, 0, 0.3),
                0 4px 8px rgba(0, 0, 0, 0.4);
}

/* Testimonial Cards */
.testimonial-card {
    background: #251E19;
    border: 1px solid #4A3F35;
    border-radius: 4px;
    padding: 2rem;
    transition: all 300ms ease-out;
}

.testimonial-card:hover {
    border-color: rgba(201, 169, 98, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* FAQ Items */
.faq-item {
    background: #251E19;
    border: 1px solid #4A3F35;
    border-radius: 4px;
    overflow: hidden;
    transition: all 300ms ease-out;
}

.faq-item:hover {
    border-color: rgba(201, 169, 98, 0.5);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    color: #E8DFD4;
    font-family: 'Crimson Pro', serif;
    font-size: 1.125rem;
    text-align: left;
    cursor: pointer;
    transition: all 300ms ease-out;
}

.faq-question:hover {
    color: #C9A962;
}

.faq-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #C9A962;
    transition: transform 300ms ease-out;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 500ms ease-out, padding 300ms ease-out;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-answer p {
    color: #9C8B7A;
    line-height: 1.625;
}

/* Input Field */
.input-field {
    background: #251E19;
    border: 1px solid #4A3F35;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    color: #E8DFD4;
    font-family: 'Crimson Pro', serif;
    font-size: 1rem;
    transition: all 300ms ease-out;
}

.input-field::placeholder {
    color: #9C8B7A;
    font-style: italic;
}

.input-field:focus {
    outline: none;
    border-color: #C9A962;
    box-shadow: 0 0 0 2px rgba(201, 169, 98, 0.3);
}

/* Footer Links */
.footer-link {
    color: #9C8B7A;
    font-size: 0.875rem;
    transition: all 300ms ease-out;
    text-decoration: none;
}

.footer-link:hover {
    color: #C9A962;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Social Links */
.social-link {
    color: #9C8B7A;
    transition: all 300ms ease-out;
}

.social-link:hover {
    color: #C9A962;
    transform: scale(1.1);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .ornate-frame-large::before,
    .ornate-frame-large::after {
        width: 24px;
        height: 24px;
    }
    
    .drop-cap::first-letter {
        font-size: 3rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .wax-seal {
        right: 1rem;
    }
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus {
    outline: 2px solid #C9A962;
    outline-offset: 2px;
}

/* Smooth Scrolling Offset for Fixed Nav */
section {
    scroll-margin-top: 80px;
}
