/*
Theme Name: Pak Clay Tiles
Theme URI: https://clayfloortiles.com/
Author: SylJo Tech
Author URI: https://syljotech.com/
Description: Custom terracotta theme for Pak Clay Khaprail Tiles Manufacturer. Custom homepage, mega product menu, branch/contact details from the Customizer, and a built-in cleanup layer for old WPBakery / Porto / Slider Revolution content so legacy pages display cleanly.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pakclay
*/

/* ---------- Tokens ---------- */
:root{
  --clay:#B5532A;
  --clay-dark:#8E3C1B;
  --clay-light:#D9875C;
  --earth:#2E1C13;
  --earth-2:#4A3022;
  --cream:#FBF6EE;
  --sand:#F1E6D6;
  --sand-2:#E6D3B8;
  --ink:#2B211C;
  --muted:#6F5E52;
  --line:#E8DCCB;
  --white:#fff;
  --radius:14px;
  --radius-sm:8px;
  --shadow:0 10px 30px -12px rgba(46,28,19,.25);
  --shadow-lg:0 24px 60px -20px rgba(46,28,19,.35);
  --wrap:1220px;
  --font-head:"Fraunces", Georgia, "Times New Roman", serif;
  --font-body:"Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  /* clay roof-tile pattern */
  --tiles:radial-gradient(circle at 50% 100%, transparent 58%, rgba(0,0,0,.14) 59%, rgba(0,0,0,.14) 63%, transparent 64%) 0 0/46px 26px,
          radial-gradient(circle at 50% 100%, transparent 58%, rgba(0,0,0,.14) 59%, rgba(0,0,0,.14) 63%, transparent 64%) 23px 13px/46px 26px;
}

/* ---------- Base ---------- */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{overflow-x:clip;margin:0;background:var(--cream);color:var(--ink);font-family:var(--font-body);font-size:16.5px;line-height:1.7;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:var(--clay);text-decoration:none;transition:color .2s}
a:hover{color:var(--clay-dark)}
h1,h2,h3,h4,h5,h6{font-family:var(--font-head);color:var(--earth);line-height:1.2;margin:0 0 .6em;font-weight:600;letter-spacing:-.01em}
h1{font-size:clamp(2rem,4.5vw,3.4rem)}
h2{font-size:clamp(1.6rem,3.2vw,2.5rem)}
h3{font-size:1.3rem}
p{margin:0 0 1.1em}
ul,ol{padding-left:1.3em}
hr{border:0;border-top:1px solid var(--line);margin:2rem 0}
table{width:100%;border-collapse:collapse;margin:1.5rem 0;background:var(--white);border-radius:var(--radius-sm);overflow:hidden}
th,td{padding:.75rem 1rem;border-bottom:1px solid var(--line);text-align:left}
th{background:var(--sand);font-weight:600}
blockquote{margin:1.5rem 0;padding:1rem 1.5rem;border-left:4px solid var(--clay);background:var(--white);border-radius:0 var(--radius-sm) var(--radius-sm) 0}
input,textarea,select{font:inherit;width:100%;padding:.8rem 1rem;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--white);color:var(--ink)}
input:focus,textarea:focus,select:focus{outline:2px solid var(--clay-light);outline-offset:1px;border-color:var(--clay)}
input[type=submit],button{width:auto}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}
.skip-link:focus{position:fixed;top:10px;left:10px;z-index:999;background:var(--white);padding:.6rem 1rem;clip:auto;width:auto;height:auto}
.wrap{width:100%;max-width:var(--wrap);margin:0 auto;padding:0 20px}
.img-missing{display:none!important}

/* ---------- Buttons ---------- */
.btn,input[type=submit],.wpcf7-submit,.vc-btn{display:inline-flex;align-items:center;gap:.5rem;padding:.85rem 1.5rem;border-radius:999px;font-weight:600;font-size:.95rem;border:2px solid var(--clay);background:var(--clay);color:var(--white);cursor:pointer;transition:transform .2s,background .2s,box-shadow .2s;line-height:1.2;text-align:center}
.btn:hover,input[type=submit]:hover,.wpcf7-submit:hover,.vc-btn:hover{background:var(--clay-dark);border-color:var(--clay-dark);color:var(--white);transform:translateY(-2px);box-shadow:var(--shadow)}
.btn--ghost{background:transparent;color:var(--white);border-color:rgba(255,255,255,.7)}
.btn--ghost:hover{background:var(--white);color:var(--earth);border-color:var(--white)}
.btn--light{background:var(--white);color:var(--clay-dark);border-color:var(--white)}
.btn--light:hover{background:var(--sand);border-color:var(--sand);color:var(--earth)}
.btn--wa{background:#1FA855;border-color:#1FA855}
.btn--wa:hover{background:#168543;border-color:#168543}
.btn svg{width:18px;height:18px;flex:none}

/* ---------- Top bar ---------- */
.topbar{background:var(--earth);color:#E9DBC8;font-size:.84rem}
.topbar .wrap{display:flex;justify-content:space-between;align-items:center;gap:1rem;min-height:40px;flex-wrap:wrap}
.topbar a{color:#F5E9D9}
.topbar a:hover{color:var(--clay-light)}
.topbar__items{display:flex;gap:1.4rem;flex-wrap:wrap;align-items:center}
.topbar__items span,.topbar__items a{display:inline-flex;align-items:center;gap:.4rem}
.topbar svg{width:14px;height:14px;opacity:.85}

/* ---------- Header ---------- */
.site-header{position:sticky;top:0;z-index:100;background:rgba(251,246,238,.94);backdrop-filter:saturate(1.4) blur(10px);-webkit-backdrop-filter:saturate(1.4) blur(10px);border-bottom:1px solid var(--line)}
.admin-bar .site-header{top:32px}
@media (max-width:782px){.admin-bar .site-header{top:46px}}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;min-height:78px}
.brand{display:flex;align-items:center;gap:.75rem;color:var(--earth);flex:none}
.brand:hover{color:var(--earth)}
.brand__mark{width:46px;height:46px;border-radius:10px;background:var(--clay);display:grid;place-items:center;flex:none;box-shadow:inset 0 -6px 0 rgba(0,0,0,.12)}
.brand__mark svg{width:28px;height:28px}
.brand__text{display:flex;flex-direction:column;line-height:1.1}
.brand__name{font-family:var(--font-head);font-weight:700;font-size:1.25rem;color:var(--earth)}
.brand__tag{font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:var(--clay);font-weight:600;margin-top:4px}
.custom-logo-link img{max-height:58px;width:auto}

/* nav */
.main-nav{display:flex;align-items:center;gap:1.2rem}
.main-nav ul{list-style:none;margin:0;padding:0}
.main-nav .menu{display:flex;align-items:center;gap:.2rem}
.main-nav .menu>li{position:relative}
.main-nav .menu>li>a{display:flex;align-items:center;gap:.3rem;padding:.6rem .8rem;border-radius:999px;color:var(--earth);font-weight:500;font-size:.95rem}
.main-nav .menu>li>a:hover,.main-nav .menu>li.current-menu-item>a,.main-nav .menu>li.current-menu-ancestor>a{color:var(--clay);background:var(--sand)}
.main-nav .menu-item-has-children>a::after{content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px);margin-left:.25rem;opacity:.7}
.main-nav .sub-menu{position:absolute;top:calc(100% + 8px);left:0;min-width:250px;background:var(--white);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-lg);padding:.5rem;opacity:0;visibility:hidden;transform:translateY(8px);transition:.2s;z-index:50}
.main-nav .sub-menu::before{content:"";position:absolute;top:-10px;left:0;right:0;height:10px}
.main-nav li:hover>.sub-menu,.main-nav li:focus-within>.sub-menu{opacity:1;visibility:visible;transform:none}
.main-nav .sub-menu li{position:relative}
.main-nav .sub-menu a{display:flex;justify-content:space-between;align-items:center;padding:.55rem .8rem;border-radius:var(--radius-sm);color:var(--ink);font-size:.92rem}
.main-nav .sub-menu a:hover{background:var(--sand);color:var(--clay-dark)}
.main-nav .sub-menu .sub-menu{top:-.5rem;left:100%;margin-left:6px}
.main-nav .sub-menu .menu-item-has-children>a::after{transform:rotate(-45deg);margin-left:.6rem}
.header-cta{flex:none}
.nav-toggle{display:none;background:none;border:0;padding:.5rem;cursor:pointer;color:var(--earth)}
.nav-toggle svg{width:28px;height:28px}

@media (max-width:1100px){
  .site-header{backdrop-filter:none;-webkit-backdrop-filter:none;background:var(--cream)}
  .nav-toggle{display:block}
  .header-cta{display:none}
  .main-nav{position:fixed;inset:0 0 0 auto;width:min(360px,88vw);background:var(--white);flex-direction:column;align-items:stretch;padding:5rem 1.2rem 2rem;overflow-y:auto;transform:translateX(100%);transition:transform .3s;box-shadow:var(--shadow-lg);z-index:120}
  .nav-open .main-nav{transform:none}
  .nav-open .site-header{z-index:130}
  .nav-open .nav-overlay{opacity:1;visibility:visible}
  .main-nav .menu{flex-direction:column;align-items:stretch;gap:0}
  .main-nav .menu>li>a{border-radius:var(--radius-sm);padding:.8rem .9rem;justify-content:space-between}
  .main-nav .sub-menu,.main-nav .sub-menu .sub-menu{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;border:0;padding:0 0 0 .8rem;display:none;min-width:0;margin:0}
  .main-nav li.open>.sub-menu{display:block}
  .main-nav .sub-menu .menu-item-has-children>a::after{transform:rotate(45deg)}
  .main-nav .header-cta--mobile{display:flex;justify-content:center;margin-top:1rem}
  .nav-close{position:absolute;top:1.2rem;right:1.2rem}
}
@media (min-width:1101px){.header-cta--mobile,.nav-close{display:none!important}}
.nav-overlay{position:fixed;inset:0;background:rgba(46,28,19,.45);opacity:0;visibility:hidden;transition:.3s;z-index:110}

/* ---------- Hero ---------- */
.hero{position:relative;overflow:hidden;color:var(--white);background:var(--clay-dark)}
.hero__bg{position:absolute;inset:0;background:var(--tiles),linear-gradient(135deg,#C7643A 0%,#9B4422 55%,#6E2E14 100%);}
.hero__bg img{width:100%;height:100%;object-fit:cover}
.hero__bg::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(46,20,8,.82) 0%,rgba(46,20,8,.55) 50%,rgba(46,20,8,.15) 100%)}
.hero .wrap{position:relative;display:grid;grid-template-columns:1.15fr .85fr;gap:3rem;align-items:center;padding-top:clamp(4rem,9vw,7.5rem);padding-bottom:clamp(4rem,9vw,7.5rem)}
.eyebrow{display:inline-flex;align-items:center;gap:.6rem;font-size:.8rem;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--clay-light);margin-bottom:1rem}
.eyebrow::before{content:"";width:28px;height:2px;background:currentColor}
.hero .eyebrow{color:#F6C9A9}
.hero h1{color:var(--white);margin-bottom:1rem}
.hero h1 em{font-style:italic;color:#F6C9A9;font-weight:500}
.hero__lead{font-size:1.15rem;color:#F3E4D6;max-width:560px;margin-bottom:2rem}
.hero__actions{display:flex;gap:.8rem;flex-wrap:wrap}
.hero__card{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.22);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border-radius:var(--radius);padding:1.8rem;display:grid;grid-template-columns:1fr 1fr;gap:1.4rem}
.stat strong{display:block;font-family:var(--font-head);font-size:2.2rem;line-height:1;color:var(--white)}
.stat span{font-size:.88rem;color:#F0DCCB}
@media (max-width:900px){.hero .wrap{grid-template-columns:1fr}.hero__bg::after{background:rgba(46,20,8,.7)}}

/* ---------- Brands strip ---------- */
.brands{background:var(--white);border-bottom:1px solid var(--line)}
.brands .wrap{display:flex;align-items:center;justify-content:space-between;gap:1.5rem 2.5rem;flex-wrap:wrap;padding-top:1.6rem;padding-bottom:1.6rem}
.brands__label{font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);font-weight:600}
.brands__list{display:flex;flex-wrap:wrap;gap:1rem 2.2rem;align-items:center}
.brands__item{font-family:var(--font-head);font-weight:700;font-size:1.15rem;color:var(--clay);opacity:.85;display:inline-flex;align-items:center;gap:.45rem}
.brands__item::before{content:"";width:10px;height:10px;background:var(--clay);border-radius:2px;transform:rotate(45deg)}

/* ---------- Sections ---------- */
.section{padding:clamp(3.5rem,7vw,6rem) 0}
.section--sand{background:var(--sand)}
.section--white{background:var(--white)}
.section--dark{background:var(--earth);color:#EADBC9}
.section--dark h2,.section--dark h3{color:var(--white)}
.section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:2rem;margin-bottom:2.6rem;flex-wrap:wrap}
.section-head p{max-width:560px;color:var(--muted);margin:0}
.section-head--center{flex-direction:column;align-items:center;text-align:center}
.section--dark .section-head p{color:#CDB9A6}

/* product categories */
.cat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.6rem}
@media (max-width:960px){.cat-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:600px){.cat-grid{grid-template-columns:1fr}}
.cat-card{position:relative;display:flex;flex-direction:column;background:var(--white);border-radius:var(--radius);overflow:hidden;border:1px solid var(--line);color:var(--ink);transition:transform .25s,box-shadow .25s}
.cat-card:hover{transform:translateY(-6px);box-shadow:var(--shadow-lg);color:var(--ink)}
.cat-card__media{position:relative;aspect-ratio:16/10;overflow:hidden;background:var(--tiles),var(--cat-bg,linear-gradient(135deg,#C7643A,#8E3C1B))}
.cat-card__media img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.cat-card:hover .cat-card__media img{transform:scale(1.06)}
.cat-card__icon{position:absolute;inset:0;display:grid;place-items:center}
.cat-card__icon svg{width:64px;height:64px;color:rgba(255,255,255,.92)}
.cat-card__body{padding:1.4rem 1.5rem 1.6rem;display:flex;flex-direction:column;flex:1}
.cat-card__body h3{margin-bottom:.4rem}
.cat-card__body p{color:var(--muted);font-size:.95rem;flex:1}
.link-arrow{display:inline-flex;align-items:center;gap:.4rem;font-weight:600;color:var(--clay)}
.link-arrow svg{width:16px;height:16px;transition:transform .2s}
.cat-card:hover .link-arrow svg,.link-arrow:hover svg{transform:translateX(4px)}

/* features */
.features{display:grid;grid-template-columns:repeat(4,1fr);gap:1.4rem}
@media (max-width:960px){.features{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.features{grid-template-columns:1fr}}
.feature{background:var(--white);border-radius:var(--radius);padding:1.8rem 1.6rem;border:1px solid var(--line)}
.feature__icon{width:56px;height:56px;border-radius:12px;background:var(--sand);display:grid;place-items:center;color:var(--clay);margin-bottom:1.1rem}
.feature__icon svg{width:28px;height:28px}
.feature h3{font-size:1.15rem}
.feature p{color:var(--muted);font-size:.94rem;margin:0}

/* bestsellers */
.prod-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.2rem}
@media (max-width:960px){.prod-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:480px){.prod-grid{grid-template-columns:1fr}}
.prod{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;color:var(--ink);transition:.25s;display:flex;flex-direction:column}
.prod:hover{box-shadow:var(--shadow);transform:translateY(-4px);color:var(--ink)}
.prod__media{aspect-ratio:1/1;background:var(--tiles),var(--p-bg,linear-gradient(135deg,#D9875C,#B5532A));position:relative;overflow:hidden}
.prod__media img{width:100%;height:100%;object-fit:cover}
.prod__tag{position:absolute;top:12px;left:12px;background:var(--white);color:var(--clay-dark);font-size:.72rem;font-weight:700;padding:.3rem .65rem;border-radius:999px;text-transform:uppercase;letter-spacing:.06em}
.prod__body{padding:1rem 1.1rem 1.2rem}
.prod__body h3{font-size:1.05rem;margin:0 0 .3rem}
.prod__body span{font-size:.86rem;color:var(--muted)}

/* about split */
.split{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2rem,5vw,4.5rem);align-items:center}
@media (max-width:900px){.split{grid-template-columns:1fr}}
.split__visual{position:relative;border-radius:var(--radius);min-height:440px;overflow:hidden;background:var(--tiles),linear-gradient(160deg,#C7643A,#6E2E14)}
.split__visual img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.split__badge{position:absolute;left:24px;bottom:24px;background:var(--white);border-radius:var(--radius);padding:1.1rem 1.4rem;box-shadow:var(--shadow-lg);display:flex;align-items:center;gap:1rem}
.split__badge strong{font-family:var(--font-head);font-size:2.4rem;color:var(--clay);line-height:1}
.split__badge span{font-size:.86rem;color:var(--muted);line-height:1.3}
.checklist{list-style:none;padding:0;margin:1.5rem 0 2rem;display:grid;gap:.7rem}
.checklist li{display:flex;gap:.7rem;align-items:flex-start}
.checklist svg{width:22px;height:22px;color:var(--clay);flex:none;margin-top:2px}
.quote{border-left:3px solid var(--clay);padding:.4rem 0 .4rem 1.2rem;margin-top:1.5rem}
.quote p{font-family:var(--font-head);font-style:italic;font-size:1.1rem;color:var(--earth-2);margin-bottom:.5rem}
.quote cite{font-style:normal;font-weight:600;font-size:.9rem;color:var(--clay-dark)}
.quote cite span{display:block;font-weight:400;color:var(--muted)}

/* process */
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:1.4rem;counter-reset:step}
@media (max-width:900px){.steps{grid-template-columns:repeat(2,1fr)}}
@media (max-width:520px){.steps{grid-template-columns:1fr}}
.step{position:relative;padding:1.6rem;border-radius:var(--radius);background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1)}
.step::before{counter-increment:step;content:"0" counter(step);font-family:var(--font-head);font-size:2.4rem;color:var(--clay-light);line-height:1;display:block;margin-bottom:.8rem}
.step h3{font-size:1.1rem}
.step p{font-size:.93rem;color:#CDB9A6;margin:0}

/* posts */
.post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.6rem}
@media (max-width:900px){.post-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:600px){.post-grid{grid-template-columns:1fr}}
.card{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;transition:.25s}
.card:hover{box-shadow:var(--shadow);transform:translateY(-4px)}
.card__media{display:block;aspect-ratio:16/10;background:var(--tiles),linear-gradient(135deg,#E6D3B8,#D9875C);overflow:hidden}
.card__media img{width:100%;height:100%;object-fit:cover}
.card__body{padding:1.3rem 1.4rem 1.5rem;display:flex;flex-direction:column;flex:1}
.card__meta{font-size:.8rem;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;margin-bottom:.5rem}
.card__body h3{font-size:1.18rem;margin-bottom:.5rem}
.card__body h3 a{color:var(--earth)}
.card__body h3 a:hover{color:var(--clay)}
.card__body p{color:var(--muted);font-size:.94rem;flex:1}

/* CTA */
.cta{position:relative;overflow:hidden;border-radius:calc(var(--radius) + 6px);background:var(--tiles),linear-gradient(120deg,#B5532A,#7E3416);color:var(--white);padding:clamp(2.2rem,5vw,3.6rem);display:grid;grid-template-columns:1.3fr 1fr;gap:2rem;align-items:center}
.cta h2{color:var(--white);margin-bottom:.5rem}
.cta p{color:#F6DCC8;margin:0}
.cta__actions{display:flex;gap:.8rem;flex-wrap:wrap;justify-content:flex-end}
@media (max-width:800px){.cta{grid-template-columns:1fr}.cta__actions{justify-content:flex-start}}

/* branches */
.branches{display:grid;grid-template-columns:repeat(3,1fr);gap:1.4rem}
@media (max-width:900px){.branches{grid-template-columns:1fr}}
.branch{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:1.7rem}
.branch__label{display:inline-block;font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:var(--clay);background:var(--sand);padding:.25rem .65rem;border-radius:999px;margin-bottom:.8rem}
.branch h3{font-size:1.2rem;margin-bottom:.5rem}
.branch p{color:var(--muted);margin:0 0 .4rem;font-size:.95rem}
.branch a{font-weight:600}
.branch ul{list-style:none;padding:0;margin:0;display:grid;gap:.5rem}
.branch li{display:flex;gap:.6rem;align-items:center}
.branch li svg{width:18px;height:18px;color:var(--clay);flex:none}

/* ---------- Page header & content ---------- */
.page-hero{position:relative;background:var(--tiles),linear-gradient(120deg,#9B4422,#5E2711);color:var(--white);padding:clamp(3rem,7vw,5rem) 0}
.page-hero h1{color:var(--white);margin:0;max-width:900px}
.page-hero .eyebrow{color:#F6C9A9}
.breadcrumbs{font-size:.85rem;color:#F3DCC9;margin-top:.8rem}
.breadcrumbs a{color:#FFE7D4}
.breadcrumbs span.sep{margin:0 .45rem;opacity:.6}
.content-area{padding:clamp(2.5rem,6vw,4.5rem) 0}
.layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:3rem;align-items:start}
.layout--full{grid-template-columns:minmax(0,1fr)}
@media (max-width:960px){.layout{grid-template-columns:minmax(0,1fr)}}
.entry{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:clamp(1.4rem,4vw,2.8rem)}
.entry-content{font-size:1.02rem}
.entry-content>*:last-child{margin-bottom:0}
.entry-content h2{margin-top:1.6em}
.entry-content h3{margin-top:1.4em}
.entry-content img{border-radius:var(--radius-sm)}
.entry-content a{text-decoration:underline;text-underline-offset:3px}
.entry-content .alignleft{float:left;margin:0 1.5rem 1rem 0}
.entry-content .alignright{float:right;margin:0 0 1rem 1.5rem}
.entry-content .aligncenter{margin-left:auto;margin-right:auto}
.wp-caption-text,figcaption{font-size:.85rem;color:var(--muted);margin-top:.4rem}
.entry-meta{font-size:.88rem;color:var(--muted);margin-bottom:1.4rem}
.post-thumb{border-radius:var(--radius);overflow:hidden;margin-bottom:1.6rem}

/* sidebar */
.sidebar{display:grid;gap:1.4rem;position:sticky;top:110px}
.widget{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:1.5rem}
.widget h2,.widget h3,.widget-title{font-size:1.1rem;margin-bottom:.9rem}
.widget ul{list-style:none;padding:0;margin:0}
.widget li{padding:.45rem 0;border-bottom:1px dashed var(--line)}
.widget li:last-child{border:0}
.widget--quote{background:var(--tiles),linear-gradient(140deg,#B5532A,#7E3416);color:var(--white);border:0}
.widget--quote h3{color:var(--white)}
.widget--quote p{color:#F6DCC8;font-size:.94rem}
.widget--quote .btn{width:100%;justify-content:center;margin-top:.5rem}

/* pagination */
.pagination{margin-top:2.5rem;display:flex;justify-content:center}
.pagination .nav-links{display:flex;gap:.4rem;flex-wrap:wrap}
.pagination .page-numbers{display:grid;place-items:center;min-width:42px;height:42px;padding:0 .8rem;border-radius:999px;background:var(--white);border:1px solid var(--line);color:var(--earth);font-weight:600}
.pagination .page-numbers.current,.pagination .page-numbers:hover{background:var(--clay);border-color:var(--clay);color:var(--white)}

/* ---------- Legacy WPBakery / Porto cleanup ---------- */
.vc-row{display:flex;flex-wrap:wrap;margin:0 -12px 1.5rem}
.vc-col{padding:0 12px;flex:0 0 100%;max-width:100%;min-width:0}
@media (min-width:768px){
  .vc-col--1-2{flex-basis:50%;max-width:50%}
  .vc-col--1-3{flex-basis:33.333%;max-width:33.333%}
  .vc-col--2-3{flex-basis:66.666%;max-width:66.666%}
  .vc-col--1-4{flex-basis:25%;max-width:25%}
  .vc-col--3-4{flex-basis:75%;max-width:75%}
  .vc-col--1-6{flex-basis:16.666%;max-width:16.666%}
  .vc-col--5-6{flex-basis:83.333%;max-width:83.333%}
  .vc-col--1-5{flex-basis:20%;max-width:20%}
}
.vc-text,.vc-image{margin-bottom:1.2rem}
.vc-image img{border-radius:var(--radius-sm)}
.vc-spacer{height:24px}

/* Contact Form 7 */
.wpcf7 form p{margin-bottom:1rem}
.wpcf7-response-output{border-radius:var(--radius-sm)}

/* ---------- Footer ---------- */
.site-footer{background:var(--earth);color:#CDB9A6;font-size:.94rem;position:relative}
.site-footer::before{content:"";display:block;height:6px;background:repeating-linear-gradient(90deg,var(--clay) 0 40px,var(--clay-light) 40px 80px)}
.footer-top{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.3fr;gap:2.5rem;padding-top:4rem;padding-bottom:3rem}
@media (max-width:960px){.footer-top{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.footer-top{grid-template-columns:1fr}}
.site-footer h4{color:var(--white);font-size:1.05rem;margin-bottom:1rem;font-family:var(--font-body);font-weight:600;letter-spacing:.02em}
.site-footer a{color:#E9DBC8}
.site-footer a:hover{color:var(--clay-light)}
.site-footer ul{list-style:none;padding:0;margin:0;display:grid;gap:.55rem}
.footer-brand .brand__name{color:var(--white)}
.footer-brand p{margin-top:1rem}
.footer-contact li{display:flex;gap:.6rem;align-items:flex-start}
.footer-contact svg{width:18px;height:18px;color:var(--clay-light);flex:none;margin-top:3px}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding:1.3rem 0;font-size:.85rem}
.footer-bottom .wrap{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap}

/* floating WhatsApp */
.wa-float{position:fixed;right:20px;bottom:20px;width:56px;height:56px;border-radius:50%;background:#1FA855;color:var(--white);display:grid;place-items:center;box-shadow:0 10px 25px -8px rgba(0,0,0,.4);z-index:90;transition:transform .2s}
.wa-float:hover{transform:scale(1.08);color:var(--white)}
.wa-float svg{width:30px;height:30px}

/* reveal animation */
@media (prefers-reduced-motion:no-preference){
  .js .reveal{opacity:0;transform:translateY(18px);transition:opacity .7s ease,transform .7s ease}
  .js .reveal.in{opacity:1;transform:none}
}

/* 404 / search */
.notfound{text-align:center;padding:3rem 0}
.notfound strong{font-family:var(--font-head);font-size:clamp(5rem,15vw,9rem);color:var(--clay);line-height:1;display:block}
.search-form{display:flex;gap:.6rem;max-width:520px;margin:1.5rem auto 0}
.search-form label{flex:1}
@media (max-width:600px){.topbar__items:first-child{display:none}.topbar .wrap{justify-content:center}}
.main-nav .menu>li>a[href$="#"]{background:transparent;color:var(--earth)}
.entry-content .vc-btn,.entry-content .btn{text-decoration:none}
.entry-content p:empty{display:none}
.wp-block-search__inside-wrapper{display:flex;gap:.5rem}
.wp-block-search__button{background:var(--clay);color:var(--white);border:0;border-radius:999px;padding:.6rem 1.1rem;font-weight:600;cursor:pointer}
.wp-block-search__label{font-weight:600;color:var(--earth);display:block;margin-bottom:.5rem}
.widget .wp-block-heading{font-size:1.1rem}
.post-navigation{margin-top:2rem;padding-top:1.5rem;border-top:1px solid var(--line)}
.post-navigation .nav-links{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;font-weight:600}
