/* =============================================================
   FIRSTIER 24H Animal Medical Center — main stylesheet
   The two handoffs are inline-style driven (house style). This file carries
   tokens, fonts, keyframes, state classes the runtime toggles (header, menu,
   slider dots, steps, tabs), the image-slot placeholder, and responsive
   show/hide helpers scoped per plan breakpoint.
   ============================================================= */

:root {
	--ft-cream: #F4EFE7;
	--ft-ink:   #1C2024;
	--ft-brown: #8A6A48;
	--ft-tan:   #B58A5C;
	--ft-sand:  #E8C9A0;
	--ft-line:  #333A44;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ft-cream); -webkit-font-smoothing: antialiased; }
body.ft-plan2 { background: #fff; }

.ft-root {
	width: 100%;
	min-height: 100vh;
	font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
	color: #1C2024;
	overflow-x: clip;
	background: var(--ft-cream);
}
.ft-plan2 .ft-root { background: #FFFFFF; }

.ft-root a { color: inherit; text-decoration: none; }
.ft-root a:hover { color: #8A6A48; }
.ft-en    { font-family: Manrope, 'Pretendard Variable', Pretendard, sans-serif; }
.ft-serif { font-family: 'Instrument Serif', 'Times New Roman', Georgia, serif; }
.ft-root { word-break: keep-all; overflow-wrap: break-word; }  /* Korean wraps at word boundaries only */
.ft-root img { max-width: 100%; }
.ft-root button { font-family: inherit; }
.ft-root [hidden] { display: none !important; }
.ft-root section { scroll-margin-top: 72px; }

.ft-skip {
	position: absolute; left: -9999px; top: 0; z-index: 200;
	background: #1C2024; color: #F4EFE7; padding: 10px 18px; border-radius: 0 0 6px 0;
	font-size: 14px; font-weight: 600;
}
.ft-skip:focus { left: 0; }

/* --- keyframes (from the handoffs) --- */
@keyframes ftMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes ftFadeUp  { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ftWmL { from { transform: translateX(0); }     to { transform: translateX(-50%); } }
@keyframes ftWmR { from { transform: translateX(-50%); }  to { transform: translateX(0); } }

/* --- scroll tracks (sliders) --- */
.ft-track { scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ft-track::-webkit-scrollbar { display: none; }
.ft-track:active { cursor: grabbing; }

/* --- slider dots --- */
.ft-dot {
	height: 6px; width: 6px; border: 0; padding: 0; border-radius: 999px;
	background: #C9C0B0; cursor: pointer; transition: all .4s;
}
.ft-dot.is-active { width: 28px; background: #1C2024; }

/* --- 시안1 header states --- */
.ft-p1-header { background: transparent; transition: background .3s, padding .3s; }
.ft-p1-header.is-scrolled,
.ft-p1-header.is-solid   { background: rgba(28, 32, 36, 0.92); }
.ft-p1-header.is-open    { background: rgba(28, 32, 36, 0.96); padding-bottom: 44px !important; }
.ft-p1-sub { display: none; }
.ft-p1-header.is-open .ft-p1-sub { display: flex; }

/* --- 시안1 emergency-flow steps --- */
.ft-step { background: transparent; transform: translateX(0); outline: none; }
.ft-step .ft-step__num { color: #4A5462; }
.ft-step .ft-step__ttl { color: #B7B1A3; }
.ft-step .ft-step__arr { border-color: #333A44; color: #4A5462; background: transparent; }
.ft-step.is-active { background: rgba(244, 239, 231, 0.06); transform: translateX(8px); }
.ft-step.is-active .ft-step__num { color: #F4EFE7; }
.ft-step.is-active .ft-step__ttl { color: #F4EFE7; }
.ft-step.is-active .ft-step__arr { border-color: #B58A5C; background: #B58A5C; color: #1C2024; }
.ft-step:focus-visible { box-shadow: 0 0 0 2px #B58A5C inset; }
.ft-step-panel { display: none; }
.ft-step-panel.is-active { display: flex; animation: ftFadeUp .45s ease both; }

/* --- 시안2 watermark marquee --- */
.ft-wm {
	display: inline-flex; gap: 0.6em; font-weight: 800;
	font-size: clamp(64px, 10vw, 150px); line-height: 1; letter-spacing: -0.02em;
	white-space: nowrap; pointer-events: none; user-select: none; padding-right: 0.6em;
}
.ft-wm--l { animation: ftWmL 60s linear infinite; }
.ft-wm--r { animation: ftWmR 60s linear infinite; }

/* --- 시안2 facility tabs --- */
.ft-fac-tab {
	border: 1px solid #C9C0B0; background: transparent; color: #1C2024;
	padding: 9px 16px; border-radius: 999px; font-size: 13px; cursor: pointer; transition: all .2s;
}
.ft-fac-tab:hover { border-color: #1C2024; }
.ft-fac-tab.is-active { background: #1C2024; color: #F4EFE7; border-color: #1C2024; }
.ft-fac-panel { display: none; }
.ft-fac-panel.is-active { display: block; animation: ftFadeUp .4s ease both; }

/* --- image slot placeholder (photo still to be shot) --- */
.ft-slot {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
	background-color: #E3DBCD;
	background-image: repeating-linear-gradient(135deg, rgba(28, 32, 36, 0.045) 0 14px, transparent 14px 28px);
	color: #7B7466; font-size: 12px; letter-spacing: 0.02em; text-align: center; padding: 16px;
	word-break: keep-all;
}
.ft-slot svg { opacity: .55; }
.ft-slot--dark { background-color: #242A31; color: #8F8878; }

/* --- mobile menu body lock --- */
body.ft-menu-open { overflow: hidden; }

/* --- responsive show/hide, per plan breakpoint --- */
@media (max-width: 959.98px) { .ft-plan1 .ft-desk { display: none !important; } }
@media (min-width: 960px)    { .ft-plan1 .ft-mob  { display: none !important; } }
@media (max-width: 1023.98px){ .ft-plan2 .ft-desk { display: none !important; } }
@media (min-width: 1024px)   { .ft-plan2 .ft-mob  { display: none !important; } }

/* --- small-screen refinements the handoffs left to clamp()/auto-fit --- */
@media (max-width: 640px) {
	.ft-plan1 .ft-p1-hero > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
	.ft-root section { scroll-margin-top: 64px; }
}

/* --- review-only plan switcher --- */
.ft-switch {
	position: fixed; left: 16px; bottom: 16px; z-index: 60;
	display: flex; gap: 2px; padding: 4px; border-radius: 999px;
	background: rgba(28, 32, 36, 0.9); color: #F4EFE7; font-size: 12px; letter-spacing: 0.04em;
	backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
	box-shadow: 0 10px 30px rgba(28, 32, 36, 0.25);
}
.ft-switch a { padding: 7px 12px; border-radius: 999px; color: #D9D2C4; }
.ft-switch a:hover { color: #E8C9A0; }
.ft-switch a.is-active { background: #F4EFE7; color: #1C2024; }

/* --- generic page prose (page.php) --- */
.ft-prose { font-size: 16px; line-height: 1.85; color: #4A4238; }
.ft-prose h2 { margin: 40px 0 14px; font-size: 26px; letter-spacing: -0.03em; color: #1C2024; }
.ft-prose h3 { margin: 28px 0 10px; font-size: 20px; letter-spacing: -0.02em; color: #1C2024; }
.ft-prose p { margin: 0 0 18px; }
.ft-prose a { color: #8A6A48; text-decoration: underline; }
.ft-prose img { border-radius: 16px; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.ft-wm--l, .ft-wm--r { animation: none; }
	.ft-step-panel.is-active, .ft-fac-panel.is-active { animation: none; }
}
