/* =========================================
   Katha Movie Makers - Cinematic Storytelling
   Root Variables & Reset
   ========================================= */

:root {
    /* New Palette based on 'Katha' Logo */
    --color-primary: #C5A065;
    /* Elegant Gold */
    --color-primary-hover: #E5C085;
    --color-secondary: #4A1915;
    /* Deep Maroon */

    --color-bg: #0a0808;
    /* Warm Cinematic Black */
    --color-surface: #120f0f;
    /* Slightly lighter black for cards */

    --color-text: #E5E5E5;
    /* Soft White */
    --color-text-muted: #A09090;

    --font-main: 'Lato', sans-serif;
    --font-heading: 'Cinzel', serif;
    /* Cinematic/Classic */

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    --container-width: 1400px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg);
    background-image: radial-gradient(circle at center, #1a1212 0%, #0a0808 100%);
    /* Subtle vignette */
    color: var(--color-text);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img,
video {
    max-width: 100%;
    display: block;
}

/* =========================================
   Typography
   ========================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.text-primary {
    color: var(--color-primary);
}

.heading-xl {
    font-size: clamp(3rem, 7vw, 5.5rem);
}

.heading-lg {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.heading-md {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.text-lead {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    font-weight: 300;
    max-width: 700px;
    letter-spacing: 0.02em;
}

/* =========================================
   Layout & Utilities
   ========================================= */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

.grid {
    display: grid;
    gap: var(--spacing-md);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.flex {
    display: flex;
    gap: var(--spacing-md);
}

.flex-center {
    align-items: center;
    justify-content: center;
}

.flex-between {
    justify-content: space-between;
    align-items: center;
}

.flex-column {
    flex-direction: column;
}

.hidden {
    display: none;
}

/* =========================================
   Components
   ========================================= */

/* Button */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary), #a67c40);
    color: #000;
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1rem;
    border: 1px solid var(--color-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(197, 160, 101, 0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 101, 0.4);
    filter: brightness(1.1);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
}

.btn-outline:hover {
    background: rgba(197, 160, 101, 0.1);
    color: #fff;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--spacing-md) 0;
    transition: background 0.3s ease, padding 0.3s ease;
}

.header.scrolled {
    background-color: rgba(10, 8, 8, 0.95);
    backdrop-filter: blur(10px);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(197, 160, 101, 0.2);
}

.nav-link {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    margin-left: var(--spacing-md);
    color: var(--color-text);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
    text-shadow: 0 0 10px rgba(197, 160, 101, 0.5);
}

.logo img {
    height: 50px;
    /* Slightly larger for the new logo shape */
    width: auto;
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    object-fit: cover;
    opacity: 0.5;
    /* Richer cinematic darkness */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 8, 8, 0.3) 0%, rgba(10, 8, 8, 0.8) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    padding: var(--spacing-md);
}

.hero-content h1 {
    margin-bottom: var(--spacing-md);
    line-height: 1;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
    font-weight: 300;
    color: #ddd;
}

/* Identity Statement */
.identity-section {
    position: relative;
    border-top: 1px solid rgba(197, 160, 101, 0.1);
}

.identity-text {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.3;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

/* Detailed Sections (Common) */
.service-block,
.feature-card {
    background: var(--color-surface);
    border: 1px solid rgba(197, 160, 101, 0.1);
    border-radius: 4px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.service-block:hover,
.feature-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
}

/* Strengths */
.strengths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    border-top: 1px solid rgba(197, 160, 101, 0.1);
    padding-top: var(--spacing-lg);
}

.strength-card h3 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    font-size: 1.75rem;
}

.strength-card p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

/* Brands Grid */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--spacing-md);
    align-items: center;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.brands-grid img {
    /* Safe approach: Uniform cards */
    background-color: #ffffff;
    padding: 1rem;
    width: 100%;
    max-width: 160px;
    height: 100px;
    object-fit: contain;
    border-radius: 4px;
    opacity: 0.8;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.brands-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(197, 160, 101, 0.3);
}

/* Proof / Stats */
.stats-section {
    background: var(--color-surface);
    border-top: 1px solid rgba(197, 160, 101, 0.1);
    border-bottom: 1px solid rgba(197, 160, 101, 0.1);
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    text-align: center;
}

.stat-block h2 {
    color: var(--color-primary);
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to bottom, #C5A065, #856030);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-block p {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
}

/* CTA Footer */
.footer-cta {
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.footer-cta h2 {
    margin-bottom: var(--spacing-md);
}

.footer-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* Footer Bottom */
.site-footer {
    border-top: 1px solid rgba(197, 160, 101, 0.1);
    padding: var(--spacing-md) 0;
    text-align: center;
    color: #555;
    font-size: 0.8rem;
}

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 768px) {
    .heading-xl {
        font-size: 2.5rem;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    /* Mobile Menu Hack */
    .header .flex-between {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        margin-left: 0;
    }

    .stats-grid {
        flex-direction: column;
    }
}