/* =============================================
   경희정재현한의원 — Design System & Styles
   helloclinic.co.kr 감성 기반
   ============================================= */

/* --- Google Fonts --- */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css');

/* --- Design Tokens --- */
:root {
    /* Colors */
    --color-bg: #FAFAF8;
    --color-surface: #FFFFFF;
    --color-text-primary: #1A202C;
    --color-text-body: #4A5260;
    --color-text-muted: #8C919A;
    --color-accent: #5C1D29;
    --color-accent-light: #F8E8EC;
    --color-accent-dark: #3F131B;
    --color-border: rgba(0, 0, 0, 0.06);
    --color-kakao: #FEE500;
    --color-naver: #03C75A;

    /* Typography */
    --font-heading: 'Noto Serif KR', 'Georgia', serif;
    --font-body: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --section-gap: 180px;
    --container-max: 1200px;
    --container-padding: 24px;

    /* Radius */
    --radius-card: 24px;
    --radius-btn: 999px;
    --radius-img: 20px;

    /* Shadow */
    --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 12px 48px rgba(0, 0, 0, 0.10);
    --shadow-nav: 0 1px 24px rgba(0, 0, 0, 0.06);

    /* Transitions */
    --transition-base: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-body);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-dark));
    z-index: 1100;
    transition: width 0.1s linear;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text-primary);
    line-height: 1.35;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-base);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Container --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* --- Section --- */
.section {
    padding: var(--section-gap) 0;
}

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.text-accent {
    color: var(--color-accent);
    font-weight: 600;
}

.section-subtitle {
    font-size: 17px;
    color: var(--color-text-muted);
    max-width: 480px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 36px;
    border-radius: var(--radius-btn);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(92, 29, 41, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--color-text-primary);
    border: 1.5px solid var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-2px);
}

.btn-phone {
    background: var(--color-text-primary);
    color: #fff;
}

.btn-phone:hover {
    background: #2D3748;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 32, 44, 0.25);
}

.btn-kakao {
    background: var(--color-kakao);
    color: #3C1E1E;
}

.btn-kakao:hover {
    background: #F5DA00;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(254, 229, 0, 0.3);
}

.btn-naver {
    background: var(--color-naver);
    color: #fff;
}

.btn-naver:hover {
    background: #02B350;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(3, 199, 90, 0.3);
}

/* ===========================
   Navigation
   =========================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-base);
}

.nav.scrolled {
    padding: 12px 0;
    background: rgba(250, 250, 248, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-nav);
}

.nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-primary);
}

.nav-logo-img {
    height: 28px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-body);
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--color-text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--color-accent);
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}

.nav-link--cta {
    background: var(--color-accent);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: var(--radius-btn);
}

.nav-link--cta::after {
    display: none;
}

.nav-link--cta:hover {
    background: var(--color-accent-dark);
    transform: translateY(-1px);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    transition: all var(--transition-base);
    border-radius: 2px;
}

.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(250, 250, 248, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 500;
    color: var(--color-text-primary);
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-base);
}

.mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active .mobile-link:nth-child(1) {
    transition-delay: 0.05s;
}

.mobile-menu.active .mobile-link:nth-child(2) {
    transition-delay: 0.10s;
}

.mobile-menu.active .mobile-link:nth-child(3) {
    transition-delay: 0.15s;
}

.mobile-menu.active .mobile-link:nth-child(4) {
    transition-delay: 0.20s;
}

.mobile-menu.active .mobile-link:nth-child(5) {
    transition-delay: 0.25s;
}

.mobile-menu.active .mobile-link:nth-child(6) {
    transition-delay: 0.30s;
}

.mobile-menu.active .mobile-link:nth-child(7) {
    transition-delay: 0.35s;
}

.mobile-link--cta {
    background: var(--color-accent);
    color: #fff !important;
    padding: 14px 40px;
    border-radius: var(--radius-btn);
    font-size: 18px;
    font-family: var(--font-body);
    margin-top: 16px;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-sub {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(36px, 5.5vw, 56px);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 28px;
    letter-spacing: -1px;
}

.hero-title em {
    font-style: normal;
    color: var(--color-accent);
}

.hero-desc {
    font-size: 17px;
    color: var(--color-text-muted);
    margin-bottom: 44px;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    max-width: 520px;
    border-radius: var(--radius-card);
    margin-left: auto;
}

/* ===========================
   About Section
   =========================== */
.about {
    background: var(--color-bg);
    overflow-x: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.about-text .section-desc {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--color-text-body);
}

.about-stats {
    display: flex;
    flex-wrap: wrap;
    /* 세 블록이 조화롭게 위치하도록 더 조밀한 간격 유지 */
    gap: 32px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
    justify-content: flex-start;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* 첫 번째 블록 (10+): 본문 시작점과 완벽하게 일치하도록 왼쪽 정렬 */
.stat:nth-child(1) {
    width: 110px; 
    align-items: flex-start;
    text-align: left;
}

/* 두 번째 블록 (80,000): 중앙 기준점 (가운데 정렬 애니메이션 떨림 방지) */
.stat:nth-child(2) {
    width: 145px;
}

/* 세 번째 블록 (1:1): 너비를 조율하여 조화롭고 깨지지 않는 대칭 균형 확보 */
.stat:nth-child(3) {
    width: 140px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-top: 8px;
}

/* ===========================
   Treatments Section
   =========================== */
.treatments {
    background: var(--color-surface);
}

.treatment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.treatment-card {
    background: var(--color-bg);
    padding: 48px 36px;
    border-radius: var(--radius-card);
    transition: all var(--transition-base);
    cursor: default;
}

.treatment-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    background: var(--color-surface);
    border: 1px solid transparent;
    background-image: linear-gradient(var(--color-surface), var(--color-surface)), linear-gradient(135deg, var(--color-accent-light), var(--color-accent), var(--color-accent-light));
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.card-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 28px;
    color: var(--color-accent);
}

.card-icon svg,
.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-title {
    font-size: 20px;
    margin-bottom: 14px;
    font-weight: 600;
}

.card-desc {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.75;
}

/* ===========================
   Column / Blog Section
   =========================== */
.column {
    background: var(--color-bg);
}

.column-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 0;
}

.column-tab {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-muted);
    background: none;
    border: none;
    padding: 10px 20px 14px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color var(--transition-base), border-color var(--transition-base);
    white-space: nowrap;
}

.column-tab:hover {
    color: var(--color-accent);
}

.column-tab--active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.column-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.column-card {
    background: var(--color-surface);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.column-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    border: 1px solid transparent;
    background-image: linear-gradient(var(--color-surface), var(--color-surface)),
        linear-gradient(135deg, var(--color-accent-light), var(--color-accent), var(--color-accent-light));
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.column-card__thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--color-accent-light);
    flex-shrink: 0;
}

.column-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-base);
}

.column-card:hover .column-card__thumb img {
    transform: scale(1.05);
}

.column-card__body {
    padding: 28px 28px 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.column-card__date {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--color-accent);
    margin-bottom: 10px;
}

.column-card__title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.45;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.column-card__excerpt {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.75;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.column-card--skeleton {
    pointer-events: none;
}

@keyframes skeleton-shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

.skeleton-box,
.skeleton-line {
    background: linear-gradient(
        90deg,
        var(--color-accent-light) 25%,
        #F0E0E4 50%,
        var(--color-accent-light) 75%
    );
    background-size: 800px 100%;
    animation: skeleton-shimmer 1.6s ease-in-out infinite;
    border-radius: 6px;
}

.skeleton-line {
    height: 14px;
    margin-bottom: 10px;
}

.skeleton-line--short { width: 40%; }
.skeleton-line--full  { width: 100%; }
.skeleton-line--mid   { width: 70%; }

.column-error {
    text-align: center;
    padding: 48px 24px;
    color: var(--color-text-muted);
    font-size: 15px;
}

.column-cta {
    text-align: center;
    margin-top: 56px;
}

/* ===========================
   Doctor Section
   =========================== */
.doctor {
    background: var(--color-bg);
}

.doctor-grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 80px;
    align-items: center;
}

.doctor-image img {
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.doctor-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-text-primary);
}

.doctor-name span {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text-muted);
    margin-left: 8px;
}

.doctor-text .section-desc {
    font-size: 17px;
    font-style: italic;
    color: var(--color-text-body);
    margin-bottom: 32px;
    padding-left: 20px;
    border-left: 3px solid var(--color-accent-light);
    line-height: 1.9;
}

.doctor-credentials {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.doctor-credentials li {
    font-size: 15px;
    color: var(--color-text-body);
    padding-left: 24px;
    position: relative;
}

.doctor-credentials li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent-light);
    border: 2px solid var(--color-accent);
}

/* ===========================
   Info Section
   =========================== */
.info {
    background: var(--color-surface);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.info-card {
    background: var(--color-bg);
    padding: 52px 44px;
    border-radius: var(--radius-card);
}

.info-card-title {
    font-size: 22px;
    margin-bottom: 32px;
    font-weight: 600;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
}

.hours-table tr {
    border-bottom: 1px solid var(--color-border);
}

.hours-table tr:last-child {
    border-bottom: none;
}

.hours-table td {
    padding: 16px 0;
    font-size: 15px;
}

.hours-table .day {
    font-weight: 500;
    color: var(--color-text-primary);
    width: 55%;
}

.hours-table .time {
    text-align: right;
    color: var(--color-text-body);
}

.hours-table .closed {
    color: var(--color-text-muted);
}

.sub-row td {
    padding: 0 0 16px;
    border-bottom: none;
}

.sub-row .sub-time {
    text-align: right;
    font-size: 13px;
    color: var(--color-text-muted);
    white-space: nowrap;
    word-break: keep-all;
}

/* Fix: sub-row should not have its own bottom border from tr */
.hours-table .sub-row {
    border-bottom: 1px solid var(--color-border);
}

.contact-desc {
    font-size: 15px;
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-buttons .btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 600;
}

/* ===========================
   Location Section
   =========================== */
.location {
    background: var(--color-bg);
}

.location-card {
    background: var(--color-surface);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

/* --- Map Container --- */
.map-container {
    width: 100%;
    height: 360px;
    background: linear-gradient(135deg, var(--color-accent-light), #E8EDE8);
    position: relative;
}

.map-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
}

.map-fallback svg {
    margin-bottom: 16px;
    opacity: 0.6;
}

.map-fallback p {
    font-size: 16px;
    color: var(--color-text-body);
    line-height: 1.7;
    text-align: center;
}

.location-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding: 48px;
}

.location-item h4 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 12px;
    font-family: var(--font-body);
}

.location-item p {
    font-size: 15px;
    color: var(--color-text-body);
}

/* ===========================
   Footer
   =========================== */
.footer {
    padding: 60px 0 40px;
    border-top: 1px solid var(--color-border);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 8px;
}

.footer-logo-img {
    height: 32px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.footer-address {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-top: 6px;
}

.footer-info p {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.footer-copy p {
    font-size: 12px;
    color: var(--color-text-muted);
    opacity: 0.7;
}

/* ===========================
   Animations
   =========================== */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   Floating CTA Button
   =========================== */
.floating-cta {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--color-kakao);
    color: #3C1E1E;
    padding: 16px 24px;
    border-radius: var(--radius-btn);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-base);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.floating-cta.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    animation: pulse-ring 2.5s ease-out infinite;
}

.floating-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(254, 229, 0, 0.4);
}

.floating-cta svg {
    flex-shrink: 0;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(254, 229, 0, 0.4);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(254, 229, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(254, 229, 0, 0);
    }
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 1024px) {
    :root {
        --section-gap: 120px;
    }

    .hero-content {
        gap: 48px;
    }

    .about-grid,
    .doctor-grid {
        gap: 48px;
    }

    .treatment-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .column-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-gap: 80px;
        --container-padding: 20px;
    }

    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .hero {
        min-height: unset;
        padding: 100px 0 60px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-desc br {
        display: none;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-image img {
        max-width: 300px;
        margin: 0 auto;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 24px;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .stat,
    .stat:nth-child(1),
    .stat:nth-child(2),
    .stat:nth-child(3) {
        flex: 1 0 0;
        align-items: center;
        text-align: center;
        min-width: 0;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        white-space: normal;
        word-break: keep-all;
    }

    .treatment-grid {
        grid-template-columns: 1fr;
    }

    .treatment-card {
        padding: 36px 28px;
    }

    .column-grid {
        grid-template-columns: 1fr;
    }

    .column-card__body {
        padding: 22px 22px 26px;
    }

    .column-tabs {
        flex-wrap: wrap;
    }

    .column-tab {
        font-size: 14px;
        padding: 8px 14px 12px;
    }

    .doctor-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .doctor-image img {
        max-width: 260px;
        margin: 0 auto;
    }

    .doctor-text .section-desc {
        padding-left: 16px;
        text-align: left;
    }

    .doctor-credentials {
        text-align: left;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-card {
        padding: 36px 28px;
    }

    .location-details {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 32px 28px;
    }

    .section-header {
        text-align: left;
        margin-bottom: 48px;
    }

    .section-subtitle {
        margin-left: 0;
        text-align: left;
    }

    .floating-cta {
        bottom: 20px;
        right: 20px;
        padding: 14px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }

    .about-stats {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        gap: 24px;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .stat,
    .stat:nth-child(1),
    .stat:nth-child(2),
    .stat:nth-child(3) {
        flex: 1 0 0;
        align-items: center;
        text-align: center;
        min-width: 0;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-label {
        font-size: 12px;
        white-space: normal;
        word-break: keep-all;
    }

    .contact-buttons .btn {
        font-size: 14px;
        padding: 14px 20px;
    }
}

/* Equipment Section */
.equipment {
    background: var(--color-surface);
}

/* Ultrasound Section */
.ultrasound {
    background: var(--color-bg);
    overflow: hidden;
}

.ultrasound .container {
    max-width: 1200px;
}

.ultrasound-grid {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.carousel-side {
    flex: 1;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.info-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.carousel-container {
    position: relative;
    height: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    overflow: hidden;
}

.carousel-item {
    position: absolute;
    width: 240px;
    height: 240px;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}

.carousel-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.15));
    border-radius: 12px;
}

.carousel-item.active {
    transform: translateX(0) scale(1.15);
    opacity: 1;
    z-index: 10;
    pointer-events: auto;
}

.carousel-item.prev {
    transform: translateX(-55%) scale(0.8);
    opacity: 0.5;
    z-index: 5;
    pointer-events: auto;
}

.carousel-item.next {
    transform: translateX(55%) scale(0.8);
    opacity: 0.5;
    z-index: 5;
    pointer-events: auto;
}

.carousel-item.prev-hidden {
    transform: translateX(-80%) scale(0.6);
    opacity: 0;
    z-index: 1;
}

.carousel-item.next-hidden {
    transform: translateX(80%) scale(0.6);
    opacity: 0;
    z-index: 1;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.carousel-dots {
    display: flex;
    gap: 0.6rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(92, 29, 41, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--color-accent);
    transform: scale(1.4);
}

.nav-prev,
.nav-next {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    touch-action: manipulation;
}

@media (hover: hover) {
    .nav-prev:hover,
    .nav-next:hover {
        color: var(--color-accent);
    }
}

.badge-title {
    font-size: 1.6rem;
    color: var(--color-text-primary);
    margin-bottom: 1.2rem;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.badge-desc {
    min-height: 140px;
    line-height: 1.8;
}

@media (max-width: 900px) {
    .ultrasound-grid {
        flex-direction: column;
        gap: 2rem;
    }

    .carousel-item.prev {
        transform: translateX(-45%) scale(0.75);
    }

    .carousel-item.next {
        transform: translateX(45%) scale(0.75);
    }

    .badge-desc {
        min-height: auto;
    }
}
/* ===========================
   Advanced Mobile Breakpoints (Step 2)
   =========================== */

/* Large Mobile (iPhone Pro Max, etc.) */
@media (max-width: 430px) {
    .hero-title {
        font-size: 30px;
    }

    .section-title {
        font-size: 28px;
    }

    .treatment-card,
    .info-card {
        padding: 32px 24px;
    }

    .column-card__body {
        padding: 18px 18px 22px;
    }
}

/* Standard Mobile (iPhone 13, 14, 15, etc.) */
@media (max-width: 390px) {
    .hero-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 26px;
    }

    .doctor-credentials li {
        font-size: 14px;
        word-break: keep-all;
    }

    .treatment-card,
    .info-card {
        padding: 28px 20px;
    }
}

/* Small Mobile (iPhone SE, Galaxy S small, etc.) */
@media (max-width: 360px) {
    :root {
        --container-padding: 16px;
    }

    body {
        font-size: 15px;
    }

    .hero-title {
        font-size: 26px;
    }

    .section-title {
        font-size: 24px;
    }

    .stat-number {
        font-size: 20px;
    }

    .stat-label {
        font-size: 11px;
    }

    .hours-table td {
        font-size: 14px;
        padding: 10px 0;
    }

    .treatment-card,
    .info-card {
        padding: 24px 16px;
    }
}
