/* =============================================================
   DAON Animal Medical Center — main stylesheet
   The design is inline-style driven (house style); this file carries
   only tokens, keyframes, shared component classes, nav hover,
   responsive/mobile behaviour, and WordPress content defaults.
   ============================================================= */

:root {
	--accent: #1f9aa6;   /* mint / point */
	--navy:   #243a72;   /* brand main */
	--ink:    #0f1c38;   /* dark sections */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; }

.daon-root {
	font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
	color: #16203a;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
.daon-en { font-family: "Manrope", "Pretendard", "Apple SD Gothic Neo", sans-serif; }
.daon-main { display: block; }

img { max-width: 100%; }
a { color: inherit; }

/* Korean headings must never break mid-syllable — wrap only at word boundaries,
   and balance lines so no lone short fragment dangles on the last line (esp. mobile). */
.daon-root h1, .daon-root h2, .daon-root h3 { word-break: keep-all; text-wrap: balance; }

.daon-skip {
	position: absolute; left: -9999px; top: 0; z-index: 200;
	background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 0 0 6px 0;
	font-size: 14px; font-weight: 700;
}
.daon-skip:focus { left: 0; }

/* --- keyframes --- */
@keyframes daonFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes daonFade { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes daonMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes daonScrollCue { 0%,100% { transform: translateY(0); opacity: .45; } 50% { transform: translateY(7px); opacity: 1; } }
@keyframes daonKen { from { transform: scale(1.02); } to { transform: scale(1.12); } }
@keyframes daonIntroUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes daonCaret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes daonScrimLift { to { opacity: 0; visibility: hidden; } }

/* --- landing entry: typewriter headline + hero entry scrim --- */
#daon-hero-scrim {
	opacity: 1;
	transition: opacity .9s ease, visibility .9s ease;
	/* no-JS / JS-disabled fallback: lift on its own after the type window */
	animation: daonScrimLift 1s ease 2.6s forwards;
}
.tw-caret {
	display: none;
	width: 3px; height: 0.92em; margin-left: 8px;
	background: var(--accent); vertical-align: -0.06em;
}
.tw-typing .tw-caret { display: inline-block; animation: daonCaret .9s steps(1) infinite; }
.tw-done .tw-caret { display: inline-block; animation: none; opacity: 0; transition: opacity .5s ease .2s; }

/* --- section heading line-mask reveal ([data-mask]) --- */
.dm-line { display: block; overflow: hidden; }
.dm-in { display: block; transform: translateY(115%); transition: transform .9s cubic-bezier(.16, .84, .44, 1); }
.dm-in.is-in { transform: none; }

/* --- eyebrow rule draw-in (.daon-rule) --- */
.daon-rule { display: inline-block; transform: scaleX(0); transform-origin: left center; transition: transform .8s cubic-bezier(.16, .84, .44, 1); }
.daon-rule.is-drawn { transform: scaleX(1); }

/* --- hero scroll cue --- */
#daon-scrollcue { transition: opacity .5s ease; }
#daon-scrollcue .cue-dot { animation: daonScrollCue 1.8s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
	.dm-in { transform: none; }
	.daon-rule { transform: scaleX(1); }
	#daon-scrollcue .cue-dot { animation: none; }
}

/* --- mission cards (home BRAND MISSION) --- */
.daon-mcard {
	background: #fff; border: 1px solid #dfe5ee;
	transition: transform .5s cubic-bezier(.22,.61,.36,1), box-shadow .5s ease, border-color .5s ease;
	cursor: default; position: relative;
}
.daon-mcard::before {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
	background: var(--navy); transform: scaleX(0); transform-origin: left;
	transition: transform .55s cubic-bezier(.22,.61,.36,1);
}
.daon-mcard:hover { transform: translateY(-8px); border-color: #c9d4e4; box-shadow: 0 10px 22px rgba(20,32,58,0.06); }
.daon-mcard:hover::before { transform: scaleX(1); }
.daon-mcard img { filter: grayscale(1) contrast(1.04); transition: filter .6s ease, transform .6s ease; }
.daon-mcard:hover img { filter: grayscale(0); transform: scale(1.03); }
.daon-mcard .daon-mnum { transition: background .45s ease, color .45s ease; }
.daon-mcard:hover .daon-mnum { background: var(--navy); color: #fff !important; }

/* --- home service slider arrows / more button --- */
#daon-svc-prev:hover, #daon-svc-next:hover {
	background: var(--accent) !important; border-color: var(--accent) !important;
	color: #fff !important; box-shadow: 0 4px 10px rgba(31,154,166,0.35) !important;
}
.daon-more:hover { background: var(--navy); border-color: var(--navy); color: #fff !important; }
.daon-more:hover .daon-more-arrow { transform: translateX(6px); }

/* --- smooth micro-interactions for any style-hover element that lacks its own transition --- */
[style-hover] { transition: filter .3s ease, transform .35s cubic-bezier(.22, .61, .36, 1), box-shadow .35s ease, background-color .3s ease, color .3s ease, border-color .3s ease, gap .3s ease; }

/* --- nav dropdown (hover reveal) --- */
#daon-nav .nav-item:hover .nav-panel { opacity: 1 !important; visibility: visible !important; margin-top: 0 !important; }
#daon-nav [data-navtop]:hover { color: var(--accent) !important; }

/* generic slider prev/next hover (care/specialty pages) */
.daon-slider-arrow:hover { background: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important; }

/* FAQ accordion (specialty pages) */
details.daon-faq summary { list-style: none; }
details.daon-faq summary::-webkit-details-marker { display: none; }
details.daon-faq[open] .daon-chev { transform: rotate(180deg); }

/* --- mobile drawer (hidden on desktop) --- */
.daon-burger { color: inherit; }
.daon-mobile {
	position: fixed; top: 0; right: 0; bottom: 0; width: min(84vw, 360px);
	background: #fff; z-index: 90; padding: 74px 26px 40px; overflow-y: auto;
	transform: translateX(100%); transition: transform .35s cubic-bezier(.22,.61,.36,1);
	box-shadow: -12px 0 40px rgba(15,28,56,0.16);
}
#daon-header.is-open .daon-mobile { transform: translateX(0); }
.daon-mobile__group { border-bottom: 1px solid #eef1f6; padding: 6px 0; }
.daon-mobile__top { display: block; text-decoration: none; font-size: 17px; font-weight: 800; color: #16203a; padding: 12px 0; }
.daon-mobile__sub { display: flex; flex-direction: column; gap: 2px; padding: 0 0 10px 12px; }
.daon-mobile__sub a { text-decoration: none; font-size: 14.5px; color: #5b6478; padding: 7px 0; }
.daon-mobile__cta {
	display: inline-block; margin-top: 24px; text-decoration: none; background: var(--accent);
	color: #fff; font-weight: 800; padding: 13px 24px; border-radius: 100px; font-size: 15px;
}
.daon-mobile-backdrop {
	position: fixed; inset: 0; z-index: 80; background: rgba(10,20,43,0.4);
	opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
#daon-header.is-open ~ .daon-mobile-backdrop,
#daon-header.is-open .daon-mobile-backdrop { opacity: 1; visibility: visible; }

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 920px) {
	#daon-nav.daon-nav { display: none !important; }
	.daon-header-cta { display: none !important; }
	.daon-burger { display: inline-flex !important; align-items: center; }
	#daon-header .daon-burger { color: #16203a; }
	#daon-header[data-solid="0"]:not(.is-scrolled) .daon-burger { color: #fff; }
	.daon-dock { display: none !important; }
	/* tighter header bar on mobile → less blank above the drawer menu */
	#daon-bar { padding: 12px 20px !important; }
	#daon-logo-white, #daon-logo-color { height: 40px !important; }
}
@media (min-width: 921px) {
	.daon-mobile { display: none; }
}

/* collapse two-column grids on small screens (defensive; inline grids already use auto-fit) */
@media (max-width: 768px) {
	.daon-phero > div > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }

	/* service sliders: reserve a bottom band so the prev/next arrows don't overlap the copy */
	.daon-slide-body { padding-bottom: 96px !important; }

	/* hero scroll cue collides with the wrapped stat counters on small screens — hide it */
	#daon-scrollcue { display: none !important; }
}

/* footer sitemap → two columns on mobile for a tighter, better-balanced layout */
@media (max-width: 600px) {
	.daon-sitemap-grid { grid-template-columns: 1fr 1fr !important; }

	/* hero stat counters: keep all three on a single row on mobile */
	.daon-hero-stats { flex-wrap: nowrap !important; gap: 12px !important; padding-left: 12px !important; padding-right: 12px !important; }
	.daon-hero-stats [data-count] { font-size: 21px !important; }
	.daon-hero-stats [data-count] + span { font-size: 12px !important; }
	.daon-hero-stats > div > div:last-child { font-size: 10px !important; white-space: nowrap !important; }
	.daon-hero-stats > span { height: 32px !important; }
}

/* =============================================================
   WordPress content (single / archive / news / page fallback)
   ============================================================= */
.daon-prose { font-size: 17px; line-height: 1.9; color: #3a4255; word-break: keep-all; }
.daon-prose h2 { font-size: clamp(24px,3vw,34px); font-weight: 900; color: #16203a; margin: 1.8em 0 .6em; letter-spacing: -0.02em; }
.daon-prose h3 { font-size: clamp(19px,2.2vw,24px); font-weight: 800; color: #16203a; margin: 1.5em 0 .5em; }
.daon-prose p { margin: 0 0 1.2em; }
.daon-prose img { height: auto; margin: 1.4em 0; }
.daon-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.daon-prose ul, .daon-prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.daon-prose li { margin: .4em 0; }
.daon-prose blockquote {
	margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent);
	color: #16203a; font-weight: 600;
}

.daon-newscard { background: #fff; border: 1px solid #e6ecf4; transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease; }
.daon-newscard:hover { transform: translateY(-6px); box-shadow: 0 12px 26px rgba(20,32,58,0.08); border-color: #c9d4e4; }

.daon-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 56px; }
.daon-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px;
	padding: 0 12px; border: 1px solid #e2e8f1; color: #5b6478; text-decoration: none; font-weight: 700; font-size: 14px;
}
.daon-pagination .page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }
.daon-pagination a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }

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