/*
Theme Name: Art Build-Up
Theme URI: https://www.artbuild-up.com
Author: Арт Билд-Ап ООД
Description: Тема за сайта на Арт Билд-Ап ООД – проекти, имоти, новини и контакти.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: GPLv2 or later
Text Domain: artbuildup
*/

:root{
  --ink:#121A33; --muted:#5B6275; --body:#454C5E; --ground:#F4F5F8; --line:#E1E4EA;
  --navy:#0F1A3C; --navy-2:#18264F; --on-navy:#C9D0E0;
  --accent:#C93A24; --accent-dark:#A82E1B; --brand-red:#E94E36; --yellow:#FFE75C;
  --tag:#FDECE8; --ph:#D5DAE4;
  --wrap:1240px; --r:12px;
}
*{box-sizing:border-box}
body{margin:0;background:var(--ground);color:var(--ink);font-family:"Fira Sans",system-ui,-apple-system,"Segoe UI",sans-serif;font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:var(--ink)}a:hover{color:var(--accent)}
h1,h2,h3{margin:0;line-height:1.15;font-weight:800;letter-spacing:-.01em}
p{margin:0}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 24px}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.skip-link:focus{position:fixed;top:8px;left:8px;width:auto;height:auto;clip:auto;background:#fff;padding:10px 16px;z-index:100}

/* Header */
.site-header{background:var(--navy);color:#fff;position:sticky;top:0;z-index:50;border-bottom:3px solid var(--brand-red)}
.site-header .wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;padding-top:16px;padding-bottom:16px}
.brand{display:flex;flex-direction:column;gap:2px;text-decoration:none}
.brand img,.custom-logo{height:52px;width:auto}
@media (max-width:560px){.brand img,.custom-logo{height:40px}}
.brand{flex-direction:row;align-items:center;gap:14px}
.brand-sub{font-size:10px;font-weight:600;letter-spacing:.2em;color:var(--on-navy);line-height:1.3;border-left:1px solid rgba(255,255,255,.25);padding-left:14px}
@media (max-width:560px){.brand-sub{display:none}}
.main-nav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px 28px}
.main-nav a{text-decoration:none;font-weight:600;font-size:15px;color:#fff}
.main-nav a:hover,.main-nav .current-menu-item>a,.main-nav .current-menu-ancestor>a{color:var(--yellow)}
.header-tools{display:flex;align-items:center;gap:16px}
.header-phone{font-weight:700;text-decoration:none;color:var(--yellow)}.header-phone:hover{color:#fff}
.nav-toggle{display:none;font:inherit;font-weight:700;background:none;color:#fff;border:1.5px solid rgba(255,255,255,.6);border-radius:8px;padding:8px 14px;min-height:44px;cursor:pointer}
@media (max-width:860px){
  .nav-toggle{display:inline-block}
  .main-nav{display:none;width:100%}
  .main-nav.is-open{display:block}
  .main-nav ul{flex-direction:column;gap:0}
  .main-nav a{display:block;padding:12px 0;border-top:1px solid rgba(255,255,255,.15)}
}

/* Buttons & labels */
.btn{display:inline-block;font:inherit;font-weight:700;text-decoration:none;padding:15px 24px;border-radius:8px;border:1.5px solid transparent;cursor:pointer;line-height:1.2}
.btn-primary{background:var(--accent);color:#fff}.btn-primary:hover{background:var(--accent-dark);color:#fff}
.btn-outline{border-color:var(--ink);color:var(--ink);background:transparent}.btn-outline:hover{background:var(--ink);color:#fff}
.eyebrow{display:block;font-size:13px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--accent)}
.tag{display:inline-block;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:5px 10px;border-radius:999px;background:var(--tag);color:var(--accent-dark)}
.section{padding:72px 0}
.section-white{background:#fff;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.section-dark{background:var(--navy);color:#fff}
.section-dark .eyebrow{color:var(--yellow)}
.section-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:32px}
.section-head h2{font-size:38px;margin-top:8px}
.ph{background:var(--ph);display:flex;align-items:flex-start;padding:14px;font-size:12px;font-weight:600;color:#2E3237}
.grid{display:grid;gap:24px;grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}

/* Hero */
.hero{background:var(--navy);color:#fff;position:relative;overflow:hidden}
.hero::before{content:"";position:absolute;right:-120px;bottom:-160px;width:620px;height:520px;background:url(abu-mark.svg) no-repeat center/contain;opacity:.07;pointer-events:none}
.hero .eyebrow{color:var(--yellow)}
.hero .btn-outline{border-color:#fff;color:#fff}.hero .btn-outline:hover{background:#fff;color:var(--navy)}
.hero .wrap{position:relative;padding-bottom:72px !important;display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:48px;align-items:center;padding-top:56px;padding-bottom:40px}
.hero-text{display:flex;flex-direction:column;gap:24px}
.hero h1{font-size:clamp(36px,5vw,56px);line-height:1.05;letter-spacing:-.02em}
.hero-lead{font-size:18px;color:var(--on-navy);max-width:520px}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px}
.hero-media{position:relative;height:460px;border-radius:14px;overflow:hidden;background:var(--navy-2);display:flex;align-items:flex-end;box-shadow:0 24px 60px rgba(0,0,0,.35)}
.hero-media .ph{color:var(--on-navy)}
.hero-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero-card{position:relative;margin:18px;background:#fff;color:var(--ink);border-radius:10px;padding:18px 20px;display:flex;flex-direction:column;gap:4px;text-decoration:none;border-left:4px solid var(--yellow)}
.hero-card .eyebrow{color:var(--accent)}
.hero-card strong{font-size:20px}
.hero-card span:last-child{font-size:14px;color:var(--body)}

/* Facts */
.facts{position:relative;z-index:2;margin-top:-40px;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--r);overflow:hidden;margin-bottom:64px;box-shadow:0 12px 30px rgba(15,26,60,.08)}
.facts>div{background:#fff;padding:24px;display:flex;flex-direction:column;gap:6px}
.facts b{font-size:30px;font-weight:800;line-height:1.1;color:var(--navy)}
.facts>div{border-top:3px solid var(--brand-red)}
.facts span{font-size:14px;color:var(--muted)}

/* Cards */
.card-project{display:flex;flex-direction:column;gap:14px;text-decoration:none;color:var(--ink)}
.card-project .thumb{height:220px;border-radius:10px;overflow:hidden}
.card-project .thumb img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.card-project:hover .thumb img{transform:scale(1.03)}
.card-project .tag{align-self:flex-start}
.card-project h3{font-size:21px}
.card-project p{font-size:15px;color:var(--body)}
.card-property{background:#fff;border:1px solid var(--line);border-radius:var(--r);overflow:hidden;display:flex;flex-direction:column}
.card-property .thumb{height:190px}
.card-property .thumb img{width:100%;height:100%;object-fit:cover}
.card-property .body{padding:20px;display:flex;flex-direction:column;gap:10px;flex:1}
.card-property .deal{font-size:12px;font-weight:700;letter-spacing:.08em;color:var(--accent)}
.card-property h3{font-size:18px;line-height:1.3}
.card-property h3 a{text-decoration:none}
.card-property .meta{display:flex;flex-wrap:wrap;gap:16px;font-size:14px;color:var(--body)}
.card-property .foot{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #ECE9E3;padding-top:14px;margin-top:auto;font-weight:700}
.filters{display:flex;flex-wrap:wrap;gap:8px}
.filters button{font:inherit;font-size:14px;font-weight:700;padding:10px 18px;min-height:44px;border-radius:999px;cursor:pointer;background:#fff;color:var(--ink);border:1.5px solid #CFCAC1}
.filters button[aria-pressed="true"]{background:var(--ink);color:#fff;border-color:var(--ink)}
.box{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:28px;margin-top:24px}
.box h3{font-size:20px;margin-bottom:18px}
.retail{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px 32px;font-size:15px}
.retail div{display:flex;flex-direction:column}
.retail span{color:var(--muted)}

/* About */
.about .wrap{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:48px}

.about h2{font-size:38px;margin:18px 0}
.about p{color:var(--on-navy);font-size:17px;line-height:1.65}
.about-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:32px}
.about-cols h3{font-size:16px;letter-spacing:.04em;margin-bottom:14px}
.about-cols ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px;color:var(--on-navy);font-size:15px}
.about-cols li{padding-left:18px;position:relative}.about-cols li::before{content:"";position:absolute;left:0;top:.6em;width:8px;height:8px;background:var(--yellow);border-radius:2px}

/* News */
.card-news{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:24px;display:flex;flex-direction:column;gap:10px;text-decoration:none;color:var(--ink)}
.card-news time{font-size:13px;color:var(--muted)}
.card-news strong{font-size:18px;line-height:1.35}

/* Contact */
.contact .wrap{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:48px}
.contact-info{display:flex;flex-direction:column;gap:20px}
.contact-info h2{font-size:38px}
.contact-list{display:flex;flex-direction:column;gap:16px}
.contact-list div{display:flex;flex-direction:column}
.contact-list small{font-size:13px;font-weight:700;color:var(--muted);text-transform:uppercase}
.contact-list a{font-weight:700;text-decoration:none}
.form{background:var(--ground);border-radius:var(--r);padding:28px;display:flex;flex-direction:column;gap:16px}
.form label{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:700}
.form input,.form select,.form textarea{font:inherit;font-weight:400;padding:12px 14px;border:1px solid #CFCAC1;border-radius:8px;background:#fff;width:100%}
.form .consent{flex-direction:row;align-items:flex-start;gap:10px;font-weight:400}
.form .consent input{width:auto;margin-top:5px}
.form .hp{position:absolute;left:-9999px}
.notice{padding:14px 18px;border-radius:8px;font-weight:600}
.notice-ok{background:#E6F2EA;color:#1F5130}.notice-err{background:#F8E5E6;color:#7A1A20}

/* Single / pages */
.page-head{padding:40px 0 24px}
.page-head h1{color:var(--navy)}
.breadcrumb{font-size:14px;color:var(--muted);margin-bottom:16px}
.breadcrumb a{color:var(--muted)}
.page-head h1{font-size:clamp(34px,5vw,56px);letter-spacing:-.02em}
.page-head .sub{font-size:17px;color:var(--body);margin-top:10px}
.gallery-top{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px}
.gallery-top .main{height:460px;border-radius:14px;overflow:hidden}
.gallery-top .side{display:grid;grid-template-rows:1fr 1fr;gap:16px}
.gallery-top .side>*{border-radius:14px;overflow:hidden;min-height:160px}
.gallery-top img{width:100%;height:100%;object-fit:cover}
.two-col{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:48px;padding:48px 0}
.entry{font-size:17px;line-height:1.7;color:var(--body)}
.entry>*+*{margin-top:1em}
.entry h2,.entry h3{color:var(--ink);margin-top:1.4em}
.entry img{border-radius:10px}
.specs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--r);overflow:hidden;margin-top:20px}
.specs div{background:#fff;padding:20px;display:flex;flex-direction:column;gap:4px}
.specs b{font-size:24px;line-height:1.2}
.specs span{font-size:14px;color:var(--muted)}
.timeline{list-style:none;margin:20px 0 0;padding:0}
.timeline li{display:flex;gap:16px;padding:16px 0;border-bottom:1px solid var(--line)}
.timeline .dot{flex:none;width:14px;height:14px;margin-top:5px;border-radius:50%;background:var(--brand-red);box-shadow:0 0 0 3px #FFF3B8}
.timeline .dot.todo{background:none;border:2px solid #9A9EA4}
.timeline b{display:block}
.timeline span{font-size:14px;color:var(--muted)}
.table-wrap{overflow-x:auto}
table.units{width:100%;min-width:640px;border-collapse:collapse;font-size:15px}
table.units th{text-align:left;font-size:13px;letter-spacing:.06em;color:var(--muted);padding:12px 8px;border-bottom:1.5px solid var(--ink)}
table.units td{padding:14px 8px;border-bottom:1px solid var(--line)}
.map iframe{width:100%;height:320px;border:0;border-radius:var(--r)}
.pagination{display:flex;gap:8px;margin-top:32px}
.pagination .page-numbers{padding:8px 14px;border:1px solid var(--line);border-radius:8px;text-decoration:none;background:#fff}
.pagination .current{background:var(--ink);color:#fff}

/* Footer */
.site-footer{background:var(--navy);color:var(--on-navy);font-size:14px;border-top:3px solid var(--brand-red)}
.site-footer .footer-logo{height:40px;width:auto}
.site-footer .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;padding-top:32px;padding-bottom:32px}
.site-footer a{color:var(--on-navy)}
.site-footer ul{list-style:none;margin:0;padding:0;display:flex;gap:24px}
