/* TMS Yoga Studio - Cosmic Glass Theme (simple but rich) */
:root{
  --bg1:#0b1020;
  --bg2:#1a1230;
  --glass: rgba(255,255,255,.10);
  --glass2: rgba(255,255,255,.06);
  --border: rgba(255,255,255,.18);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.65);
  --accent:#ffcc4d;
  --accent2:#ff6a88;
}

*{ font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }

body{
  color: var(--text);
  background: radial-gradient(1000px 600px at 10% 10%, rgba(255,106,136,.25), transparent 60%),
              radial-gradient(900px 600px at 90% 20%, rgba(255,204,77,.22), transparent 55%),
              linear-gradient(180deg, var(--bg1), var(--bg2));
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

main{ flex:1 0 auto; }
footer{ flex-shrink:0; }

.page-wrap{ padding: 28px 0 40px; }

.nav-glass{
  background: linear-gradient(180deg, rgba(8,10,20,.82), rgba(8,10,20,.45));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand-logo{
  width:44px; height:44px; object-fit:cover; border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
}
.brand-text{ line-height:1.1; }
.brand-name{ font-weight:700; font-size: 1rem; }
.brand-slogan{ font-size: .78rem; color: var(--muted); }

.card-glass{
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0,0,0,.25);
}

.hero{
  position: relative;
  overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute; inset:-2px;
  background: radial-gradient(700px 250px at 20% 20%, rgba(255,204,77,.22), transparent 70%),
              radial-gradient(700px 250px at 80% 40%, rgba(255,106,136,.18), transparent 70%);
  filter: blur(2px);
}
.hero-inner{ position:relative; padding: 26px; }

.btn-accent{
  background: linear-gradient(135deg, var(--accent), #ffd77a);
  border: none;
  color: #1c1530;
  font-weight:700;
  box-shadow: 0 10px 30px rgba(255,204,77,.25);
}
.btn-accent:hover{ filter: brightness(1.03); transform: translateY(-1px); }
.btn-soft{
  background: rgba(255,255,255,.10);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-soft:hover{ background: rgba(255,255,255,.14); }

.ribbon{
  display:flex;
  gap: 14px;
  overflow-x:auto;
  padding: 6px 2px 12px;
  scroll-snap-type: x mandatory;
}
.ribbon::-webkit-scrollbar{ height: 10px; }
.ribbon::-webkit-scrollbar-thumb{ background: rgba(255,255,255,.18); border-radius: 20px; }

.blog-tile{
  min-width: 320px;
  max-width: 320px;
  flex: 0 0 320px;
  scroll-snap-align: start;
}
.blog-cover{
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 16px;
  overflow:hidden;
  position:relative;
  background: rgba(0,0,0,.25);
}
.blog-cover img{ width:100%; height:100%; object-fit:cover; transform: scale(1.05); }

.about-cover{
  display:flex;
  align-items:center;
  justify-content:center;
  background: linear-gradient(135deg, rgba(255,204,77,.18), rgba(255,106,136,.14));
}
.about-icon{
  font-size: 3rem;
  opacity: .92;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.35));
}
.blog-chip{
  position:absolute; left:12px; bottom:12px;
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.22);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .78rem;
}
.blog-title{ font-weight:700; }
.muted{ color: var(--muted); }

.form-dark{
  background: rgba(18,22,40,.55);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--text);
  border-radius: 14px;
}
.form-dark:focus{
  border-color: rgba(255,204,77,.45);
  box-shadow: 0 0 0 .2rem rgba(255,204,77,.12);
  background: rgba(18,22,40,.65);
  color: var(--text);
}

.footer-glass{
  background: rgba(8,10,20,.45);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

/* Modal glass */
.modal-glass{
  background: linear-gradient(180deg, rgba(10,12,24,.85), rgba(10,12,24,.72));
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px;
}

/* Intro overlay */
.intro-overlay{
  position: fixed;
  inset: 0;
  z-index: 2000;
  display:flex;
  align-items:center;
  justify-content:center;
  background: radial-gradient(800px 400px at 50% 40%, rgba(255,204,77,.18), transparent 65%),
              radial-gradient(900px 500px at 50% 60%, rgba(255,106,136,.18), transparent 65%),
              rgba(0,0,0,.70);
  backdrop-filter: blur(8px);
}
.intro-card{
  width: min(520px, 92vw);
  padding: 28px 22px;
  border-radius: 24px;
  text-align:center;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 30px 70px rgba(0,0,0,.35);
  animation: pop .85s cubic-bezier(.2,.9,.2,1);
}
.intro-logo{
  width: 120px; height:120px; object-fit:cover;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  margin-bottom: 12px;
}
.intro-title{ font-size: 1.35rem; font-weight: 800; letter-spacing:.2px; }
.intro-sub{ color: var(--muted); margin-top: 2px; }
.intro-line{
  width: 120px; height: 3px; margin: 14px auto 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255,204,77,.9), transparent);
}
.intro-hint{ color: rgba(255,255,255,.85); font-size: .95rem; }

@keyframes pop{
  from{ transform: translateY(12px) scale(.98); opacity:0; }
  to{ transform: translateY(0) scale(1); opacity:1; }
}

/* small motion */
.fade-up{
  opacity:0;
  transform: translateY(10px);
  transition: all .55s ease;
}
.fade-up.show{
  opacity:1;
  transform: translateY(0);
}


/* Modern blog layouts */
.blog-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
@media (min-width: 1200px){
  .blog-grid{ grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 768px) and (max-width: 1199px){
  .blog-grid{ grid-template-columns: repeat(3, 1fr); }
}

.featured-blog .blog-cover{ border-radius: 18px; }
.blog-cover{ aspect-ratio:1/1; height:25vh; max-height:280px; overflow:hidden; border-radius:18px; background: rgba(0,0,0,.22);} 
.blog-cover img{
  width:100%;
  height:100%;
  object-fit: cover;
  object-position: center;
  display:block;
}

/* About image */
.about-img-wrap{
  aspect-ratio: 1/1;
  height: 25vh;
  max-height: 280px;
  border-radius: 18px;
  overflow:hidden;
  background: rgba(0,0,0,.25);
}
.about-img{
  width:100%;
  height:100%;
  object-fit: cover;
  object-position: center;
  display:block;
}

/* Square images inside blog detail */
.blog-img-square{
  aspect-ratio: 1/1;
  width:100%;
  height:auto;
  object-fit: cover;
  object-position: center;
  display:block;
}


@media (max-width: 575.98px){
  /* Mobile ribbon: show ~1.2-1.5 cards with swipe */
  .ribbon{ padding-bottom: 18px; }
  .blog-tile{
    min-width: 78vw;
    max-width: 78vw;
    flex: 0 0 78vw;
  }
}



/* Unified media sizing: square + ~1/4 screen height */
.media-square{
  aspect-ratio: 1/1;
  height: 25vh;
  max-height: 280px;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(0,0,0,.22);
}
.media-square img{
  width:100%;
  height:100%;
  object-fit: cover;
  object-position: center;
  display:block;
}

/* Small thumbs */
.thumb-1x1{
  width: 78px;
  height: 78px;
  border-radius: 14px;
  overflow: hidden;
  display:inline-block;
  border: 1px solid rgba(255,255,255,.14);
}
.thumb-1x1 img{ width:100%; height:100%; object-fit:cover; object-position:center; display:block; }

@media (max-width: 575.98px){
  .brand-logo{ display:none; }
}

@media (max-width: 575.98px){
  .hero-logo{ display:none !important; }
}

/* Mobile: horizontal blog strip (shows ~1.5 cards) */
@media (max-width: 575.98px){
  .blog-strip{
    display:flex !important;
    flex-wrap:nowrap !important;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    padding-bottom: 6px;
  }
  .blog-strip > [class^="col"],
  .blog-strip > [class*=" col"]{
    flex: 0 0 82%;
    max-width: 82%;
    scroll-snap-align:start;
  }
  .blog-strip::-webkit-scrollbar{ height: 6px; }
}

/* ===== Square media helpers (1:1, ~1/4 viewport height) ===== */
.square-media{
  width:100%;
  height:min(25vh,240px);
  aspect-ratio:1/1;
  object-fit:cover;
  object-position:center center;
}

/* Apply to album covers + about cards if they exist */
.album-tile img,
.about-card img,
.about-img-wrap img,
.gallery-cover img{
  width:100%;
  height:min(25vh,240px);
  aspect-ratio:1/1;
  object-fit:cover;
  object-position:center center;
}

/* Mobile: make top brand smaller */
@media (max-width: 575.98px){
  .brand-logo{ width:34px; height:34px; }
  .brand-text .brand-title{ font-size:15px; }
  .brand-text .brand-sub{ font-size:11px; }
}
