/* ==========================================================================
   민안과의원 (mineye) — 홈페이지 개편 1차시안
   정적 HTML/CSS/JS · 프리미엄 안과 톤 (신뢰 · 3대째 · 안정성)
    me- prefix
   ========================================================================== */

:root {
  /* 브랜드 컬러 — 딥네이비(권위/3대째) + 클리어 블루(시야) + 헤리티지 골드(가는 라인만) */
  --navy: #0e2a4e;
  --navy-2: #143a63;
  --navy-3: #0a2140;
  --blue: #2f73c4;
  --blue-ink: #1e5aa8;
  --sky: #eaf2fb;
  --sky-2: #f4f8fd;
  --gold: #b58e4e;
  --gold-soft: #d8c298;

  --ink: #16202e;
  --body: #384656;
  --muted: #66768a;
  --line: #e5ebf2;
  --line-2: #eef2f7;
  --bg: #ffffff;
  --bg-soft: #f7fafd;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 40px);
  --radius: 16px;
  --radius-sm: 11px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-sm: 0 2px 10px rgba(14, 42, 78, .05);
  --shadow: 0 18px 44px -22px rgba(14, 42, 78, .28);
  --shadow-lg: 0 30px 70px -30px rgba(14, 42, 78, .38);
  --header-h: 74px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.72;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.28; letter-spacing: -0.025em; font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--navy); color: #fff; }

/* ---------- layout helpers ---------- */
.me-wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.me-section { padding: clamp(64px, 9vw, 116px) 0; }
.me-section--soft { background: var(--bg-soft); }
.me-section--navy { background: var(--navy); color: rgba(255, 255, 255, .82); }
.me-section--navy h2, .me-section--navy h3 { color: #fff; }

.me-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue-ink);
}
.me-eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--gold); }
.me-section--navy .me-eyebrow { color: var(--gold-soft); }

.me-head { max-width: 720px; margin-bottom: clamp(34px, 5vw, 56px); }
.me-head.is-center { margin-inline: auto; text-align: center; }
.me-head h2 { font-size: clamp(27px, 4.1vw, 43px); margin-top: 16px; }
.me-head .me-lede { margin-top: 18px; font-size: clamp(15.5px, 1.9vw, 18px); color: var(--muted); line-height: 1.85; }
.me-section--navy .me-head .me-lede { color: rgba(255, 255, 255, .72); }

/* ---------- buttons ---------- */
.me-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 28px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 1.5px solid transparent; transition: transform .25s var(--ease), background .25s, box-shadow .25s, color .25s;
  white-space: nowrap;
}
.me-btn svg { width: 18px; height: 18px; }
.me-btn--primary { background: var(--navy); color: #fff; box-shadow: 0 14px 30px -14px rgba(14, 42, 78, .6); }
.me-btn--primary:hover { background: var(--navy-2); transform: translateY(-2px); }
.me-btn--gold { background: var(--gold); color: #fff; }
.me-btn--gold:hover { background: #a37f42; transform: translateY(-2px); }
.me-btn--ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.me-btn--ghost:hover { background: rgba(255, 255, 255, .12); transform: translateY(-2px); }
.me-btn--line { border-color: var(--line); color: var(--ink); background: #fff; }
.me-btn--line:hover { border-color: var(--navy); color: var(--navy); transform: translateY(-2px); }

.me-textlink { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--blue-ink); font-size: 15px; }
.me-textlink svg { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.me-textlink:hover svg { transform: translateX(4px); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.me-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s var(--ease), box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.me-header .me-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.me-header.is-solid { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(14px); border-color: var(--line); box-shadow: var(--shadow-sm); }

.me-logo { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 20px; letter-spacing: -0.03em; color: #fff; transition: color .3s; }
.me-logo .me-logo-mark { width: 30px; height: 30px; flex: none; }
.me-logo small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; color: var(--gold-soft); margin-top: 1px; }
.me-header.is-solid .me-logo { color: var(--navy); }
.me-header.is-solid .me-logo small { color: var(--gold); }

.me-nav { display: flex; align-items: center; gap: 4px; }
.me-nav a {
  padding: 10px 15px; font-size: 15px; font-weight: 600; border-radius: 8px;
  color: rgba(255, 255, 255, .9); transition: color .2s, background .2s;
}
.me-header.is-solid .me-nav a { color: var(--body); }
.me-nav a:hover, .me-nav a.is-active { color: #fff; background: rgba(255, 255, 255, .14); }
.me-header.is-solid .me-nav a:hover, .me-header.is-solid .me-nav a.is-active { color: var(--navy); background: var(--sky); }

.me-header-cta { display: flex; align-items: center; gap: 14px; }
.me-header-tel { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; color: #fff; transition: color .3s; }
.me-header-tel svg { width: 18px; height: 18px; }
.me-header.is-solid .me-header-tel { color: var(--navy); }

.me-burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; position: relative; }
.me-burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.me-header.is-solid .me-burger span { background: var(--navy); }
.me-burger span:nth-child(1) { top: 15px; } .me-burger span:nth-child(2) { top: 21px; } .me-burger span:nth-child(3) { top: 27px; }

/* drawer (mobile) */
.me-drawer { position: fixed; inset: 0; z-index: 80; visibility: hidden; }
.me-drawer.is-open { visibility: visible; }
.me-drawer-scrim { position: absolute; inset: 0; background: rgba(8, 18, 34, .5); opacity: 0; transition: opacity .3s; }
.me-drawer.is-open .me-drawer-scrim { opacity: 1; }
.me-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 86vw); background: #fff;
  transform: translateX(100%); transition: transform .36s var(--ease); display: flex; flex-direction: column;
  padding: 22px 24px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto;
}
.me-drawer.is-open .me-drawer-panel { transform: none; }
.me-drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.me-drawer-top .me-logo { color: var(--navy); }
.me-drawer-top .me-logo small { color: var(--gold); }
.me-drawer-close { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 20px; color: var(--ink); }
.me-drawer nav a { display: block; padding: 15px 6px; font-size: 17px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line-2); }
.me-drawer nav a.is-active { color: var(--blue-ink); }
.me-drawer-foot { margin-top: auto; padding-top: 22px; }
.me-drawer-foot .me-btn { width: 100%; }
.me-drawer-foot .me-tel-big { display: block; margin-top: 14px; text-align: center; font-size: 22px; font-weight: 800; color: var(--navy); }
.me-drawer-foot .me-tel-sub { text-align: center; font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ==========================================================================
   HERO — letter typing over cinematic navy (자체 CSS 히어로, 무영상)
   ========================================================================== */
.me-hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: var(--navy-3); }
.me-hero-bg { position: absolute; inset: 0; z-index: 0; }
.me-hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 78% 15%, rgba(47, 115, 196, .55) 0%, rgba(47, 115, 196, 0) 55%),
    radial-gradient(100% 80% at 12% 90%, rgba(20, 58, 99, .8) 0%, rgba(10, 33, 64, 0) 60%),
    linear-gradient(160deg, #0a2140 0%, #0e2a4e 42%, #123763 100%);
}
/* 시야 모티프: 부드러운 렌즈 링 + 오로라 글로우 */
.me-hero-bg::after {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 780px; height: 780px; top: -180px; right: -160px;
  background: radial-gradient(circle, rgba(181, 142, 78, .0) 38%, rgba(181, 142, 78, .16) 39%, rgba(181, 142, 78, 0) 40%),
    radial-gradient(circle, rgba(233, 242, 251, 0) 50%, rgba(233, 242, 251, .1) 51%, rgba(233, 242, 251, 0) 52%),
    radial-gradient(circle, rgba(47, 115, 196, .45) 0%, rgba(47, 115, 196, 0) 46%);
  filter: blur(2px); opacity: .9; animation: meDrift 22s ease-in-out infinite alternate;
}
@keyframes meDrift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-40px, 30px) scale(1.08); } }
.me-hero-grain { position: absolute; inset: 0; z-index: 1; opacity: .5; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 3px 3px; }
.me-hero-veil { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10, 26, 48, .35) 0%, rgba(10, 26, 48, .1) 45%, rgba(10, 26, 48, .55) 100%); }

.me-hero-inner { position: relative; z-index: 3; width: 100%; }
.me-hero-tag {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(216, 194, 152, .4); background: rgba(255, 255, 255, .05);
  color: var(--gold-soft); font-size: 13px; font-weight: 700; letter-spacing: .04em; margin-bottom: 30px;
}
.me-hero-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-soft); }

/* 편지 타이핑 */
.me-letter { min-height: 4.4em; margin-bottom: 34px; }
.me-letter-line {
  margin: 0; color: #fff; font-weight: 800;
  font-size: clamp(28px, 5.6vw, 62px); line-height: 1.32; letter-spacing: -0.03em;
  text-shadow: 0 2px 34px rgba(6, 14, 32, .55);
}
.me-ch { display: inline-block; opacity: 0; transform: translateY(.18em); animation: meType .3s var(--ease) forwards; animation-delay: var(--cd, 0ms); }
@keyframes meType { to { opacity: 1; transform: translateY(0); } }

.me-hero-sub { max-width: 560px; color: rgba(255, 255, 255, .82); font-size: clamp(15.5px, 2vw, 18.5px); line-height: 1.85; margin-bottom: 34px; }
.me-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.me-scroll-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 3; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .4); border-radius: 999px; display: flex; justify-content: center; padding-top: 8px; }
.me-scroll-hint span { width: 4px; height: 8px; border-radius: 999px; background: #fff; animation: meDot 1.6s var(--ease) infinite; }
@keyframes meDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* hero trust strip */
.me-hero-strip { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; border-top: 1px solid rgba(255, 255, 255, .12); background: rgba(9, 22, 42, .3); backdrop-filter: blur(6px); }
.me-hero-strip .me-wrap { display: flex; flex-wrap: wrap; gap: clamp(18px, 5vw, 56px); padding-block: 18px; }
.me-hero-strip-item { display: flex; align-items: baseline; gap: 10px; color: #fff; }
.me-hero-strip-item b { font-size: clamp(20px, 3vw, 27px); font-weight: 800; letter-spacing: -0.02em; }
.me-hero-strip-item b em { font-style: normal; color: var(--gold-soft); font-size: .62em; margin-left: 2px; }
.me-hero-strip-item span { font-size: 13px; color: rgba(255, 255, 255, .7); }

/* ==========================================================================
   PAGE HERO (서브페이지 상단)
   ========================================================================== */
.me-phero { position: relative; padding: calc(var(--header-h) + 54px) 0 54px; background: var(--navy-3); overflow: hidden; color: #fff; }
.me-phero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(110% 120% at 80% 0%, rgba(47, 115, 196, .5), rgba(10, 33, 64, 0) 60%), linear-gradient(160deg, #0a2140, #123763); }
.me-phero .me-wrap { position: relative; z-index: 2; }
.me-phero .me-eyebrow { color: var(--gold-soft); }
.me-phero h1 { color: #fff; font-size: clamp(29px, 4.6vw, 48px); margin-top: 15px; }
.me-phero p { margin-top: 16px; max-width: 640px; color: rgba(255, 255, 255, .78); font-size: clamp(15px, 1.9vw, 18px); }
.me-crumb { display: flex; gap: 8px; align-items: center; font-size: 13px; color: rgba(255, 255, 255, .6); margin-bottom: 20px; }
.me-crumb a:hover { color: #fff; }
.me-crumb span { opacity: .5; }

/* ==========================================================================
   INTRO / 철학
   ========================================================================== */
.me-intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 72px); align-items: center; }
.me-intro-copy h2 { font-size: clamp(25px, 3.6vw, 39px); }
.me-intro-copy .me-quote { margin-top: 22px; font-size: clamp(17px, 2.2vw, 21px); font-weight: 700; color: var(--navy); line-height: 1.7; }
.me-intro-copy .me-quote em { font-style: normal; color: var(--blue-ink); }
.me-intro-copy p { margin-top: 18px; color: var(--body); line-height: 1.9; }
.me-sign { margin-top: 26px; display: flex; align-items: center; gap: 14px; }
.me-sign-line { flex: none; width: 34px; height: 1.5px; background: var(--gold); }
.me-sign b { color: var(--ink); }
.me-sign span { color: var(--muted); font-size: 14px; }

.me-intro-visual { position: relative; }
.me-intro-card { position: relative; border-radius: var(--radius); overflow: hidden; background: linear-gradient(160deg, #0e2a4e, #143a63); color: #fff; padding: clamp(30px, 5vw, 48px); min-height: 380px; display: flex; flex-direction: column; justify-content: flex-end; box-shadow: var(--shadow); }
.me-intro-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 70% at 80% 10%, rgba(47, 115, 196, .5), transparent 60%); }
.me-intro-card::after { content: ""; position: absolute; width: 320px; height: 320px; right: -80px; top: -80px; border-radius: 50%; border: 1px solid rgba(216, 194, 152, .35); box-shadow: 0 0 0 40px rgba(255, 255, 255, .03); }
.me-intro-card > * { position: relative; z-index: 2; }
.me-intro-card .k { font-size: clamp(46px, 8vw, 72px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.me-intro-card .k em { font-style: normal; color: var(--gold-soft); font-size: .4em; margin-left: 6px; }
.me-intro-card .d { margin-top: 12px; font-size: 16px; color: rgba(255, 255, 255, .8); }

/* stat row */
.me-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.me-stat { background: #fff; padding: clamp(24px, 3vw, 34px) clamp(18px, 2vw, 26px); text-align: center; }
.me-stat b { display: block; font-size: clamp(28px, 4vw, 42px); font-weight: 800; color: var(--navy); letter-spacing: -0.03em; }
.me-stat b em { font-style: normal; color: var(--gold); font-size: .5em; margin-left: 2px; }
.me-stat span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }

/* ==========================================================================
   CARDS — 진료안내
   ========================================================================== */
.me-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.me-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(26px, 3vw, 34px); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; overflow: hidden;
  display: flex; flex-direction: column;
}
.me-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.me-card-ico { width: 54px; height: 54px; border-radius: 14px; background: var(--sky); color: var(--blue-ink); display: grid; place-items: center; margin-bottom: 20px; transition: background .3s, color .3s; }
.me-card-ico svg { width: 27px; height: 27px; }
.me-card:hover .me-card-ico { background: var(--navy); color: #fff; }
.me-card h3 { font-size: 20px; }
.me-card .me-card-tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.me-card .me-card-tags span { font-size: 12.5px; color: var(--muted); background: var(--bg-soft); border: 1px solid var(--line-2); padding: 4px 10px; border-radius: 999px; }
.me-card p { margin-top: 14px; font-size: 15px; color: var(--body); line-height: 1.8; flex: 1; }
.me-card .me-textlink { margin-top: 20px; }
.me-card--feature { grid-column: span 3; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; background: linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; border-color: transparent; }
.me-card--feature:hover { transform: none; box-shadow: var(--shadow-lg); }
.me-card--feature h3 { color: #fff; font-size: clamp(22px, 3vw, 30px); }
.me-card--feature .me-card-ico { background: rgba(255, 255, 255, .12); color: #fff; }
.me-card--feature p { color: rgba(255, 255, 255, .82); font-size: 16px; }
.me-card--feature .me-feature-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--gold-soft); border: 1px solid rgba(216, 194, 152, .4); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.me-feature-list { display: grid; gap: 12px; }
.me-feature-list li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255, 255, 255, .9); font-size: 15px; }
.me-feature-list li svg { flex: none; width: 20px; height: 20px; color: var(--gold-soft); margin-top: 2px; }

/* ==========================================================================
   DOCTORS
   ========================================================================== */
.me-docs { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.4vw, 26px); }
.me-doc { display: grid; grid-template-columns: 128px 1fr; gap: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: box-shadow .3s, transform .3s; }
.me-doc:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.me-doc-photo { width: 128px; height: 150px; border-radius: 12px; background: linear-gradient(160deg, var(--navy), var(--navy-2)); display: grid; place-items: center; color: rgba(255, 255, 255, .3); position: relative; overflow: hidden; }
.me-doc-photo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 60% at 70% 0%, rgba(47, 115, 196, .5), transparent 60%); }
.me-doc-photo .me-doc-initial { position: relative; z-index: 2; font-size: 40px; font-weight: 800; color: rgba(255, 255, 255, .92); letter-spacing: -0.03em; }
.me-doc-photo .me-doc-ph { position: absolute; bottom: 8px; z-index: 2; font-size: 10.5px; color: rgba(255, 255, 255, .5); letter-spacing: .05em; }
.me-doc-body .me-doc-room { display: inline-block; font-size: 12px; font-weight: 700; color: var(--blue-ink); background: var(--sky); padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.me-doc-body h3 { font-size: 21px; display: flex; align-items: baseline; gap: 8px; }
.me-doc-body h3 span { font-size: 13px; font-weight: 600; color: var(--muted); }
.me-doc-role { margin-top: 4px; font-size: 13.5px; font-weight: 700; color: var(--gold); }
.me-doc-fields { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.me-doc-fields span { font-size: 12.5px; color: var(--body); background: var(--bg-soft); border: 1px solid var(--line-2); padding: 4px 10px; border-radius: 8px; }
.me-doc-note { margin-top: 12px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.me-doc-note svg { width: 14px; height: 14px; }

/* ==========================================================================
   SCHEDULE TABLE — 의료진별 진료시간
   ========================================================================== */
.me-sched-note { display: flex; gap: 12px; align-items: flex-start; background: #fff7ec; border: 1px solid #f0dcbb; color: #8a6417; border-radius: 12px; padding: 15px 18px; margin-bottom: 26px; font-size: 14px; line-height: 1.7; }
.me-sched-note svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.me-sched-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; -webkit-overflow-scrolling: touch; }
table.me-sched { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 14px; }
table.me-sched th, table.me-sched td { padding: 13px 12px; text-align: center; border-bottom: 1px solid var(--line-2); border-right: 1px solid var(--line-2); }
table.me-sched thead th { background: var(--navy); color: #fff; font-weight: 700; font-size: 13.5px; border-color: rgba(255, 255, 255, .12); position: sticky; top: 0; }
table.me-sched tbody th { background: var(--bg-soft); text-align: left; font-weight: 700; color: var(--ink); white-space: nowrap; }
table.me-sched tbody th small { display: block; font-weight: 600; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
table.me-sched .me-o { color: var(--blue-ink); font-weight: 800; }
table.me-sched .me-off { color: #c0392b; font-weight: 700; font-size: 12.5px; }
table.me-sched .me-alt { color: var(--gold); font-weight: 700; font-size: 12px; }
table.me-sched tr:last-child th, table.me-sched tr:last-child td { border-bottom: 0; }
table.me-sched th:last-child, table.me-sched td:last-child { border-right: 0; }

.me-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; font-size: 13px; color: var(--muted); }
.me-legend span { display: inline-flex; align-items: center; gap: 6px; }
.me-legend b { font-weight: 800; }

/* ==========================================================================
   HOURS + LOCATION
   ========================================================================== */
.me-hours-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.me-hours { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.me-hours-row { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--line-2); }
.me-hours-row:last-child { border-bottom: 0; }
.me-hours-row.is-off { background: var(--bg-soft); }
.me-hours-row .d { font-weight: 700; color: var(--ink); font-size: 15.5px; }
.me-hours-row .t { font-weight: 700; color: var(--navy); font-size: 15.5px; }
.me-hours-row.is-off .t { color: var(--muted); }
.me-hours-foot { padding: 16px 24px; background: var(--navy); color: rgba(255, 255, 255, .85); font-size: 13.5px; display: flex; gap: 8px; align-items: center; }
.me-hours-foot svg { width: 16px; height: 16px; color: var(--gold-soft); }

.me-contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 32px); box-shadow: var(--shadow-sm); }
.me-contact-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.me-contact-item:first-child { padding-top: 0; }
.me-contact-item:last-child { border-bottom: 0; padding-bottom: 0; }
.me-contact-item .me-ci-ico { flex: none; width: 42px; height: 42px; border-radius: 11px; background: var(--sky); color: var(--blue-ink); display: grid; place-items: center; }
.me-contact-item .me-ci-ico svg { width: 20px; height: 20px; }
.me-contact-item .lb { font-size: 12.5px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.me-contact-item .vl { font-size: 16px; font-weight: 700; color: var(--ink); margin-top: 2px; }
.me-contact-item .vl a:hover { color: var(--blue-ink); }
.me-map { margin-top: 22px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.me-map iframe { display: block; width: 100%; height: 320px; border: 0; }

/* ==========================================================================
   NOTICE
   ========================================================================== */
.me-notice-list { border-top: 2px solid var(--navy); }
.me-notice-item { display: flex; align-items: center; gap: 20px; padding: 22px 8px; border-bottom: 1px solid var(--line); transition: background .2s; }
.me-notice-item:hover { background: var(--bg-soft); }
.me-notice-item .no { font-size: 14px; font-weight: 700; color: var(--muted); width: 34px; flex: none; text-align: center; }
.me-notice-item .bd { flex: 1; }
.me-notice-item .tag { display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--blue-ink); background: var(--sky); padding: 3px 9px; border-radius: 6px; margin-bottom: 6px; }
.me-notice-item .tag.is-event { color: var(--gold); background: #fbf3e3; }
.me-notice-item h3 { font-size: 16.5px; }
.me-notice-item .dt { font-size: 13px; color: var(--muted); white-space: nowrap; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.me-cta { position: relative; overflow: hidden; background: var(--navy); color: #fff; text-align: center; }
.me-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 120% at 50% -10%, rgba(47, 115, 196, .5), transparent 60%); }
.me-cta .me-wrap { position: relative; z-index: 2; }
.me-cta h2 { color: #fff; font-size: clamp(24px, 3.6vw, 38px); }
.me-cta p { margin-top: 16px; color: rgba(255, 255, 255, .78); font-size: 17px; }
.me-cta-actions { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.me-cta-tel { margin-top: 26px; font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -0.02em; }
.me-cta-tel a { color: #fff; } .me-cta-tel a:hover { color: var(--gold-soft); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.me-footer { background: #0a1d38; color: rgba(255, 255, 255, .62); padding: clamp(48px, 6vw, 72px) 0 34px; font-size: 14px; }
.me-footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.me-footer .me-logo { color: #fff; margin-bottom: 18px; }
.me-footer-about { line-height: 1.9; max-width: 340px; }
.me-footer h4 { color: #fff; font-size: 14px; letter-spacing: .04em; margin-bottom: 16px; }
.me-footer-links a { display: block; padding: 5px 0; color: rgba(255, 255, 255, .62); transition: color .2s; }
.me-footer-links a:hover { color: #fff; }
.me-footer-contact li { padding: 5px 0; line-height: 1.7; }
.me-footer-contact b { color: #fff; font-weight: 700; }
.me-footer-bottom { padding-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-size: 12.5px; color: rgba(255, 255, 255, .45); }
.me-footer-bottom .me-draft { color: var(--gold-soft); border: 1px solid rgba(216, 194, 152, .3); padding: 4px 12px; border-radius: 999px; font-size: 12px; }

/* ==========================================================================
   FLOATING CONSULT BAR (mobile)
   ========================================================================== */
.me-fab { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: none; gap: 1px; background: var(--line); box-shadow: 0 -8px 24px -12px rgba(14, 42, 78, .3); padding-bottom: env(safe-area-inset-bottom); }
.me-fab a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 11px 0; background: #fff; font-size: 12px; font-weight: 700; color: var(--ink); }
.me-fab a.is-primary { background: var(--navy); color: #fff; }
.me-fab a svg { width: 20px; height: 20px; }

/* ==========================================================================
   POPUPS
   ========================================================================== */
.me-popups { position: fixed; inset: 0; z-index: 90; display: none; align-items: flex-start; justify-content: center; padding: clamp(20px, 8vh, 90px) 16px 16px; pointer-events: none; }
.me-popups.is-on { display: flex; }
.me-popup-scrim { position: fixed; inset: 0; background: rgba(8, 18, 34, .5); opacity: 0; transition: opacity .3s; }
.me-popups.is-on .me-popup-scrim { opacity: 1; }
.me-popup-stack { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; align-items: flex-start; pointer-events: none; }
.me-popup { width: 340px; max-width: 88vw; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); pointer-events: auto; transform: translateY(16px) scale(.98); opacity: 0; transition: transform .4s var(--ease), opacity .4s; }
.me-popups.is-on .me-popup { transform: none; opacity: 1; }
.me-popups.is-on .me-popup:nth-child(2) { transition-delay: .08s; }
.me-popup-head { padding: 26px 26px 20px; background: linear-gradient(150deg, var(--navy), var(--navy-2)); color: #fff; }
.me-popup-head .k { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--gold-soft); text-transform: uppercase; }
.me-popup-head h3 { color: #fff; font-size: 21px; margin-top: 8px; line-height: 1.35; }
.me-popup-body { padding: 22px 26px; }
.me-popup-body p { font-size: 14.5px; color: var(--body); line-height: 1.8; }
.me-popup-body ul { margin-top: 12px; display: grid; gap: 8px; }
.me-popup-body ul li { display: flex; gap: 9px; font-size: 14px; color: var(--ink); }
.me-popup-body ul li svg { flex: none; width: 17px; height: 17px; color: var(--blue-ink); margin-top: 3px; }
.me-popup-foot { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-top: 1px solid var(--line-2); }
.me-popup-foot label { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); cursor: pointer; }
.me-popup-foot button { border: 0; background: transparent; font-size: 13.5px; font-weight: 700; color: var(--ink); padding: 6px 10px; }

/* ==========================================================================
   REVEAL
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--rd, 0ms); }
[data-reveal].me-in { opacity: 1; transform: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .me-nav, .me-header-tel { display: none; }
  .me-burger { display: block; }
  .me-intro-grid, .me-hours-grid { grid-template-columns: 1fr; }
  .me-cards { grid-template-columns: repeat(2, 1fr); }
  .me-card--feature { grid-column: span 2; grid-template-columns: 1fr; }
  .me-docs { grid-template-columns: 1fr; }
  .me-footer-top { grid-template-columns: 1fr 1fr; }
  .me-footer-about { grid-column: span 2; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .me-cards { grid-template-columns: 1fr; }
  .me-card--feature { grid-column: span 1; }
  .me-stats { grid-template-columns: repeat(2, 1fr); }
  .me-doc { grid-template-columns: 92px 1fr; gap: 16px; padding: 18px; }
  .me-doc-photo { width: 92px; height: 112px; }
  .me-doc-photo .me-doc-initial { font-size: 30px; }
  .me-fab { display: flex; }
  body { padding-bottom: 62px; }
  .me-footer-top { grid-template-columns: 1fr; }
  .me-footer-about { grid-column: span 1; }
  .me-hero-strip .me-wrap { gap: 16px 28px; }
  .me-cta-actions .me-btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  [data-reveal] { transition: none; opacity: 1; transform: none; }
  .me-ch { opacity: 1; transform: none; animation: none; }
  html { scroll-behavior: auto; }
}
