/*
 * pages.css
 *
 * Static pages: the two-card row, the story block, framed
 * photos, the ISO/plan pair, and the contact page.
 * Part of the Unitex child theme. Enqueued from inc/enqueue.php.
 */

/* ==========================================================
   1. TWO CARDS UNDER THE PAGE HEAD / STORY / PHOTO
   ========================================================== */
/* --- two cards right under the page head --- */
.ux-duo {
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin-top: 0;
	background: #fff;
	border: 1px solid var(--ux-line);
}
.ux-duo > div {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	padding: 40px 42px;
	border-left: 1px solid var(--ux-line-soft);
}
.ux-duo > div:first-child { border-left: 0; }
.ux-duo .ux-duo-n {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--ux-red);
	color: #fff;
	font-family: 'Archivo', sans-serif;
	font-weight: 800;
	font-size: 14px;
}
.ux-duo h3 { margin: 0 0 10px; font-size: 23px; letter-spacing: -.02em; }
.ux-duo p {
	margin: 0;
	font-size: 16.5px;
	line-height: 1.6;
	color: #4A403E;
	text-wrap: pretty;
}

/* --- story: text + photo --- */
.ux-story {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: 64px;
	align-items: start;
}
.ux-story h2 {
	margin: 10px 0 26px;
	font-size: 44px;
	line-height: 1.03;
	text-wrap: pretty;
}
.ux-story-lead {
	margin: 0 0 18px;
	font-size: 18px;
	line-height: 1.65;
	color: var(--ux-dark);
	text-wrap: pretty;
}
.ux-story p {
	margin: 0 0 18px;
	font-size: 16.5px;
	line-height: 1.7;
	color: #4A403E;
	text-wrap: pretty;
}
.ux-story p:last-child { margin-bottom: 0; }
.ux-story strong { font-weight: 600; }

.ux-photo {
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--ux-line);
}
.ux-photo img {
	display: block;
	width: 100%;
	object-fit: cover;
	background: #FBF2F0;
	transition: transform .6s ease;
}
.ux-photo:hover img { transform: scale(1.04); }
.ux-photo-cap { padding: 22px 2px 0; }
.ux-photo-cap strong {
	display: block;
	font-family: 'Archivo', sans-serif;
	font-weight: 900;
	font-size: 20px;
	letter-spacing: -.01em;
	text-transform: uppercase;
}
.ux-photo-cap span {
	display: block;
	margin-top: 8px;
	font-size: 16px;
	line-height: 1.6;
	color: #4A403E;
	text-wrap: pretty;
}

@media (max-width: 1024px) {
	.ux-duo { grid-template-columns: 1fr; }
	.ux-duo > div { border-left: 0; }
	.ux-duo > div + div { border-top: 1px solid var(--ux-line-soft); }
	.ux-story { grid-template-columns: 1fr; gap: 36px; }
	.ux-story h2 { font-size: 30px; }
	.ux-photo img { height: 360px; }
}

/* ==========================================================
   2. ISO CARD + DARK PLAN CARD
   ========================================================== */
/* --- ISO card + dark plan card --- */
.ux-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.ux-pair-l {
	background: #fff;
	border: 1px solid var(--ux-line);
	padding: 44px 46px;
}
.ux-pair-r {
	background: var(--ux-dark);
	color: #fff;
	padding: 44px 46px;
	display: flex;
	flex-direction: column;
}
.ux-pair h3 { margin: 0 0 16px; font-size: 28px; letter-spacing: -.02em; }
.ux-pair-r h3 { color: #fff; }
.ux-pair-l p {
	margin: 0 0 26px;
	font-size: 16.5px;
	line-height: 1.7;
	color: #4A403E;
	text-wrap: pretty;
}
.ux-pair-r p {
	margin: 0 0 32px;
	font-size: 16.5px;
	line-height: 1.7;
	color: #B3A8A6;
	text-wrap: pretty;
}
.ux-pair-contact {
	margin-top: auto;
	padding-top: 26px;
	border-top: 1px solid #3A302E;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.ux-pair-contact div {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 16px;
	color: #F0EAE9;
}
.ux-pair-contact i {
	flex: 0 0 26px;
	width: 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--ux-red);
	color: #fff;
	font-style: normal;
	font-size: 13px;
}
@media (max-width: 1024px) {
	.ux-pair { grid-template-columns: 1fr; }
	.ux-pair-l, .ux-pair-r { padding: 32px 28px; }
}

/* ==========================================================
   3. CONTACT PAGE
   ========================================================== */
.ux-contact-wrap { max-width: 1400px; margin: 0 auto; padding: 56px 32px 90px; }

.ux-contact {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}
.ux-contact h2 { margin: 0 0 22px; font-size: 34px; letter-spacing: -.025em; }

/* --- FAQ accordion (core Details block) --- */
.ux-faq { background: #fff; border: 1px solid var(--ux-line); }
.ux-faq details { padding: 0; border-bottom: 1px solid var(--ux-line-soft); }
.ux-faq details:last-child { border-bottom: 0; }
.ux-faq summary {
	list-style: none;
	cursor: pointer;
	padding: 22px 26px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	font-family: 'Archivo', sans-serif;
	font-weight: 800;
	font-size: 17px;
	line-height: 1.35;
	color: var(--ux-dark);
	text-wrap: pretty;
	transition: background .2s ease;
}
.ux-faq summary::-webkit-details-marker { display: none; }
.ux-faq summary::after {
	content: "+";
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--ux-tint);
	color: var(--ux-red);
	font-family: 'Archivo', sans-serif;
	font-weight: 700;
	font-size: 16px;
	transition: background .2s ease, color .2s ease;
}
.ux-faq summary:hover { background: var(--ux-tint); }
.ux-faq details[open] summary::after {
	content: "\2013";
	background: var(--ux-red);
	color: #fff;
}
.ux-faq details p {
	margin: 0;
	padding: 0 26px 24px;
	max-width: 62ch;
	font-size: 16px;
	line-height: 1.65;
	color: #4A403E;
	text-wrap: pretty;
}

/* --- form --- */
.ux-form {
	background: #fff;
	border: 1px solid var(--ux-line);
	padding: 34px 34px 36px;
}
.ux-form h2 { font-size: 28px; letter-spacing: -.02em; }
.ux-form label,
.ux-form .ux-field {
	display: flex;
	flex-direction: column;
	gap: 7px;
	margin-bottom: 14px;
}
.ux-form .ux-label,
.ux-form label > span:first-child {
	font-size: 13px;
	font-weight: 600;
	color: var(--ux-muted);
	letter-spacing: .04em;
	text-transform: uppercase;
}
.ux-form input[type="text"],
.ux-form input[type="email"],
.ux-form input[type="tel"],
.ux-form textarea {
	width: 100%;
	background: #fff;
	border: 1.5px solid var(--ux-line);
	padding: 14px 15px;
	font-family: 'Instrument Sans', sans-serif;
	font-size: 15px;
	color: var(--ux-dark);
	outline: none;
	transition: border-color .2s ease;
}
.ux-form input:focus,
.ux-form textarea:focus { border-color: var(--ux-dark); }
.ux-form textarea { min-height: 150px; resize: vertical; }

.ux-form input[type="submit"],
.ux-form button[type="submit"],
.ux-form .wpcf7-submit {
	margin-top: 6px;
	width: auto;
	background: var(--ux-red);
	color: #fff;
	border: 0;
	padding: 18px 32px;
	font-family: 'Archivo', sans-serif;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: .03em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .2s ease;
}
.ux-form input[type="submit"]:hover,
.ux-form .wpcf7-submit:hover { background: var(--ux-dark); }

/* Contact Form 7 details */
.ux-form .wpcf7-form-control-wrap { display: block; }
.ux-form .wpcf7-not-valid-tip { font-size: 13px; color: var(--ux-red); }
.ux-form .wpcf7-response-output {
	margin: 18px 0 0 !important;
	border: 1px solid var(--ux-line) !important;
	padding: 14px 16px !important;
	font-size: 14.5px;
}

/* --- map --- */
.ux-map {
	margin-top: 28px;
	background: #fff;
	border: 1px solid var(--ux-line);
	padding: 12px;
}
.ux-map iframe {
	display: block;
	width: 100%;
	height: 440px;
	border: 0;
}

@media (max-width: 1024px) {
	.ux-contact-wrap { padding: 40px 32px 60px; }
	.ux-contact { grid-template-columns: 1fr; }
	.ux-contact h2 { font-size: 27px; }
	.ux-form { padding: 26px 24px 28px; }
	.ux-map iframe { height: 320px; }
}
