/* Contact page (page-contact.php). Loaded after home.css and theme-dark.css.
   Reuses the home sections (hero, section tones, features list, FAQ, inquiry);
   only the contact-specific pieces live here. Square corners, 1px lines. */

/* ---------------------------------------------------------------- hero */
.rp-contact .rp-hero { padding-bottom: var(--s8); }
.rp-contact .rp-hero h1 { font-size: clamp(34px, 3.8vw, 50px); }
.rp-contact .rp-hero__grid { align-items: start; }
.rp-contact .rp-breadcrumb { margin-bottom: var(--s6); }
.rp-ct-lang { margin-top: var(--s6); font-size: 14px; color: var(--ink-muted); }
.rp-ct-lang b { font-weight: 600; }

/* ---------------------------------------------------------------- factory clock card */
.rp-ct-clock {
	position: relative; padding: var(--s6);
	border: 1px solid var(--line); background: var(--panel, var(--canvas));
}
.rp-ct-clock::before {
	content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px;
	background: linear-gradient(90deg, var(--brand), rgba(111, 182, 255, 0.8) 60%, transparent);
}
.rp-ct-clock__top { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.rp-ct-clock__top .rp-eyebrow { margin: 0; }
.rp-ct-status {
	display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px;
	border: 1px solid var(--line); border-radius: 2px; font-size: 13px; color: var(--ink-muted); white-space: nowrap;
}
.rp-ct-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-subtle); flex: none; }
.rp-ct-status.is-open { color: var(--ink); border-color: rgba(37, 211, 102, 0.45); }
.rp-ct-status.is-open::before { background: var(--whatsapp); box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.18); animation: rp-ct-pulse 2.4s ease-in-out infinite; }
@keyframes rp-ct-pulse { 50% { box-shadow: 0 0 0 7px rgba(37, 211, 102, 0); } }

.rp-ct-clock__time {
	display: flex; align-items: baseline; gap: var(--s3); margin: var(--s6) 0 var(--s2);
	font-size: clamp(56px, 7vw, 88px); font-weight: 300; line-height: 1; letter-spacing: -1.5px;
	font-variant-numeric: tabular-nums; color: var(--ink);
}
.rp-ct-clock__time small { font-size: 16px; font-weight: 400; letter-spacing: 0.16px; color: var(--ink-muted); }
.rp-ct-clock__date { color: var(--ink-muted); }

/* 24-hour bar: office hours band + "now" marker */
.rp-ct-day { position: relative; height: 6px; margin: var(--s6) 0 var(--s2); background: var(--surface-1); }
.rp-ct-day__hours {
	position: absolute; top: 0; bottom: 0;
	left: calc(var(--o) * 100%); width: calc((var(--c) - var(--o)) * 100%);
	background: linear-gradient(90deg, rgba(37, 211, 102, 0.55), rgba(111, 182, 255, 0.55));
}
.rp-ct-day__now {
	position: absolute; top: -7px; bottom: -7px; width: 2px; margin-left: -1px;
	left: calc(var(--n) * 100%); background: var(--ink); transition: left 1s linear;
}
.rp-ct-day__now::before { content: ""; position: absolute; top: -3px; left: -3px; width: 8px; height: 8px; background: var(--brand); }
.rp-ct-day__scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-subtle); font-variant-numeric: tabular-nums; }

.rp-ct-clock__rows { margin: var(--s5) 0 0; border-top: 1px solid var(--line); }
.rp-ct-clock__rows > div { display: flex; justify-content: space-between; gap: var(--s4); padding: var(--s3) 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.rp-ct-clock__rows dt { color: var(--ink-muted); font-weight: 400; flex: none; }
.rp-ct-clock__rows dd { margin: 0; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- channels */
.rp-ct-channels { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); border: 1px solid var(--line); background: var(--panel, var(--canvas)); }
.rp-ct-channel {
	position: relative; display: flex; flex-direction: column; gap: var(--s2);
	padding: var(--s6) var(--s5); color: var(--ink); text-decoration: none !important;
	transition: background 0.3s ease;
}
.rp-ct-channel + .rp-ct-channel { border-left: 1px solid var(--line); }
.rp-ct-channel::after {
	content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0;
	background: linear-gradient(90deg, var(--brand), rgba(111, 182, 255, 0.9)); transition: width 0.5s ease;
}
.rp-ct-channel:hover { background: var(--surface-1); color: var(--ink); }
.rp-ct-channel:hover::after { width: 100%; }
.rp-ct-channel__icon {
	display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: var(--s4);
	border: 1px solid var(--line); color: var(--ink);
}
.rp-ct-channel__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.rp-ct-channel__icon svg.is-fill { fill: currentColor; stroke: none; width: 22px; height: 22px; }
.rp-ct-channel--wa .rp-ct-channel__icon { color: var(--whatsapp); border-color: rgba(37, 211, 102, 0.45); }
.rp-ct-channel__label { font-size: 14px; color: var(--ink-muted); }
.rp-ct-channel__value { font-size: 20px; font-weight: 400; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.rp-ct-channel__note { font-size: 14px; color: var(--ink-muted); }
.rp-ct-channel .rp-card__more { margin-top: auto; padding-top: var(--s4); }

/* ---------------------------------------------------------------- what to send */
.rp-ct-prep { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s7); align-items: start; }
.rp-ct-prep > .rp-section-head { position: sticky; top: 112px; }
.rp-ct-prep .rp-actions { margin-top: var(--s5); }

/* ---------------------------------------------------------------- visit + map */
.rp-ct-visit { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s7); align-items: stretch; }
.rp-ct-address {
	font-style: normal; font-size: 18px; line-height: 1.5; color: var(--ink);
	margin: var(--s5) 0 var(--s6); padding-left: var(--s4); border-left: 2px solid var(--brand);
}
.rp-ct-address span { display: block; font-size: 14px; color: var(--ink-muted); margin-top: var(--s2); }
.rp-ct-visit .rp-checks { margin-bottom: 0; }

.rp-ct-map { position: relative; min-height: 460px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-1); }
.rp-ct-map__photo, .rp-ct-map__photo img, .rp-ct-map__photo .rp-img-missing { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.rp-ct-map__photo img { transition: transform 0.8s cubic-bezier(.2,.7,.2,1); }
.rp-ct-map:hover .rp-ct-map__photo img { transform: scale(1.03); }
.rp-ct-map__overlay {
	position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--s4);
	padding: var(--s6); color: #fff;
	background: linear-gradient(180deg, rgba(8, 11, 15, 0) 25%, rgba(8, 11, 15, 0.88) 100%);
}
.rp-ct-map__pin { display: inline-flex; align-items: center; gap: var(--s2); font-size: 14px; letter-spacing: 0.3px; color: #fff; }
.rp-ct-map__pin svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.rp-ct-map__actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.rp-ct-map__actions .rp-btn--secondary { background: rgba(255, 255, 255, 0.08) !important; color: #fff !important; border: 1px solid rgba(255, 255, 255, 0.45) !important; }
.rp-ct-map__actions .rp-btn--secondary:hover { background: rgba(255, 255, 255, 0.16) !important; }
.rp-ct-map button.rp-btn { cursor: pointer; font: inherit; }
.rp-ct-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }
.rp-ct-map.is-map .rp-ct-map__overlay { display: none; }

/* ---------------------------------------------------------------- inquiry on this page */
.rp-contact .rp-inq { background: var(--bg-mid); }
.rp-contact .rp-inq .rp-inq__card { --surface-1: #f2f4f6; border: 1px solid var(--line); border-top: 4px solid var(--ink); }

/* ---------------------------------------------------------------- dark theme */
.rp-dark .rp-ct-clock { box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); background: rgba(16, 22, 30, 0.72); }
.rp-dark .rp-ct-clock__time [data-time] {
	background: var(--metal-text); -webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent;
}
.rp-dark .rp-ct-day { background: rgba(255, 255, 255, 0.07); }
.rp-dark .rp-ct-day__now { background: #fff; box-shadow: 0 0 12px rgba(111, 182, 255, 0.8); }
.rp-dark .rp-ct-channels { background: var(--panel); }
.rp-dark .rp-ct-channel:hover { background: var(--panel-hover); color: var(--ink); }
.rp-dark .rp-ct-channel__icon { background: rgba(255, 255, 255, 0.03); }
.rp-dark .rp-ct-channel__value { color: #fff; }
.rp-dark .rp-ct-map iframe { filter: invert(0.9) hue-rotate(180deg) saturate(0.55) brightness(0.95); }
.rp-dark .rp-contact .rp-inq .rp-inq__card { --surface-1: #131a22; border-top: 1px solid var(--line); }
.rp-dark .rp-ct-map__actions .rp-btn--primary { color: #0a0e13 !important; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1024px) {
	.rp-ct-prep, .rp-ct-visit { grid-template-columns: 1fr; gap: var(--s6); }
	.rp-ct-prep > .rp-section-head { position: static; }
	.rp-ct-channels { grid-template-columns: 1fr; }
	.rp-ct-channel + .rp-ct-channel { border-left: 0; border-top: 1px solid var(--line); }
	.rp-ct-map { min-height: 380px; }
}
@media (max-width: 760px) {
	.rp-ct-clock { padding: var(--s5); }
	.rp-ct-clock__rows > div { flex-direction: column; gap: 2px; }
	.rp-ct-clock__rows dd { text-align: left; }
	.rp-ct-channel { padding: var(--s5); }
	.rp-ct-map { min-height: 320px; }
	.rp-ct-map__overlay { padding: var(--s5); }
}
@media (prefers-reduced-motion: reduce) {
	.rp-ct-status.is-open::before { animation: none; }
	.rp-ct-day__now, .rp-ct-map__photo img { transition: none; }
}
