/* ==========================================================================
   Jannat Tailor & Fabric — theme styles
   ========================================================================== */

:root {
	--jtf-ink: #1d1b18;
	--jtf-ink-soft: #55504a;
	--jtf-cream: #faf7f1;
	--jtf-paper: #ffffff;
	--jtf-line: #e5ded2;
	--jtf-gold: #b08341;
	--jtf-gold-dark: #8d6631;
	--jtf-deep: #1f3d35;
	--jtf-deep-soft: #2c5449;
	--jtf-radius: 14px;
	--jtf-shadow: 0 12px 30px rgba(31, 61, 53, 0.08);
	--jtf-max: 1160px;
	--jtf-font-head: Georgia, "Times New Roman", serif;
	--jtf-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
	margin: 0;
	background: var(--jtf-cream);
	color: var(--jtf-ink);
	font-family: var(--jtf-font-body);
	font-size: 17px;
	line-height: 1.7;
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--jtf-gold-dark); }
a:hover, a:focus { color: var(--jtf-deep); }

h1, h2, h3, h4 {
	font-family: var(--jtf-font-head);
	line-height: 1.2;
	color: var(--jtf-ink);
	margin: 0 0 .6em;
	letter-spacing: -0.01em;
}

:focus-visible {
	outline: 3px solid var(--jtf-gold);
	outline-offset: 2px;
}

.container {
	width: 100%;
	max-width: var(--jtf-max);
	margin: 0 auto;
	padding: 0 20px;
}

.narrow { max-width: 820px; }
.center { text-align: center; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed;
	top: 12px; left: 12px;
	width: auto; height: auto;
	clip: auto; clip-path: none;
	z-index: 999;
	background: var(--jtf-deep);
	color: #fff;
	padding: 10px 16px;
	border-radius: 8px;
}

/* Buttons ---------------------------------------------------------------- */
.btn {
	display: inline-block;
	padding: 12px 24px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover, .btn:focus { transform: translateY(-1px); }

.btn--primary { background: var(--jtf-gold); border-color: var(--jtf-gold); color: #fff; }
.btn--primary:hover, .btn--primary:focus { background: var(--jtf-gold-dark); border-color: var(--jtf-gold-dark); color: #fff; }

.btn--outline { background: transparent; border-color: var(--jtf-deep); color: var(--jtf-deep); }
.btn--outline:hover, .btn--outline:focus { background: var(--jtf-deep); color: #fff; }

.btn--ghost { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover, .btn--ghost:focus { background: #fff; color: var(--jtf-deep); }

/* Topbar & header -------------------------------------------------------- */
.topbar {
	background: var(--jtf-deep);
	color: rgba(255,255,255,.85);
	font-size: 13.5px;
}
.topbar__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 24px;
	justify-content: space-between;
	padding-top: 8px;
	padding-bottom: 8px;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

.site-header {
	background: var(--jtf-paper);
	border-bottom: 1px solid var(--jtf-line);
	position: sticky;
	top: 0;
	z-index: 50;
}
.site-header__inner {
	display: flex;
	align-items: center;
	gap: 20px;
	padding-top: 14px;
	padding-bottom: 14px;
}

.site-branding { margin-right: auto; }
.site-title {
	font-family: var(--jtf-font-head);
	font-size: 22px;
	margin: 0;
	line-height: 1.2;
}
.site-title a { color: var(--jtf-ink); text-decoration: none; }
.site-description { margin: 2px 0 0; font-size: 13px; color: var(--jtf-ink-soft); }
.custom-logo { max-height: 60px; width: auto; }

.main-navigation ul {
	list-style: none;
	display: flex;
	gap: 6px;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}
.main-navigation a {
	display: block;
	padding: 9px 14px;
	color: var(--jtf-ink);
	text-decoration: none;
	font-size: 15px;
	font-weight: 500;
	border-radius: 8px;
}
.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
	background: var(--jtf-cream);
	color: var(--jtf-gold-dark);
}
.main-navigation ul ul {
	display: none;
	position: absolute;
	background: #fff;
	border: 1px solid var(--jtf-line);
	border-radius: 10px;
	padding: 6px;
	min-width: 200px;
	flex-direction: column;
	box-shadow: var(--jtf-shadow);
	z-index: 60;
}
.main-navigation li { position: relative; }
.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul { display: flex; }

.menu-toggle {
	display: none;
	background: transparent;
	border: 1px solid var(--jtf-line);
	border-radius: 10px;
	padding: 10px 12px;
	cursor: pointer;
}
.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--jtf-ink);
	position: relative;
}
.menu-toggle__bars::before,
.menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -7px; }
.menu-toggle__bars::after { top: 7px; }

/* Hero -------------------------------------------------------------------- */
.hero {
	background:
		linear-gradient(135deg, rgba(31,61,53,.96), rgba(44,84,73,.92)),
		repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 6px, transparent 6px 12px);
	color: #fff;
	padding: 84px 0;
}
.hero__inner {
	display: grid;
	grid-template-columns: 1.3fr .7fr;
	gap: 48px;
	align-items: center;
}
.hero__eyebrow {
	text-transform: uppercase;
	letter-spacing: .18em;
	font-size: 12.5px;
	color: #e6cfa5;
	margin: 0 0 14px;
}
.hero__title {
	font-size: clamp(2.2rem, 5vw, 3.6rem);
	color: #fff;
	margin-bottom: .3em;
}
.hero__text { font-size: 1.15rem; color: rgba(255,255,255,.9); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.hero__panel {
	background: rgba(255,255,255,.08);
	border: 1px solid rgba(255,255,255,.22);
	border-radius: var(--jtf-radius);
	padding: 24px;
	text-align: center;
}
.hero__swatches { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.swatch { display: block; height: 76px; border-radius: 10px; }
.swatch--1 { background: linear-gradient(135deg, #b08341, #e0bd82); }
.swatch--2 { background: linear-gradient(135deg, #2c5449, #4d8474); }
.swatch--3 { background: linear-gradient(135deg, #7a2e3a, #b3596a); }
.swatch--4 { background: linear-gradient(135deg, #24303f, #4a6484); }
.hero__panel-label {
	margin: 16px 0 0;
	font-size: 13px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: rgba(255,255,255,.8);
}

/* Page hero --------------------------------------------------------------- */
.page-hero {
	background: var(--jtf-deep);
	color: #fff;
	padding: 54px 0;
}
.page-hero__title { color: #fff; margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-hero .entry-meta,
.page-hero__desc { color: rgba(255,255,255,.85); margin: 10px 0 0; }
.page-hero__search { margin-top: 18px; max-width: 460px; }

/* Sections ---------------------------------------------------------------- */
.section { padding: 72px 0; }
.section--flush { padding: 40px 0 0; }
.section--services { background: var(--jtf-cream); }
.section--intro { background: var(--jtf-paper); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section__title { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.section__sub { color: var(--jtf-ink-soft); margin: 0; }

/* Cards ------------------------------------------------------------------- */
.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
}
.card {
	background: var(--jtf-paper);
	border: 1px solid var(--jtf-line);
	border-radius: var(--jtf-radius);
	padding: 28px;
	box-shadow: var(--jtf-shadow);
	transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--jtf-gold); }
.card__icon {
	display: block;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	margin-bottom: 16px;
	background: linear-gradient(135deg, var(--jtf-gold), #e0bd82);
}
.card__icon--needle { background: linear-gradient(135deg, var(--jtf-deep), #4d8474); }
.card__icon--thread { background: linear-gradient(135deg, #7a2e3a, #b3596a); }
.card__icon--hanger { background: linear-gradient(135deg, #24303f, #4a6484); }
.card__icon--roll { background: linear-gradient(135deg, #8d6631, #c9a267); }
.card__icon--tape { background: linear-gradient(135deg, #35604f, #7fae9b); }
.card__title { font-size: 1.2rem; margin-bottom: .35em; }
.card__text { margin: 0; color: var(--jtf-ink-soft); font-size: 15.5px; }

/* Fabric ------------------------------------------------------------------ */
.section--fabric { background: var(--jtf-paper); }
.fabric__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}
.fabric__text p { color: var(--jtf-ink-soft); }
.fabric__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
.fabric__grid--wide { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-top: 20px; }
.fabric__tile {
	border-radius: var(--jtf-radius);
	min-height: 140px;
	display: flex;
	align-items: flex-end;
	padding: 16px;
	color: #fff;
	font-weight: 600;
	letter-spacing: .04em;
}
.fabric__tile--a { background: linear-gradient(140deg, #b08341, #e3c48d); }
.fabric__tile--b { background: linear-gradient(140deg, #7a2e3a, #bf7181); }
.fabric__tile--c { background: linear-gradient(140deg, #2c5449, #6fa294); }
.fabric__tile--d { background: linear-gradient(140deg, #24303f, #5c789b); }

/* Facts ------------------------------------------------------------------- */
.facts {
	list-style: none;
	margin: 32px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 18px;
}
.facts li {
	background: var(--jtf-cream);
	border: 1px solid var(--jtf-line);
	border-radius: var(--jtf-radius);
	padding: 18px;
}
.facts strong { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--jtf-ink-soft); }
.facts span { font-size: 17px; }
.facts--list { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* CTA --------------------------------------------------------------------- */
.cta {
	background: linear-gradient(135deg, var(--jtf-gold), var(--jtf-gold-dark));
	color: #fff;
	padding: 56px 0;
}
.cta__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	align-items: center;
	justify-content: space-between;
}
.cta__title { color: #fff; margin-bottom: .3em; }
.cta__text, .cta__meta { margin: 0; color: rgba(255,255,255,.92); }
.cta__meta { font-size: 14px; margin-top: 8px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cta .btn--primary { background: #fff; border-color: #fff; color: var(--jtf-gold-dark); }
.cta .btn--outline { border-color: #fff; color: #fff; }
.cta .btn--outline:hover, .cta .btn--outline:focus { background: #fff; color: var(--jtf-gold-dark); }

/* Layout / blog ----------------------------------------------------------- */
.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 48px;
	padding-top: 56px;
	padding-bottom: 64px;
	align-items: start;
}
.layout--full, body.no-sidebar .layout { grid-template-columns: minmax(0, 1fr); }

.entry, .post-card, .no-results, .comments-area {
	background: var(--jtf-paper);
	border: 1px solid var(--jtf-line);
	border-radius: var(--jtf-radius);
	padding: 32px;
	box-shadow: var(--jtf-shadow);
}
.entry-content > * { max-width: 100%; }
.entry-thumb { margin: -32px -32px 24px; overflow: hidden; border-radius: var(--jtf-radius) var(--jtf-radius) 0 0; }
.entry-meta { font-size: 14px; color: var(--jtf-ink-soft); }

.post-list { display: grid; gap: 24px; }
.post-card { padding: 0; overflow: hidden; }
.post-card__thumb { display: block; }
.post-card__body { padding: 28px; }
.post-card__title { font-size: 1.4rem; margin-bottom: .2em; }
.post-card__title a { color: var(--jtf-ink); text-decoration: none; }
.post-card__title a:hover { color: var(--jtf-gold-dark); }
.post-card__excerpt { color: var(--jtf-ink-soft); }
.link-more { font-weight: 600; text-decoration: none; }
.link-more:hover { text-decoration: underline; }

.post-nav {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin-top: 28px;
	font-weight: 600;
}
.pagination { margin-top: 32px; }
.pagination .page-numbers {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid var(--jtf-line);
	border-radius: 8px;
	margin-right: 6px;
	background: #fff;
	text-decoration: none;
}
.pagination .page-numbers.current { background: var(--jtf-deep); color: #fff; border-color: var(--jtf-deep); }

/* Sidebar & widgets ------------------------------------------------------- */
.widget-area { display: grid; gap: 24px; }
.widget {
	background: var(--jtf-paper);
	border: 1px solid var(--jtf-line);
	border-radius: var(--jtf-radius);
	padding: 24px;
}
.widget-title { font-size: 1.1rem; margin-bottom: .6em; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 6px 0; border-bottom: 1px solid var(--jtf-line); }
.widget li:last-child { border-bottom: 0; }

/* Forms ------------------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="password"],
textarea,
select {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--jtf-line);
	border-radius: 10px;
	background: #fff;
	font: inherit;
	color: inherit;
}
textarea { resize: vertical; }
label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 6px; }

.search-form { display: flex; gap: 10px; }
.search-form .search-field { flex: 1 1 auto; }
.search-submit { white-space: nowrap; }

.contact-grid {
	display: grid;
	grid-template-columns: .8fr 1.2fr;
	gap: 32px;
	align-items: start;
	margin-top: 20px;
}
.contact-info,
.contact-form-wrap {
	background: var(--jtf-paper);
	border: 1px solid var(--jtf-line);
	border-radius: var(--jtf-radius);
	padding: 28px;
	box-shadow: var(--jtf-shadow);
}
.contact-info address { font-style: normal; line-height: 1.9; }
.contact-form .field { margin: 0 0 18px; }
.field--hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.form-notice {
	border-radius: 10px;
	padding: 12px 16px;
	margin-bottom: 18px;
	font-size: 15px;
}
.form-notice--success { background: #e7f3ee; border: 1px solid #2c5449; color: #1f3d35; }
.form-notice--error { background: #fdeceb; border: 1px solid #a33b34; color: #7c2b26; }

/* 404 --------------------------------------------------------------------- */
.error-404 { padding: 90px 0; }
.error-404__code {
	font-family: var(--jtf-font-head);
	font-size: clamp(4rem, 14vw, 8rem);
	line-height: 1;
	margin: 0;
	color: var(--jtf-gold);
}
.error-404__search { max-width: 460px; margin: 24px auto; }
.error-404 .hero__actions { justify-content: center; }

/* Footer ------------------------------------------------------------------ */
.site-footer { background: var(--jtf-deep); color: rgba(255,255,255,.82); margin-top: auto; }
.footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 36px;
	padding-top: 60px;
	padding-bottom: 44px;
}
.footer-title { color: #fff; font-size: 1.15rem; }
.site-footer a { color: #e6cfa5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-address { font-style: normal; line-height: 1.9; }
.footer-meta { font-size: 14px; color: rgba(255,255,255,.65); }
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu li { padding: 5px 0; }
.site-footer .widget { background: transparent; border: 0; padding: 0; }
.site-footer .widget-title { color: #fff; }

.site-info { border-top: 1px solid rgba(255,255,255,.14); font-size: 14px; }
.site-info__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	justify-content: space-between;
	padding-top: 18px;
	padding-bottom: 18px;
}
.site-info p { margin: 0; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 900px) {
	.menu-toggle { display: block; order: 3; }
	.header-cta { display: none; }
	.main-navigation {
		display: none;
		order: 4;
		width: 100%;
	}
	.main-navigation.is-open { display: block; }
	.main-navigation ul { flex-direction: column; gap: 0; padding-bottom: 12px; }
	.main-navigation ul ul { position: static; display: flex; box-shadow: none; border: 0; padding-left: 12px; }
	.site-header__inner { flex-wrap: wrap; }

	.hero { padding: 60px 0; }
	.hero__inner,
	.fabric__inner,
	.contact-grid,
	.layout { grid-template-columns: minmax(0, 1fr); }
	.layout { gap: 32px; }
	.section { padding: 56px 0; }
}

@media (max-width: 560px) {
	body { font-size: 16px; }
	.entry, .post-card__body, .contact-info, .contact-form-wrap { padding: 22px; }
	.entry-thumb { margin: -22px -22px 20px; }
	.topbar__inner { flex-direction: column; }
	.search-form { flex-direction: column; }
	.hero__actions .btn, .cta__actions .btn { width: 100%; text-align: center; }
}

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