/*
Theme Name: Xposure
Theme URI: https://www.xposureadvertisingpk.com
Author: Xposure Advertising & Marketing (Pvt.) Ltd.
Author URI: https://www.xposureadvertisingpk.com
Description: A premium, fully custom WordPress theme for Xposure Advertising & Marketing. Bold black/gold/cream brand design with animated hero, marquee, scroll reveals, methodology steps, team grid and contact forms. Elementor-ready for any extra pages. Bold ideas. Powerful impact.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: xposure
Tags: advertising, business, marketing, agency, elementor, full-width-template, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* -------------------------------------------------------------------------
   NOTE: The full brand design system lives in assets/css/app.css (enqueued
   by functions.php). This file holds the required theme header plus a few
   WordPress-specific helpers that the static design did not need.
   ------------------------------------------------------------------------- */

/* Custom logo (Customizer → Site Identity): white chip so a dark-text logo
   never merges into the dark header, with a balanced height. */
.nav .custom-logo-link {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    background: #ffffff;
    padding: 8px 16px;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
    transition: box-shadow .4s ease, padding .4s ease;
}
.nav.scrolled .custom-logo-link {
    padding: 6px 13px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}
.nav .custom-logo-link img {
    max-height: 40px;
    width: auto;
    height: auto;
    display: block;
}
.nav.scrolled .custom-logo-link img { max-height: 34px; }
@media (max-width: 720px) {
    .nav .custom-logo-link { padding: 6px 12px; }
    .nav .custom-logo-link img { max-height: 32px; }
}

/* "Get in Touch" CTA: balanced padding + cleaner shadow */
.nav .nav-cta {
    padding: 13px 30px;
    font-size: .88rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 8px 20px rgba(242, 183, 5, .30);
}
.nav .nav-cta:hover {
    box-shadow: 0 12px 26px rgba(242, 183, 5, .45);
}

/* Keep the fixed navbar below the WP admin bar for logged-in users */
body.admin-bar .nav { top: 32px; }
@media screen and (max-width: 782px) {
    body.admin-bar .nav { top: 46px; }
}

/* Accessibility: skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100000;
    background: #f2b705;
    color: #141414;
    padding: 10px 18px;
    border-radius: 0 0 10px 0;
    font-weight: 700;
    font-family: "Poppins", sans-serif;
}
.skip-link:focus { left: 0; }

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px; width: 1px;
    margin: -1px; padding: 0;
    overflow: hidden; position: absolute !important;
    word-wrap: normal !important;
}

/* WordPress core alignment + media helpers */
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft  { float: left; margin: 6px 24px 16px 0; }
.alignright { float: right; margin: 6px 0 16px 24px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .85rem; color: #6b6b6b; text-align: center; margin-top: 8px; }
.sticky, .gallery-caption, .bypostauthor { display: block; }
.wp-block-image img { border-radius: 14px; }

/* -------------------------------------------------------------------------
   Blog / single / archive / search / 404  (uses the design tokens)
   ------------------------------------------------------------------------- */
.xp-blog { padding: 80px 0; }
.xp-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
@media (max-width: 980px) { .xp-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .xp-blog-grid { grid-template-columns: 1fr; } }

.post-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .45s cubic-bezier(.22,1,.36,1), box-shadow .45s cubic-bezier(.22,1,.36,1);
}
.post-card:hover { transform: translateY(-8px); box-shadow: 0 18px 50px rgba(20,20,20,.12); }
.post-card__media img { width: 100%; height: 210px; object-fit: cover; }
.post-card__body { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__meta { font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: #c8920a; font-weight: 600; }
.post-card__title { font-family: "Poppins", sans-serif; font-size: 1.2rem; line-height: 1.3; }
.post-card__title a:hover { color: #c8920a; }
.post-card__excerpt { color: #6b6b6b; font-size: .95rem; flex: 1; }
.post-card__more { font-family: "Poppins", sans-serif; font-weight: 600; color: #c8920a; font-size: .9rem; }

/* Single / page article body */
.xp-article-wrap { max-width: 820px; margin: 0 auto; padding: 80px 24px; }
.xp-article-wrap .entry-content > * { margin-bottom: 1.3em; }
.xp-article-wrap h2, .xp-article-wrap h3 { margin: 1.4em 0 .5em; }
.xp-article-wrap img { border-radius: 16px; }
.xp-article-wrap blockquote {
    margin: 1.6em 0; padding: 18px 28px;
    border-left: 4px solid #f2b705; background: #fbf5e3;
    border-radius: 0 14px 14px 0; font-style: italic;
}
.xp-featured { border-radius: 22px; overflow: hidden; margin-bottom: 36px; box-shadow: 0 18px 50px rgba(20,20,20,.12); }
.xp-entry-meta { color: #6b6b6b; font-size: .9rem; margin-bottom: 1.4em; }
.xp-entry-meta a { color: #c8920a; }

/* Pagination */
.xp-pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 50px; }
.xp-pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 46px; height: 46px; padding: 0 14px;
    border: 1px solid rgba(0,0,0,.12); border-radius: 100px;
    font-weight: 600; font-family: "Poppins", sans-serif; color: #141414;
    transition: all .3s ease;
}
.xp-pagination .page-numbers.current,
.xp-pagination .page-numbers:hover { background: #f2b705; border-color: #f2b705; color: #141414; }

/* Sidebar widgets */
.xp-sidebar .widget { background: #fbf5e3; border-radius: 16px; padding: 26px; margin-bottom: 26px; }
.xp-sidebar .widget-title { font-family: "Poppins", sans-serif; font-size: 1.1rem; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid #f2b705; }
.xp-sidebar ul { list-style: none; margin: 0; padding: 0; }
.xp-sidebar li { padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,.07); }
.xp-sidebar a:hover { color: #c8920a; }

.xp-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; max-width: 1180px; margin: 0 auto; padding: 80px 24px; }
@media (max-width: 980px) { .xp-layout { grid-template-columns: 1fr; } }

/* Search form */
.search-form { display: flex; gap: 10px; max-width: 480px; }
.search-form input[type="search"] { flex: 1; padding: 14px 18px; border: 1.5px solid rgba(0,0,0,.12); border-radius: 100px; font-size: 1rem; font-family: inherit; }
.search-form input[type="search"]:focus { outline: none; border-color: #f2b705; }

/* Comments */
.xp-comments { max-width: 820px; margin: 0 auto; padding: 0 24px 80px; }
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 22px; background: #fbf5e3; border-radius: 14px; margin-bottom: 18px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%; padding: 13px 16px; border: 1.5px solid rgba(0,0,0,.12);
    border-radius: 12px; font-family: inherit; font-size: 1rem; margin-bottom: 14px; background: #fbf5e3;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: #f2b705; background: #fff; }
