/*
Theme Name: Alzahaby Pro
Theme URI: https://alzahaby.pro/
Description: Blocksy child theme for Alzahaby Pro — practical AI for small business owners. Dark "Studio Gold" look, block patterns for homepage, verdict boxes and pros/cons, plus starter trust pages.
Author: Hamoudi Al-Zahaby
Template: blocksy
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alzahaby-pro
*/

/* =========================================================
   1. Palette — remaps Blocksy's 8 global colors to Studio Gold
   1 accent · 2 accent hover · 3 text · 4 headings · 5 borders
   6 alt background · 7 site background · 8 surfaces (header, cards)
   ========================================================= */
:root:root {
	--theme-palette-color-1: #E3B341;
	--theme-palette-color-2: #F2CC6B;
	--theme-palette-color-3: #CFC7B5;
	--theme-palette-color-4: #F4EFE4;
	--theme-palette-color-5: #2A261D;
	--theme-palette-color-6: #12110D;
	--theme-palette-color-7: #0E0D0B;
	--theme-palette-color-8: #17150F;

	--theme-text-color: #CFC7B5;
	--theme-headings-color: #F4EFE4;
	--theme-heading-color: #F4EFE4;
	--theme-link-initial-color: #E3B341;
	--theme-link-hover-color: #F2CC6B;
	--theme-border-color: #2A261D;
	--theme-selection-text-color: #0E0D0B;
	--theme-selection-background-color: #E3B341;
	--theme-button-text-initial-color: #0E0D0B;
	--theme-button-text-hover-color: #0E0D0B;
	--theme-button-background-initial-color: #E3B341;
	--theme-button-background-hover-color: #F2CC6B;
	--theme-button-border-radius: 12px;
	--theme-form-field-border-initial-color: #3A3427;
	--theme-form-field-border-focus-color: #E3B341;
	--theme-font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;

	--azp-muted: #A79F8C;
	--azp-faint: #8E8674;
	--azp-line-2: #221F18;
	--azp-line-3: #3A3427;
	--azp-gold-bg: #2A2414;
	--azp-green: #9ED39E;
	--azp-green-bg: #1E2A1E;
	--azp-blue: #9DC1F5;
	--azp-blue-bg: #1C2230;
	--azp-red: #F2A38F;
	--azp-rec: #E5484D;
	--azp-display: "Bricolage Grotesque", system-ui, sans-serif;
	--azp-mono: "JetBrains Mono", ui-monospace, monospace;
}

/* =========================================================
   2. Base
   ========================================================= */
body {
	background-color: #0E0D0B;
	color: #CFC7B5;
	font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6,
.page-title, .entry-title, .site-title, .ct-menu-link, .wp-block-heading {
	font-family: var(--azp-display);
	letter-spacing: -0.01em;
}
h1, .page-title { font-weight: 800; letter-spacing: -0.02em; }
::selection { background: #E3B341; color: #0E0D0B; }
:focus-visible { outline: 2px solid #E3B341; outline-offset: 2px; }

.ct-container,
.ct-container-narrow { --theme-normal-container-max-width: 1240px; }

/* =========================================================
   3. Header & footer
   ========================================================= */
.ct-header [data-row] {
	background-color: rgba(14, 13, 11, .94) !important;
	border-bottom: 1px solid #2A261D;
}
.ct-header .ct-menu-link { font-weight: 500; font-size: 15px; }
.ct-header .site-title a { color: #F4EFE4; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.ct-header .site-description { font-family: var(--azp-mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--azp-muted); }
.ct-header .ct-button,
.ct-header-cta .ct-button { border-radius: 10px; font-weight: 600; }
.ct-panel, #offcanvas .ct-panel-inner { background-color: #17150F !important; }

.ct-footer [data-row] {
	background-color: #0E0D0B !important;
	border-top: 1px solid #2A261D;
}
.ct-footer, .ct-footer a { color: var(--azp-muted); }
.ct-footer a:hover { color: #E3B341; }
.ct-footer .widget-title { font-family: var(--azp-mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--azp-muted); }

/* =========================================================
   4. Archive cards (Blocksy .entry-card)
   ========================================================= */
.entries .entry-card {
	background: transparent;
	border: 0;
	box-shadow: none;
}
.entries[data-cards="boxed"] .entry-card {
	background: #17150F;
	border: 1px solid #2A261D;
	border-radius: 16px;
}
.entry-card .ct-media-container,
.entry-card .ct-image-container { border-radius: 14px; overflow: hidden; }
.entry-card .ct-media-container img { transition: transform .4s ease; }
.entry-card:hover .ct-media-container img { transform: scale(1.03); }
.entry-card .entry-title a { color: #F4EFE4; transition: color .15s; }
.entry-card:hover .entry-title a { color: #E3B341; }
.entry-card .entry-excerpt { color: var(--azp-muted); }
.entry-meta, .entry-meta a { color: var(--azp-muted); font-size: 13px; }
.entry-meta .meta-categories a,
.entry-meta [data-type="pill"] a {
	background: var(--azp-gold-bg);
	color: #E3B341;
	font-family: var(--azp-mono);
	font-size: 11px;
	letter-spacing: 1px;
	text-transform: uppercase;
	border-radius: 6px;
	padding: 4px 8px;
}

/* Page / archive heroes */
.hero-section[data-type="type-2"] {
	background: linear-gradient(180deg, #1E1A10 0%, #0E0D0B 100%);
	border-bottom: 1px solid #2A261D;
}
.hero-section .page-title { font-size: clamp(40px, 6vw, 72px); line-height: 1; }
.hero-section .page-description { color: #CFC7B5; font-size: 19px; max-width: 680px; }
.ct-breadcrumbs, .ct-breadcrumbs a { color: var(--azp-muted); font-size: 14px; }

/* Pagination */
.ct-pagination a, .ct-pagination span {
	border: 1px solid var(--azp-line-3);
	border-radius: 10px;
	color: #F4EFE4;
	min-width: 44px; min-height: 44px;
}
.ct-pagination .current { background: #E3B341; border-color: #E3B341; color: #0E0D0B; }

/* =========================================================
   5. Single posts — readable long-form
   ========================================================= */
.single .entry-content,
.page .entry-content {
	font-size: 17px;
	line-height: 1.75;
	color: #DCD5C5;
}
.entry-content h2 { font-size: 32px; margin-top: 1.8em; scroll-margin-top: 100px; }
.entry-content h3 { font-size: 24px; margin-top: 1.5em; scroll-margin-top: 100px; }
.entry-content a:not(.wp-block-button__link):not(.azp-btn) {
	text-decoration: underline;
	text-decoration-color: rgba(227, 179, 65, .4);
	text-underline-offset: 3px;
}
.entry-content a:not(.wp-block-button__link):hover { text-decoration-color: #E3B341; }
.entry-content strong { color: #F4EFE4; }
.entry-content li::marker { color: #E3B341; }
.entry-content blockquote,
.entry-content .wp-block-quote {
	border-left: 3px solid #E3B341;
	padding: 4px 0 4px 18px;
	color: #CFC7B5;
	font-size: 18px;
}
.entry-content figure img { border-radius: 14px; }
.entry-content figcaption { color: var(--azp-muted); font-size: 13px; }
.entry-content table { font-size: 15px; }
.entry-content th {
	text-align: left;
	color: var(--azp-muted);
	font-family: var(--azp-mono);
	font-size: 12px;
	letter-spacing: 1px;
	font-weight: 400;
	text-transform: uppercase;
	border-bottom: 1px solid #2A261D;
}
.entry-content td { border-bottom: 1px solid var(--azp-line-2); }
.entry-content code, .entry-content pre { font-family: var(--azp-mono); background: #17150F; border-radius: 6px; }
.entry-content code { padding: 2px 6px; font-size: 14px; }
.entry-content pre { padding: 16px; border: 1px solid #2A261D; overflow-x: auto; }
.entry-content details { border-top: 1px solid #2A261D; padding: 16px 0; }
.entry-content details:last-of-type { border-bottom: 1px solid #2A261D; }
.entry-content summary { cursor: pointer; font-weight: 600; font-size: 18px; color: #F4EFE4; }
.wp-block-button__link { border-radius: 12px; font-weight: 600; }

/* Author box & comments */
.author-box { background: #17150F; border: 1px solid #2A261D; border-radius: 18px; }
.ct-comments textarea, .ct-comments input:not([type=submit]) { background: #17150F; color: #F4EFE4; }

/* =========================================================
   6. Blocksy Product Reviews (used for AI tool reviews)
   ========================================================= */
.ct-product-hero { background: linear-gradient(180deg, #1E1A10 0%, #0E0D0B 100%); }
.ct-product-scores {
	background: #17150F;
	border: 1px solid var(--azp-line-3);
	border-radius: 20px;
}
.ct-overall-score,
.ct-average-score { color: #E3B341; font-family: var(--azp-display); }
.ct-score-label { font-family: var(--azp-mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--azp-muted); }
.ct-product-review-pros,
.ct-product-review-cons,
.ct-specs { background: #17150F; border: 1px solid #2A261D; border-radius: 16px; }
.ct-product-review-pros h3, .ct-product-review-pros .ct-module-title { color: var(--azp-green); }
.ct-product-review-cons h3, .ct-product-review-cons .ct-module-title { color: var(--azp-red); }
.ct-product-actions-group .ct-button { border-radius: 12px; font-weight: 600; }

/* =========================================================
   7. Block patterns (homepage + article components)
   ========================================================= */
.azp-eyebrow {
	font-family: var(--azp-mono);
	font-size: 12px !important;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #E3B341;
	margin: 0;
}
.azp-rec::before {
	content: "";
	display: inline-block;
	width: 10px; height: 10px;
	border-radius: 50%;
	background: var(--azp-rec);
	margin-right: 10px;
	vertical-align: 1px;
}
.azp-rec { color: var(--azp-muted); }
.azp-hero { border-bottom: 1px solid #2A261D; }
.azp-hero h1 { font-size: clamp(40px, 5.4vw, 66px); line-height: 1.02; letter-spacing: -1.5px; margin: 0; }
.azp-gold { color: #E3B341; }
.azp-lead { font-size: 19px; color: #CFC7B5; max-width: 600px; }
.azp-section-title { font-size: clamp(30px, 3.4vw, 40px); letter-spacing: -0.8px; }

.azp-card,
.wp-block-group.azp-card {
	background: #17150F;
	border: 1px solid #2A261D;
	border-radius: 16px;
	transition: border-color .15s;
}
.azp-card:hover { border-color: #E3B341; }
.azp-card .wp-block-heading { margin-top: 0; }
.azp-card a { color: #F4EFE4; text-decoration: none !important; }
.azp-card a:hover { color: #E3B341; }
.azp-num { font-family: var(--azp-mono); font-size: 12px; color: #E3B341; }
.azp-muted { color: var(--azp-muted); }

.azp-tint { background: #12110D; border-top: 1px solid #2A261D; border-bottom: 1px solid #2A261D; }

.azp-pill .wp-block-button__link {
	border-radius: 999px !important;
	background: transparent !important;
	border: 1px solid var(--azp-line-3) !important;
	color: #F4EFE4 !important;
	font-weight: 500;
}
.azp-pill .wp-block-button__link:hover { border-color: #E3B341 !important; }
.is-style-outline .wp-block-button__link { border-color: var(--azp-line-3); color: #F4EFE4; }
.is-style-outline .wp-block-button__link:hover { border-color: #E3B341; background: transparent; color: #F4EFE4; }

/* Query loop grid on the homepage */
.azp-latest .wp-block-post-featured-image img { border-radius: 14px; aspect-ratio: 16/10; object-fit: cover; }
.azp-latest .wp-block-post-title a { color: #F4EFE4; text-decoration: none; }
.azp-latest .wp-block-post-title a:hover { color: #E3B341; }
.azp-latest .wp-block-post-terms a {
	background: var(--azp-gold-bg);
	color: #E3B341;
	font-family: var(--azp-mono);
	font-size: 11px;
	letter-spacing: 1px;
	text-transform: uppercase;
	border-radius: 6px;
	padding: 3px 8px;
	text-decoration: none;
}
.azp-latest .wp-block-post-date { color: var(--azp-muted); font-size: 13px; }

/* Newsletter / CTA band */
.azp-cta { background: #E3B341 !important; color: #0E0D0B; border-radius: 24px; }
.azp-cta h2, .azp-cta p { color: #0E0D0B !important; }
.azp-cta .wp-block-button__link { background: #0E0D0B !important; color: #F4EFE4 !important; }

/* Verdict box */
.azp-verdict {
	background: #17150F;
	border: 1px solid var(--azp-line-3);
	border-radius: 20px;
	overflow: hidden;
}
.azp-score {
	width: 104px; height: 104px;
	border-radius: 50%;
	border: 4px solid #E3B341;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	line-height: 1;
	flex: 0 0 auto;
}
.azp-score strong { font-family: var(--azp-display); font-size: 32px; color: #F4EFE4; }
.azp-score span { font-family: var(--azp-mono); font-size: 10px; color: var(--azp-muted); margin-top: 4px; }
.azp-pros, .azp-cons { list-style: none; padding-left: 0 !important; }
.azp-pros li, .azp-cons li { position: relative; padding-left: 22px; }
.azp-pros li::before { content: "+"; position: absolute; left: 0; color: var(--azp-green); font-weight: 700; }
.azp-cons li::before { content: "−"; position: absolute; left: 0; color: var(--azp-red); font-weight: 700; }
.azp-pros-title { color: var(--azp-green) !important; }
.azp-cons-title { color: var(--azp-red) !important; }

/* Key takeaways box */
.azp-takeaways {
	background: #17150F;
	border: 1px solid #2A261D;
	border-left: 3px solid #E3B341;
	border-radius: 14px;
}

/* "Tested by" author strip */
.azp-tested-by { background: #17150F; border: 1px solid #2A261D; border-radius: 18px; }

/* Utility: hide on mobile */
@media (max-width: 720px) {
	.azp-hide-mobile { display: none !important; }
	.azp-hero h1 { letter-spacing: -0.8px; }
	.single .entry-content, .page .entry-content { font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }


/* Homepage: hide the page title hero, the hero block is the title */
.home .hero-section,
.home .entry-header { display: none !important; }
.home .site-main > .ct-container-full,
.home [data-vertical-spacing] { padding-top: 0 !important; }


/* Polish */
.entry-content > .azp-lead { max-width: none; }
.wp-block-column > .azp-card { height: 100%; }

/* =========================================================
   8. Site footer (replaces Blocksy's builder footer)
   ========================================================= */
.azp-footer { border-top: 1px solid #2A261D; background: #0E0D0B; color: var(--azp-muted); font-size: 14px; }
.azp-footer-inner { max-width: 1240px; margin: 0 auto; padding: 48px 24px 32px; display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.azp-footer-about { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.azp-footer-about p { margin: 0; max-width: 380px; line-height: 1.6; }
.azp-footer-brand { font-family: var(--azp-display); font-weight: 800; font-size: 19px; letter-spacing: .5px; color: #F4EFE4 !important; text-decoration: none; }
.azp-footer-brand span { color: #E3B341; }
.azp-footer-yt { font-weight: 600; color: #E3B341; }
.azp-footer-cols { display: flex; flex-wrap: wrap; gap: 48px; }
.azp-footer-cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.azp-footer-cols a { color: #F4EFE4; text-decoration: none; }
.azp-footer-cols a:hover { color: #E3B341; }
.azp-footer-title { display: block; margin-bottom: 12px; font-family: var(--azp-mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--azp-muted); }
.azp-footer-bottom { max-width: 1240px; margin: 0 auto; padding: 0 24px 32px; color: var(--azp-faint); font-size: 13px; }

/* Verdict box: keep the score and the verdict text side by side */
.azp-verdict > .wp-block-group:first-child { flex-wrap: nowrap !important; align-items: center; }
.azp-verdict > .wp-block-group:first-child > .wp-block-group { flex: 1 1 auto; min-width: 0; }
.azp-verdict .azp-score { flex: 0 0 auto; }

/* Homepage v2 (brand publication layout) */
.azp-hero h1 { max-width: 860px; }
.azp-hero .azp-lead { max-width: 680px; }
.azp-search { max-width: 640px; }
.azp-search .wp-block-search__inside-wrapper { background: #17150F; border: 1px solid #2A261D; border-radius: 14px; padding: 6px; }
.azp-search .wp-block-search__input { background: transparent; border: 0; color: #F4EFE4; font-size: 16px; padding: 10px 14px; }
.azp-search .wp-block-search__input::placeholder { color: #8E8674; }
.azp-search .wp-block-search__input:focus { outline: none; }
.azp-search .wp-block-search__inside-wrapper:focus-within { border-color: #E3B341; }
.azp-search .wp-block-search__button { background: #E3B341; color: #0E0D0B; border: 0; border-radius: 10px; font-weight: 600; padding: 10px 18px; margin: 0; }
.azp-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.azp-pills .azp-pill { display: inline-block; padding: 7px 14px; border: 1px solid #2A261D; border-radius: 999px; color: #F4EFE4; font-size: 14px; text-decoration: none; }
.azp-pills .azp-pill:hover { border-color: #E3B341; color: #E3B341; }

/* Hero: narrow blocks align left with the rest of the hero */
.azp-hero > h1, .azp-hero > .azp-lead, .azp-hero > .azp-search { margin-left: max(0px, calc((100% - 1240px) / 2)) !important; margin-right: auto !important; }

/* Blog page heading */
.azp-blog-head { margin: 0 0 40px; max-width: 760px; }
.azp-blog-head h1 { font-family: var(--azp-display); font-weight: 800; font-size: clamp(34px, 5vw, 52px); line-height: 1.05; margin: 0 0 12px; }
.azp-blog-head p { color: var(--azp-muted); font-size: 18px; margin: 0; }
