/* LD Embroidery — inner pages (Order, Services, Portfolio, Contact) */

.btn--sm { min-height: 38px; padding: 7px 16px; font-size: 14px; }
.btn--outline-red { background: var(--white); color: var(--blue); border-color: var(--blue); }
.btn--outline-red:hover { background: var(--blue-tint); color: var(--blue-dark); border-color: var(--blue-dark); }

/* ---------- Page heading ---------- */
.page-hero { padding: 48px 0 8px; text-align: center; }
.page-hero__badge {
	display: inline-block; margin: 0 0 16px; padding: 6px 16px; border-radius: 999px;
	background: var(--blue-tint); color: var(--blue); font-size: 14px; font-weight: 700;
}
.page-hero__title {
	margin: 0 auto 12px; max-width: 900px;
	font-size: clamp(32px, 4vw, 52px); font-weight: 800; letter-spacing: -0.03em; color: var(--navy);
}
.page-hero__intro { max-width: 760px; margin: 0 auto; font-size: clamp(16px, 1.35vw, 19px); color: var(--muted); }

/* ---------- Forms (shared) ---------- */
.field { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { display: block; margin-bottom: 6px; padding: 0; font-size: 15px; font-weight: 700; color: var(--navy); }
.req { color: var(--accent); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
	display: block; width: 100%; min-height: 48px; padding: 11px 14px;
	border: 1.5px solid #d4d7de; border-radius: 10px; background: var(--white);
	font: 400 16px/1.4 var(--font); color: var(--navy);
	transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select {
	appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
	background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23101729' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px;
}
.field input::placeholder, .field textarea::placeholder { color: #8a90a0; }
.field input:focus, .field select:focus, .field textarea:focus {
	outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11, 115, 189, 0.12);
}

.radio-group {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px;
	padding: 6px; border: 1.5px solid #d4d7de; border-radius: 10px;
}
.radio { position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border-radius: 8px; cursor: pointer; font-size: 16px; }
.radio input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border: 2px solid #b9bec9; border-radius: 50%; background: var(--white); cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s; }
.radio input:checked { border-color: var(--blue); background: radial-gradient(var(--blue) 0 45%, var(--white) 50%); }
.radio input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.radio:has(input:checked) { background: var(--blue-tint); }

.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-notice {
	display: flex; align-items: flex-start; gap: 12px;
	margin: 0 0 28px; padding: 16px 18px; border-radius: 12px; font-weight: 600;
}
.form-notice p { margin: 0; }
.form-notice .icon { width: 24px; height: 24px; flex: none; }
.form-notice--success { background: var(--success-tint); color: var(--success); border: 1px solid #bfe3cb; }
.form-notice--error { background: var(--accent-tint); color: var(--accent-dark); border: 1px solid #f0c3c8; }
.form-legal { margin: 12px 0 0; text-align: center; font-size: 14px; color: var(--muted); }

/* ---------- Order page ---------- */
.order-page { padding-top: 48px; }
.order-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 72px; align-items: start; }
.order-form__title { margin: 0 0 22px; font-size: clamp(30px, 3.4vw, 46px); font-weight: 800; letter-spacing: -0.025em; color: var(--navy); }

.dropzone {
	position: relative;
	display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
	min-height: 520px; padding: 40px 28px;
	border: 2.5px dashed #c3c7cf; border-radius: 22px; background: var(--white);
	box-shadow: var(--shadow-md);
	transition: border-color 0.2s, background-color 0.2s, transform 0.2s var(--ease);
}
.dropzone.is-dragover { border-color: var(--blue); background: var(--blue-soft); transform: scale(1.01); }
.dropzone.has-file { border-color: var(--success); border-style: solid; }
.dropzone__icon { color: var(--blue); margin-bottom: 18px; }
.dropzone__icon .icon { width: 120px; height: 120px; stroke-width: 1.5; }
.dropzone__title { margin: 0 0 8px; font-size: clamp(20px, 2vw, 27px); font-weight: 700; color: #3c4252; }
.dropzone__hint { margin: 0 0 32px; font-size: 16px; color: var(--muted); }
.dropzone__input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dropzone label.btn { min-height: 56px; padding: 12px 34px; font-size: 19px; font-weight: 700; border-radius: 10px; cursor: pointer; }
.dropzone__input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 3px; }
.dropzone__status { min-height: 1.6em; margin: 18px 0 0; font-size: 15px; font-weight: 600; color: var(--success); word-break: break-word; }
.dropzone__status.is-error { color: var(--accent); }

.order-form__submit { min-height: 64px; margin-top: 8px; font-size: 24px; font-weight: 700; border-radius: 12px; }

@media (max-width: 900px) {
	.order-form { grid-template-columns: 1fr; gap: 36px; }
	.dropzone { min-height: 340px; }
	.dropzone__icon .icon { width: 88px; height: 88px; }
}
@media (max-width: 480px) {
	.order-page { padding-top: 28px; }
	.dropzone { min-height: 300px; padding: 28px 18px; border-radius: 16px; }
	.order-form__submit { font-size: 20px; }
}

/* ---------- Services page ---------- */
.services-page { padding: 32px 0 80px; }
.svc-group { margin-top: 40px; }
.svc-group__head { margin-bottom: 22px; }
.svc-group__title {
	position: relative; margin: 0 0 6px; padding-left: 58px;
	font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; letter-spacing: -0.02em; color: var(--navy);
}
.svc-group__title::before {
	content: ""; position: absolute; left: 0; top: 50%; width: 42px; height: 12px;
	border-radius: 999px; background: var(--blue); transform: translateY(-50%);
}
.svc-group__text { margin: 0; padding-left: 58px; font-size: 17px; color: var(--muted); }

.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 22px; padding-top: 28px; }
.svc-group--software .svc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.svc-card {
	position: relative;
	display: flex; flex-direction: column; align-items: center; text-align: center;
	padding: 44px 22px 20px;
	background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.svc-card__icon {
	position: absolute; top: -30px; left: 50%; transform: translateX(-50%);
	display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
	background: var(--blue); color: var(--white);
	box-shadow: 0 8px 18px rgba(11, 115, 189, 0.3); border: 4px solid var(--white);
}
.svc-card__icon .icon { width: 30px; height: 30px; stroke-width: 1.8; }
.svc-card__title { margin: 0 0 8px; font-size: 21px; font-weight: 800; color: var(--navy); }
.svc-card__text { margin: 0 0 18px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.svc-card__foot {
	display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
	width: 100%; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border);
}
.svc-card__price { font-size: 16px; font-weight: 800; color: var(--blue); }
.svc-card__foot .btn { margin-left: auto; }
.svc-group--software .svc-card__foot { flex-direction: column; justify-content: center; gap: 10px; }
.svc-group--software .svc-card__foot .btn { margin-left: 0; }

.cta-band {
	display: flex; align-items: center; justify-content: space-between; gap: 16px 32px;
	margin-top: 56px; padding: 20px 20px 20px 32px;
	background: var(--blue-tint); border: 1px solid #bcd7ee; border-radius: var(--radius);
}
.cta-band p { margin: 0; font-size: 18px; font-weight: 600; color: var(--navy); }
.cta-band .btn { flex: none; min-height: 50px; padding: 12px 24px; border-radius: 10px; font-size: 16px; }
.page-extra { margin-top: 56px; }

@media (max-width: 1099px) {
	.svc-group--software .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cta-band { flex-direction: column; text-align: center; padding: 24px 20px; }
}
@media (max-width: 600px) {
	.svc-grid, .svc-group--software .svc-grid { grid-template-columns: 1fr; gap: 46px; }
	.svc-group__title { padding-left: 46px; }
	.svc-group__title::before { width: 32px; height: 10px; }
	.svc-group__text { padding-left: 0; }
	.cta-band .btn { width: 100%; }
}

/* ---------- Portfolio page ---------- */
.portfolio-page {
	padding: 24px 0 80px;
	background: linear-gradient(180deg, var(--white) 0%, var(--blue-soft) 18%, var(--blue-soft) 100%);
}
.pf-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 8px 0 36px; }
.pf-filter {
	min-height: 46px; padding: 10px 22px; border: 1.5px solid #9cc4e6; border-radius: 10px;
	background: var(--white); color: var(--blue); font: 600 16px/1.2 var(--font); cursor: pointer;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.pf-filter:hover { border-color: var(--blue); transform: translateY(-1px); }
.pf-filter[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--white); box-shadow: 0 6px 16px rgba(11, 115, 189, 0.25); }

.pf-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.pf-item[hidden] { display: none; }
.pf-item.is-entering { animation: ldemb-rise 0.4s var(--ease) both; }

.pf-card {
	height: 100%; padding: 12px 12px 16px;
	background: var(--white); border: 1.5px solid #bcd7ee; border-radius: 12px; text-align: center;
	box-shadow: var(--shadow-sm);
	transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.pf-card:hover, .pf-card:focus-within { transform: translateY(-4px); border-color: var(--blue); box-shadow: 0 14px 30px rgba(11, 115, 189, 0.14); }
.pf-card__media { position: relative; margin-bottom: 14px; border-radius: 8px; overflow: hidden; background: var(--gray-bg); aspect-ratio: 5 / 4; }
.pf-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.pf-card:hover .pf-card__media img { transform: scale(1.05); }
.pf-card__noimg { display: grid; place-items: center; height: 100%; color: #c9ccd3; }
.pf-card__noimg .icon { width: 56px; height: 56px; }
.pf-card__badge {
	position: absolute; top: 8px; right: 8px; padding: 3px 9px; border-radius: 6px;
	background: #bcd7ee; color: var(--blue-dark); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.pf-card__quick {
	position: absolute; left: 50%; bottom: 10px; transform: translate(-50%, 12px);
	display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: 0; border-radius: 8px;
	background: var(--blue); color: var(--white); font: 600 14px/1 var(--font); white-space: nowrap; cursor: pointer;
	opacity: 0; transition: opacity 0.25s, transform 0.25s var(--ease);
}
.pf-card__quick .icon { width: 16px; height: 16px; }
.pf-card:hover .pf-card__quick, .pf-card__quick:focus-visible { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { .pf-card__quick { opacity: 1; transform: translate(-50%, 0); } }

.pf-card__title { margin: 0 0 4px; font-size: 17px; font-weight: 700; line-height: 1.3; }
.pf-card__title a { color: var(--navy); text-decoration: none; }
.pf-card__title a:hover { color: var(--blue); }
.pf-card__sub { margin: 0 0 6px; font-size: 13.5px; color: var(--muted); }
.pf-card__price { margin: 0; font-size: 17px; font-weight: 800; color: var(--blue); }

.pf-count { margin: 36px 0 0; padding: 14px; border-radius: 10px; background: #d3e6f6; text-align: center; font-weight: 600; color: var(--navy); }

.quick-view {
	width: min(860px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 18px; overflow: hidden;
	box-shadow: 0 30px 80px rgba(16, 23, 41, 0.35);
}
.quick-view[open] { display: grid; grid-template-columns: 1.2fr 1fr; animation: ldemb-drop 0.25s var(--ease); }
.quick-view::backdrop { background: rgba(16, 23, 41, 0.6); backdrop-filter: blur(3px); }
.quick-view__img { width: 100%; height: 100%; max-height: 80vh; object-fit: cover; background: var(--gray-bg); }
.quick-view__body { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 36px 32px; }
.quick-view__title { margin: 0; font-size: 26px; font-weight: 800; color: var(--navy); }
.quick-view__sub { margin: 0; color: var(--muted); }
.quick-view__price { margin: 6px 0 18px; font-size: 24px; font-weight: 800; color: var(--blue); }
.quick-view__sub:empty, .quick-view__price:empty { display: none; }
.quick-view__close {
	position: absolute; top: 12px; right: 12px; z-index: 1; display: grid; place-items: center;
	width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--white); color: var(--navy); cursor: pointer;
	box-shadow: var(--shadow-sm);
}
.quick-view__close .icon { width: 22px; height: 22px; }

.empty-state { max-width: 520px; margin: 24px auto; padding: 48px 24px; text-align: center; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.empty-state > .icon { width: 64px; height: 64px; color: var(--blue); }
.empty-state p { color: var(--muted); font-size: 17px; }

@media (max-width: 1200px) { .pf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1023px) { .pf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (max-width: 720px) {
	.pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.pf-filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 4px 16px 8px; scrollbar-width: none; }
	.pf-filter { flex: none; }
	.quick-view[open] { grid-template-columns: 1fr; }
	.quick-view__img { max-height: 50vh; }
	.quick-view__body { padding: 24px; }
}
@media (max-width: 400px) {
	.pf-card { padding: 8px 8px 12px; }
	.pf-card__title { font-size: 15px; }
	.pf-card__sub { font-size: 12.5px; }
}

/* ---------- Contact page ---------- */
.contact-page { padding: 40px 0 80px; }
.contact-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0 0 32px; padding: 0; list-style: none; }
.contact-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.contact-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; margin-left: auto; margin-right: auto; }
.contact-cards--1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
.contact-card {
	display: flex; flex-direction: column; align-items: center; text-align: center;
	padding: 30px 20px 26px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
	box-shadow: var(--shadow-md); transition: transform 0.25s var(--ease);
}
.contact-card:hover { transform: translateY(-4px); }
.contact-card__icon { display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 18px; border-radius: 50%; background: var(--blue); color: var(--white); }
.contact-card__icon .icon { width: 40px; height: 40px; stroke-width: 1.7; }
.contact-card__title { margin: 0 0 8px; font-size: 24px; font-weight: 800; color: var(--navy); }
.contact-card__value { font-size: 17px; font-weight: 700; color: var(--navy); text-decoration: none; word-break: break-word; }
.contact-card__value:hover { color: var(--blue); }
.contact-card__note { margin: 6px 0 0; font-size: 15px; color: var(--muted); }

.contact-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: stretch; }
.contact-main--single { grid-template-columns: minmax(0, 680px); justify-content: center; }
.contact-form-card { padding: 32px 36px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md); }
.contact-form-card__title { margin: 0 0 18px; font-size: 28px; font-weight: 800; color: var(--navy); }
.contact-form-card .field input, .contact-form-card .field textarea { background: #fafafa; }

.contact-aside { padding: 34px 40px; background: var(--blue-soft); border: 1.5px solid #bcd7ee; border-radius: var(--radius); }
.contact-aside__title { margin: 0 0 16px; font-size: 26px; font-weight: 800; color: var(--navy); }
.hours { margin: 0 0 8px; padding: 0 0 22px; list-style: none; border-bottom: 1px solid #bcd7ee; font-size: 18px; line-height: 1.9; }
.hours + .contact-aside__title { margin-top: 22px; }
.hours strong { color: var(--navy); }
.social { display: flex; gap: 16px; margin: 0; padding: 0; list-style: none; }
.social a {
	display: grid; place-items: center; width: 54px; height: 54px; border: 2px solid var(--blue); border-radius: 50%;
	color: var(--blue); transition: background-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.social a:hover { background: var(--blue); color: var(--white); transform: translateY(-2px); }
.social .icon { width: 26px; height: 26px; }

@media (max-width: 1023px) {
	.contact-cards, .contact-cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.contact-main { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.contact-cards, .contact-cards--3, .contact-cards--2 { grid-template-columns: 1fr; gap: 16px; }
	.contact-card { padding: 24px 16px; }
	.contact-card__icon { width: 68px; height: 68px; }
	.contact-card__icon .icon { width: 32px; height: 32px; }
	.contact-form-card, .contact-aside { padding: 24px 20px; }
}
