/*
 * Oditiyo — base: fonts, design tokens, typography, buttons and form controls.
 * Shared by the store pages and the ad landing pages.
 */

@font-face {
	font-family: "Noto Sans Bengali";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/noto-sans-bengali.woff2") format("woff2");
	unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1, U+11DF0-11DF1;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/inter-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/inter-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	--odt-bg: #fbf8f3;
	--odt-surface: #ffffff;
	--odt-surface-2: #f5efe6;
	--odt-surface-3: #efe6da;
	--odt-border: #e7ddd0;
	--odt-border-strong: #d4c4b1;
	--odt-text: #231c16;
	--odt-muted: #6b5f55;
	--odt-accent: #b5532a;
	--odt-accent-hover: #9a4320;
	--odt-accent-ink: #8f3f1d;
	--odt-accent-soft: #f6e7dc;
	--odt-gold: #c9963b;
	--odt-success: #2f7d4f;
	--odt-success-soft: #e4f2e8;
	--odt-danger: #b3261e;
	--odt-danger-soft: #fdecea;
	--odt-radius-sm: 8px;
	--odt-radius: 12px;
	--odt-radius-lg: 18px;
	--odt-radius-xl: 26px;
	--odt-shadow-sm: 0 1px 2px rgba(35, 28, 22, 0.06);
	--odt-shadow: 0 12px 28px -18px rgba(35, 28, 22, 0.35);
	--odt-font: "Inter", "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--odt-container: 1200px;
	--odt-gutter: 16px;
	--odt-header-h: 64px;
}
@media (min-width: 768px) {
	:root { --odt-gutter: 24px; }
}
@media (min-width: 1100px) {
	:root { --odt-gutter: 32px; }
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: 80px;
}

body {
	margin: 0;
	background: var(--odt-bg);
	color: var(--odt-text);
	font-family: var(--odt-font);
	font-size: 1rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
body.lang-bn { line-height: 1.75; }

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
svg { flex-shrink: 0; }

h1, h2, h3, h4 {
	margin: 0 0 0.6em;
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: -0.012em;
	color: var(--odt-text);
}
.lang-bn h1, .lang-bn h2, .lang-bn h3, .lang-bn h4 { line-height: 1.4; letter-spacing: 0; }
h1 { font-size: clamp(1.7rem, 4.6vw, 2.5rem); }
h2 { font-size: clamp(1.32rem, 3.2vw, 1.8rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

a {
	color: var(--odt-accent-ink);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}
a:hover { color: var(--odt-accent-hover); }

:focus-visible {
	outline: 2px solid var(--odt-accent);
	outline-offset: 2px;
	border-radius: 4px;
}

::selection { background: var(--odt-accent-soft); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.skip-link:focus {
	position: fixed !important;
	top: 8px; left: 8px; z-index: 1000;
	width: auto; height: auto; clip: auto;
	padding: 10px 16px; margin: 0;
	background: var(--odt-surface); color: var(--odt-text);
	border-radius: var(--odt-radius-sm); box-shadow: var(--odt-shadow);
}

/* Buttons --------------------------------------------------------------- */
.button,
button.button,
input[type="submit"],
.wp-element-button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 10px 20px;
	border: 1px solid transparent;
	border-radius: var(--odt-radius);
	background: var(--odt-text);
	color: #fff;
	font: inherit;
	font-weight: 600;
	font-size: 0.98rem;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
	-webkit-tap-highlight-color: transparent;
}
.button:hover,
input[type="submit"]:hover { background: #3a2f26; color: #fff; }
.button:active { transform: translateY(1px); }

.button--primary,
.button.alt,
.wp-element-button,
.wp-block-button__link {
	background: var(--odt-accent);
	color: #fff;
}
.button--primary:hover,
.button.alt:hover,
.wp-element-button:hover,
.wp-block-button__link:hover { background: var(--odt-accent-hover); color: #fff; }

.button--ghost {
	background: transparent;
	color: var(--odt-text);
	border-color: var(--odt-border-strong);
}
.button--ghost:hover { background: var(--odt-surface); color: var(--odt-text); border-color: var(--odt-text); }

.button--lg { min-height: 54px; padding: 14px 26px; font-size: 1.05rem; border-radius: 14px; }

.button:disabled,
.button.disabled,
.button[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

/* Form controls --------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="password"],
input[type="url"],
select,
textarea,
.input-text {
	width: 100%;
	min-height: 50px;
	padding: 12px 14px;
	border: 1px solid var(--odt-border-strong);
	border-radius: var(--odt-radius);
	background: var(--odt-surface);
	color: var(--odt-text);
	font: inherit;
	font-size: 1rem; /* 16px: no zoom on iOS */
	line-height: 1.4;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}
textarea { min-height: 84px; resize: vertical; }
select {
	padding-right: 42px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b5f55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 18px;
	cursor: pointer;
}
input:focus, select:focus, textarea:focus, .input-text:focus {
	outline: none;
	border-color: var(--odt-accent);
	box-shadow: 0 0 0 3px rgba(181, 83, 42, 0.16);
}
::placeholder { color: #9a8d82; opacity: 1; }

label { display: inline-block; margin-bottom: 6px; font-weight: 600; font-size: 0.95rem; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--odt-accent); }

.container {
	width: 100%;
	max-width: calc(var(--odt-container) + var(--odt-gutter) * 2);
	margin: 0 auto;
	padding-left: var(--odt-gutter);
	padding-right: var(--odt-gutter);
}
.container--narrow { max-width: calc(780px + var(--odt-gutter) * 2); }

/* Shared review cards (homepage, landing pages) */
.odt-stars { display: inline-flex; gap: 2px; }
.odt-stars svg { fill: #ddd2c6; }
.odt-stars svg.is-on { fill: var(--odt-gold); }

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