/*
Theme Name: Yantai REAL
Theme URI: https://ytreal.com
Author: Yantai REAL Team
Description: Custom theme for Yantai REAL - modular expandable container houses, boat tents and sauna tents manufacturer.
Version: 1.4.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: ytreal
*/

:root {
  --c: #435067;
  --c-dark: #313c4e;
  --n: #f6b110;
  --n-dark: #d99a06;
  --white: #fff;
  --bg: #f5f6f8;
  --border: #e4e6ea;
  --text: #3b4452;
  --muted: #7a8494;
  --br: 10px;
  --bw: clamp(769px, 90%, 1600px);
  --shadow: 0 12px 34px rgba(49, 60, 78, .12);
  --shadow-sm: 0 4px 14px rgba(49, 60, 78, .08);
  --font: Arial, "Helvetica Neue", "Microsoft YaHei", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; font-size: 15px; }

.wrap { width: var(--bw); margin: 0 auto; padding: 0 20px; }

[id] { scroll-margin-top: 116px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: var(--br);
  font-size: 16px; font-weight: 600; border: none;
  color: var(--white); background: var(--n);
  transition: background .25s, transform .25s;
}
.btn:hover { background: var(--c); }
.btn-dark { background: var(--c); }
.btn-dark:hover { background: var(--n); }
.btn .arr { display: inline-block; transition: transform .25s; }
.btn:hover .arr { transform: rotate(45deg); }
.btn-lg { padding: 15px 34px; font-size: 17px; }

/* ---------- Section titles ---------- */
.section { padding: 90px 0; }
.section--gray { background: var(--bg); }
.section--dark { background: var(--c); color: var(--white); }

.s-title {
  text-align: center; margin-bottom: 50px;
}
.s-title .kicker {
  display: inline-block; color: var(--n);
  font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  font-size: 14px; margin-bottom: 8px;
}
.s-title h2 {
  font-size: clamp(28px, 4vw, 44px); color: var(--c); font-weight: 800;
  line-height: 1.2;
}
.s-title h2 span { color: var(--n); }
.s-title p { color: var(--muted); margin-top: 12px; max-width: 720px; margin-left: auto; margin-right: auto; }
.s-title .line { width: 60px; height: 4px; background: var(--n); border-radius: 2px; margin: 16px auto 0; }
.section--dark .s-title h2 { color: var(--white); }
.section--dark .s-title p { color: #b7c0ce; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 61;
  background: var(--c); color: #dfe5ee; font-size: 13px;
  transition: transform .3s ease;
}
.topbar.is-hidden { transform: translateY(-100%); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 40px; }
.topbar a { color: #dfe5ee; display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.topbar a:hover { color: var(--n); }
.topbar .left { display: flex; gap: 22px; }
.topbar .right { display: flex; gap: 14px; align-items: center; }
.topbar .right a.soc { font-size: 15px; }
.topbar .lang-sw .pll-switcher { display: inline-flex; gap: 8px; }
.topbar .lang-sw .pll-switcher a { color: #dfe5ee; opacity: .65; }
.topbar .lang-sw .pll-switcher a:hover { opacity: 1; }
.topbar .lang-sw .pll-switcher .current-lang { opacity: 1; color: var(--n); }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 40px; left: 0; right: 0; z-index: 60;
  background: transparent; border-bottom: 1px solid transparent;
  transition: top .3s, background .3s, box-shadow .3s, border-color .3s;
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.header .logo .name { color: var(--white); }
.header .logo .name small { color: rgba(255,255,255,.75); }
.header .nav > li > a { color: rgba(255,255,255,.95); }
.header .nav > li > a:hover, .header .nav > li.active > a { color: var(--n); }
.header .hamburger span { background: var(--white); }
.header.is-scrolled {
  top: 0; background: rgba(255,255,255,.97);
  box-shadow: var(--shadow-sm); border-bottom-color: var(--border);
}
.header.is-scrolled .logo .name { color: var(--c); }
.header.is-scrolled .logo .name small { color: var(--n); }
.header.is-scrolled .nav > li > a { color: var(--c); }
.header.is-scrolled .nav > li > a:hover, .header.is-scrolled .nav > li.active > a { color: var(--n); }
.header.is-scrolled .hamburger span { background: var(--c); }

.logo { display: flex; align-items: center; gap: 10px; }
.logo .mark {
  width: 42px; height: 42px; border-radius: 9px; background: var(--n);
  color: var(--white); display: grid; place-items: center;
  font-weight: 800; font-size: 22px;
}
.logo .name { font-size: 22px; font-weight: 800; color: var(--c); letter-spacing: .5px; line-height: 1.1; }
.logo .name small { display: block; font-size: 10px; font-weight: 700; letter-spacing: 3px; color: var(--n); text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > li { position: relative; }
.nav > li > a {
  display: block; padding: 10px 16px; font-weight: 600; font-size: 15px;
  color: var(--c); border-radius: 8px; transition: color .2s, background .2s;
}
.nav > li > a:hover, .nav > li.active > a { color: var(--n); }
.nav .dd {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: var(--white); border-radius: var(--br); box-shadow: var(--shadow);
  padding: 10px; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: .25s; border-top: 3px solid var(--n);
}
.nav > li:hover .dd { opacity: 1; visibility: visible; transform: translateY(0); }
.nav .dd a { display: block; padding: 9px 14px; border-radius: 7px; font-size: 14px; color: var(--text); }
.nav .dd a:hover { background: var(--bg); color: var(--n); padding-left: 18px; }
.nav .caret { font-size: 10px; margin-left: 4px; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.hamburger span { width: 24px; height: 3px; background: var(--c); border-radius: 2px; }

/* ---------- Hero slider ---------- */
.hero { position: relative; height: calc(100vh - 40px); min-height: 620px; max-height: 940px; overflow: hidden; background: #000; }
.hero .slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease;
  display: flex; align-items: center; color: var(--white);
}
.hero .slide.active { opacity: 1; z-index: 1; }
.hero .slide .bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.08); transition: transform 7s linear; }
.hero .slide.active .bg { transform: scale(1); }
.hero .slide .shade { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,28,42,.82) 0%, rgba(20,28,42,.45) 45%, rgba(20,28,42,.05) 100%); }
.hero .slide .cap { position: relative; z-index: 2; max-width: 700px; }
.hero .slide .kicker { color: var(--n); font-weight: 700; letter-spacing: 4px; text-transform: uppercase; font-size: 14px; margin-bottom: 14px; }
.hero .slide h1 { font-size: clamp(32px, 5vw, 60px); font-weight: 800; line-height: 1.15; margin-bottom: 18px; }
.hero .slide p { font-size: 17px; color: #dfe5ee; max-width: 560px; margin-bottom: 28px; }
.hero .pager {
  position: absolute; bottom: 40px; right: 40px; z-index: 5; display: flex; gap: 14px;
}
.hero .pager .p {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5);
  color: var(--white); display: grid; place-items: center; font-weight: 700; font-size: 14px;
  cursor: pointer; transition: .25s; position: relative;
}
.hero .pager .p:hover, .hero .pager .p.active { background: var(--n); border-color: var(--n); color: var(--white); }
.hero .scroll-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 5; color: #cfd6e0; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }

/* ---------- Product cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.pcard {
  background: var(--white); border-radius: var(--br); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s;
  border: 1px solid var(--border);
}
.pcard:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.pcard .img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #eef0f4; }
.pcard .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pcard:hover .img img { transform: scale(1.06); }
.pcard .cat {
  position: absolute; top: 12px; left: 12px; background: var(--n); color: var(--white);
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px;
}
.pcard .body { padding: 20px; }
.pcard h3 { font-size: 18px; color: var(--c); font-weight: 700; margin-bottom: 8px; }
.pcard p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
.pcard .link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--c); border-bottom: 2px solid var(--n); padding-bottom: 2px; transition: color .2s; }
.pcard .link:hover { color: var(--n); }

/* ---------- Applications (dark) ---------- */
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.app {
  position: relative; border-radius: var(--br); overflow: hidden; aspect-ratio: 16/11;
}
.app img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.app:hover img { transform: scale(1.08); }
.app .ov { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(15,20,32,.9) 100%); display: flex; align-items: flex-end; padding: 20px; }
.app .ov h4 { color: var(--white); font-size: 18px; font-weight: 700; }
.app .ov span { color: var(--n); font-size: 13px; font-weight: 600; }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--br);
  padding: 26px 20px; text-align: center; transition: .3s; position: relative;
}
.step:hover { border-color: var(--n); box-shadow: var(--shadow-sm); transform: translateY(-6px); }
.step .num {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--bg); color: var(--c); font-weight: 800; font-size: 20px;
  display: grid; place-items: center; transition: .3s;
}
.step:hover .num { background: var(--n); color: var(--white); }
.step h4 { font-size: 16px; color: var(--c); font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--muted); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; }
.about .kicker { color: var(--n); font-weight: 700; letter-spacing: 3px; text-transform: uppercase; font-size: 14px; margin-bottom: 10px; }
.about h2 { font-size: clamp(26px, 3.4vw, 40px); color: var(--c); font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.about h2 span { color: var(--n); }
.about p { color: var(--muted); margin-bottom: 16px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 26px 0; }
.stats .s { text-align: center; border: 1px solid var(--border); border-radius: var(--br); padding: 16px 8px; }
.stats .s b { display: block; font-size: 26px; color: var(--n); font-weight: 800; }
.stats .s span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.about .imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.about .imgs .i { aspect-ratio: 1; border-radius: var(--br); overflow: hidden; }
.about .imgs .i:first-child { grid-column: span 2; }
.about .imgs .i:last-child { grid-column: span 2; }
.about .imgs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- News ---------- */
.news-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--br);
  overflow: hidden; transition: .3s;
}
.news-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-5px); }
.news-card .img { aspect-ratio: 16/9; overflow: hidden; }
.news-card .img img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.news-card:hover .img img { transform: scale(1.06); }
.news-card .bd { padding: 18px; }
.news-card .date { font-size: 12px; color: var(--n); font-weight: 700; }
.news-card h3 { font-size: 17px; color: var(--c); font-weight: 700; margin: 8px 0; line-height: 1.45; }
.news-card p { font-size: 13px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(120deg, var(--c) 0%, #35415a 100%); color: var(--white); text-align: center; padding: 80px 0; }
.cta h2 { font-size: clamp(26px, 4vw, 42px); font-weight: 800; margin-bottom: 12px; }
.cta p { color: #c4cddb; max-width: 640px; margin: 0 auto 30px; }

.photo-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 46px; }
.photo-wall a { aspect-ratio: 1; border-radius: 6px; overflow: hidden; position: relative; }
.photo-wall img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.photo-wall a:hover img { transform: scale(1.08); }

/* ---------- Footer ---------- */
.footer { background: var(--c-dark); color: #c4cddb; }
.footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: 40px; padding: 70px 0 50px; }
.footer h4 { color: var(--white); font-size: 18px; font-weight: 800; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; background: var(--n); border-radius: 2px; }
.footer .brand p { margin-top: 16px; font-size: 14px; }
.footer ul li { margin-bottom: 11px; }
.footer ul a { font-size: 14px; transition: color .2s, padding-left .2s; }
.footer ul a:hover { color: var(--n); padding-left: 5px; }
.footer .contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-bottom: 13px; }
.footer .contact .ic { color: var(--n); font-weight: 700; }
.footer .soc { display: flex; gap: 10px; margin-top: 16px; }
.footer .soc a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid #5a687b;
  display: grid; place-items: center; font-size: 14px; transition: .25s;
}
.footer .soc a:hover { background: var(--n); border-color: var(--n); color: var(--white); }
.footer .bottom { border-top: 1px solid #4c5969; padding: 20px 0; font-size: 13px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer .bottom a { color: var(--n); }

/* ---------- Back to top ---------- */
.totop {
  position: fixed; right: 22px; bottom: 22px; z-index: 79; width: 46px; height: 46px;
  border-radius: 12px; background: var(--c); color: var(--white); border: none;
  font-size: 18px; display: grid; place-items: center; opacity: 0; visibility: hidden;
  transition: .3s; box-shadow: var(--shadow-sm);
}
.totop.show { opacity: 1; visibility: visible; }
.totop:hover { background: var(--n); }

/* ---------- Inquiry popup ---------- */
.pop-mask {
  position: fixed; inset: 0; background: rgba(15,20,32,.7); z-index: 100;
  display: grid; place-items: center; opacity: 0; visibility: hidden; transition: .3s; padding: 20px;
}
.pop-mask.open { opacity: 1; visibility: visible; }
.pop {
  background: var(--white); border-radius: 20px; width: 100%; max-width: 560px; overflow: hidden;
  transform: translateY(30px); transition: .35s; max-height: 92vh; overflow-y: auto;
}
.pop-mask.open .pop { transform: translateY(0); }
.pop .pop-head { background: var(--c); color: var(--white); padding: 26px 28px; position: relative; }
.pop .pop-head h3 { font-size: 24px; font-weight: 800; }
.pop .pop-head p { font-size: 13px; color: #c4cddb; margin-top: 4px; }
.pop .pop-head .x { position: absolute; top: 18px; right: 20px; background: none; border: 0; color: var(--white); font-size: 24px; }
.pop form { padding: 26px 28px 30px; }
.pop .field { margin-bottom: 16px; }
.pop .field label { display: block; font-size: 13px; font-weight: 700; color: var(--c); margin-bottom: 6px; }
.pop input, .pop select, .pop textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--br);
  outline: none; transition: border-color .2s; background: var(--bg);
}
.pop input:focus, .pop select:focus, .pop textarea:focus { border-color: var(--n); background: var(--white); }
.pop textarea { resize: vertical; min-height: 96px; }
.pop .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pop .submit { width: 100%; justify-content: center; padding: 14px; font-size: 16px; margin-top: 4px; }

/* ---------- Page banner (subpages) ---------- */
.page-hero {
  background: linear-gradient(110deg, var(--c) 0%, #35415a 100%);
  color: var(--white); padding: 64px 0; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  border-radius: 50%; background: rgba(246,177,16,.12);
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
.page-hero p { color: #c4cddb; margin-top: 8px; max-width: 640px; }
.crumb { font-size: 13px; color: #aab6c6; margin-top: 12px; }
.crumb a { color: var(--n); }

/* ---------- Filter tabs ---------- */
.tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.tabs button {
  padding: 10px 22px; border-radius: 30px; border: 1px solid var(--border);
  background: var(--white); color: var(--c); font-weight: 600; font-size: 14px; transition: .25s;
}
.tabs button:hover { border-color: var(--n); color: var(--n); }
.tabs button.active { background: var(--n); border-color: var(--n); color: var(--white); }

/* ---------- Product detail ---------- */
.pd { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items: start; }
.gallery { position: sticky; top: 96px; }
.gallery .main { aspect-ratio: 4/3; border-radius: var(--br); overflow: hidden; background: #eef0f4; box-shadow: var(--shadow-sm); }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery .thumbs button { width: 76px; height: 60px; border-radius: 8px; overflow: hidden; border: 2px solid var(--border); padding: 0; background: #eef0f4; }
.gallery .thumbs button.active { border-color: var(--n); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pd-info .cat-tag { display: inline-block; background: var(--n); color: var(--white); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px; }
.pd-info h1 { font-size: clamp(26px, 3vw, 38px); color: var(--c); font-weight: 800; margin: 12px 0 10px; line-height: 1.2; }
.pd-info .lead { color: var(--muted); margin-bottom: 22px; }
.pd-info .spec { border-top: 1px solid var(--border); padding-top: 18px; }
.pd-info .spec li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.pd-info .spec li b { color: var(--c); font-weight: 600; }
.pd-info .btns { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.pd-info .btns .btn { flex: 1; min-width: 160px; justify-content: center; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.c-cards { display: grid; gap: 14px; }
.c-card { display: flex; gap: 16px; align-items: flex-start; border: 1px solid var(--border); border-radius: var(--br); padding: 20px; transition: .25s; }
.c-card:hover { border-color: var(--n); box-shadow: var(--shadow-sm); }
.c-card .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--c); color: var(--white); display: grid; place-items: center; font-size: 20px; flex: none; }
.c-card h4 { font-size: 16px; color: var(--c); font-weight: 700; margin-bottom: 4px; }
.c-card p, .c-card a { font-size: 14px; color: var(--muted); }
.c-card a:hover { color: var(--n); }
.form-card { border: 1px solid var(--border); border-radius: 16px; padding: 30px; box-shadow: var(--shadow-sm); }
.form-card h3 { font-size: 22px; color: var(--c); font-weight: 800; margin-bottom: 20px; }

/* ---------- Inline forms (contact / customer message) ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--c); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--br);
  outline: none; transition: border-color .2s; background: var(--white); color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--n); }
.field textarea { resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row-3 { grid-template-columns: 1fr 1fr 1fr; }
.field input[readonly] { background: var(--bg); color: var(--muted); cursor: default; }

/* ---------- Customer message (product detail bottom) ---------- */
.cmsg .s-title { margin-bottom: 18px; }
.cmsg-note { color: var(--muted); text-align: center; max-width: 660px; margin: 0 auto 34px; }
.cmsg-form { max-width: 840px; margin: 0 auto; }
.cmsg-form .btn { justify-content: center; width: 100%; padding: 14px; font-size: 16px; }
.cmsg-ok { text-align: center; font-size: 14px; font-weight: 600; color: #1d9e5a; margin-top: 14px; }
@media (max-width: 768px) { .row, .row-3 { grid-template-columns: 1fr; } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Post content & pagination ---------- */
.entry-content { font-size: 16px; line-height: 1.85; color: var(--text); }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--c); margin: 30px 0 12px; line-height: 1.4; }
.entry-content p { margin-bottom: 16px; }
.entry-content img { border-radius: var(--br); }
.entry-content a { color: var(--n-dark); text-decoration: underline; }
.entry-content ul, .entry-content ol { margin: 0 0 16px 22px; }
.entry-content li { margin-bottom: 6px; }
.pagination { text-align: center; margin-top: 44px; }
.pagination .page-numbers { display: inline-block; padding: 9px 15px; margin: 0 4px; border: 1px solid var(--border); border-radius: 8px; color: var(--c); transition: .2s; }
.pagination .page-numbers:hover { border-color: var(--n); color: var(--n); }
.pagination .page-numbers.current { background: var(--n); border-color: var(--n); color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .app-grid, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .about .imgs { order: -1; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .photo-wall { grid-template-columns: repeat(3, 1fr); }
  .pd { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .topbar .left .tel { display: none; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: 290px; background: var(--white);
    flex-direction: column; align-items: stretch; padding: 80px 20px 30px; gap: 0;
    transform: translateX(100%); transition: .3s; box-shadow: -10px 0 40px rgba(0,0,0,.15); overflow-y: auto;
  }
  .nav.open { transform: none; }
  .header .nav > li > a { color: var(--c); }
  .nav > li > a { padding: 13px 8px; border-bottom: 1px solid var(--border); }
  .nav .dd { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 14px; border: 0; display: none; }
  .nav > li.open .dd { display: block; }
  .hamburger { display: flex; }
  .grid-3, .grid-2, .app-grid, .process-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer .cols { grid-template-columns: 1fr; }
  .photo-wall { grid-template-columns: repeat(3, 1fr); }
  .pop .row { grid-template-columns: 1fr; }
  .hero .pager { right: 20px; bottom: 30px; }
  .section { padding: 60px 0; }
}
