/*
Theme Name: Nikita Banks Editorial
Theme URI: https://nikitabanks.com/
Author: Nikita Banks website project
Description: Lightweight, Elementor-free editorial WordPress theme for NikitaBanks.com with home, about, services, speaker, media, journal and contact templates.
Version: 1.1.0
Requires at least: 6.3
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: nikita-banks-editorial
License: GPL-2.0-or-later
*/

:root {
	--plum: #641739;
	--deep: #3f132e;
	--mauve: #d7b0cd;
	--blush: #f6e8ee;
	--cream: #fffaf9;
	--ink: #3c3036;
	--muted: #6b5a64;
	--line: #e8dce2;
	--accent: #922652;
	--logo-pink: #e04fb4;
	--logo-h: 40px;
	--serif: Georgia, "Times New Roman", serif;
	--sans: Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .brand { font-family: var(--serif); font-weight: normal; line-height: 1.12; color: var(--plum); }
h1 { font-size: clamp(2.4rem, 5vw, 4.6rem); margin: .3em 0; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); margin: 0 0 .6em; }
h3 { font-size: 1.4rem; margin: .45em 0; }
a { color: var(--plum); }
a:hover { color: #a32762; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
.wrap { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
main:focus { outline: none; }

.screen-reader-text { position: absolute !important; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.skip-link:focus { clip-path: none; width: auto; height: auto; left: 12px; top: 12px; z-index: 100; background: #fff; padding: 10px 14px; border: 2px solid var(--plum); }

/* Header */
.site-header { background: #fff; border-top: 4px solid var(--plum); position: relative; z-index: 20; border-bottom: 1px solid var(--line); }
.header-inside { min-height: 84px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand-block { text-decoration: none; display: block; padding: 10px 0; }
.brand { display: block; color: var(--plum); font-size: clamp(1.1rem, 1.9vw, 1.55rem); letter-spacing: .02em; }
.brand-sub { display: block; font-size: .62rem; letter-spacing: .2em; color: #715a64; text-transform: uppercase; margin-top: 3px; }
.nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 22px; }
.nav .menu li { position: relative; }
.nav a { display: inline-block; padding: 6px 0; font-size: .82rem; letter-spacing: .03em; text-decoration: none; color: #3c2832; border-bottom: 2px solid transparent; }
.nav a:hover, .nav .current-menu-item > a, .nav .current-menu-ancestor > a, .nav .current_page_item > a { color: var(--plum); border-bottom-color: var(--plum); }
.nav .sub-menu { list-style: none; margin: 0; padding: 10px 0; position: absolute; left: -14px; top: 100%; min-width: 210px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 24px rgba(63, 19, 46, .12); display: none; z-index: 30; }
.nav .sub-menu a { display: block; padding: 8px 16px; border: 0; }
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu, .nav li.sub-open > .sub-menu { display: block; }
.sub-toggle { display: none; }
.menu-toggle { display: none; align-items: center; gap: 10px; background: transparent; color: var(--plum); border: 1px solid var(--line); padding: 9px 13px; cursor: pointer; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after { display: block; width: 18px; height: 2px; background: var(--plum); position: relative; content: ""; }
.menu-toggle-bars::before { position: absolute; top: -6px; }
.menu-toggle-bars::after { position: absolute; top: 6px; }

/* Buttons & links */
.btn, .wp-block-button__link, .button { display: inline-block; background: var(--plum); padding: 13px 23px; text-decoration: none; color: #fff !important; border: 1px solid var(--plum); text-transform: uppercase; letter-spacing: .07em; font-size: .75rem; font-weight: bold; border-radius: 1px; line-height: 1.4; }
.btn:hover, .wp-block-button__link:hover { background: var(--deep); border-color: var(--deep); }
.btn-outline { background: #fff; color: var(--plum) !important; }
.btn-outline:hover { background: var(--blush); color: var(--plum) !important; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.text-link, .card-link { font-weight: bold; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.text-link:hover, .card-link:hover { text-decoration: underline; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .22em; font-size: .69rem; font-weight: bold; margin-bottom: .6em; }
.eyebrow a { color: inherit; text-decoration: none; }
.small { font-size: .85rem; color: var(--muted); }
.lede { font-size: 1.15rem; }

/* Hero */
.hero { background: linear-gradient(110deg, #d5b0cf 0%, #eed4e1 65%, #f9edf1 100%); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 440px; align-items: center; gap: 24px; }
.hero-no-photo .hero-inner { grid-template-columns: 1fr; min-height: 320px; }
.hero-copy { padding: 48px 0 52px; max-width: 590px; }
.hero-lede { font-size: 1.05rem; max-width: 550px; }
.hero-photo { align-self: end; display: flex; align-items: flex-end; justify-content: center; min-height: 360px; position: relative; }
.hero-cutout .hero-photo::before { content: ""; position: absolute; width: min(440px, 88%); aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .35); bottom: 6%; left: 50%; transform: translateX(-50%); }
.hero-photo img { position: relative; max-height: 440px; width: auto; max-width: 100%; object-fit: contain; object-position: center bottom; display: block; }
.hero-dark { background: linear-gradient(110deg, #35142b, #5a2a68); color: #fff; }
.hero-dark h1, .hero-dark .eyebrow { color: #fff; }
.hero-dark .hero-photo, .hero-service .hero-photo, .hero-journal .hero-photo { align-self: center; min-height: 0; padding: 36px 0; }
.hero-dark .hero-photo img, .hero-service .hero-photo img, .hero-journal .hero-photo img { width: 100%; height: 400px; max-height: none; object-fit: cover; object-position: center 25%; }
.hero-service { background: linear-gradient(90deg, #dfc0d5, #f5e8e7); }
.hero-journal .hero-photo img { height: 300px; object-position: center 40%; }

/* As Seen In */
.media-strip-wrap { border-bottom: 1px solid var(--line); background: #fff; }
.media-strip { display: flex; gap: 18px 28px; align-items: center; padding: 22px 0; flex-wrap: wrap; }
.media-strip .eyebrow { margin: 0; }
.media-logos { list-style: none; margin: 0; padding: 0; display: flex; flex: 1; flex-wrap: wrap; gap: 18px 34px; justify-content: space-between; align-items: center; }
.media-logos strong { font-size: clamp(.85rem, 1.6vw, 1.3rem); color: #222; letter-spacing: -.03em; }
.media-logos img { max-height: 44px; width: auto; display: block; }
.logo-mask { display: block; height: var(--logo-h); width: calc(var(--logo-h) * var(--w, 2) / var(--h, 1)); background-color: #111; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; transition: background-color .2s ease; }
.media-logos li:hover .logo-mask { background-color: var(--logo-pink); }

/* Sections & grids */
.section { padding: 64px 0; }
.section-tight { padding: 36px 0; }
.soft { background: var(--blush); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.card { background: #fff; border: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; }
.card > p { flex: 1; }
.card img { aspect-ratio: 4 / 3; width: 100%; height: auto; object-fit: cover; margin-bottom: 6px; }
.card img.book-img { object-fit: contain; background: #f8e9ef; }
.card img.portrait-img { object-position: center 18%; }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; }
.split-top { align-items: start; }
.split > img { width: 100%; max-height: 460px; object-fit: cover; object-position: center 20%; }
.split > img.portrait-img { object-position: center 12%; }
.topic { border-bottom: 1px solid var(--line); padding: 16px 8px; }
.topic strong { display: block; color: var(--plum); }
.vendor { background: #f4e5ee; text-align: center; padding: 20px; border: 1px solid #e3d0db; color: var(--plum); }
.vendor span { display: block; font-size: .85rem; letter-spacing: .06em; }
.vendor strong { display: block; font-size: 1.05rem; }
.partner-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-family: var(--serif); font-size: 1.2rem; color: var(--plum); }
.check-list { padding-left: 1.2em; }
.check-list li { margin: .3em 0; }
.notice { border-left: 3px solid var(--plum); padding: 4px 16px; background: #fbf1f6; margin-top: 24px; }
.inquiry-card h3 { margin-top: 0; }
.video-card .video-embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; display: block; }
.video-card img { width: 100%; max-height: 420px; object-fit: cover; object-position: center 15%; }
.credentials { text-align: center; }
.prose p { max-width: 640px; }
.pull-quote { max-width: 880px; margin: 0 auto; text-align: center; font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.8rem); line-height: 1.45; color: var(--plum); border-top: 2px solid var(--plum); border-bottom: 2px solid var(--plum); padding: 26px 10px; }
.pull-quote p { margin: 0; }
.cred-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #e3cfd9; }
.cred-list li { padding: 14px 0; border-bottom: 1px solid #e3cfd9; }
.cred-list strong { display: block; font-family: var(--serif); font-weight: normal; font-size: 1.15rem; color: var(--plum); }
.cred-list span { display: block; font-size: .92rem; color: var(--muted); }
.quote { background: var(--deep); color: #fff; padding: 52px 0; text-align: center; }
.quote h2 { color: #fff; }

/* Journal */
.archive-header { background: linear-gradient(110deg, #e6c9df, #f9edf1); padding: 48px 0 36px; }
.archive-header h1 { margin: 0; }
.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 26px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); }
.post-card-img { display: block; overflow: hidden; }
.post-card-img img { width: 100%; height: 210px; object-fit: cover; display: block; transition: transform .4s ease; }
.post-card:hover .post-card-img img { transform: scale(1.03); }
.post-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card-body > p:not(.post-meta) { flex: 1; }
.post-card h3 { font-size: 1.3rem; }
.post-card h3 a { text-decoration: none; }
.post-card-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; }
.post-card-featured .post-card-img img { height: 100%; min-height: 340px; }
.post-card-featured .post-card-body { padding: 36px; justify-content: center; }
.post-card-featured h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.journal-grid-3 .post-card-featured { grid-column: auto; display: flex; }
.view-all { text-align: center; margin-top: 40px; }
.post-meta { color: var(--muted); font-size: .82rem; margin: .2em 0 .8em; }
.pagination { padding: 30px 0 0; text-align: center; }
.pagination .page-numbers { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); margin: 2px; text-decoration: none; }
.pagination .current { background: var(--plum); color: #fff; border-color: var(--plum); }

/* Single article */
.article-header { background: linear-gradient(110deg, #e6c9df, #f9edf1); padding: 52px 0 40px; }
.article-wrap { max-width: 760px; }
.article-header h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); margin: .2em 0 .35em; }
.article-dek { font-size: 1.2rem; color: #4e3d47; }
.article-cover-wrap { margin: 36px auto 0; max-width: 1000px; }
.article-cover { width: 100%; max-height: 520px; object-fit: cover; display: block; }
.post-article .entry-content { padding: 40px 0 10px; font-size: 1.1rem; line-height: 1.75; }
.entry-content { min-width: 0; }
.entry-content h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 1.6em 0 .5em; }
.entry-content h3 { margin: 1.4em 0 .4em; }
.entry-content blockquote, .entry-content .wp-block-pullquote { border-left: 4px solid var(--plum); margin: 2em 0; padding: 6px 0 6px 24px; font-family: var(--serif); font-size: 1.35rem; line-height: 1.45; color: var(--plum); }
.entry-content .wp-block-pullquote { border: 0; border-top: 2px solid var(--plum); border-bottom: 2px solid var(--plum); padding: 22px 0; text-align: center; }
.entry-content figure { margin: 2em 0; }
.entry-content figcaption { font-size: .85rem; color: var(--muted); }
.author-box { display: grid; grid-template-columns: 110px 1fr; gap: 24px; align-items: start; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px 0; margin: 30px 0 60px; }
.author-photo { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; object-position: center 25%; }
.author-name { font-family: var(--serif); font-size: 1.35rem; color: var(--plum); margin: 0; }
.related h2 { text-align: center; }

/* Default pages */
.page-entry { padding: 56px 0; }
.page-entry .entry-content { max-width: 920px; }
.wp-block-image img { height: auto; }
.wp-caption { max-width: 100%; }
.alignwide { max-width: 1200px; margin-inline: auto; }
.alignfull { width: 100%; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid input, .form-grid textarea, .form-grid select { padding: 12px; border: 1px solid #d5bdca; width: 100%; }

/* Footer */
.site-footer { background: #431329; color: #fff; padding: 40px 0; }
.site-footer a { color: #fff; }
.site-footer .brand { color: #fff; text-decoration: none; }
.site-footer .brand-sub { color: #e7cfdc; }
.footer-flex { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer-menu { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-menu a { text-decoration: none; font-size: .88rem; }
.footer-menu a:hover { text-decoration: underline; }
.footer-note, .footer-copy { margin: 4px 0; font-size: .82rem; color: #e7cfdc; }
.socials { display: flex; gap: 16px; margin-top: 12px; font-size: .82rem; }

/* Tablet */
@media (max-width: 960px) {
	.grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
	.journal-grid { grid-template-columns: repeat(2, 1fr); }
	.post-card-featured { grid-template-columns: 1fr; }
	.post-card-featured .post-card-img img { min-height: 0; height: 300px; }
}

/* Mobile navigation */
@media (max-width: 860px) {
	.menu-toggle { display: inline-flex; }
	.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; padding: 12px 24px 20px; box-shadow: 0 10px 20px rgba(0, 0, 0, .12); border-top: 1px solid var(--line); }
	.nav.open { display: block; }
	.nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.nav .menu > li { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; }
	.nav .menu > li > a { flex: 1; padding: 12px 0; border-bottom: 0; }
	.nav .sub-menu { position: static; display: none; box-shadow: none; border: 0; padding: 0 0 10px 14px; min-width: 0; flex-basis: 100%; }
	.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { display: none; }
	.nav li.sub-open > .sub-menu { display: block; }
	.sub-toggle { display: block; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
	.sub-toggle::after { content: ""; position: absolute; left: 50%; top: 45%; width: 8px; height: 8px; border-right: 2px solid var(--plum); border-bottom: 2px solid var(--plum); transform: translate(-50%, -50%) rotate(45deg); }
	.sub-open > .sub-toggle::after { transform: translate(-50%, -20%) rotate(-135deg); }
	.hero-inner, .split { grid-template-columns: 1fr; }
	.hero-inner { min-height: 0; gap: 0; }
	.hero-copy { padding: 36px 0 12px; }
	.hero-photo { min-height: 0; }
	.hero-photo img { max-height: 380px; }
	.hero-dark .hero-photo, .hero-service .hero-photo, .hero-journal .hero-photo { padding: 0 0 32px; }
	.hero-dark .hero-photo img, .hero-service .hero-photo img { height: 300px; }
	.hero-journal .hero-photo img { height: 200px; }
	.split { gap: 28px; }
	.split-reverse > :first-child { order: 2; }
	.split > img { max-height: 380px; }
}

/* Phone */
@media (max-width: 560px) {
	.wrap { width: calc(100% - 32px); }
	.grid-3, .grid-4, .grid-5, .form-grid, .journal-grid { grid-template-columns: 1fr; }
	.section { padding: 44px 0; }
	.media-strip { justify-content: center; }
	.media-strip .eyebrow { flex-basis: 100%; text-align: center; }
	.media-logos { justify-content: center; gap: 14px 22px; }
	:root { --logo-h: 30px; }
	.brand { font-size: 1.05rem; }
	.brand-sub { font-size: .56rem; letter-spacing: .16em; }
	.menu-toggle-label { display: none; }
	.author-box { grid-template-columns: 1fr; }
	.post-card-featured .post-card-body { padding: 22px; }
	.btn { padding: 12px 18px; }
}
