/*
Theme Name: OKBZNS
Theme URI: https://okbzns.com
Author: OKBZNS
Description: Business website theme with hero slider, blog (latest news & events), services grid, testimonials carousel and 3-column footer. Built from the OKBZNS wireframes.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: okbzns
Tags: blog, business, custom-menu, featured-images, threaded-comments, translation-ready, one-column, two-columns, right-sidebar
*/

:root {
  --orange: #f57c20;
  --orange-dark: #d9650e;
  --blue: #1550c8;
  --navy: #0b2a6b;
  --ink: #1b2437;
  --muted: #5d6783;
  --bg: #ffffff;
  --soft: #f4f7fd;
  --line: #e3e8f3;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(11, 42, 107, .10);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: var(--bg);
  font-family: "Poppins", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  line-height: 1.65; font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--orange); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0 0 .6em; }
.container { width: min(var(--max), 92%); margin-inline: auto; }
.screen-reader-text { position: absolute; left: -9999px; }
.section { padding: 70px 0; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); text-align: left; position: relative; padding-bottom: 12px; margin-bottom: 30px; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 60px; height: 4px; background: var(--orange); border-radius: 4px; }

.btn {
  display: inline-block; background: var(--orange); color: #fff; border: 0; cursor: pointer;
  padding: 12px 26px; border-radius: 50px; font-weight: 600; font-size: .95rem; transition: .25s;
}
.btn:hover { background: var(--orange-dark); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); }

/* ---------- Header / Nav ---------- */
.site-header { background: #fff; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(11,42,107,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.site-branding .site-title { font-size: 1.7rem; font-weight: 800; margin: 0; color: var(--navy); }
.site-branding .site-title span { color: var(--orange); }
.site-branding .site-tagline { font-size: .75rem; color: var(--muted); margin: 0; }
.custom-logo { max-height: 56px; width: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.main-nav a { display: block; padding: 8px 16px; font-weight: 600; color: var(--navy); border-radius: 8px; }
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a { color: var(--orange); }
.main-nav li.get-a-quote > a, .main-nav li.menu-cta > a {
  background: var(--orange); color: #fff; border-radius: 50px; padding: 10px 22px; margin-left: 8px;
}
.main-nav li.get-a-quote > a:hover, .main-nav li.menu-cta > a:hover { background: var(--orange-dark); color: #fff; }
.menu-toggle { display: none; background: none; border: 2px solid var(--navy); color: var(--navy); border-radius: 8px; padding: 6px 12px; font-size: 1.1rem; cursor: pointer; }

/* ---------- Hero slider ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); }
.hero-slides { position: relative; min-height: 520px; }
.hero-slide {
  position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .8s;
  background-size: cover; background-position: center;
}
.hero-slide.is-active { opacity: 1; visibility: visible; position: relative; min-height: 520px; }
.hero-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11,42,107,.92) 10%, rgba(21,80,200,.55) 60%, rgba(11,42,107,.2)); }
.hero-content { position: relative; color: #fff; max-width: 640px; padding: 40px 0; }
.hero-content .eyebrow { letter-spacing: .25em; text-transform: uppercase; font-size: .8rem; color: #ffd2ad; margin-bottom: 10px; }
.hero-content h1, .hero-content h2 { color: #fff; font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; }
.hero-content h1 em, .hero-content h2 em { color: var(--orange); font-style: normal; }
.hero-content p { font-size: 1.1rem; opacity: .95; margin-bottom: 26px; }
.hero-dots { position: absolute; bottom: 20px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 5; }
.hero-dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; padding: 0; }
.hero-dots button.is-active { background: var(--orange); border-color: var(--orange); }

/* ---------- Latest news & events ---------- */
.news-grid { display: grid; grid-template-columns: 1.15fr 1.15fr .9fr; gap: 24px; }
.news-side { display: grid; gap: 24px; grid-template-rows: 1fr 1fr; }
.post-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: .25s; border: 1px solid var(--line); }
.post-card:hover { transform: translateY(-4px); }
.post-card .thumb { aspect-ratio: 16/10; background: var(--soft); overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .thumb.placeholder { display: grid; place-items: center; font-size: 2.2rem; color: var(--orange); background: linear-gradient(135deg, #e9f0ff, #fff1e6); }
.post-card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.post-card h3 a { color: var(--navy); }
.post-card h3 a:hover { color: var(--orange); }
.post-meta { font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.post-meta a { color: var(--orange); font-weight: 600; }
.post-card .read-more { margin-top: auto; font-weight: 600; font-size: .9rem; }
.post-card.small { flex-direction: row; }
.post-card.small .thumb { width: 38%; aspect-ratio: auto; flex-shrink: 0; }
.post-card.small .body { padding: 14px 16px; }
.post-card.small h3 { font-size: 1rem; }

.pagination, .nav-links { display: flex; gap: 8px; justify-content: flex-end; align-items: center; margin-top: 32px; flex-wrap: wrap; }
.pagination .label { font-weight: 700; color: var(--navy); margin-right: 6px; text-transform: uppercase; font-size: .85rem; letter-spacing: .08em; }
.page-numbers { min-width: 38px; height: 38px; display: inline-grid; place-items: center; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); color: var(--navy); font-weight: 600; background: #fff; }
.page-numbers.current, .page-numbers:hover { background: var(--orange); border-color: var(--orange); color: #fff; }

/* ---------- Full-width banner ---------- */
.banner { background: linear-gradient(110deg, var(--navy), var(--blue)); color: #fff; padding: 64px 0; position: relative; overflow: hidden; background-size: cover; background-position: center; }
.banner.has-img::before { content: ""; position: absolute; inset: 0; background: rgba(11,42,107,.8); }
.banner-inner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.banner h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: 8px; }
.banner h2 em { color: var(--orange); font-style: normal; }
.banner p { margin: 0; opacity: .92; max-width: 640px; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--soft); }
.carousel { position: relative; overflow: hidden; }
.carousel-track { display: flex; transition: transform .6s ease; }
.testimonial { flex: 0 0 100%; padding: 6px 10px; }
@media (min-width: 900px) { .testimonial { flex-basis: 50%; } }
.testimonial-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; height: 100%; position: relative; border-top: 4px solid var(--orange); }
.testimonial-card::before { content: "\201C"; position: absolute; top: 6px; right: 20px; font-size: 5rem; color: #ffe3cc; line-height: 1; }
.testimonial-card .quote { font-style: italic; color: var(--ink); }
.testimonial-card .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.testimonial-card .avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; flex-shrink: 0; overflow: hidden; }
.testimonial-card .who strong { display: block; color: var(--navy); }
.testimonial-card .who span { font-size: .85rem; color: var(--muted); }
.carousel-controls { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.carousel-controls button { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--blue); color: var(--blue); background: #fff; cursor: pointer; font-size: 1.1rem; }
.carousel-controls button:hover { background: var(--blue); color: #fff; }

/* ---------- Services ---------- */
.page-hero { background: linear-gradient(110deg, var(--navy), var(--blue)); color: #fff; padding: 56px 0; text-align: center; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0; }
.page-hero p { margin: 8px 0 0; opacity: .9; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-align: center; transition: .25s; display: block; color: inherit; }
.service-card:hover { transform: translateY(-6px); border-color: var(--orange); }
.service-card .pic { aspect-ratio: 16/10; background: linear-gradient(135deg, #e9f0ff, #fff1e6); display: grid; place-items: center; font-size: 3rem; overflow: hidden; }
.service-card .pic img { width: 100%; height: 100%; object-fit: cover; }
.service-card h3 { margin: 0; padding: 18px 14px 6px; font-size: 1.15rem; }
.service-card p { margin: 0; padding: 0 18px 20px; color: var(--muted); font-size: .92rem; }

/* ---------- Blog / single ---------- */
.content-area { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding: 60px 0; }
.content-area.no-sidebar { grid-template-columns: minmax(0, 1fr); max-width: 820px; margin-inline: auto; }
.posts-list { display: grid; gap: 28px; grid-template-columns: repeat(2, 1fr); }
.entry-header h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.entry-thumb { border-radius: var(--radius); overflow: hidden; margin-bottom: 26px; }
.entry-content { font-size: 1.05rem; }
.entry-content img { border-radius: 10px; }
.entry-content blockquote { border-left: 4px solid var(--orange); margin: 24px 0; padding: 8px 22px; background: var(--soft); border-radius: 0 10px 10px 0; }
.entry-footer { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .9rem; }
.tag-list a { display: inline-block; background: var(--soft); color: var(--navy); padding: 3px 12px; border-radius: 50px; margin: 0 6px 6px 0; font-size: .82rem; }
.tag-list a:hover { background: var(--orange); color: #fff; }
.author-box { display: flex; gap: 18px; background: var(--soft); padding: 22px; border-radius: var(--radius); margin: 34px 0; align-items: center; }
.author-box img { border-radius: 50%; }
.post-navigation .nav-links { justify-content: space-between; }
.related { margin-top: 40px; }
.related .posts-list { grid-template-columns: repeat(3, 1fr); }

.sidebar .widget { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 24px; box-shadow: var(--shadow); }
.sidebar .widget-title { font-size: 1.05rem; border-bottom: 3px solid var(--orange); display: inline-block; padding-bottom: 4px; margin-bottom: 14px; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.sidebar li:last-child { border: 0; }
.search-form { display: flex; gap: 8px; }
.search-form input[type=search] { flex: 1; padding: 11px 14px; border: 1px solid var(--line); border-radius: 50px; font: inherit; }
.search-form button { background: var(--orange); border: 0; color: #fff; border-radius: 50px; padding: 0 20px; cursor: pointer; font-weight: 600; }

/* ---------- Comments ---------- */
.comments-area { margin-top: 50px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { background: var(--soft); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.comment-author img { border-radius: 50%; float: left; margin-right: 12px; }
.comment-meta { font-size: .8rem; color: var(--muted); }
.comment-respond input[type=text], .comment-respond input[type=email], .comment-respond input[type=url], .comment-respond textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; margin-bottom: 12px;
}
.comment-respond .submit { background: var(--orange); color: #fff; border: 0; border-radius: 50px; padding: 12px 28px; font-weight: 600; cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #cdd6ee; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 60px 0 40px; }
.site-footer h3, .site-footer .widget-title { color: #fff; font-size: 1.1rem; margin-bottom: 16px; }
.site-footer a { color: #cdd6ee; }
.site-footer a:hover { color: var(--orange); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 4px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; text-align: center; font-size: .9rem; }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding: 100px 0; }
.not-found h1 { font-size: 6rem; color: var(--orange); margin: 0; }

/* ---------- WP core ---------- */
.alignleft { float: left; margin: 0 20px 10px 0; }
.alignright { float: right; margin: 0 0 10px 20px; }
.aligncenter { margin-inline: auto; display: block; }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--muted); text-align: center; }
.sticky .post-card { border-color: var(--orange); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-side { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .content-area { grid-template-columns: 1fr; }
  .related .posts-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: 0 10px 20px rgba(0,0,0,.1); padding: 10px 4%; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav li.get-a-quote > a, .main-nav li.menu-cta > a { margin: 6px 0; text-align: center; }
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .news-grid, .news-side, .services-grid, .posts-list, .related .posts-list { grid-template-columns: 1fr; }
  .post-card.small { flex-direction: column; }
  .post-card.small .thumb { width: 100%; aspect-ratio: 16/10; }
  .hero-slides, .hero-slide.is-active { min-height: 440px; }
}
