/*
Theme Name: Rakhsh
Theme URI: https://rakhshtackle.com/
Author: Rakhsh Tackle
Author URI: https://rakhshtackle.com/
Description: Custom block theme for Rakhsh Tackle - The Canadian Lure Company. Built from scratch for WooCommerce, with no paid or third-party page-builder dependencies. Fully editable through the WordPress Site Editor.
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 7.4
Version: 1.3.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rakhsh
Tags: e-commerce, full-site-editing, block-patterns, dark, custom-colors, custom-menu, featured-images, translation-ready
*/

/*
 * Block themes are styled from theme.json.
 * Only rules that theme.json cannot express belong here.
 */

/* --- Uppercase, letterspaced "eyebrow" label used above section titles --- */
.rakhsh-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.18em;
}

/* --- Oversized hero display type, scales down cleanly on phones --- */
.rakhsh-display {
	font-size: clamp(2.25rem, 9vw, 7rem);
	line-height: 0.95;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

/* --- Full-bleed dark band: lets a section reach the screen edges --- */
.rakhsh-band {
	position: relative;
}

/* --- Media overlay: darkens a cover image so white type stays readable --- */
.rakhsh-overlay-text {
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

/* --- Header behaviour --- */
.rakhsh-topbar {
	font-size: 12px;
	letter-spacing: 0.04em;
}

/* --- Collapse the main menu to a hamburger earlier than WordPress does ---
   Core switches at 600px. With a 200px logo plus a search box, the menu wraps
   onto a second line on tablets, so collapse it below 900px instead. */
@media (max-width: 899px) {
	.rakhsh-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.rakhsh-header .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none;
	}

	.rakhsh-header .wp-block-navigation__responsive-container.is-menu-open {
		display: flex;
	}
}

/* --- Keyboard accessibility: visible focus ring everywhere --- */
:where(a, button, input, select, textarea, .wp-block-button__link):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

/* --- Skip link for keyboard and screen-reader users --- */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100000;
	padding: 12px 20px;
	background: #000;
	color: #fff;
	text-decoration: none;
}

.skip-link:focus {
	left: 0;
}

/* --- Specification tables inside product descriptions ---
   Product descriptions are spec tables. Without borders they read as one run-on
   line, so style every table the content can produce, not just a themed class. */
.entry-content table,
.woocommerce-Tabs-panel table,
.woocommerce-product-details__short-description table,
.wp-block-post-content table,
.wc-tab-inner table {
	width: 100%;
	border-collapse: collapse;
	margin: var(--wp--preset--spacing--20) 0;
	font-size: var(--wp--preset--font-size--medium);
}

.entry-content table th,
.woocommerce-Tabs-panel table th,
.wp-block-post-content table th,
.wc-tab-inner table th {
	text-align: left;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--surface);
	padding: 10px 14px;
	border: 1px solid #e2e2e2;
}

.entry-content table td,
.woocommerce-Tabs-panel table td,
.wp-block-post-content table td,
.wc-tab-inner table td {
	padding: 10px 14px;
	border: 1px solid #e2e2e2;
	vertical-align: top;
}

.entry-content table tbody tr:nth-child(even),
.wp-block-post-content table tbody tr:nth-child(even),
.wc-tab-inner table tbody tr:nth-child(even) {
	background: #fafafa;
}

/* Wide tables scroll rather than breaking the page on phones */
.wp-block-post-content table,
.wc-tab-inner table {
	display: table;
}

.wp-block-post-content,
.woocommerce-Tabs-panel {
	overflow-x: auto;
}

/* --- WooCommerce: keep product grids tidy inside block layouts --- */
.woocommerce ul.products {
	margin-left: 0;
	padding-left: 0;
	list-style: none;
}

/* --- Respect users who ask for reduced motion --- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

