/*
Theme Name: Bharti Handicrafts Gallery Fix 1.0.4
Theme URI: https://bhartihandicraft.com/
Author: Bharti Handicrafts
Description: A lightweight, image-led theme for Bharti Handicrafts.
Version: 1.0.4
Requires at least: 6.7
Requires PHP: 7.4
Text Domain: bharti-handicrafts
*/

:root {
	--ink: #173a32;
	--ink-soft: #48635b;
	--paper: #f7f5ef;
	--white: #fff;
	--red: #a63d30;
	--gold: #e6a331;
	--teal: #4a8f7e;
	--line: #dedbd1;
	--serif: Georgia, "Palatino Linotype", "Book Antiqua", serif;
	--sans: "Avenir Next", Avenir, "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	color: var(--ink);
	background: var(--paper);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.65;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.site-header { position: relative; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { width: min(1240px, calc(100% - 48px)); min-height: 82px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--paper); background: var(--red); font-family: var(--serif); font-size: 20px; }
.brand-name { display: block; font-family: var(--serif); font-size: 23px; font-weight: 700; line-height: 1.1; white-space: nowrap; }
.brand-tagline { display: block; margin-top: 3px; color: var(--ink-soft); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; }
.main-navigation ul { display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; list-style: none; }
.main-navigation a { text-decoration: none; font-size: 13px; font-weight: 700; }
.main-navigation a:hover, .main-navigation a:focus-visible { color: var(--red); }
.menu-toggle { display: none; border: 0; padding: 10px; color: var(--ink); background: transparent; font: inherit; font-size: 22px; cursor: pointer; }
.hero { position: relative; min-height: 540px; overflow: hidden; color: var(--white); background: #522f2b; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 700ms ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; min-height: 540px; object-fit: cover; object-position: center; }
.hero-slide::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgba(14, 37, 31, .82) 0%, rgba(14, 37, 31, .58) 43%, rgba(14, 37, 31, .08) 100%); }
.hero-copy { position: relative; z-index: 1; width: min(1240px, calc(100% - 48px)); min-height: 540px; margin: auto; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 56px 0 86px; }
.eyebrow { margin: 0 0 14px; color: #ffd37f; font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.hero h1 { max-width: 660px; margin: 0; font-family: var(--serif); font-size: clamp(42px, 5vw, 68px); font-weight: 500; line-height: 1.04; }
.hero-copy > p:not(.eyebrow) { max-width: 500px; margin: 20px 0 28px; color: rgba(255,255,255,.92); font-size: 17px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 20px; border: 1px solid transparent; border-radius: 2px; background: var(--gold); color: #201d16; font-size: 13px; font-weight: 800; text-decoration: none; }
.button:hover, .button:focus-visible { background: #f3bf5b; }
.button-secondary { border-color: rgba(255,255,255,.72); background: transparent; color: var(--white); }
.button-secondary:hover, .button-secondary:focus-visible { background: rgba(255,255,255,.14); }
.slider-controls { position: absolute; z-index: 2; right: max(24px, calc((100% - 1240px) / 2)); bottom: 25px; display: flex; align-items: center; gap: 10px; }
.slider-button { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; color: var(--white); background: rgba(14,37,31,.38); font-size: 20px; cursor: pointer; }
.slider-button:hover, .slider-button:focus-visible { color: var(--ink); background: var(--white); }
.section { padding: 76px 24px; }
.section-inner { width: min(1240px, 100%); margin: auto; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading h2, .about-copy h2 { margin: 0; font-family: var(--serif); font-size: clamp(32px, 4vw, 46px); font-weight: 500; line-height: 1.08; }
.section-heading p { max-width: 460px; margin: 0; color: var(--ink-soft); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-card { min-width: 0; background: var(--white); }
.product-card a { display: block; height: 100%; text-decoration: none; }
.product-card img { width: 100%; aspect-ratio: 1.23; object-fit: cover; transition: transform 450ms ease; }
.product-card a:hover img { transform: scale(1.035); }
.product-image { overflow: hidden; background: #e6e2d7; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 17px; }
.product-meta h3 { margin: 0; font-family: var(--serif); font-size: 21px; font-weight: 600; }
.product-arrow { color: var(--red); font-size: 22px; }
.about-section { color: var(--white); background: var(--ink); }
.about-band { display: grid; grid-template-columns: minmax(240px, .75fr) minmax(0, 1.25fr); gap: clamp(32px, 7vw, 95px); align-items: center; }
.about-band .eyebrow { color: #ffd37f; }
.about-copy p { color: rgba(255,255,255,.82); }
.about-image { width: 100%; max-height: 360px; object-fit: contain; background: #e7e6df; }
.about-copy .button { margin-top: 10px; }
.contact-band { padding: 40px 24px; background: #e9b64e; }
.contact-inner { width: min(1240px, 100%); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.contact-inner h2 { margin: 0; font-family: var(--serif); font-size: 28px; font-weight: 500; }
.contact-inner p { margin: 4px 0 0; color: #493d27; }
.contact-inner .button { color: var(--white); background: var(--red); }
.site-footer { padding: 28px 24px; color: rgba(255,255,255,.83); background: #102a24; font-size: 13px; }
.footer-inner { width: min(1240px, 100%); margin: auto; display: flex; justify-content: space-between; gap: 18px; }
.footer-inner p { margin: 0; }
.content-wrap { width: min(1000px, calc(100% - 48px)); min-height: 55vh; margin: 54px auto 80px; }
.content-wrap h1 { margin: 0 0 24px; font-family: var(--serif); font-size: clamp(36px, 5vw, 56px); font-weight: 500; line-height: 1.1; }
.entry-content img { max-width: 100%; }
.entry-content a { color: var(--red); }
.entry-content .bharti-gallery { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin: 28px 0; }
.bharti-gallery a { display: block; overflow: hidden; background: var(--white); }
.bharti-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 400ms ease; }
.bharti-gallery a:hover img { transform: scale(1.04); }
.gallery-note { margin: 24px 0; padding: 22px; border-left: 4px solid var(--gold); background: var(--white); }
.gallery-note h2 { margin: 0 0 8px; font-family: var(--serif); font-size: 26px; font-weight: 500; }
.gallery-note p { margin: 0; }
.bharti-contact-form { max-width: 640px; margin-top: 24px; }
.bharti-contact-form p { margin: 0 0 18px; }
.bharti-contact-form label { display: block; margin-bottom: 5px; font-weight: 700; }
.bharti-contact-form input, .bharti-contact-form textarea { width: 100%; padding: 11px 12px; border: 1px solid #aeb8b1; border-radius: 2px; color: var(--ink); background: var(--white); font: inherit; }
.bharti-contact-form input:focus, .bharti-contact-form textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.contact-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-notice { max-width: 640px; margin: 18px 0; padding: 12px 16px; border-left: 4px solid var(--teal); background: #e7f1ed; }
.catalog-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.not-found { padding: 80px 24px; text-align: center; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 860px) {
	.header-inner { width: min(100% - 32px, 1240px); min-height: 74px; }
	.menu-toggle { display: block; }
	.main-navigation { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: 8px 20px 20px; border-bottom: 1px solid var(--line); background: var(--paper); }
	.main-navigation.is-open { display: block; }
	.main-navigation ul { display: grid; gap: 0; }
	.main-navigation li a { display: block; padding: 11px 4px; border-bottom: 1px solid var(--line); }
	.hero, .hero-slide img, .hero-copy { min-height: 500px; }
	.product-grid, .catalog-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 580px) {
	.header-inner { width: calc(100% - 28px); }
	.brand-name { font-size: 18px; }
	.brand-tagline { font-size: 8px; letter-spacing: .4px; }
	.hero, .hero-slide img, .hero-copy { min-height: 510px; }
	.hero-slide img { object-position: 55% center; }
	.hero-slide::after { background: linear-gradient(90deg, rgba(14,37,31,.78), rgba(14,37,31,.28)); }
	.hero-copy { width: calc(100% - 36px); padding: 45px 0 92px; }
	.hero h1 { font-size: 43px; }
	.hero-copy > p:not(.eyebrow) { max-width: 360px; font-size: 15px; }
	.section { padding: 54px 18px; }
	.section-heading { display: block; }
	.section-heading p { margin-top: 12px; }
	.product-grid, .catalog-grid { gap: 10px; }
	.product-meta { padding: 11px; }
	.product-meta h3 { font-size: 17px; }
	.about-band { grid-template-columns: 1fr; }
	.about-image { max-height: 250px; }
	.contact-inner, .footer-inner { align-items: flex-start; flex-direction: column; }
	.entry-content .bharti-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 380px) {
	.brand { gap: 8px; }
	.brand-mark { width: 32px; height: 32px; }
	.brand-name { font-size: 16px; }
	.brand-tagline { display: none; }
	.hero h1 { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}