/* ==========================================================================
   HornLight — WordPress additions
   main.css is the original template stylesheet; this file only adds what
   WordPress output needs (admin bar, menus, blog, editor content, comments),
   reusing the --hl-* design tokens.
   ========================================================================== */

/* ---------- Core classes ---------- */
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px;
	overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus { clip: auto !important; clip-path: none; height: auto; width: auto; z-index: 100000; background: #fff; padding: .5rem 1rem; }
.alignwide, .alignfull { margin-left: 0; margin-right: 0; }
.wp-caption, .wp-block-image figcaption { max-width: 100%; }
.gallery-caption { font-size: .8rem; color: var(--hl-muted); }
.bypostauthor > .comment-body .comment-author { color: var(--hl-primary); }
.sticky .post-card { border-top: 3px solid var(--hl-sand); }

/* ---------- Admin bar: keep sticky elements below it ---------- */
.admin-bar .site-header { top: 32px; }
.admin-bar .svc-subnav { top: 88px; }
@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
	.admin-bar .svc-subnav { top: 102px; }
}
@media (max-width: 600px) {
	.admin-bar .site-header { top: 0; }
	.admin-bar .svc-subnav { top: 56px; }
}

/* ---------- Menu dropdowns (only used when a menu item has children) ---------- */
.navbar .nav-item.dropdown { display: flex; flex-wrap: wrap; align-items: center; }
.navbar .dropdown-toggle-split { border: 0; background: none; color: var(--hl-text); padding: .5rem .25rem; line-height: 1; }
.navbar .dropdown-toggle-split:hover, .navbar .dropdown-toggle-split:focus-visible { color: var(--hl-primary); }
.navbar .dropdown-menu { border: 1px solid var(--hl-line); border-radius: 14px; box-shadow: var(--hl-shadow); padding: .5rem; }
.navbar .dropdown-item { border-radius: 8px; font-size: .9rem; padding: .5rem .9rem; color: var(--hl-text); }
.navbar .dropdown-item:hover, .navbar .dropdown-item:focus, .navbar .dropdown-item.active { background: var(--hl-teal-tint); color: var(--hl-primary); }
@media (min-width: 992px) {
	.navbar .nav-item.dropdown { flex-wrap: nowrap; position: relative; }
	.navbar .nav-item.dropdown > .nav-link { padding-right: .35rem !important; }
	.navbar .nav-item.dropdown > .nav-link::after { right: .35rem; }
	.navbar .dropdown-menu { position: absolute; top: 100%; left: 0; }
}
@media (max-width: 991.98px) {
	.offcanvas .nav-item.dropdown > .nav-link { flex: 1; }
	.offcanvas .dropdown-toggle-split { padding: .8rem .5rem; border-bottom: 1px solid var(--hl-line); align-self: stretch; }
	.offcanvas .dropdown-menu { position: static; width: 100%; border: 0; box-shadow: none; padding: .25rem 0 .5rem 1rem; }
}

/* ---------- Services flow: column count follows the number of services ---------- */
@media (min-width: 992px) {
	.svc-flow[style*="--bst-svc-cols"] { grid-template-columns: var(--bst-svc-cols); }
}
.exp-desc p:last-child { margin-bottom: 0; }

/* ---------- Testimonials: photo avatar ---------- */
img.t-avatar { object-fit: cover; padding: 0; }

/* ---------- Editor content ---------- */
.entry-content { font-size: 1rem; }
.entry-content > * + h2, .entry-content > * + h3, .entry-content > * + h4 { margin-top: 2.25rem; }
.entry-content h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.entry-content h3 { font-size: 1.35rem; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content a.btn, .entry-content .wp-block-button__link { text-decoration: none; }
.entry-content img { border-radius: 12px; }
.entry-content blockquote, .entry-content .wp-block-quote {
	margin: 2rem 0; padding: 1.5rem 1.75rem; border-left: 3px solid var(--hl-sand); background: var(--hl-sand-tint);
	border-radius: 0 var(--hl-radius) var(--hl-radius) 0; font-family: var(--hl-font-head); font-size: 1.15rem; color: var(--hl-ink);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content table { width: 100%; margin-bottom: 1.5rem; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: .6rem .8rem; border-bottom: 1px solid var(--hl-line); }
.entry-content .wp-block-button__link { background: var(--hl-primary); color: #fff; border-radius: 999px; font-weight: 600; padding: .65rem 1.4rem; }
.entry-content .wp-block-button__link:hover { background: var(--hl-primary-dark); color: #fff; }
.page-links { margin-top: 2rem; display: flex; gap: .5rem; align-items: center; }

/* ---------- Single post ---------- */
.entry-meta { margin-bottom: 1.5rem; }
.entry-meta a, .post-card .exp-meta a { color: inherit; }
.entry-thumbnail { margin: 0 0 2.25rem; border-radius: var(--hl-radius); overflow: hidden; box-shadow: var(--hl-shadow); }
.entry-thumbnail img { width: 100%; display: block; }
.entry-tags { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.entry-tags a { border: 1px solid var(--hl-line); border-radius: 999px; padding: .35rem .9rem; font-size: .8rem; color: var(--hl-text); }
.entry-tags a:hover { border-color: var(--hl-teal); color: var(--hl-primary); }
.entry-nav { margin-top: 3rem; padding-top: 2rem; border-top: 1px dashed #d6cbc4; }
.entry-nav .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.entry-nav .nav-next { text-align: right; grid-column: 2; }
.entry-nav a { display: block; padding: 1rem 1.25rem; border: 1px solid var(--hl-line); border-radius: 14px; color: var(--hl-ink); font-family: var(--hl-font-head); font-weight: 500; transition: border-color .2s; }
.entry-nav a:hover { border-color: var(--hl-teal); }
.entry-nav small { display: block; font-family: var(--hl-font-body); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--hl-sand-dark); }
@media (max-width: 575.98px) { .entry-nav .nav-links { grid-template-columns: 1fr; } .entry-nav .nav-next { grid-column: 1; } }

/* ---------- Post cards & listings ---------- */
.post-card { height: 100%; display: flex; flex-direction: column; border-radius: var(--hl-radius); background: #fff; border: 1px solid var(--hl-line); overflow: hidden; transition: all .25s; }
.post-card:hover { border-color: transparent; box-shadow: var(--hl-shadow); transform: translateY(-4px); }
.post-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--hl-teal-tint); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 1.5rem 1.6rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.post-card-title { margin: .8rem 0 .5rem; line-height: 1.3; }
.post-card-title a { color: var(--hl-ink); }
.post-card-title a:hover { color: var(--hl-primary); }
.post-card-excerpt { color: var(--hl-muted); font-size: .9rem; flex: 1; }
.post-card-excerpt p:last-child { margin-bottom: 1rem; }

.bst-pagination { margin-top: 3rem; }
.bst-pagination .pagination { justify-content: center; gap: .4rem; flex-wrap: wrap; }
.bst-pagination .page-link { border-radius: 50% !important; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid var(--hl-line); color: var(--hl-ink); font-weight: 600; font-size: .9rem; }
.bst-pagination .page-link:hover { background: var(--hl-teal-tint); border-color: var(--hl-teal); color: var(--hl-primary); }
.bst-pagination .active .page-link, .bst-pagination .page-link.current { background: var(--hl-primary); border-color: var(--hl-primary); color: #fff; }
.bst-pagination .page-link.dots { border: 0; }

.empty-state { max-width: 520px; margin: 0 auto; }
.search-form .form-control { border-radius: 999px 0 0 999px; }
.search-form .btn { border-radius: 0 999px 999px 0; padding-left: 1.2rem; padding-right: 1.3rem; }

/* ---------- Comments ---------- */
.comments-area { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px dashed #d6cbc4; }
.comment-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.comment-list .children { list-style: none; padding-left: 1.5rem; }
.comment-body { padding: 1.25rem 0; border-bottom: 1px solid var(--hl-line); font-size: .92rem; }
.comment-author { display: flex; align-items: center; gap: .75rem; font-weight: 600; color: var(--hl-ink); }
.comment-author .avatar { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { font-size: .78rem; margin: .25rem 0 .75rem; }
.comment-metadata a { color: var(--hl-muted); }
.reply a { font-size: .82rem; font-weight: 600; }
.comment-form label { display: block; font-weight: 600; font-size: .82rem; color: var(--hl-ink); margin-bottom: .35rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; border: 1px solid var(--hl-line); border-radius: 12px; padding: .75rem 1rem; background: #fbfcfc; font-size: .92rem;
}
.comment-form input:focus, .comment-form textarea:focus { outline: 0; border-color: var(--hl-teal); box-shadow: 0 0 0 .25rem rgba(113, 145, 146, .2); background: #fff; }
.comment-form .comment-form-cookies-consent label { display: inline; font-weight: 400; }
