/*!
Theme Name: Mishkat Theme
Theme URI: https://shop.onemax.org/
Author: One Max
Author URI: https://onemax.org/
Description: A refined WooCommerce storefront built on Underscores for One Max.
Version: 1.2.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: mishkat-theme
Tags: custom-logo, custom-menu, featured-images, e-commerce, translation-ready

Mishkat Theme is based on Underscores, (C) 2012-2020 Automattic, Inc.
*/

:root {
	--ink: #1e4a61;
	--ink-deep: #153b50;
	--ink-soft: #28566e;
	--gold: #b6a065;
	--gold-soft: #d9cba5;
	--paper: #f6f3ec;
	--stone: #eae4d8;
	--cream: #eae4d8;
	--stone-2: #e2dccd;
	--line: #ddd6c6;
	--muted: #8c8675;
	--text: #1c2333;
	--white: #ffffff;
	--container: 1240px;
	--serif: "Montserrat", system-ui, sans-serif;
	--sans: "Montserrat", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover, a:focus { color: var(--ink); }
img { display: block; height: auto; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-family: var(--serif); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 .65em; }
h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { margin: 0 0 1.4em; }
.site-container { margin-inline: auto; max-width: var(--container); padding-inline: 38px; width: 100%; }
.section-space { padding-block: clamp(72px, 8vw, 112px); }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute !important; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { background: var(--white); clip: auto !important; clip-path: none; color: var(--ink); display: block; height: auto; left: 10px; padding: 12px 18px; top: 10px; width: auto; z-index: 100000; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.alignleft { float: left; margin: 0 1.5em 1.5em 0; }
.alignright { float: right; margin: 0 0 1.5em 1.5em; }
.aligncenter { clear: both; display: block; margin-inline: auto; }
.alignwide { margin-inline: min(-8vw, -80px); max-width: none; }
.alignfull { margin-left: calc(50% - 50vw); max-width: 100vw; width: 100vw; }

/* Announcement and navigation */
.announcement-bar { background: var(--ink); color: #ede6d6; font-size: .72rem; font-weight: 600; letter-spacing: .15em; text-align: center; text-transform: uppercase; }
.announcement-inner { padding-block: 10px; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.admin-bar .site-header { top: 32px; }
.header-inner { align-items: center; display: grid; grid-template-columns: 160px 1fr 160px; min-height: 112px; }
.site-branding, .custom-logo-link { line-height: 0; }
.custom-logo-link { display: inline-block; }
.custom-logo { max-height: 74px; width: auto; }
.main-navigation { justify-self: center; }
.main-navigation ul { align-items: center; display: flex; gap: clamp(22px, 3vw, 42px); list-style: none; margin: 0; padding: 0; }
.main-navigation li { position: relative; }
.main-navigation a { color: #3a4254; display: block; font-size: .84rem; font-weight: 600; letter-spacing: .04em; padding-block: 18px; text-decoration: none; }
.main-navigation a::after { background: var(--gold); bottom: 9px; content: ""; height: 2px; left: 0; position: absolute; transform: scaleX(0); transition: transform 180ms ease; width: 100%; }
.main-navigation a:hover, .main-navigation .current-menu-item > a { color: var(--ink); }
.main-navigation a:hover::after, .main-navigation .current-menu-item > a::after { transform: scaleX(1); }
.main-navigation ul ul { align-items: stretch; background: var(--paper); border: 1px solid var(--line); display: none; flex-direction: column; gap: 0; left: -18px; min-width: 220px; padding: 10px 18px; position: absolute; top: 100%; }
.main-navigation li:hover > ul, .main-navigation li.focus > ul { display: flex; }
.menu-toggle { background: transparent; border: 0; color: var(--ink); display: none; padding: 10px; }
.menu-toggle-lines { display: grid; gap: 5px; }
.menu-toggle-lines span { background: currentColor; display: block; height: 2px; width: 27px; }
.header-actions { display: flex; gap: 16px; justify-self: end; }
.header-action { align-items: center; color: var(--ink); display: inline-flex; height: 42px; justify-content: center; position: relative; text-decoration: none; width: 42px; }
.header-action:hover { color: #806f41; }
.header-action svg { fill: none; height: 23px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 23px; }
.cart-count { align-items: center; background: var(--gold); border-radius: 50%; color: var(--ink-deep); display: flex; font-size: .63rem; font-weight: 800; height: 18px; justify-content: center; position: absolute; right: -1px; top: 0; width: 18px; }

/* Hero */
.hero { background: var(--ink); color: #f3ecdd; overflow: hidden; }
.hero .site-container { max-width: none; padding-inline: max(38px, calc((100vw - var(--container)) / 2 + 38px)); }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; min-height: 650px; padding-right: 0 !important; }
.hero-copy { align-self: center; max-width: 650px; padding: 80px 60px 80px 0; }
.eyebrow { color: var(--gold); font-size: .7rem; font-weight: 700; letter-spacing: .24em; margin-bottom: 15px; text-transform: uppercase; }
.hero h1 { color: #fbf6ea; font-size: clamp(3.15rem, 5.7vw, 5.8rem); line-height: 1.02; margin-bottom: 26px; }
.hero h1 em { color: var(--gold-soft); font-style: italic; }
.hero-description { color: #c8cedd; font-size: clamp(1rem, 1.4vw, 1.18rem); line-height: 1.7; margin-bottom: 38px; max-width: 570px; }
.button, button.button, input.button, .wp-block-button__link { align-items: center; border: 1px solid transparent; border-radius: 2px; display: inline-flex; font-size: .82rem; font-weight: 700; gap: 12px; justify-content: center; letter-spacing: .08em; min-height: 54px; padding: 14px 30px; text-decoration: none; transition: background 180ms ease, color 180ms ease, transform 180ms ease; }
.button svg { fill: none; height: 17px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.2; width: 17px; }
.button-gold { background: var(--gold); color: var(--ink-deep); }
.button-gold:hover { background: #d6ab63; color: var(--ink-deep); transform: translateY(-2px); }
.hero-art { align-items: center; background: radial-gradient(120% 100% at 70% 20%, #2a5670 0%, var(--ink-deep) 60%); border-left: 1px solid rgba(255,255,255,.06); display: flex; justify-content: center; min-height: 650px; overflow: hidden; padding: 45px; position: relative; }
.hero-ring { border: 1px solid rgba(182,160,101,.38); inset: 45px; position: absolute; }
.hero-ring::after { border: 1px solid rgba(182,160,101,.14); content: ""; inset: 26px; position: absolute; }
.hero-products { height: 82%; max-height: 540px; max-width: 620px; position: relative; width: 92%; z-index: 1; }
.hero-product { background: var(--stone); box-shadow: 0 24px 45px rgba(0,0,0,.32); object-fit: cover; position: absolute; }
.hero-product-main { height: 88%; left: 24%; top: 5%; width: 52%; z-index: 3; }
.hero-product-left { bottom: 2%; height: 58%; left: 2%; transform: rotate(-6deg); width: 37%; z-index: 2; }
.hero-product-right { bottom: 1%; height: 55%; right: 0; transform: rotate(6deg); width: 35%; z-index: 2; }

/* Collection */
.collection-section { background: var(--paper); }
.section-heading { align-items: end; display: flex; gap: 30px; justify-content: space-between; margin-bottom: 44px; }
.section-heading h2 { font-size: clamp(2rem, 3.5vw, 3rem); margin-bottom: 10px; }
.section-heading p:not(.eyebrow) { color: var(--muted); font-size: .9rem; margin: 0; max-width: 520px; }
.text-link { border-bottom: 2px solid var(--gold); color: var(--ink); font-size: .78rem; font-weight: 700; letter-spacing: .06em; padding-bottom: 3px; text-decoration: none; white-space: nowrap; }
.preview-products { display: grid; gap: 28px; grid-template-columns: repeat(4, 1fr); }
.preview-product a { text-decoration: none; }
.preview-product-image { aspect-ratio: 4/5; background: var(--stone); border: 1px solid var(--line); overflow: hidden; transition: background 180ms ease, transform 180ms ease; }
.preview-product:hover .preview-product-image { background: var(--stone-2); transform: translateY(-3px); }
.preview-product-image img { height: 100%; object-fit: cover; width: 100%; }
.preview-product h3 { font-size: 1.08rem; margin: 17px 0 5px; }
.preview-product p { color: var(--muted); display: -webkit-box; font-size: .76rem; line-height: 1.5; margin: 0 0 8px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.preview-product strong { color: var(--text); font-size: .9rem; }

/* Value band */
.story-band { background: var(--stone); border-block: 1px solid var(--line); }
.story-band-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.story-band article { border-right: 1px solid var(--line); padding: 48px 42px; }
.story-band article:last-child { border-right: 0; }
.story-band svg { fill: none; height: 32px; margin-bottom: 18px; stroke: var(--gold); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; width: 32px; }
.story-band h3 { font-size: 1.15rem; margin-bottom: 9px; }
.story-band p { color: #5b6273; font-size: .84rem; line-height: 1.65; margin: 0; }

/* Dark feature cards */
.feature-section { background: var(--ink-deep); color: #f1e9d8; }
.feature-heading { margin: 0 auto 48px; max-width: 720px; text-align: center; }
.feature-heading h2 { color: #fbf6ea; }
.feature-heading > p:last-child { color: #9aa3b8; font-size: .9rem; margin: 0; }
.feature-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; margin: 0 auto; max-width: 1000px; }
.feature-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); color: #f1e9d8; display: grid; grid-template-columns: .8fr 1.2fr; overflow: hidden; text-decoration: none; transition: border 180ms ease, transform 180ms ease; }
.feature-card:hover { border-color: var(--gold); color: #f1e9d8; transform: translateY(-3px); }
.feature-card-gold { background: rgba(182,160,101,.08); border-color: rgba(182,160,101,.42); }
.feature-art { background: rgba(0,0,0,.16); min-height: 300px; overflow: hidden; }
.feature-art img { height: 100%; object-fit: cover; width: 100%; }
.feature-copy { align-self: center; padding: 34px; }
.feature-copy h3 { color: #fbf6ea; font-size: 1.65rem; }
.feature-copy span { color: var(--gold-soft); font-size: .75rem; font-weight: 700; letter-spacing: .05em; }

/* Community */
.community-section { background: var(--paper); text-align: center; }
.community-section h2 { margin-bottom: 12px; }
.community-section > .site-container > p:not(.eyebrow) { color: var(--muted); font-size: .88rem; margin: 0 auto 35px; max-width: 560px; }
.community-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.community-grid a { aspect-ratio: 1; background: var(--stone); border: 1px solid var(--line); overflow: hidden; }
.community-grid img { height: 100%; object-fit: cover; transition: transform 250ms ease; width: 100%; }
.community-grid a:hover img { transform: scale(1.025); }
.page-added-content { background: var(--white); }
.entry-content { margin-inline: auto; max-width: 850px; }

/* Standard WordPress content */
.site-main:not(.front-page-main):not(.woo-main) { margin-inline: auto; max-width: 960px; min-height: 55vh; padding: clamp(64px, 9vw, 120px) 28px; }
.page-header, .entry-header { margin-bottom: 40px; }
.entry-title, .page-title { font-size: clamp(2.4rem, 5vw, 4.5rem); }
.entry-meta, .entry-footer { color: var(--muted); font-size: .82rem; }
.post-thumbnail { display: block; margin-bottom: 40px; }
.nav-links { display: flex; gap: 28px; justify-content: space-between; margin-top: 60px; }
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], textarea, select { background: var(--white); border: 1px solid var(--line); border-radius: 0; color: var(--text); min-height: 48px; padding: 10px 13px; width: 100%; }
textarea { min-height: 150px; }
label { font-size: .86rem; font-weight: 700; }

/* Footer */
.site-footer { background: var(--ink); color: #cdd3e2; padding-top: 74px; }
.footer-top { border-bottom: 1px solid rgba(255,255,255,.1); display: grid; gap: 60px; grid-template-columns: 1.4fr 1fr 1fr; padding-bottom: 54px; }
.footer-connect h2 { color: #fbf6ea; font-size: 1.35rem; margin-bottom: 10px; }
.footer-connect p { color: #9aa3b8; font-size: .82rem; max-width: 390px; }
.footer-join { align-items: center; border: 1px solid rgba(255,255,255,.24); display: flex; font-size: .77rem; justify-content: space-between; max-width: 390px; text-decoration: none; }
.footer-join span { color: #9aa3b8; padding: 13px 15px; }
.footer-join strong { background: var(--gold); color: var(--ink-deep); letter-spacing: .08em; padding: 13px 20px; }
.footer-column h2 { color: #8993a9; font-family: var(--sans); font-size: .69rem; letter-spacing: .16em; margin-bottom: 18px; text-transform: uppercase; }
.footer-column a { color: #cdd3e2; display: block; font-size: .82rem; margin-bottom: 10px; text-decoration: none; }
.footer-column a:hover { color: var(--gold-soft); }
.footer-column ul { list-style: none; margin: 0; padding: 0; }
.footer-bottom { align-items: center; display: flex; font-size: .7rem; justify-content: space-between; letter-spacing: .03em; padding-block: 26px; }
.footer-bottom p { color: #7e879d; margin: 0; }
.footer-logo .custom-logo { max-height: 55px; }

@media (max-width: 960px) {
	.admin-bar .site-header { top: 46px; }
	.header-inner { grid-template-columns: 1fr auto auto; min-height: 94px; }
	.site-branding { grid-column: 1; }
	.main-navigation { grid-column: 3; grid-row: 1; margin-left: 8px; }
	.header-actions { grid-column: 2; grid-row: 1; }
	.menu-toggle { display: block; }
	.main-navigation > ul { background: var(--paper); border-top: 1px solid var(--line); display: none; flex-direction: column; gap: 0; left: 0; max-height: calc(100vh - 120px); overflow-y: auto; padding: 20px 28px 35px; position: absolute; top: 100%; width: 100%; }
	.main-navigation.toggled > ul { display: flex; }
	.main-navigation li { width: 100%; }
	.main-navigation a { border-bottom: 1px solid var(--line); font-size: .86rem; padding-block: 17px; }
	.main-navigation a::after { display: none; }
	.main-navigation ul ul { background: transparent; border: 0; display: flex; padding: 0 0 0 22px; position: static; }
	.hero-inner { min-height: 580px; }
	.hero-copy { padding-right: 35px; }
	.hero-art { min-height: 580px; padding: 25px; }
	.hero-ring { inset: 28px; }
	.preview-products { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
	.feature-card { grid-template-columns: 1fr; }
	.feature-art { min-height: 270px; }
	.footer-top { grid-template-columns: 1.3fr .7fr; }
	.footer-column:last-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
	.site-container { padding-inline: 20px; }
	.announcement-bar { font-size: .62rem; letter-spacing: .09em; }
	.header-inner { min-height: 82px; }
	.custom-logo { max-height: 62px; max-width: 130px; }
	.header-actions { gap: 2px; }
	.search-action { display: none; }
	.header-action { height: 38px; width: 38px; }
	.hero .site-container { padding-inline: 0; }
	.hero-inner { grid-template-columns: 1fr; }
	.hero-copy { padding: 58px 24px 48px; }
	.hero h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
	.hero-description { font-size: .93rem; }
	.hero-art { border-left: 0; border-top: 1px solid rgba(255,255,255,.06); min-height: 440px; }
	.hero-products { height: 380px; }
	.hero-ring { inset: 22px; }
	.section-heading { align-items: flex-start; flex-direction: column; }
	.preview-products { gap: 38px 14px; }
	.preview-product h3 { font-size: .9rem; }
	.preview-product p { display: none; }
	.story-band-grid { grid-template-columns: 1fr; }
	.story-band article { border-bottom: 1px solid var(--line); border-right: 0; padding: 35px 20px; }
	.story-band article:last-child { border-bottom: 0; }
	.feature-grid { grid-template-columns: 1fr; }
	.feature-card { grid-template-columns: .9fr 1.1fr; }
	.feature-art { min-height: 250px; }
	.feature-copy { padding: 24px; }
	.feature-copy h3 { font-size: 1.25rem; }
	.community-grid { gap: 10px; grid-template-columns: repeat(2, 1fr); }
	.footer-top { grid-template-columns: 1fr; }
	.footer-column:last-child { grid-column: auto; }
	.footer-bottom { align-items: flex-start; flex-direction: column; gap: 15px; }
	.alignleft, .alignright { float: none; margin-inline: 0; }
}

@media (max-width: 420px) {
	.feature-card { grid-template-columns: 1fr; }
	.feature-art { min-height: 280px; }
}
