/* =============================================
   가꿈 필라테스 — style.css
   Mobile-first responsive design
============================================= */

:root {
    --gold:       #C8A86C;
    --gold-light: #E5D0A0;
    --gold-dark:  #A8885C;
    --gold-bg:    rgba(200, 168, 108, 0.08);
    --dark:       #1A1A1A;
    --text:       #3D3D3D;
    --gray:       #888888;
    --light:      #F8F6F1;
    --white:      #FFFFFF;
    --nav-h:      68px;
    --radius:     12px;
    --section-py: clamp(60px, 8vw, 100px);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'Noto Sans KR', sans-serif; color: var(--text); background: var(--white); line-height: 1.7; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: opacity .25s; }
ul, ol { list-style: none; }
address { font-style: normal; }
button { cursor: pointer; background: none; border: none; }

/* ── Utilities ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 48px);
}
.text-center { text-align: center; }

.section-tag {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 13px;
    letter-spacing: 4px;
    font-weight: 500;
    font-style: italic;
    color: var(--gold);
    margin-bottom: 10px;
}

h2 {
    font-family: 'Gowun Batang', serif;
    font-size: clamp(26px, 3.5vw, 42px);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 14px;
}

.section-desc {
    color: var(--gray);
    font-size: 15px;
    margin-bottom: 48px;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all .25s;
    white-space: nowrap;
}
.btn-primary  { background: var(--gold); color: #fff; }
.btn-primary:hover  { background: var(--gold-dark); }
.btn-outline  { background: transparent; color: var(--dark); border: 1.5px solid var(--dark); }
.btn-outline:hover  { border-color: var(--gold); color: var(--gold); }
.btn-naver   { background: #03C75A; color: #fff; }
.btn-naver:hover   { opacity: .85; }
.btn-kakao   { background: #FEE500; color: #1A1A1A; }
.btn-kakao:hover   { opacity: .85; }

/* ── Fade-in animations ── */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .65s ease, transform .65s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   HEADER
============================================= */
#header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 900;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(200,168,108,.15);
    transition: box-shadow .3s;
}
#header.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,.07); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-h);
}

.logo img { height: 46px; width: auto; }

#nav ul {
    display: flex;
    gap: 28px;
}
#nav ul li a {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
    position: relative;
    padding-bottom: 2px;
}
#nav ul li a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 1.5px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform .3s;
}
#nav ul li a:hover { color: var(--gold); }
#nav ul li a:hover::after { transform: scaleX(1); }
#nav ul li a.nav-cta {
    background: var(--gold);
    color: #fff;
    padding: 8px 18px;
    border-radius: 4px;
}
#nav ul li a.nav-cta::after { display: none; }
#nav ul li a.nav-cta:hover { background: var(--gold-dark); color: #fff; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: all .3s;
    transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO
============================================= */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: calc(var(--nav-h) + 40px) 24px 60px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(150deg, #FDFBF7 0%, #F6EDD8 55%, #EDE0C2 100%);
    z-index: 0;
}
.hero-bg::before,
.hero-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(200,168,108,.18);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}
.hero-bg::before { width: min(580px, 80vw); height: min(580px, 80vw); }
.hero-bg::after  { width: min(820px, 110vw); height: min(820px, 110vw); }

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    font-family: 'Cormorant Garamond', serif;
    font-size: 14px;
    letter-spacing: 5px;
    color: var(--gold);
    font-weight: 500;
    font-style: italic;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-family: 'Gowun Batang', serif;
    font-size: clamp(36px, 6vw, 68px);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.25;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: clamp(14px, 2vw, 17px);
    color: var(--gray);
    line-height: 1.9;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =============================================
   PHILOSOPHY
============================================= */
#philosophy {
    padding: var(--section-py) 0;
    background: var(--white);
}

.philosophy-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
    margin-top: 40px;
}

.philosophy-text h2 { margin-bottom: 24px; }

.philosophy-main {
    font-family: 'Gowun Batang', serif;
    font-size: clamp(16px, 2vw, 20px);
    color: var(--dark);
    line-height: 2;
    margin-bottom: 20px;
}

.philosophy-sub {
    font-size: 15px;
    color: var(--gray);
    line-height: 2;
    margin-bottom: 36px;
}

.director-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    background: var(--light);
    border-left: 3px solid var(--gold);
    border-radius: 0 8px 8px 0;
}

.director-photo-sm {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gold-light);
}
.director-photo-sm img { width: 100%; height: 100%; object-fit: cover; }
.director-photo-sm.placeholder { display: flex; align-items: center; justify-content: center; }

.director-info strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}
.director-info p { font-size: 13px; color: var(--gray); line-height: 1.7; }

.photo-frame {
    aspect-ratio: 3/4;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--light);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--gold-light);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-empty-text {
    position: absolute;
    font-size: 14px;
    color: var(--gray);
}
.photo-frame:not(.empty) .photo-empty-text { display: none; }

/* =============================================
   CLASSES
============================================= */
#classes {
    padding: var(--section-py) 0;
    background: var(--light);
}

.classes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.class-card {
    background: var(--white);
    padding: clamp(24px, 3vw, 40px) 28px;
    border-radius: var(--radius);
    text-align: center;
    transition: transform .3s, box-shadow .3s;
    position: relative;
}
.class-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(200,168,108,.14);
}
.class-featured {
    border: 2px solid var(--gold);
}

.class-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 38px;
    font-style: italic;
    color: var(--gold-light);
    margin-bottom: 12px;
    line-height: 1;
}
.class-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}
.class-card p { font-size: 13px; color: var(--gray); line-height: 1.8; }
.class-badge {
    position: absolute;
    top: 16px; right: 16px;
    font-size: 10px;
    background: var(--gold);
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: .5px;
}

/* =============================================
   BRANCH
============================================= */
.branch-section {
    padding: var(--section-py) 0;
    background: var(--white);
}
.branch-alt { background: var(--light); }

.branch-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
    margin-top: 40px;
}

.branch-section h2 { margin-bottom: 0; }

.branch-detail { margin-bottom: 28px; }
.detail-row {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(200,168,108,.15);
    font-size: 14px;
}
.detail-row:last-child { border-bottom: none; }
.detail-row dt {
    color: var(--gold);
    font-weight: 600;
    min-width: 70px;
    flex-shrink: 0;
}
.detail-row dd a { color: var(--dark); }
.detail-row dd a:hover { color: var(--gold); }

.branch-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.instructors {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid rgba(200,168,108,.2);
}
.instructors h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-align: center;
}

/* ── Instructor Slider ── */
.inst-slider {
    position: relative;
    overflow: hidden;
    margin-top: 4px;
    padding-bottom: 44px;
}

.inst-track {
    display: flex;
    gap: 16px;
    transition: transform .4s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

.inst-card {
    flex: 0 0 calc(25% - 12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.inst-photo {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 10px;
    overflow: hidden;
    background: var(--gold-bg);
    border: 2px solid var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.inst-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}
.inst-initials {
    position: absolute;
    font-size: 13px;
    color: var(--gold-dark);
    font-weight: 500;
    display: none;
}
.inst-photo.no-photo img { display: none; }
.inst-photo.no-photo .inst-initials { display: block; }

.inst-card strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
}
.inst-card .inst-role {
    font-size: 11px;
    color: var(--gold-dark);
    background: var(--gold-bg);
    padding: 2px 10px;
    border-radius: 20px;
}

/* arrows */
.inst-prev, .inst-next {
    position: absolute;
    bottom: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--white);
    border: 1.5px solid var(--gold-light);
    color: var(--gold-dark);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .25s;
    cursor: pointer;
    z-index: 2;
}
.inst-prev { left: calc(50% - 48px); }
.inst-next { left: calc(50% + 12px); }
.inst-prev:hover, .inst-next:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
}
.inst-prev:disabled, .inst-next:disabled {
    opacity: 0.3;
    cursor: default;
}

/* dots */
.inst-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}
.inst-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold-light);
    cursor: pointer;
    transition: background .25s, transform .25s;
    border: none;
    padding: 0;
}
.inst-dot.active {
    background: var(--gold);
    transform: scale(1.3);
}

.branch-map iframe {
    border-radius: var(--radius);
    width: 100%;
    display: block;
}

/* =============================================
   REVIEWS
============================================= */
#reviews {
    padding: var(--section-py) 0;
    background: var(--light);
}

/* ── Review Slider ── */
.review-slider {
    position: relative;
    margin-top: 48px;
    overflow: hidden;
    padding-bottom: 52px;
}

.review-track {
    display: flex;
    gap: 20px;
    transition: transform .45s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

.review-slide {
    flex: 0 0 calc(33.333% - 14px);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
}

.review-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.review-prev, .review-next {
    position: absolute;
    bottom: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: 1.5px solid var(--gold-light);
    color: var(--gold-dark);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .25s;
    cursor: pointer;
    z-index: 2;
}
.review-prev { left: calc(50% - 52px); }
.review-next { left: calc(50% + 12px); }
.review-prev:hover, .review-next:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
}
.review-prev:disabled, .review-next:disabled { opacity: .3; cursor: default; }

.review-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}
.review-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold-light);
    cursor: pointer;
    transition: background .25s, transform .25s;
    border: none;
    padding: 0;
}
.review-dot.active {
    background: var(--gold);
    transform: scale(1.3);
}

.empty-msg {
    text-align: center;
    color: var(--gray);
    padding: 60px 0;
    font-size: 15px;
}

/* ── Before & After Slider ── */
#beforeafter {
    padding: var(--section-py) 0;
    background: var(--white);
}
.ba-slider {
    position: relative;
    margin-top: 48px;
    padding: 0 52px 40px;
}
.ba-track-wrap {
    overflow: hidden;
}
.ba-track {
    display: flex;
    gap: 20px;
    transition: transform .45s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}
.ba-slide {
    flex: 0 0 calc(50% - 10px);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
.ba-slide img {
    width: 100%;
    height: auto;
    display: block;
}
.ba-prev, .ba-next {
    position: absolute;
    top: 50%;
    transform: translateY(-calc(50% + 20px));
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: 1.5px solid var(--gold-light);
    color: var(--gold-dark);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .25s;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.ba-prev { left: 4px; }
.ba-next { right: 4px; }
.ba-prev:hover, .ba-next:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
}
.ba-prev:disabled, .ba-next:disabled { opacity: .3; cursor: default; }
.ba-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}
.ba-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold-light);
    cursor: pointer;
    transition: background .25s, transform .25s;
    border: none;
    padding: 0;
}
.ba-dot.active {
    background: var(--gold);
    transform: scale(1.3);
}

/* =============================================
   GALLERY
============================================= */
#gallery {
    padding: var(--section-py) 0;
    background: var(--white);
}

.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}
.gallery-tab {
    padding: 8px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray);
    border: 1.5px solid rgba(200,168,108,.3);
    background: transparent;
    cursor: pointer;
    transition: all .25s;
}
.gallery-tab:hover { border-color: var(--gold); color: var(--gold); }
.gallery-tab.active { background: var(--gold); color: #fff; border-color: var(--gold); }

.gallery-item.hidden { display: none; }
.gallery-item.collapsed { display: none; }

.gallery-more-wrap {
    text-align: center;
    margin-top: 36px;
}
.gallery-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 36px;
    border: 1.5px solid var(--gold);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gold);
    background: transparent;
    cursor: pointer;
    transition: all .3s;
    letter-spacing: 1px;
}
.gallery-more-btn:hover {
    background: var(--gold);
    color: #fff;
}
.gallery-more-btn.expanded .btn-icon {
    transform: rotate(180deg);
}
.gallery-more-btn .btn-icon {
    transition: transform .3s;
    font-size: 16px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 240px;
    grid-auto-flow: row dense;
    gap: 12px;
    margin-top: 48px;
}

.gallery-empty {
    background: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 13px;
    border: 2px dashed var(--gold-light);
}

.gallery-item {
    padding: 0;
    display: block;
    border-radius: 8px;
    overflow: hidden;
}

/* 매거진 레이아웃 — JS로 .gallery-large 클래스 부여 */
.gallery-item.gallery-large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.lightbox-inner img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 8px;
    object-fit: contain;
}
#lightbox-caption {
    color: rgba(255,255,255,.8);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: .5px;
}
.lightbox-close {
    position: absolute;
    top: 20px; right: 24px;
    color: #fff;
    font-size: 24px;
    line-height: 1;
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 52px;
    line-height: 1;
    padding: 0 16px;
    opacity: 0.7;
    transition: opacity .2s;
    user-select: none;
}
.lightbox-nav:hover { opacity: 1; }
.lightbox-nav:disabled { opacity: 0.2; cursor: default; }
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }

/* =============================================
   CONTACT
============================================= */
#contact {
    padding: var(--section-py) 0;
    background: var(--dark);
}
#contact .section-tag { color: var(--gold-light); }
#contact h2 { color: var(--white); }
#contact .section-desc { color: rgba(255,255,255,.55); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 48px;
}

.contact-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(200,168,108,.25);
    border-radius: var(--radius);
    padding: clamp(28px, 4vw, 48px);
    text-align: center;
}
.contact-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 14px;
}
.contact-card p {
    font-size: 14px;
    color: rgba(255,255,255,.65);
    line-height: 1.8;
    margin-bottom: 6px;
}
.contact-card a { color: rgba(255,255,255,.85); }
.contact-card a:hover { color: var(--gold-light); }

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
    flex-wrap: wrap;
}

/* =============================================
   FOOTER
============================================= */
#footer {
    background: #111;
    padding: 52px 0 32px;
    text-align: center;
}

.footer-brand { margin-bottom: 24px; }
.footer-logo {
    height: 46px;
    margin: 0 auto 10px;
    opacity: .75;
    filter: brightness(1.5);
}
.footer-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 13px;
    letter-spacing: 4px;
    font-style: italic;
    color: var(--gold);
    opacity: .7;
}

.footer-info p {
    font-size: 12px;
    color: rgba(255,255,255,.35);
    margin-bottom: 6px;
    line-height: 1.8;
}
.footer-info a { color: rgba(255,255,255,.4); }
.footer-hours { margin-top: 4px; }

.footer-copy {
    font-size: 11px;
    color: rgba(255,255,255,.2);
    margin-top: 28px;
}

/* =============================================
   FLOATING BUTTONS (mobile)
============================================= */
.float-btns {
    position: fixed;
    bottom: 24px;
    right: 16px;
    z-index: 800;
    display: none;
    flex-direction: column;
    gap: 10px;
}

.float-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.float-kakao { background: #FEE500; color: #1A1A1A; }
.float-insta { background: #E1306C; color: #fff; }

/* =============================================
   RESPONSIVE — Tablet (≤ 1024px)
============================================= */
@media (max-width: 1024px) {
    .classes-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================
   RESPONSIVE — Mobile (≤ 768px)
============================================= */
@media (max-width: 768px) {
    /* Nav drawer */
    #nav {
        position: fixed;
        top: var(--nav-h);
        left: 0; right: 0;
        background: var(--white);
        padding: 0 24px 24px;
        transform: translateY(calc(-100% - var(--nav-h)));
        transition: transform .35s ease;
        box-shadow: 0 12px 32px rgba(0,0,0,.1);
        z-index: 800;
    }
    #nav.open { transform: translateY(0); }
    #nav ul { flex-direction: column; gap: 0; }
    #nav ul li a {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid var(--light);
        font-size: 15px;
    }
    #nav ul li a.nav-cta {
        margin-top: 12px;
        text-align: center;
        padding: 12px;
    }
    #nav ul li a::after { display: none; }

    .hamburger { display: flex; }

    /* Philosophy */
    .philosophy-wrap {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .philosophy-photo { order: -1; }
    .photo-frame { aspect-ratio: 1/1; }

    /* Branch */
    .branch-wrap { grid-template-columns: 1fr; }
    .branch-reverse .branch-map { order: -1; }

    /* Instructor slider — 3개씩 */
    .inst-card { flex: 0 0 calc(33.333% - 11px); }

    /* Reviews */
    .review-slide { flex: 0 0 calc(100% - 0px); }

    /* Before & After */
    .ba-slide { flex: 0 0 calc(100% - 0px); }

    /* Gallery */
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
    .gallery-item.gallery-large { grid-column: span 2; grid-row: span 1; }

    /* Contact */
    .contact-grid { grid-template-columns: 1fr; }

    /* Float buttons */
    .float-btns { display: flex; }
}

/* =============================================
   RESPONSIVE — Small Mobile (≤ 480px)
============================================= */
@media (max-width: 480px) {
    .classes-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
    .gallery-item.gallery-large { grid-column: span 2; grid-row: span 1; }
    /* Instructor slider — 2개씩 */
    .inst-card { flex: 0 0 calc(50% - 8px); }
    .branch-buttons, .hero-buttons { flex-direction: column; align-items: stretch; }
    .branch-buttons .btn, .hero-buttons .btn { text-align: center; justify-content: center; }
}
