/*
Theme Name: Ryazanof Cardinal
Author: Assistant
Description: Modern Corporate High-Tech / Swiss Style
Version: 3.1
*/

:root {
    --bg-main: #ffffff;
    --bg-dark: #111111;
    --bg-soft: #f4f4f4;
    
    --text-main: #111111;
    --text-inv: #ffffff;
    --text-grey: #777777;
    
    --accent: #2563eb; /* Electric Blue */
    
    --f-head: 'Unbounded', sans-serif;
    --f-body: 'Inter', sans-serif;
    
    --container-pad: 4vw;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- HEADER --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1.2rem 0;
}

.header-container {
    padding: 0 var(--container-pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    font-family: var(--f-head);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -1px;
    text-transform: uppercase;
}
.logo-link .highlight { color: var(--accent); }

.desktop-nav .nav-list {
    display: flex;
    gap: 2.5rem;
}
.desktop-nav a {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.desktop-nav a:hover { color: var(--accent); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.contact-link {
    font-weight: 600;
    font-size: 1rem;
}

/* --- PAGE WRAPPER --- */
.page-wrapper {
    padding-top: 80px; /* Offset fixed header */
}

/* --- HERO --- */
.hero-fullscreen {
    height: 100vh;
    background: var(--bg-dark);
    color: var(--text-inv);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0 var(--container-pad);
    margin-top: -80px; /* Pull up behind header */
    padding-top: 80px;
}

.hero-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--f-head);
    font-size: 25vw;
    font-weight: 800;
    color: rgba(255,255,255,0.03);
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
}

.hero-main-text {
    position: relative;
    z-index: 2;
    width: 100%;
}

.split-text {
    display: flex;
    flex-direction: column;
}

.split-text .line {
    font-family: var(--f-head);
    font-size: 8vw;
    line-height: 0.9;
    font-weight: 300;
    text-transform: uppercase;
}
.split-text .line.indent { margin-left: 10vw; font-weight: 800; color: var(--accent); }

.hero-footer {
    margin-top: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 2rem;
}

.hero-lead {
    max-width: 400px;
    font-size: 1.1rem;
    opacity: 0.7;
}

.scroll-down-btn {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.scroll-down-btn:hover { background: var(--accent); border-color: var(--accent); }

/* --- STRIPES SECTION --- */
.stripes-section {
    background: var(--bg-main);
}

.stripe-row {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 4rem var(--container-pad);
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    align-items: flex-start;
    transition: background 0.3s;
}
.stripe-row:hover { background: var(--bg-soft); }

.stripe-label {
    font-family: var(--f-head);
    font-size: 0.9rem;
    opacity: 0.5;
    padding-top: 0.5rem;
}

.stripe-content h2 {
    font-family: var(--f-head);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}
.stripe-content p {
    max-width: 600px;
    font-size: 1.1rem;
    color: var(--text-grey);
}

.stripe-action {
    display: flex;
    justify-content: flex-end;
}

.circle-btn {
    width: 60px;
    height: 60px;
    background: var(--bg-dark);
    color: var(--text-inv);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transform: rotate(-45deg);
    transition: transform 0.3s;
}
.stripe-row:hover .circle-btn { transform: rotate(0deg) scale(1.1); background: var(--accent); }

/* --- ABOUT SPLIT --- */
.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
    background: var(--bg-dark);
    color: var(--text-inv);
}

.about-visual {
    background: #222;
    position: relative;
    overflow: hidden;
}
.about-visual-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-info {
    padding: 6rem 4rem;
    display: flex;
    align-items: center;
}

.section-label {
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.huge-headline {
    font-family: var(--f-head);
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 3rem;
}

.text-cols {
    display: grid;
    gap: 2rem;
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 4rem;
}

.stats-row {
    display: flex;
    gap: 4rem;
}
.stat-unit .num {
    display: block;
    font-family: var(--f-head);
    font-size: 3rem;
    color: var(--accent);
}
.stat-unit .txt {
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* --- MASONRY BLOG (Front Page) --- */
.blog-masonry {
    padding: 6rem var(--container-pad);
    background: var(--bg-main);
}

.masonry-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
    border-bottom: 2px solid var(--text-main);
    padding-bottom: 1rem;
}
.masonry-head h2 {
    font-family: var(--f-head);
    font-size: 3rem;
    margin: 0;
}
.link-underline {
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 1px solid;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.masonry-item {
    border: 1px solid #eee;
    padding: 2rem;
    transition: 0.3s;
}
.masonry-item:hover {
    border-color: var(--text-main);
    background: var(--bg-soft);
}

.masonry-meta {
    font-size: 0.8rem;
    color: var(--text-grey);
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
}

.masonry-title {
    font-family: var(--f-head);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    min-height: 3em;
    line-height: 1.3;
}

.masonry-arrow {
    font-size: 1.5rem;
    text-align: right;
}

.masonry-link { display: block; height: 100%; }

/* --- CTA --- */
.cta-banner {
    background: var(--accent);
    color: var(--text-inv);
    padding: 6rem var(--container-pad);
    text-align: center;
}
.cta-content h2 {
    font-family: var(--f-head);
    font-size: 4rem;
    margin-bottom: 1rem;
}
.btn-white {
    display: inline-block;
    background: #fff;
    color: var(--accent);
    padding: 1rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    margin-top: 2rem;
}
.btn-white:hover { transform: scale(1.05); }

/* --- ARCHIVE / CATEGORY --- */
.archive-header {
    padding: 6rem var(--container-pad) 3rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
.archive-title {
    font-family: var(--f-head);
    font-size: 4rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.archive-description {
    max-width: 800px;
    font-size: 1.2rem;
    color: var(--text-grey);
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding: 4rem var(--container-pad);
}

.post-card {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
}
.post-card:hover { transform: translateY(-5px); }

.post-card-img {
    height: 250px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: #f4f4f4;
}
.post-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.post-card:hover .post-card-img img { transform: scale(1.05); }

.post-card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-meta {
    font-size: 0.8rem;
    color: var(--text-grey);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.post-card-title {
    font-family: var(--f-head);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-card-arrow {
    margin-top: auto;
    font-size: 1.5rem;
    align-self: flex-end;
    opacity: 0;
    transition: 0.3s;
    transform: translateX(-10px);
}
.post-card:hover .post-card-arrow { opacity: 1; transform: translateX(0); }

/* --- SINGLE POST --- */
.single-post-hero {
    padding: 6rem var(--container-pad) 4rem;
    background: var(--bg-dark);
    color: var(--text-inv);
}
.single-meta {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 1rem;
    display: block;
}
.single-title {
    font-family: var(--f-head);
    font-size: 3.5rem;
    line-height: 1.1;
}

.single-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}

.single-featured img {
    width: 100%;
    height: auto;
    margin-bottom: 3rem;
}

.single-content {
    font-size: 1.2rem;
    line-height: 1.7;
}
.single-content p { margin-bottom: 1.5rem; }
.single-content h2 {
    font-family: var(--f-head);
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}
.single-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

/* --- PAGE --- */
.page-header {
    padding: 6rem var(--container-pad) 3rem;
    background: var(--bg-soft);
}
.page-title {
    font-family: var(--f-head);
    font-size: 4rem;
    text-transform: uppercase;
}
.page-container {
    padding: 4rem var(--container-pad) 6rem;
}
.page-content {
    max-width: 1000px;
    font-size: 1.2rem;
    line-height: 1.6;
}
.page-content p { margin-bottom: 1.5rem; }

/* --- PAGINATION --- */
.pagination {
    padding: 0 var(--container-pad) 6rem;
    display: flex;
    justify-content: center;
}
.nav-links {
    display: flex;
    gap: 0.5rem;
}
.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 1px solid var(--text-main);
    font-weight: 700;
    transition: 0.3s;
}
.page-numbers.current, .page-numbers:hover {
    background: var(--text-main);
    color: var(--text-inv);
}

/* --- FOOTER --- */
.site-footer {
    background: var(--bg-dark);
    color: var(--text-inv);
    padding-top: 4rem;
}
.footer-grid {
    padding: 0 var(--container-pad) 4rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
}
.footer-col h3, .footer-col h4 {
    color: #fff;
    font-family: var(--f-head);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}
.footer-desc { opacity: 0.6; margin-bottom: 2rem; }

.contact-item { margin-bottom: 1.5rem; }
.contact-item .label {
    display: block;
    font-size: 0.7rem;
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}
.contact-item a, .contact-item p {
    font-size: 1.1rem;
    color: #fff;
}
.contact-item a:hover { color: var(--accent); }

.footer-nav-list li { margin-bottom: 0.8rem; }
.footer-nav-list a { opacity: 0.7; font-size: 1rem; }
.footer-nav-list a:hover { opacity: 1; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 2rem var(--container-pad);
    opacity: 0.4;
    font-size: 0.9rem;
}

/* --- MOBILE --- */
@media (max-width: 1024px) {
    .desktop-nav { display: none; }
    .mobile-toggle { display: block; }
    .hero-main-text h1 { font-size: 15vw; }
    .stripe-row { grid-template-columns: 1fr; gap: 1.5rem; }
    .about-split { grid-template-columns: 1fr; }
    .masonry-grid, .archive-grid, .footer-grid { grid-template-columns: 1fr; }
    .single-title { font-size: 2.5rem; }
    .page-title { font-size: 3rem; }
    
    /* Fix for mobile menu toggle visibility */
    .nav-list {
        display: none; /* Default hidden on mobile */
    }
    .menu-open .desktop-nav {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 2rem;
        border-bottom: 1px solid #eee;
    }
    .menu-open .nav-list {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
}
