/* Obsidian & Ink Design System */
:root {
    --background: #131313;
    --primary: #960000;
    --primary-container: #960000;
    --secondary: #C5A059;
    --on-background: #E5E2E1;
    --surface-lowest: #0E0E0E;
    --surface-low: #1C1B1B;
    --surface-high: #2A2A2A;
    --surface-highest: #353534;
    --outline-variant: rgba(91, 64, 60, 0.2);
    
    --font-headline: 'Newsreader', serif;
    --font-body: 'Manrope', sans-serif;
    
    --spacing-xs: 1.4rem; /* 4 */
    --spacing-sm: 2rem;   /* 6 */
    --spacing-md: 5.5rem;  /* 16 */
    --spacing-lg: 8.5rem;  /* 24 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0 !important; /* Force 0px radius */
}

body {
    background-color: var(--background);
    color: var(--on-background);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

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

h1, h2, h3, .serif {
    font-family: var(--font-headline);
    font-weight: 400;
}

.italic {
    font-style: italic;
}

/* Structural Minimalism - No 1px borders */
section {
    border: none !important;
}

.border-bottom-gold {
    border-bottom: 2px solid var(--secondary);
}

/* Glass & Gradient Rule */
.glass-nav {
    background: rgba(19, 19, 19, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Hero Background System */
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--hero-url);
    background-size: cover;
    background-position: center;
    opacity: 0;
    filter: contrast(1.1) brightness(0.6) grayscale(0.3);
    z-index: 0;
    animation: hero-reveal 2s ease-out 0.5s forwards;
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

.hero-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 50% 50%, rgba(139, 0, 0, 0.15) 0%, rgba(19, 19, 19, 0) 80%),
        radial-gradient(circle at 20% 30%, rgba(197, 160, 89, 0.08) 0%, rgba(19, 19, 19, 0) 60%);
    pointer-events: none;
    z-index: 1;
}

/* Texture Overlay for Premium Look */
section.relative::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3%3Cfilter id='noiseFilter'%3%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3%3C/filter%3%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3%3C/svg%3");
}

/* Typography Refinement */
.font-headline {
    letter-spacing: -0.02em;
    word-spacing: 0.1em;
}

.glow-text {
    text-shadow: 0 0 30px rgba(150, 0, 0, 0.4);
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: var(--on-background);
    padding: 1.4rem 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 800;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.75rem;
}

.btn-primary:hover {
    background: linear-gradient(to right, #960000, #b72115);
    filter: brightness(1.2);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary);
    border: 1px solid rgba(197, 160, 89, 0.2) !important; /* Ghost border rule */
    padding: 1.4rem 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 800;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.75rem;
}

.btn-secondary:hover {
    background: rgba(197, 160, 89, 0.05);
}

/* Inputs */
input, textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--outline-variant) !important;
    color: var(--on-background);
    padding: 0.5rem 0;
    width: 100%;
    font-family: var(--font-body);
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-bottom-color: var(--secondary) !important;
}

/* Signature Chip */
.chip {
    background: var(--surface-highest);
    color: var(--secondary);
    padding: 0.5rem 1rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    display: inline-block;
}

/* Special Typography */
.display-lg {
    font-size: 3.5rem;
    letter-spacing: -0.05em;
    line-height: 1.1;
}

.headline-lg {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.label-md {
    font-size: 0.75rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.3em;
}

/* Spacing Helpers */
.gap-hero { margin: var(--spacing-md); }
.gap-section { margin-top: var(--spacing-lg); margin-bottom: var(--spacing-lg); }
.padding-component { padding: var(--spacing-sm); }

/* Animations */
@keyframes hero-reveal {
    from { opacity: 0; transform: translateY(40px) skewY(2deg); }
    to { opacity: 1; transform: translateY(0) skewY(0); }
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-hero-reveal {
    animation: hero-reveal 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
}

.animate-fade-in {
    animation: fade-in 1s ease-out forwards;
}

/* Service Cards & SEO Sections */
.service-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(197, 160, 89, 0.3);
    transform: translateY(-5px);
}

.service-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.6s ease;
}

.service-card:hover::after {
    width: 100%;
}

.text-balance {
    text-wrap: balance;
}

.section-divider {
    width: 60px;
    height: 1px;
    background: var(--primary);
    margin: 2rem 0;
}

/* Typography for long content */
.prose-premium p {
    color: #a8a29e;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.prose-premium h4 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-family: var(--font-headline);
    font-style: italic;
}
