/*
Theme Name: Ochrea
Author: Maryam K.
Author URI: https://www.upwork.com/freelancers/~01cd0973670682c5d3
Description: Ochrea is an editorial block theme for designers, studios and creative freelancers. Big serif headlines, a warm paper palette and a library of ready-made patterns (hero sections, selected work, services, process, pricing, FAQ, testimonials and contact) let you build a polished portfolio in the Site Editor without any page builder. Includes five color styles, a sans-serif typography style, a case-study template for projects, and full right-to-left support with Arabic typography.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ochrea
Tags: portfolio, blog, one-column, two-columns, grid-layout, block-patterns, block-styles, custom-colors, custom-logo, custom-menu, editor-style, featured-images, full-site-editing, full-width-template, rtl-language-support, style-variations, template-editing, threaded-comments, translation-ready, wide-blocks
*/

/* ---------------------------------------------------------------
 * Most styling lives in theme.json. This file only holds the few
 * details theme.json cannot express yet. Logical properties are
 * used throughout so everything mirrors correctly in RTL.
 * ------------------------------------------------------------- */

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

::selection {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
}

a,
.wp-element-button,
.wp-block-button__link {
	transition: color var(--wp--custom--transition), background-color var(--wp--custom--transition), border-color var(--wp--custom--transition), opacity var(--wp--custom--transition);
}

a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }

/* Arabic text reads better a touch larger and without negative tracking. */
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) .wp-block-site-title,
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .wp-block-site-title {
	letter-spacing: 0;
	line-height: 1.25;
	font-weight: 500;
}
:lang(ar) body, [dir="rtl"] body { line-height: 1.8; }
[dir="rtl"] .wp-block-quote {
	border-inline-start-width: 2px;
}

/* Header ------------------------------------------------------- */
.ochrea-header.is-sticky {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: saturate(140%) blur(10px);
	-webkit-backdrop-filter: saturate(140%) blur(10px);
}
.admin-bar .ochrea-header.is-sticky { top: var(--wp-admin--admin-bar--height, 32px); }

/* Accessible focus for every interactive element. */
:where(a, button, input, textarea, select, summary):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

/* Skip link is printed by core; keep it legible on our palette. */
.skip-link.screen-reader-text:focus {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

/* Eyebrow / small label used in patterns. */
.is-style-ochrea-eyebrow {
	font-family: var(--wp--preset--font-family--body) !important;
	font-size: var(--wp--preset--font-size--x-small) !important;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 600;
}
[dir="rtl"] .is-style-ochrea-eyebrow { letter-spacing: 0; }

/* Work cards: titles without underline, image zoom on hover. */
.ochrea-work-card :where(h2, h3) a { text-decoration: none; }
.ochrea-work-card :where(h2, h3) a:hover { color: var(--wp--preset--color--accent); }
.ochrea-work-card .wp-block-image,
.ochrea-work-card .wp-block-post-featured-image { overflow: hidden; }
.ochrea-work-card img {
	transition: transform 600ms cubic-bezier(.2, .7, .2, 1);
}
.ochrea-work-card:hover img { transform: scale(1.035); }

/* Numbered rows (services, process). */
.ochrea-row {
	border-block-start: 1px solid var(--wp--preset--color--line);
}
.ochrea-row:last-child { border-block-end: 1px solid var(--wp--preset--color--line); }

/* Details / FAQ marker */
.wp-block-details summary {
	cursor: pointer;
	list-style: none;
	font-weight: 500;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "+";
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.6em;
	line-height: 0.8;
	transition: transform var(--wp--custom--transition);
}
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details:last-child { border-block-end: 1px solid var(--wp--preset--color--line); }

/* Marquee-style client list */
.ochrea-clients p { white-space: nowrap; }

/* Pricing highlight */
.ochrea-price-featured { position: relative; }

/* Tables */
.wp-block-table td, .wp-block-table th { border-color: var(--wp--preset--color--line); }

/* Comments */
.wp-block-comment-template li { margin-block-end: var(--wp--preset--spacing--40); }
.wp-block-post-comments-form input:not([type=submit]):not([type=checkbox]),
.wp-block-post-comments-form textarea {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--small);
	background: transparent;
	padding: 0.75em 1em;
	font: inherit;
	color: inherit;
}

/* Search input */
.wp-block-search__input {
	border-color: var(--wp--preset--color--line);
	background: transparent;
	color: inherit;
	border-radius: 999px;
	padding-inline: 1.1em;
}

/* Full-bleed images sit edge to edge without rounded corners. */
.wp-block-image.alignfull img,
.wp-block-post-featured-image.alignfull img { border-radius: 0; }

/* Mobile refinements ------------------------------------------ */
@media (max-width: 781px) {
	.wp-block-column.ochrea-offset { padding-top: 0 !important; }
	.ochrea-hero-actions { justify-content: flex-start !important; }
}

/* In Arabic and other RTL scripts, emphasis in headings uses colour instead of italics. */
[dir="rtl"] :where(h1, h2, h3, .wp-block-heading) em,
:lang(ar) :where(h1, h2, h3, .wp-block-heading) em {
	font-style: normal;
	color: var(--wp--preset--color--accent);
}
