/* --- Design Tokens --- */
:root {
    --primary: #0a192f;
    --primary-light: #162a4a;
    --accent-text: #8b6d2d; 
    --accent-ui: #c5a35d;   
    --accent-bright: #d4bc8a; /* For hover glow */
    --text-main: #1a1a1a;
    --text-muted: #4b5563;
    --white: #ffffff;
    --bg-soft: #f3f4f6;
    --focus-ring: #2563eb;
    /* The "Kosmos" curve: Smooth start, slow finish */
    --ease-premium: cubic-bezier(0.25, 1, 0.5, 1);
    --transition: all 0.4s var(--ease-premium);
}

/* --- Accessibility & Animations Setup --- */
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    * { transition: none !important; animation: none !important; }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-premium), transform 0.8s var(--ease-premium);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Global Styles --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* --- Header & Nav Interactions --- */
header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

header.header-scrolled {
    padding: 0.75rem 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    padding: 0.5rem 0;
}

/* Premium underline animation */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--accent-ui);
    transition: width 0.3s var(--ease-premium);
}

.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--accent-text); }

/* --- Buttons --- */
.btn-cta {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-cta:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(10, 25, 47, 0.2);
}

.btn-hero-accent {
    background: var(--accent-ui);
    color: var(--primary);
}

.btn-hero-accent:hover {
    background: var(--accent-bright);
    color: var(--primary);
    box-shadow: 0 10px 20px rgba(197, 163, 93, 0.3);
}

/* --- Hero Section --- */
.hero {
    padding: 16rem 0 12rem;
    background: var(--primary);
    color: white;
    position: relative;
}

.hero-bg-img {
    position: absolute; right: 0; top: 0;
    width: 40%; height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: grayscale(100%);
    transition: opacity 2s var(--ease-premium);
}

.hero:hover .hero-bg-img { opacity: 0.4; }

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: 2rem;
}

/* --- Cards & Services --- */
.services { padding: 10rem 0; background: var(--bg-soft); }

.card {
    background: var(--white);
    padding: 4rem 3rem;
    border-top: 5px solid var(--accent-ui);
    position: relative;
    transition: var(--transition);
    cursor: default;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    border-top-color: var(--accent-text);
}

.card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.card:hover h3 { color: var(--accent-text); }

.card-num {
    position: absolute; bottom: 1.5rem; right: 2rem;
    font-size: 5rem; font-weight: 700;
    color: rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.card:hover .card-num {
    color: rgba(139, 109, 45, 0.1);
    transform: scale(1.1);
}

/* --- Social Icons --- */
.social-icons a {
    color: white;
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--accent-ui);
    color: var(--primary);
    transform: translateY(-5px) rotate(8deg);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    nav { display: none; }
    .hero { text-align: center; padding: 10rem 0 6rem; }
    .hero-bg-img { display: none; }
}