/*
Theme Name: LongView Z-Edition
Author: Assistant
Description: A bold, editorial theme for ZhiraffZaim (LongView Credit).
Version: 2.2
Text Domain: longview
*/

/* ------------------------------------------------------------------------- *
 *  FONTS & VARIABLES
 * ------------------------------------------------------------------------- */
@import url('https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&f[]=general-sans@400,500,600&display=swap');

:root {
    /* Palette: Neo-Editorial */
    --c-dark: #1a1a1a;
    --c-light: #f4f4f0;      /* Warm paper */
    --c-accent: #ff5c00;     /* International Orange (Zhiraff vibes) */
    --c-secondary: #2d6a4f;  /* Deep Forest Green */
    --c-border: #1a1a1a;
    
    /* Spacing */
    --gutter: 2rem;
    --container: 1400px;
    --header-h: 100px;
    
    /* Type */
    --f-head: 'Clash Display', sans-serif;
    --f-body: 'General Sans', sans-serif;
    
    /* Borders */
    --b-width: 2px;
    --radius: 0px; /* Brutalist/Sharp */
}

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

body {
    background-color: var(--c-light);
    color: var(--c-dark);
    font-family: var(--f-body);
    font-size: 18px;
    line-height: 1.5;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    font-weight: 600;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

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

/* ------------------------------------------------------------------------- *
 *  COMPONENTS
 * ------------------------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--c-dark);
    color: var(--c-light);
    font-family: var(--f-head);
    text-transform: uppercase;
    font-weight: 600;
    border: var(--b-width) solid var(--c-dark);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background: transparent;
    color: var(--c-dark);
    box-shadow: 4px 4px 0 var(--c-accent);
    transform: translate(-2px, -2px);
}

.btn-accent {
    background: var(--c-accent);
    border-color: var(--c-dark);
    color: var(--c-dark);
}

.btn-accent:hover {
    background: var(--c-dark);
    color: var(--c-accent);
    box-shadow: 4px 4px 0 var(--c-dark);
}

/* ------------------------------------------------------------------------- *
 *  HEADER
 * ------------------------------------------------------------------------- */
.site-header {
    border-bottom: var(--b-width) solid var(--c-dark);
    background: var(--c-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    height: var(--header-h);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-family: var(--f-head);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand span {
    color: var(--c-accent);
}

.nav-desktop ul {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-desktop a {
    font-family: var(--f-head);
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
}

.nav-desktop a:hover {
    color: var(--c-accent);
}

.header-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    font-family: var(--f-body);
    font-weight: 500;
    font-size: 0.9rem;
}

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

.menu-burger {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 900px) {
    .nav-desktop, .header-meta { display: none; }
    .menu-burger { display: block; }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--c-light);
    z-index: 2000;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay.active {
    transform: translateX(0);
}

.close-menu {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    margin-bottom: 2rem;
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    font-size: 1.5rem;
    font-family: var(--f-head);
}

.mobile-nav a {
    display: block;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 0.5rem;
}

/* ------------------------------------------------------------------------- *
 *  HERO SECTION
 * ------------------------------------------------------------------------- */
.hero-block {
    padding: 6rem 0;
    border-bottom: var(--b-width) solid var(--c-dark);
    background: radial-gradient(circle at 80% 20%, rgba(255, 92, 0, 0.1) 0%, transparent 50%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 0.95;
    margin-bottom: 2rem;
}

.hero-content h1 em {
    font-style: normal;
    color: var(--c-accent);
    font-family: 'Times New Roman', serif;
    font-style: italic;
}

.hero-desc {
    font-size: 1.25rem;
    max-width: 500px;
    margin-bottom: 3rem;
    opacity: 0.8;
}

.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
    border-top: 1px solid var(--c-dark);
    padding-top: 2rem;
}

.stat-item strong {
    font-family: var(--f-head);
    font-size: 2.5rem;
    display: block;
}

.stat-item span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 3rem; }
}

/* ------------------------------------------------------------------------- *
 *  TICKER
 * ------------------------------------------------------------------------- */
.ticker-wrap {
    overflow: hidden;
    background: var(--c-accent);
    color: var(--c-dark);
    padding: 0.8rem 0;
    border-bottom: var(--b-width) solid var(--c-dark);
    white-space: nowrap;
}

.ticker-move {
    display: inline-block;
    animation: ticker 20s linear infinite;
}

.ticker-item {
    display: inline-block;
    padding: 0 2rem;
    font-family: var(--f-head);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.2rem;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ------------------------------------------------------------------------- *
 *  PROBLEM SOLVING BLOCKS
 * ------------------------------------------------------------------------- */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: var(--b-width) solid var(--c-dark);
}

.solution-card {
    padding: 4rem 2rem;
    border-right: var(--b-width) solid var(--c-dark);
    transition: background 0.3s;
    position: relative;
}

.solution-card:last-child { border-right: none; }

.solution-card:hover {
    background: #fff;
}

.sol-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 10px;
    border: 2px solid var(--c-dark);
    border-radius: 50%;
    background: var(--c-light);
}

.sol-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.sol-text {
    font-size: 1rem;
    opacity: 0.7;
    margin-bottom: 2rem;
}

.sol-link {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--c-accent);
}

@media (max-width: 900px) {
    .solutions-grid { grid-template-columns: 1fr; }
    .solution-card { border-right: none; border-bottom: var(--b-width) solid var(--c-dark); }
}

/* ------------------------------------------------------------------------- *
 *  BLOG FEED
 * ------------------------------------------------------------------------- */
.feed-header {
    padding: 4rem 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.feed-title {
    font-size: 3rem;
}

.article-list {
    display: flex;
    flex-direction: column;
}

.article-row {
    display: grid;
    grid-template-columns: 150px 120px 1fr 50px;
    gap: 2rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(0,0,0,0.2);
    align-items: center;
    transition: background 0.2s;
}

.article-row:hover {
    background: white;
    padding-left: 1rem;
    padding-right: 1rem;
}

.art-thumb img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border: 1px solid var(--c-dark);
}

.no-thumb {
    width: 150px;
    height: 100px;
    background: #e5e5e5;
    border: 1px solid var(--c-dark);
}

.art-date {
    font-family: var(--f-head);
    font-weight: 600;
    color: var(--c-accent);
    font-size: 0.9rem;
}

.art-main h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.art-main p {
    font-size: 1rem;
    opacity: 0.6;
    max-width: 600px;
}

.art-action {
    text-align: right;
}

.art-arrow {
    font-size: 2rem;
}

@media (max-width: 900px) {
    .article-row {
        grid-template-columns: 80px 1fr;
        grid-template-rows: auto auto;
        gap: 1rem;
    }
    
    .art-thumb { grid-row: 1 / span 2; }
    .art-thumb img, .no-thumb { width: 80px; height: 80px; }
    
    .art-date { display: none; }
    .art-action { display: none; }
}

/* ------------------------------------------------------------------------- *
 *  CATEGORY / ARCHIVE GRID (3x3)
 * ------------------------------------------------------------------------- */
.archive-header {
    padding: 4rem 0;
    border-bottom: var(--b-width) solid var(--c-dark);
    margin-bottom: 4rem;
    text-align: center;
}

.archive-title {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.archive-desc {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.7;
}

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

.lv-card {
    border: var(--b-width) solid var(--c-dark);
    background: white;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.lv-card:hover {
    transform: translateY(-5px);
    box-shadow: 5px 5px 0 var(--c-accent);
}

.lv-card-thumb {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-bottom: var(--b-width) solid var(--c-dark);
}

.lv-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.lv-card-date {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--c-accent);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.lv-card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.lv-card-excerpt {
    font-size: 0.95rem;
    opacity: 0.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.lv-card-link {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

@media (max-width: 1024px) {
    .lv-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .lv-grid-3 { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------------- *
 *  FOOTER
 * ------------------------------------------------------------------------- */
.site-footer {
    background: var(--c-dark);
    color: var(--c-light);
    padding: 6rem 0;
    margin-top: 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.big-contact {
    font-family: var(--f-head);
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 2rem;
    display: block;
}

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

.f-col h4 {
    color: var(--c-accent);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.f-col ul {
    list-style: none;
}

.f-col li {
    margin-bottom: 0.8rem;
}

.f-col a:hover { color: var(--c-accent); }

@media (max-width: 768px) {
    .footer-top { grid-template-columns: 1fr; }
    .big-contact { font-size: 2.5rem; }
    .footer-cols { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------------- *
 *  PAGES & PAGINATION
 * ------------------------------------------------------------------------- */
.page-content-wrapper {
    max-width: 900px;
    margin: 4rem auto;
    font-size: 1.2rem;
}

.page-content-wrapper h1 {
    font-size: 4rem;
    margin-bottom: 3rem;
    border-bottom: 4px solid var(--c-accent);
    padding-bottom: 1rem;
    display: inline-block;
}

/* 404 */
.e404 {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}
.e404 h1 { font-size: 8rem; color: var(--c-accent); margin: 0; }

/* Pagination */
.pagination-wrapper {
    margin-top: 2rem;
    padding-bottom: 4rem;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: var(--b-width) solid var(--c-dark);
    font-family: var(--f-head);
    font-weight: 600;
    color: var(--c-dark);
    background: transparent;
    transition: all 0.2s;
}

.page-numbers.current {
    background: var(--c-dark);
    color: var(--c-light);
}

.page-numbers:hover:not(.current) {
    background: var(--c-accent);
    border-color: var(--c-dark);
    transform: translateY(-2px);
    box-shadow: 3px 3px 0 var(--c-dark);
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Page Content Typography (Contacts, About) */
.entry-content {
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h2, 
.entry-content h3, 
.entry-content h4 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-family: var(--f-head);
    line-height: 1.2;
}

.entry-content h2 { 
    font-size: 2.5rem; 
    border-bottom: 4px solid var(--c-accent); 
    padding-bottom: 0.5rem; 
    display: inline-block; 
}

.entry-content h3 { 
    font-size: 2rem; 
    color: var(--c-dark); 
}

.entry-content ul, 
.entry-content ol {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.entry-content li {
    margin-bottom: 0.8rem;
}

.entry-content a {
    text-decoration: underline;
    text-decoration-color: var(--c-accent);
    text-underline-offset: 3px;
    font-weight: 500;
}

.entry-content a:hover {
    background-color: var(--c-accent);
    text-decoration: none;
    color: white;
}

/* Columns support */
.wp-block-columns {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.wp-block-column {
    flex: 1;
}

@media (max-width: 768px) {
    .wp-block-columns {
        flex-direction: column;
    }
}
