/*
Theme Name: Naghsh Barjeste
Theme URI: https://naghshbarjeste.com
Author: Naghsh Barjeste
Description: Custom RTL theme for the Naghsh Barjeste signage company site. UIkit 3 based.
Version: 2.0.0
Text Domain: dbe
*/

/* ============================================================
   TOKENS — one accent, one radius scale, one spacing scale
   ============================================================ */
:root {
    /* color */
    --bg: #f4f4f2;
    --panel: #ffffff;
    --ink: #16181d;
    --muted: #5a5e68;
    --faint: #8d919b;
    --line: #d9d9d4;
    --accent: #ffb020;
    --accent-ink: #c77800;
    --dark: #16181d;
    --dark-2: #101116;
    --dark-line: #3a3e47;

    /* radius (soft 14 system) */
    --r-card: 14px;
    --r-btn: 10px;
    --r-img: 14px;
    --r-chip: 8px;

    /* spacing (8px scale) */
    --s-1: 8px;
    --s-2: 16px;
    --s-3: 24px;
    --s-4: 32px;
    --s-5: 48px;
    --s-6: 64px;
}

/* ============================================================
   BASE
   ============================================================ */
html {
    font-size: 15.5px;
}
body {
    background: var(--bg);
    color: var(--ink);
    font-family: Ravi, "Segoe UI", Tahoma, sans-serif;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .display {
    font-family: dana, Ravi, Tahoma, sans-serif;
    color: var(--ink);
}
a { color: var(--accent-ink); transition: color .15s; }
a:hover { color: var(--ink); }
img { max-width: 100%; }

main { display: block; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn,
.btn-sw {
    display: inline-block;
    font-weight: 700;
    font-size: .92rem;
    line-height: 1.6;
    padding: 11px 24px;
    border-radius: var(--r-btn);
    background: var(--dark);
    color: #f4f4f2;
    border: 0;
    transition: transform .15s, box-shadow .15s, background .15s, color .15s;
}
.btn:hover, .btn-sw:hover {
    color: #fff;
    box-shadow: 0 6px 18px rgba(22, 24, 29, .22);
    transform: translateY(-1px);
}
.btn:active, .btn-sw:active { transform: scale(.98); }
.btn-ghost {
    background: var(--panel);
    color: var(--ink);
    border: 1px solid #b9bab4;
}
.btn-ghost:hover { color: var(--ink); box-shadow: 0 6px 14px rgba(22, 24, 29, .08); }
.btn-sm { padding: 9px 18px; font-size: .88rem; }
.link {
    font-weight: 700;
    font-size: .9rem;
    color: var(--ink);
    border-bottom: 2px solid var(--accent);
}
.link:hover { color: var(--accent-ink); }

/* ============================================================
   NAV — sticky light bar, LED-underline menu
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(244, 244, 242, .92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header-row {
    display: flex;
    align-items: center;
    gap: clamp(16px, 4vw, 48px);
    min-height: 76px;
}
.site-header .logo { flex: none; }
.site-header .logo img { max-height: 54px; width: auto; display: block; }
.navbar-center { flex: 1; }
.uk-navbar-item, .uk-navbar-nav > li > a, .uk-navbar-toggle {
    font-family: Ravi, Tahoma, sans-serif;
    font-weight: 500;
    font-size: .95rem;
    min-height: 76px;
    line-height: normal;
    padding: 0 14px;
    color: var(--muted);
    text-transform: none;
    letter-spacing: 0;
    position: relative;
    transition: color .15s;
}
.uk-navbar-nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 14px;
    left: 14px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px 2px 0 0;
    transform: scaleX(0);
    transition: transform .25s cubic-bezier(.16, 1, .3, 1);
    box-shadow: 0 0 8px rgba(255, 176, 32, .5);
}
.uk-navbar-nav > li > a:hover { color: var(--ink); }
.uk-navbar-nav > li > a:hover::after,
.uk-navbar-nav > li.current-menu-item > a::after,
.uk-navbar-nav > li.current-menu-ancestor > a::after { transform: scaleX(1); }
.uk-navbar-nav > li.current-menu-item > a,
.uk-navbar-nav > li.current-menu-ancestor > a { color: var(--ink); font-weight: 700; }
.uk-navbar-dropdown {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    box-shadow: 0 14px 34px rgba(22, 24, 29, .12);
    padding: var(--s-1);
}
.uk-dropdown-nav > li > a {
    color: var(--muted);
    border-radius: var(--r-chip);
    padding: 6px 12px;
    font-size: .92rem;
}
.uk-dropdown-nav > li > a:hover {
    color: var(--ink);
    background: var(--bg);
}

/* ============================================================
   HERO — light industrial band, LED-strip signature
   ============================================================ */
.hero-band {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(#e7e7e2 1px, transparent 1px),
        linear-gradient(90deg, #e7e7e2 1px, transparent 1px),
        var(--bg);
    background-size: 36px 36px, 36px 36px, auto;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: .06;
    filter: grayscale(1);
}
.hero-band .hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: var(--s-5);
    align-items: center;
    padding-block: clamp(48px, 6vw, 76px);
}
.hero-title {
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: -.3px;
    margin: 0;
    max-width: 18ch;
}
.led {
    display: inline-block;
    width: 120px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(255, 150, 0, .5);
    margin: var(--s-2) 0 var(--s-1);
}
.hero-sub {
    color: var(--muted);
    max-width: 46ch;
    margin: 0 0 var(--s-3);
}
.hero-cta { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.hero-stack { position: relative; min-height: 340px; }
.hero-stack .ph {
    position: absolute;
    border: 1px solid var(--line);
    border-radius: var(--r-img);
    object-fit: cover;
    filter: saturate(.95);
}
.hero-stack .ph1 {
    width: 76%;
    height: 330px;
    top: 0;
    left: 0;
    z-index: 2;
    box-shadow: 12px 14px 0 rgba(22, 24, 29, .07);
}
.hero-stack .ph2 {
    width: 54%;
    height: 220px;
    bottom: 0;
    right: 0;
    z-index: 3;
    box-shadow: 0 0 0 4px var(--bg), 0 16px 34px rgba(22, 24, 29, .16);
}

/* ---- night variant: the hero IS a lit storefront sign ---- */
.hero-night {
    background:
        radial-gradient(120% 90% at 85% 0%, rgba(255, 176, 32, .08), transparent 55%),
        linear-gradient(#1a1c22 1px, transparent 1px),
        linear-gradient(90deg, #1a1c22 1px, transparent 1px),
        #0f1013;
    background-size: auto, 36px 36px, 36px 36px, auto;
    border-bottom: 0;
}
.hero-night .hero-bg { opacity: .13; filter: grayscale(.6) brightness(.65) contrast(1.05); }
.hero-night .hero-title {
    color: #fff;
    font-size: clamp(2.1rem, 4.6vw, 3.5rem);
    line-height: 1.45;
    max-width: 14ch;
    text-shadow: 0 0 18px rgba(255, 190, 60, .35), 0 0 60px rgba(255, 176, 32, .18);
    animation: power-on 1.2s both;
}
.hero-night .led {
    height: 6px;
    width: 150px;
    box-shadow: 0 0 18px rgba(255, 176, 32, .85);
}
.hero-night .hero-sub { color: #b9bcc4; }
.hero-night .hero-stack .ph { border-color: #2a2d34; }
.hero-night .hero-stack .ph1 { box-shadow: 12px 14px 0 rgba(255, 176, 32, .09); }
.hero-night .hero-stack .ph2 { box-shadow: 0 0 0 4px #0f1013, 0 0 26px rgba(255, 176, 32, .25); }
.hero-night .btn-ghost {
    background: transparent;
    color: #f4f4f2;
    border-color: #3a3e47;
}
.hero-night .btn-ghost:hover { color: #fff; border-color: var(--accent); }
@keyframes power-on {
    0% { opacity: 0; }
    8% { opacity: .55; }
    13% { opacity: .08; }
    22% { opacity: .8; }
    27% { opacity: .25; }
    38% { opacity: 1; }
}

/* ---- LED ticker strip (running-text sign, the product itself) ---- */
.ticker {
    background: #0c0d10;
    border-bottom: 1px solid #23262d;
    overflow: hidden;
    padding: 11px 0;
    direction: ltr;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: ticker-run 28s linear infinite; /* the product itself — runs even under reduced-motion, pause on hover */
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span {
    color: var(--accent);
    font-weight: 700;
    font-size: .85rem;
    white-space: nowrap;
    padding: 0 16px;
    text-shadow: 0 0 10px rgba(255, 176, 32, .4);
}
.ticker .tick-sep { color: #6b5416; padding: 0; text-shadow: none; font-size: .7rem; }
@keyframes ticker-run { to { transform: translateX(-50%); } }

/* ---- scroll reveal (classes added by JS only, no-JS stays visible) ---- */
.pre-view { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .7s cubic-bezier(.16, 1, .3, 1); }
.in-view { opacity: 1; transform: none; }

/* ============================================================
   SECTIONS & TITLES
   ============================================================ */
.home-section { padding-block: clamp(48px, 6vw, 72px); }
.home-section + .home-section { padding-top: 0; }
.section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.7rem;
    font-weight: 800;
    margin: 0 0 var(--s-4);
    text-align: right;
}
.section-title::after {
    content: '';
    width: 46px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(255, 150, 0, .5);
    flex: none;
}

/* ============================================================
   VALUES
   ============================================================ */
.values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-2);
}
.value {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    padding: var(--s-3) var(--s-2);
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.vmark {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border: 2px solid var(--dark);
    border-radius: var(--r-chip);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: dana, Ravi, sans-serif;
    font-weight: 800;
    font-size: .95rem;
    color: var(--accent-ink);
}
.value h4 { font-size: 1rem; font-weight: 800; margin: 0 0 4px; }
.value p { font-size: .84rem; color: var(--muted); margin: 0; line-height: 1.7; }

/* ============================================================
   PRODUCT TILES — bento board of lit signage specimens
   ============================================================ */
.tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-flow: dense;
    gap: var(--s-2);
}
.tile {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: linear-gradient(160deg, #1d1f24 0%, #141518 100%);
    border: 1px solid #2a2d34;
    border-radius: var(--r-card);
    padding: var(--s-3) var(--s-2);
    color: #f4f2ee;
    transition: transform .25s, border-color .25s, box-shadow .25s;
}
/* faint blueprint grid inside each specimen */
.tile::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .55;
    pointer-events: none;
    background:
        linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: 22px 22px;
}
/* the LED strip — brightens and stretches on hover */
.tile::before {
    content: '';
    position: absolute;
    top: 0;
    right: 20px;
    width: 34px;
    height: 3px;
    background: var(--accent);
    border-radius: 0 0 2px 2px;
    box-shadow: 0 0 8px rgba(255, 176, 32, .55);
    transition: width .3s, box-shadow .3s;
    z-index: 1;
}
.tile:hover {
    transform: translateY(-3px);
    border-color: #6b5416;
    box-shadow: 0 14px 30px rgba(22, 24, 29, .35);
}
.tile:hover::before {
    width: calc(100% - 40px);
    box-shadow: 0 0 16px rgba(255, 176, 32, .85);
}
.tile img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    margin-bottom: 6px;
    filter: drop-shadow(0 0 6px rgba(255, 176, 32, .25));
}
.tile h4 {
    font-family: dana, Ravi, Tahoma, sans-serif;
    color: #f4f2ee;
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.55;
    transition: text-shadow .3s;
}
.tile:hover h4 { text-shadow: 0 0 16px rgba(255, 176, 32, .4); } /* the sign lights up */
.tile p {
    color: #9a9ea8;
    font-size: .82rem;
    line-height: 1.75;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* featured cells: 1st = hero specimen 2×2, 4th = wide */
.tiles .tile:first-child {
    grid-column: span 2;
    grid-row: span 2;
    padding: var(--s-4);
    justify-content: center;
}
.tiles .tile:first-child h4 { font-size: 1.6rem; }
.tiles .tile:first-child p { font-size: .9rem; max-width: 40ch; -webkit-line-clamp: 5; }
.tiles .tile:first-child img { width: 60px; height: 60px; }
.tiles .tile:nth-child(4) { grid-column: span 2; }
.tiles .tile:nth-child(4) h4 { font-size: 1.2rem; }

/* ============================================================
   WORKS — slider (home) & grid (archive/taxonomy)
   ============================================================ */
.works-list img,
.works-posts-list img {
    height: 280px;
    object-fit: cover;
    border-radius: var(--r-img);
    filter: saturate(.95);
}
.works-list .uk-inline, .works-posts-list .uk-inline { border-radius: var(--r-img); }
.works-list .uk-overlay, .works-posts-list .uk-overlay {
    border-radius: 0 0 var(--r-img) var(--r-img);
    background: linear-gradient(0deg, rgba(16, 17, 22, .82), rgba(16, 17, 22, 0));
}
.works-list .title, .works-posts-list h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
}
.works-list .work-category-labels {
    color: #d9dbe0;
    font-size: .78rem;
    margin: 0 0 2px;
}
.works-posts-list .work-post .uk-overlay h3 { color: #fff; }
.uk-slider-nav.uk-dotnav > * > * {
    background-color: var(--line);
    border-radius: 999px;
}
.uk-slider-nav.uk-dotnav > .uk-active > * { background-color: var(--accent); }

/* ============================================================
   ABOUT CARD
   ============================================================ */
.about-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-4);
    align-items: center;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    padding: var(--s-4);
}
.about-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: var(--r-img);
    border: 1px solid var(--line);
    filter: saturate(.95);
}
.about-card h3 { font-size: 1.3rem; font-weight: 800; margin: 0 0 14px; }
.about-card p { font-size: .92rem; color: var(--muted); margin: 0 0 12px; }

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s-2);
}
.step {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    padding: var(--s-3) var(--s-2);
    height: 100%;
}
.step .num {
    font-family: dana, Ravi, sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent);
    text-shadow: 1px 1px 0 rgba(22, 24, 29, .14);
    margin-bottom: var(--s-1);
    line-height: 1;
}
.step h4 { font-size: .95rem; font-weight: 800; margin: 0 0 6px; }
.step p { font-size: .84rem; color: var(--muted); margin: 0; line-height: 1.7; }
.step::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -14px;
    width: 14px;
    height: 2px;
    background: var(--line);
}
.step:first-child::after { display: none; }

/* ============================================================
   BLOG CARDS
   ============================================================ */
.blog-article {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    overflow: hidden;
    --base-color: 22, 24, 29;
    box-shadow: none;
    transition: box-shadow .2s;
}
.blog-article:hover { box-shadow: 0 10px 24px rgba(22, 24, 29, .08); }
.blog-article .content-div { padding: var(--s-3); }
.blog-article img { border-radius: 0; height: 100%; object-fit: cover; }
.blog-article h3.uk-heading-small {
    font-family: dana, Ravi, sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: none;
    line-height: 1.6;
}
.blog-article h3 a { color: var(--ink); }
.blog-article h3 a:hover { color: var(--accent-ink); }
.blog-article p { color: var(--muted); font-size: .88rem; }
.blog-article .readmore { border-top: 1px solid var(--line); }
.blog-article .readmore a {
    color: var(--ink);
    font-weight: 700;
    font-size: .88rem;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    text-transform: none;
}
.blog-article .readmore a:after {
    opacity: 0;
    transition: .2s all;
    content: " ←";
    font-size: 1.2rem;
    line-height: 0;
    margin-top: -4px;
    color: var(--accent-ink);
}
.blog-article .readmore a:hover:after { opacity: 1; }
.blog-article .vertical-text time {
    color: var(--faint);
    font-size: .78rem;
    font-weight: 700;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(90% 130% at 50% -30%, rgba(255, 176, 32, .12), transparent 60%),
        var(--dark);
    color: #f4f4f2;
    padding-block: clamp(48px, 6vw, 68px);
    text-align: center;
    margin-top: clamp(48px, 6vw, 72px);
}
.cta-band::before {
    content: '';
    position: absolute;
    top: 0; right: 0; left: 0;
    height: 3px;
    background: var(--accent);
    box-shadow: 0 0 18px rgba(255, 176, 32, .65);
}
.cta-band h3 {
    color: #f4f4f2;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 900;
    margin: 0 0 var(--s-1);
}
.cta-band p { color: #b9bcc4; font-size: .95rem; margin: 0 0 var(--s-3); }
.cta-band .btn { background: var(--accent); color: var(--dark); }
.cta-band .btn:hover { color: var(--dark); box-shadow: 0 6px 20px rgba(255, 176, 32, .35); }

/* ============================================================
   FOOTER
   ============================================================ */
.main-footer { background: var(--dark-2); color: #c9ccd3; }
.main-footer .footer-bg {
    background: transparent;
    padding: var(--s-5) 0 var(--s-4);
    border-radius: 0;
}
.main-footer .footer-bg h4 {
    color: #f4f4f2;
    border-bottom: 1px dashed rgba(255, 255, 255, .14);
    padding-bottom: var(--s-1);
    margin-bottom: var(--s-1);
    font-size: .95rem;
}
.main-footer .footer-widget .widget-title,
.main-footer h5 {
    color: #f4f4f2;
    font-size: .95rem;
}
.main-footer a { color: #c9ccd3; }
.main-footer a:hover { color: var(--accent); }
.main-footer .addresses p { display: flex; gap: 6px; margin: 0 0 6px; font-size: .88rem; color: #8d919b; }
.main-footer .addresses p svg { height: 22px; min-width: 22px; color: var(--accent); }
.main-footer .socials {
    padding: 0;
    display: flex;
    list-style: none;
    gap: var(--s-1);
    flex-wrap: wrap;
}
.main-footer .socials a, .contact-page .socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--dark-line);
    border-radius: var(--r-chip);
    color: #c9ccd3;
    transition: border-color .15s, color .15s;
}
.main-footer .socials a:hover, .contact-page .socials a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ============================================================
   SINGLE / ARCHIVE / SEARCH CONTENT
   ============================================================ */
.single-post { margin-top: var(--s-2); }
article.post,
.post-content {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    padding: var(--s-3);
}
article.post { box-shadow: none; border-width: 1px; }
.single-post-header .post-title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; line-height: 1.5; }
.post-date { color: var(--muted); font-size: .9rem; }
.post-taxonomies p { margin: 0 0 6px; font-size: .9rem; color: var(--muted); }
.post-taxonomies a { color: var(--accent-ink); }
.header-button a {
    display: inline-block;
    margin-top: var(--s-1);
    font-weight: 700;
    padding: 10px 22px;
    border-radius: var(--r-btn);
    background: var(--dark);
    color: #f4f4f2;
}
.header-button a:hover { color: #fff; box-shadow: 0 6px 18px rgba(22, 24, 29, .22); }

.top-single-cover { position: relative; overflow: hidden; border-radius: var(--r-card); }
.top-single-cover img { width: 100%; object-fit: cover; height: 305px; border-radius: var(--r-card); }
.top-single-cover:before {
    content: "";
    display: block;
    background: linear-gradient(0deg, rgba(16, 17, 22, .78), rgba(16, 17, 22, .15));
    position: absolute;
    inset: 0;
    border-radius: var(--r-card);
}
.top-single-cover .post-title {
    position: absolute;
    bottom: var(--s-2);
    right: var(--s-3);
    left: var(--s-3);
    color: #fff;
    z-index: 1;
    font-weight: 800;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    text-shadow: 1px 1px 6px rgba(0, 0, 0, .5);
    margin: 0;
}
.top-single-cover .post-taxonomies { position: absolute; bottom: var(--s-2); left: var(--s-3); z-index: 1; }
.top-single-cover .post-taxonomies p { color: #d9dbe0; font-size: .82rem; }
.top-single-cover .post-taxonomies a { color: var(--accent); }

.works-gallery img {
    border-radius: var(--r-img);
    border: 1px solid var(--line);
    width: 100%;
    transition: transform .2s;
}
.works-gallery a:hover img { transform: translateY(-3px); }

.taxonomy-title { margin: 0 0 var(--s-2); font-weight: 800; }
.top-taxonomy-head .taxonomy-page-image img { border-radius: var(--r-img); object-fit: cover; }

/* search */
.search-bar-container { margin-bottom: var(--s-3); }
.uk-search-input {
    border: 1px solid var(--line);
    border-radius: var(--r-btn);
    background: var(--panel);
    font-family: Ravi, Tahoma, sans-serif;
}
.no-results { color: var(--muted); padding: var(--s-3) 0; }
.box {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    padding: var(--s-2);
    height: 100%;
    text-align: center;
}
.box-label { font-family: dana, Ravi, sans-serif; font-weight: 800; margin: var(--s-1) 0 2px; }
.box-title { color: var(--faint); font-size: .8rem; margin-bottom: var(--s-1); }
.box-image img { border-radius: var(--r-img); }
.studio-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--dark);
    color: #f4f4f2;
    border-radius: var(--r-btn);
    padding: 9px 16px;
    font-weight: 700;
    font-size: .85rem;
}
.studio-button:hover { color: #fff; box-shadow: 0 6px 16px rgba(22, 24, 29, .2); }

/* pagination */
.uk-pagination > * > * , .page-link,
nav.pagination a, nav.pagination span {
    color: var(--muted);
    border-radius: var(--r-chip);
}
.uk-pagination > .uk-active > * { color: var(--dark); font-weight: 800; border-bottom: 2px solid var(--accent); }
.the-pagination { margin-top: var(--s-3); }

/* ============================================================
   FORMS & UK OVERRIDES
   ============================================================ */
.uk-input, .uk-select, .uk-textarea {
    border: 1px solid var(--line);
    border-radius: var(--r-btn);
    background: var(--panel);
    font-family: Ravi, Tahoma, sans-serif;
    color: var(--ink);
}
.uk-input:focus, .uk-select:focus, .uk-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 176, 32, .22);
}
.uk-form-label { color: var(--ink); font-weight: 700; font-size: .9rem; }
.uk-button-primary {
    background-color: var(--dark);
    color: #f4f4f2;
    border-radius: var(--r-btn);
}
.uk-button-primary:hover { background-color: #000; color: #fff; }
.uk-button-warning {
    background-color: transparent;
    color: var(--ink);
    border-radius: var(--r-btn);
}
.uk-background-primary { background-color: var(--dark); }
.uk-alert { border-radius: var(--r-card); }
.uk-search-navbar .uk-search-input { background: var(--panel); }
.contact-bg { background: transparent; }
html[dir="rtl"] .uk-lightbox .uk-position-center-left,
html[dir="rtl"] .uk-lightbox .uk-position-center-right { transform: rotate(180deg); }

/* ============================================================
   UTILITIES
   ============================================================ */
.vertical-text { writing-mode: vertical-lr; }
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   PAGINATION (the_posts_pagination + paginate_links)
   ============================================================ */
.nav-links, ul.page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: var(--s-3);
}
ul.page-numbers { list-style: none; padding: 0; }
a.page-numbers, span.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r-chip);
    color: var(--muted);
    font-size: .88rem;
    font-weight: 700;
    transition: border-color .15s, color .15s;
}
a.page-numbers:hover { border-color: var(--accent); color: var(--ink); }
span.page-numbers.current { background: var(--dark); border-color: var(--dark); color: #f4f4f2; }
.page-numbers.dots { border: 0; background: transparent; }

/* ============================================================
   EDITOR CONTENT TYPOGRAPHY
   ============================================================ */
.post-content h2 { font-size: 1.35rem; font-weight: 800; margin: 1.6em 0 .6em; }
.post-content h3 { font-size: 1.15rem; font-weight: 800; margin: 1.4em 0 .5em; }
.post-content p { margin: 0 0 1em; }
.post-content img { border-radius: var(--r-img); }
.post-content ul, .post-content ol { padding-right: 1.4em; margin: 0 0 1em; }
.post-content li { margin-bottom: .4em; }
.post-content blockquote {
    border-right: 3px solid var(--accent);
    background: var(--bg);
    padding: 1em 1.2em;
    border-radius: var(--r-chip);
    margin: 0 0 1em;
    color: var(--muted);
}
.single-post-header .thumbnail img { border-radius: var(--r-img); border: 1px solid var(--line); }

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-area { margin: var(--s-3) 0; }
.comments-title { font-size: 1.2rem; font-weight: 800; margin: 0 0 var(--s-2); }
.comment-list, .comment-list .children { list-style: none; padding: 0; margin: 0; }
.comment-list .comment-body {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    padding: var(--s-2);
    margin-bottom: var(--s-2);
}
.comment-list .children { margin-top: var(--s-2); margin-right: var(--s-2); padding-right: var(--s-2); border-right: 2px solid var(--line); }
.comment-list .avatar { border-radius: 999px; float: right; margin-left: 12px; }
.comment-meta { font-size: .78rem; color: var(--faint); margin-bottom: 6px; }
.comment-meta a { color: var(--accent-ink); }
.comment-content p { margin: 0 0 .6em; font-size: .92rem; }
.comment-reply-link { font-size: .8rem; font-weight: 700; color: var(--accent-ink); }
.comment-form label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 4px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--r-btn);
    padding: 10px 14px;
    font-family: Ravi, Tahoma, sans-serif;
    font-size: .92rem;
    background: var(--panel);
    color: var(--ink);
}
.comment-form input:focus, .comment-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 176, 32, .22);
}
.comment-form .submit, #wp-comment-submit {
    background: var(--dark);
    color: #f4f4f2;
    border: 0;
    border-radius: var(--r-btn);
    padding: 11px 24px;
    font-family: Ravi, Tahoma, sans-serif;
    font-size: .92rem;
    font-weight: 700;
    cursor: pointer;
    transition: box-shadow .15s, transform .15s;
}
.comment-form .submit:hover, #wp-comment-submit:hover { box-shadow: 0 6px 18px rgba(22, 24, 29, .22); }
.comment-notes { font-size: .8rem; color: var(--faint); }
.comment-form-cookies-consent input { margin-left: 8px; }
.comment-form-cookies-consent label { display: inline; font-weight: 400; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-page .section-title { margin-bottom: var(--s-2); }
.contact-lead { color: var(--muted); max-width: 52ch; margin: 0 0 var(--s-4); }
.contact-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: var(--s-3);
    align-items: start;
    padding-bottom: var(--s-6);
}

/* dark info panel — same specimen language as the product board */
.contact-card-dark {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #1d1f24 0%, #141518 100%);
    border: 1px solid #2a2d34;
    border-radius: var(--r-card);
    padding: var(--s-4);
    color: #f4f2ee;
}
.contact-card-dark::before {
    content: '';
    position: absolute;
    top: 0;
    right: 20px;
    width: 44px;
    height: 3px;
    background: var(--accent);
    border-radius: 0 0 2px 2px;
    box-shadow: 0 0 10px rgba(255, 176, 32, .6);
    z-index: 1;
}
.contact-card-dark::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .5;
    pointer-events: none;
    background:
        linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: 22px 22px;
}
.contact-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: var(--s-3); position: relative; z-index: 1; }
.contact-row .cicon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border: 1px solid #3a3e47;
    border-radius: var(--r-chip);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}
.contact-row h4 {
    font-family: dana, Ravi, sans-serif;
    color: #f4f2ee;
    font-size: .92rem;
    font-weight: 800;
    margin: 0 0 4px;
}
.contact-row p { margin: 0; color: #b9bcc4; font-size: .9rem; line-height: 2; }
.contact-row p a { color: #b9bcc4; }
.contact-row p a:hover { color: var(--accent); }
.cphone {
    display: inline-block;
    font-family: dana, Ravi, sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.9;
    transition: color .2s, text-shadow .2s;
}
a.cphone:hover {
    color: var(--accent);
    text-shadow: 0 0 16px rgba(255, 176, 32, .55); /* the number lights up */
}
.contact-map { margin-top: var(--s-2); position: relative; z-index: 1; }
.contact-map iframe {
    width: 100%;
    height: 230px;
    border: 1px solid #2a2d34;
    border-radius: var(--r-img);
    display: block;
}

/* light form card */
.contact-form-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    padding: var(--s-4);
}
.contact-form-card .form-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.contact-form-card .form-title::after {
    content: '';
    width: 36px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(255, 150, 0, .5);
}
.contact-form-card .uk-text-muted { color: var(--muted); font-size: .9rem; margin: 0 0 var(--s-3); }
.contact-submit { width: 100%; }
.contact-submit:disabled { opacity: .6; }

@media (max-width: 960px) {
    .contact-grid { grid-template-columns: 1fr; padding-bottom: var(--s-4); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-night .hero-title { animation: none; }
    .pre-view { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
    .tiles { grid-template-columns: repeat(2, 1fr); }
    .tiles .tile:first-child { grid-column: span 2; grid-row: auto; }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .step::after { display: none; }
    .values { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .hero-band .hero-inner { grid-template-columns: 1fr; gap: var(--s-4); }
    .hero-stack { min-height: 240px; }
    .hero-stack .ph1 { height: 210px; }
    .hero-stack .ph2 { height: 140px; }
    .about-card { grid-template-columns: 1fr; padding: var(--s-3); }
    .articles { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .site-header-row { min-height: 60px; }
    .site-header .logo img { max-height: 42px; }
    .uk-navbar-item, .uk-navbar-nav > li > a, .uk-navbar-toggle { min-height: 60px; padding: 0 8px; font-size: .84rem; }
    .uk-navbar-nav > li > a::after { right: 8px; left: 8px; }
    .works-list img, .works-posts-list img { height: 190px; }
    .uk-child-width-1-4\@m > * { width: 100%; }
    .tiles { grid-template-columns: 1fr; }
    .tiles .tile:first-child, .tiles .tile:nth-child(4) { grid-column: auto; }
    .tiles .tile:first-child h4 { font-size: 1.3rem; }
}
