/* Krsiv. - Brand Styles */

:root {
    --black: #0a0a0a;
    --dark: #1a1a1a;
    --charcoal: #2d2d2d;
    --gray: #6b6b6b;
    --light-gray: #a0a0a0;
    --off-white: #f5f5f3;
    --white: #ffffff;
    --accent: #c9463d;
    --accent-hover: #a83830;
    --accent-soft: rgba(201, 70, 61, 0.08);
    --font-main: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: Georgia, 'Times New Roman', serif;
    --max-width: 1100px;
    --shadow: 0 2px 20px rgba(0,0,0,0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-main);
    color: var(--dark);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 8px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.6em;
    font-weight: 700;
    color: var(--black);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 80px;
    width: auto;
}

/* Animated logo */
.nav-logo-animated {
    width: 240px;
    height: 120px;
    background-image: url('../assets/krsiv-logo-frames.png');
    background-size: 300% 200%;
    background-position: 100% 100%;
    animation: writelogo 2.4s steps(1) 1 forwards;
    animation-delay: 0.5s;
}

@keyframes writelogo {
    0%   { background-position: 0% 0%; }
    16%  { background-position: 50% 0%; }
    32%  { background-position: 100% 0%; }
    48%  { background-position: 0% 100%; }
    64%  { background-position: 50% 100%; }
    80%, 100% { background-position: 100% 100%; }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray);
    font-size: 0.95em;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--black);
}

.nav-cta {
    padding: 8px 20px !important;
    background: var(--black) !important;
    color: var(--white) !important;
    border-radius: 6px;
    font-size: 0.9em !important;
    transition: background 0.2s !important;
}

.nav-cta:hover {
    background: var(--charcoal) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--black);
    transition: 0.2s;
}

/* Hero */
.hero {
    padding: 180px 40px 120px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: 3.8em;
    font-weight: 700;
    line-height: 1.15;
    color: var(--black);
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.hero-sub {
    font-size: 1.25em;
    color: var(--gray);
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--dark);
    border: 1px solid var(--dark);
}

.btn-ghost:hover {
    background: var(--dark);
    color: var(--white);
}

/* Sections */
.section {
    padding: 100px 40px;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.4em;
    font-weight: 700;
    color: var(--black);
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-sub {
    font-size: 1.1em;
    color: var(--gray);
    max-width: 700px;
    margin-bottom: 48px;
    line-height: 1.7;
}

/* Value Props Grid */
.props-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.prop-card {
    padding: 36px 28px;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    transition: all 0.2s;
}

.prop-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.prop-icon {
    font-size: 1.4em;
    color: var(--accent);
    margin-bottom: 16px;
}

.prop-card h3 {
    font-size: 1.15em;
    color: var(--black);
    margin-bottom: 10px;
    font-weight: 600;
}

.prop-card p {
    font-size: 0.95em;
    color: var(--gray);
    line-height: 1.6;
}

/* Philosophy */
.philosophy {
    background: var(--off-white);
}

.philosophy-content {
    max-width: 700px;
}

.philosophy-content h2 {
    font-family: var(--font-display);
    font-size: 2.2em;
    font-weight: 700;
    color: var(--black);
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

.philosophy-content p {
    font-size: 1.1em;
    color: var(--charcoal);
    margin-bottom: 16px;
}

/* Industries Preview */
.industry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.industry-tag {
    padding: 10px 20px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 30px;
    font-size: 0.9em;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
    cursor: pointer;
}
.industry-tag:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

.link-arrow {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
}

.link-arrow:hover {
    text-decoration: underline;
}

/* CTA Section */
.cta-section {
    background: var(--black);
    color: var(--white);
}

.cta-box {
    text-align: center;
    max-width: 600px;
}

.cta-box h2 {
    font-family: var(--font-display);
    font-size: 2.4em;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.cta-box p {
    color: var(--light-gray);
    font-size: 1.1em;
    margin-bottom: 32px;
}

/* Footer */
.footer {
    padding: 48px 40px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.3em;
    font-weight: 700;
    color: var(--black);
}

.footer-tagline {
    color: var(--gray);
    font-size: 0.9em;
    font-style: italic;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    text-decoration: none;
    color: var(--gray);
    font-size: 0.9em;
}

.footer-links a:hover {
    color: var(--black);
}

.footer-copyright {
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.footer-copyright p {
    font-size: 0.8em;
    color: var(--light-gray);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px 40px;
        border-bottom: 1px solid rgba(0,0,0,0.08);
    }
    .hero { padding: 140px 20px 80px; }
    .hero-content h1 { font-size: 2.4em; }
    .props-grid { grid-template-columns: 1fr; }
    .section { padding: 60px 20px; }
    .hero-actions { flex-direction: column; align-items: flex-start; }
}

/* Page Styles (shared across inner pages) */
.page-header {
    padding: 160px 40px 60px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: 3em;
    font-weight: 700;
    color: var(--black);
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.page-header p {
    font-size: 1.15em;
    color: var(--gray);
    max-width: 600px;
}

.page-content {
    padding: 0 40px 100px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.content-section {
    margin-bottom: 64px;
}

.content-section h2 {
    font-family: var(--font-display);
    font-size: 1.8em;
    color: var(--black);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.content-section p {
    font-size: 1.05em;
    color: var(--charcoal);
    margin-bottom: 16px;
    line-height: 1.7;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.content-card {
    padding: 28px 24px;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    transition: all 0.2s;
}

.content-card:hover {
    border-color: var(--accent);
}

.content-card h3 {
    font-size: 1.05em;
    color: var(--black);
    margin-bottom: 8px;
}

.content-card p {
    font-size: 0.9em;
    color: var(--gray);
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .page-header { padding: 120px 20px 40px; }
    .page-header h1 { font-size: 2.2em; }
    .page-content { padding: 0 20px 60px; }
    .content-grid { grid-template-columns: 1fr; }
}
