/* AC Sport Village – หน้าแรก (Bootstrap 5) */
:root {
  --brand: #DE0102;
  --brand-dark: #B00001;
  --ink: #1d2733;
  --muted: #6b7684;
  --soft: #f6f4f1;
  --pool: #0f8fc4;
  --fit: #1f9d55;
  --bs-primary: var(--brand);
  --bs-primary-rgb: 222, 1, 2;
  --bs-body-font-family: "IBM Plex Sans Thai", system-ui, sans-serif;
  --bs-body-color: var(--ink);
}

body { font-family: var(--bs-body-font-family); color: var(--ink); background: #fff; overflow-x: clip; }
h1, h2, h3, h4, h5, .font-head { font-family: "Prompt", var(--bs-body-font-family); font-weight: 600; }

.btn-brand { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark); --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--brand-dark); --bs-btn-active-border-color: var(--brand-dark); }
.text-brand { color: var(--brand) !important; }
.bg-soft { background: var(--soft); }

/* Navbar */
.site-nav { transition: background .3s, box-shadow .3s, padding .3s; padding: 1rem 0; }
.site-nav .navbar-brand img { height: 52px; width: auto; transition: height .3s; }
.site-nav .nav-link { font-weight: 500; color: var(--ink); padding: .5rem .9rem !important; border-radius: 999px; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--brand); }
.site-nav.scrolled, .site-nav.menu-open { background: rgba(255,255,255,.96); backdrop-filter: blur(10px); box-shadow: 0 4px 24px rgba(0,0,0,.08); padding: .5rem 0; }
.site-nav.scrolled .navbar-brand img { height: 42px; }
@media (min-width: 992px) {
  .site-nav:not(.scrolled) { background: transparent; }
  .site-nav:not(.scrolled) .nav-link { color: #fff; }
  .site-nav:not(.scrolled) .nav-link:hover, .site-nav:not(.scrolled) .nav-link.active { color: #ffc2c2; }
  .site-nav:not(.scrolled) .navbar-brand img { background: #fff; border-radius: 12px; padding: 6px 12px; height: 58px; }
}
@media (max-width: 991.98px) {
  .site-nav { background: rgba(255,255,255,.96); box-shadow: 0 2px 12px rgba(0,0,0,.08); padding: .5rem 0; }
  .site-nav .navbar-brand img { height: 40px; }
}

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; color: #fff;
  background: #1d2733; padding: 120px 0 80px; overflow: hidden; }
/* พื้นหลังรูปอาคาร: จอใหญ่เบลอเล็กน้อย (ไฟล์ต้นฉบับกว้างแค่ 770px) */
.hero-bg { position: absolute; inset: 0; background: url("../images/banner/banner0.jpg") center 30%/cover no-repeat; }
@media (min-width: 992px) { .hero-bg { inset: -30px; filter: blur(8px); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(10,22,36,.9) 0%, rgba(10,22,36,.7) 50%, rgba(10,22,36,.45) 100%); }
.hero > .container, .hero .scroll-hint { z-index: 2; }
.hero-photo { position: relative; margin: 0; border-radius: 24px; overflow: hidden; border: 6px solid rgba(255,255,255,.9);
  box-shadow: 0 30px 60px rgba(0,0,0,.45); transform: rotate(1.5deg); transition: transform .4s; }
.hero-photo:hover { transform: rotate(0); }
.hero-photo img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: center 40%; }
.hero-photo figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,.92); color: var(--ink);
  font-weight: 600; font-size: .9rem; padding: .35rem .9rem; border-radius: 999px; }
.hero-photo figcaption i { color: var(--brand); }
.hero > .container { position: relative; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  padding: .35rem 1rem; border-radius: 999px; font-size: .9rem; backdrop-filter: blur(6px); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.15; margin: 1.2rem 0 1rem; }
.hero h1 span { color: #ff8a8a; }
.hero .lead { font-size: clamp(1rem, 1.6vw, 1.25rem); color: rgba(255,255,255,.85); max-width: 560px; }
.hero-stats { margin-top: 3rem; }
.hero-stats .stat { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px);
  border-radius: 16px; padding: 1rem 1.2rem; height: 100%; }
.hero-stats .stat strong { display: block; font-family: "Prompt"; font-size: 1.5rem; color: #fff; }
.hero-stats .stat small { color: rgba(255,255,255,.75); }
.scroll-hint { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: 1.6rem; animation: bob 2s infinite; }
@keyframes bob { 50% { transform: translate(-50%, 8px); } }

/* Sections */
section { scroll-margin-top: 70px; }
.section { padding: 96px 0; }
.section-title .kicker { color: var(--brand); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; }
.section-title h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin: .4rem 0 .8rem; }
.section-title p { color: var(--muted); max-width: 620px; }

/* Features */
.feature { background: #fff; border-radius: 20px; padding: 2rem 1.6rem; height: 100%; border: 1px solid #eee;
  transition: transform .25s, box-shadow .25s; }
.feature:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(29,39,51,.1); }
.feature .icon { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; font-size: 1.7rem;
  background: rgba(222, 1, 2,.1); color: var(--brand); margin-bottom: 1.2rem; }
.feature h3 { font-size: 1.2rem; }
.feature p { color: var(--muted); margin: 0; }

/* Facility blocks */
.facility { margin-bottom: 96px; }
.facility:last-child { margin-bottom: 0; }
.facility .media { position: relative; border-radius: 24px; overflow: hidden; box-shadow: 0 24px 50px rgba(29,39,51,.15); }
.facility .media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform .6s; }
.facility .media:hover img { transform: scale(1.05); }
.facility .thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.facility .thumbs a { border-radius: 14px; overflow: hidden; display: block; }
.facility .thumbs img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform .4s, opacity .3s; }
.facility .thumbs a:hover img { transform: scale(1.08); opacity: .9; }
.facility .tag { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; padding: .3rem .9rem; border-radius: 999px; font-size: .9rem; }
.tag-room { background: rgba(222, 1, 2,.12); color: var(--brand-dark); }
.tag-fit { background: rgba(31,157,85,.12); color: var(--fit); }
.tag-pool { background: rgba(15,143,196,.12); color: var(--pool); }
.facility h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 1rem 0; }
.facility .check { list-style: none; padding: 0; margin: 1.4rem 0 2rem; }
.facility .check li { display: flex; gap: .7rem; margin-bottom: .7rem; color: #3a4552; }
.facility .check i { color: var(--brand); font-size: 1.15rem; line-height: 1.4; }
.facility.fit .check i { color: var(--fit); }
.facility.pool .check i { color: var(--pool); }

/* Building carousel */
.building .carousel { border-radius: 24px; overflow: hidden; box-shadow: 0 24px 50px rgba(29,39,51,.15); }
.building .carousel img { aspect-ratio: 770/358; object-fit: cover; }

/* Location */
.map-wrap { border-radius: 24px; overflow: hidden; height: 100%; min-height: 360px; box-shadow: 0 24px 50px rgba(29,39,51,.12); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
.info-card { background: #fff; border-radius: 24px; padding: 2rem; height: 100%; box-shadow: 0 10px 30px rgba(29,39,51,.06); }
.info-row { display: flex; gap: 1rem; margin-bottom: 1.4rem; }
.info-row:last-child { margin-bottom: 0; }
.info-row .ico { flex: 0 0 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(222, 1, 2,.1); color: var(--brand); font-size: 1.25rem; }
.info-row a { color: var(--ink); text-decoration: none; font-weight: 600; }
.info-row a:hover { color: var(--brand); }
.info-row small { color: var(--muted); display: block; }

/* CTA */
.cta { background: linear-gradient(120deg, var(--brand) 0%, #ff4545 100%); color: #fff; border-radius: 28px; padding: 3rem; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,.12); }
.cta h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }

/* Footer */
.site-footer { background: #121a23; color: rgba(255,255,255,.7); padding: 72px 0 28px; }
.site-footer h5 { color: #fff; font-size: 1.05rem; margin-bottom: 1.1rem; }
.site-footer a { color: rgba(255,255,255,.7); text-decoration: none; }
.site-footer a:hover { color: #ff8a8a; }
.site-footer .logo { background: #fff; border-radius: 12px; padding: 8px 14px; height: 72px; width: auto; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 24px; font-size: .9rem; }

/* Floating buttons */
.fab-call { position: fixed; right: 18px; bottom: 18px; z-index: 1030; width: 56px; height: 56px; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 1.4rem; box-shadow: 0 10px 24px rgba(222, 1, 2,.45); }
.fab-call:hover { color: #fff; background: var(--brand-dark); }
.to-top { position: fixed; right: 18px; bottom: 86px; z-index: 1030; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: #fff; color: var(--ink); box-shadow: 0 6px 18px rgba(0,0,0,.15); opacity: 0; pointer-events: none; transition: opacity .3s; }
.to-top.show { opacity: 1; pointer-events: auto; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint { animation: none; }
}

@media (max-width: 767.98px) {
  .section { padding: 64px 0; }
  .facility { margin-bottom: 64px; }
  .cta { padding: 2rem 1.5rem; }
  .hero { padding-top: 100px; }
}

/* ===== Inner pages ===== */
.page-hero { position: relative; color: #fff; padding: 170px 0 90px; background: #1d2733 center/cover no-repeat; }
.page-hero::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,22,36,.9) 0%, rgba(10,22,36,.62) 55%, rgba(10,22,36,.35) 100%); }
.page-hero > .container { position: relative; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); margin: .3rem 0 .8rem; }
.page-hero .lead { color: rgba(255,255,255,.85); max-width: 620px; }
.page-hero .kicker { color: #ff8a8a; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.5); --bs-breadcrumb-item-active-color: rgba(255,255,255,.85); margin-bottom: 1.2rem; }
.page-hero .breadcrumb a { color: #fff; text-decoration: none; }
.page-hero .breadcrumb a:hover { color: #ff8a8a; }
@media (max-width: 767.98px) { .page-hero { padding: 120px 0 60px; } }

/* Spec / info cards */
.spec { background: #fff; border-radius: 20px; padding: 1.6rem; height: 100%; border: 1px solid #eee; display: flex; gap: 1rem; align-items: flex-start; }
.spec .icon { flex: 0 0 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; background: rgba(222, 1, 2,.1); color: var(--brand); }
.spec h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.spec p { color: var(--muted); margin: 0; }
.spec .big { font-family: "Prompt"; font-weight: 600; font-size: 1.25rem; color: var(--ink); display: block; white-space: nowrap; }
.spec a { color: var(--ink); text-decoration: none; }
.spec a:hover { color: var(--brand); }
.theme-fit .spec .icon { background: rgba(31,157,85,.12); color: var(--fit); }
.theme-pool .spec .icon { background: rgba(15,143,196,.12); color: var(--pool); }
.theme-fit .page-hero .kicker { color: #7ee2a8; }
.theme-pool .page-hero .kicker { color: #8fd8f5; }

/* Gallery grid */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.g-item { margin: 0; }
.g-item a { position: relative; display: block; border-radius: 18px; overflow: hidden; background: #ddd; }
.g-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform .6s; }
.g-item a:hover img { transform: scale(1.07); }
.g-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.4rem 1rem .9rem; color: #fff; font-weight: 500;
  background: linear-gradient(to top, rgba(0,0,0,.7), transparent); }
.g-item .zoom { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.92); color: var(--ink); opacity: 0; transform: scale(.8); transition: .3s; }
.g-item a:hover .zoom, .g-item a:focus-visible .zoom { opacity: 1; transform: none; }
@media (max-width: 575.98px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .g-item figcaption { font-size: .8rem; padding: 1.6rem .6rem .5rem; } .g-item a { border-radius: 12px; } }

.filter-btns { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.filter-btns .btn { border-radius: 999px; padding: .45rem 1.1rem; --bs-btn-border-color: #e3e3e3; --bs-btn-color: var(--ink);
  --bs-btn-hover-bg: #fff; --bs-btn-hover-border-color: var(--brand); --bs-btn-hover-color: var(--brand);
  --bs-btn-active-bg: var(--brand); --bs-btn-active-border-color: var(--brand); --bs-btn-active-color: #fff; background: #fff; }
.filter-btns .btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Map page */
.map-big { border-radius: 24px; overflow: hidden; box-shadow: 0 24px 50px rgba(29,39,51,.12); }
.map-big iframe { width: 100%; height: 480px; border: 0; display: block; }
.map-img { display: block; border-radius: 24px; overflow: hidden; border: 1px solid #eee; background: #fff; }
.map-img img { width: 100%; display: block; }
.route-list { list-style: none; padding: 0; margin: 0; counter-reset: r; }
.route-list li { position: relative; padding-left: 3rem; margin-bottom: 1.2rem; color: #3a4552; }
.route-list li::before { counter-increment: r; content: counter(r); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 600; font-family: "Prompt"; }

/* Contact form */
.form-card { background: #fff; border-radius: 24px; padding: 2.2rem; box-shadow: 0 20px 50px rgba(29,39,51,.1); border: 1px solid #f0f0f0; }
.form-card .form-control { border-radius: 12px; }
.form-card .form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(222, 1, 2,.18); }
.captcha-box { display: flex; align-items: center; gap: .6rem; }
.captcha-box img { border-radius: 10px; border: 1px solid #e3e3e3; height: 58px; }
@media (max-width: 575.98px) { .form-card { padding: 1.4rem; } }

/* แบนเนอร์แบบภาพประกอบเวกเตอร์ */
.page-hero.has-art { background: radial-gradient(circle at 80% 35%, rgba(222,1,2,.32), transparent 55%), linear-gradient(135deg, #121a23 0%, #1d2733 100%);
  padding: 140px 0 70px; }
.page-hero.has-art::before { display: none; }
.hero-art svg { display: block; width: 100%; height: auto; max-width: 560px; margin-left: auto; }
@media (max-width: 991.98px) { .page-hero.has-art { padding: 110px 0 50px; } .hero-art svg { max-width: 460px; margin: .5rem auto 0; } }
