/*
Theme Name: Beads Time Studio
Theme URI: https://beadstime.com
Author: Beads Time Studio
Description: A kawaii-styled WordPress theme for Beads Time DIY Perler Bead Studio, featuring soft pinks, playful typography, and cute animations.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: beadstime
Tags: custom-background, custom-logo, menu-support, responsive-layout, pastel, kawaii
*/

/* ═══════════════════════════════════════
   CSS CUSTOM PROPERTIES
═══════════════════════════════════════ */
:root {
  --pink:        #ff9abe;
  --pink-dark:   #ff6b9d;
  --pink-light:  #ffe0ec;
  --peach:       #ffb3a0;
  --cream:       #fffbe8;
  --yellow:      #ffeaa0;
  --yellow-dark: #f5a623;
  --mint:        #c8f0e0;
  --text:        #5a3a2a;
  --text-light:  #9a7060;
  --white:       #ffffff;
  --shadow:      rgba(255, 120, 160, 0.18);
  --radius:      20px;
  --radius-sm:   12px;
}

/* ═══════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Nunito', sans-serif;
  background: linear-gradient(135deg, #ffcdd9 0%, #ffd9c0 50%, #ffe0b2 100%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--pink-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--yellow-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fredoka One', cursive;
  line-height: 1.2;
  color: var(--text);
}

p { margin-bottom: 1rem; }
ul { list-style: none; }

/* ═══════════════════════════════════════
   FLOATING BACKGROUND DECO
═══════════════════════════════════════ */
body::before {
  content: '✨ 🌸 ⭐ 💮 🎀 🌷 ✨ 🌸';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  font-size: 1.8rem;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
  letter-spacing: 120px;
  word-spacing: 120px;
  line-height: 160px;
  overflow: hidden;
}

/* ═══════════════════════════════════════
   SITE WRAPPER
═══════════════════════════════════════ */
.site-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-content { flex: 1; }

/* ═══════════════════════════════════════
   HEADER & NAV
═══════════════════════════════════════ */
.site-header {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 3px dashed var(--pink);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 32px;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mascot { font-size: 1.8rem; animation: bobble 3s ease-in-out infinite; }
@keyframes bobble {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

.logo-text {
  font-family: 'Fredoka One', cursive;
  font-size: 1.6rem;
  color: var(--pink-dark);
  text-shadow: 2px 2px 0 var(--pink-light);
  line-height: 1;
}
.logo-sub {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Nav */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  color: var(--text);
  padding: 7px 18px;
  border-radius: 50px;
  border: 2px solid transparent;
  transition: all 0.2s;
  display: block;
}
.main-nav a:hover,
.main-nav .current-menu-item a {
  background: var(--pink-light);
  border-color: var(--pink);
  color: var(--pink-dark);
}
.main-nav .nav-cta a {
  background: var(--pink-dark);
  color: var(--white) !important;
  border-color: var(--pink-dark);
  box-shadow: 0 4px 0 #cc4d7a;
}
.main-nav .nav-cta a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #cc4d7a;
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: 2px dashed var(--pink);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--pink-dark);
}

/* ═══════════════════════════════════════
   PAGE HERO BANNER
═══════════════════════════════════════ */
.page-hero {
  text-align: center;
  padding: 60px 32px 40px;
  position: relative;
}
.page-hero .hero-emoji { font-size: 3rem; display: block; margin-bottom: 8px; }
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--yellow-dark);
  text-shadow: 3px 3px 0 #fff, 5px 5px 0 var(--pink-light);
  margin-bottom: 12px;
}
.page-hero p {
  font-size: 1.1rem;
  color: var(--text-light);
  font-weight: 700;
  max-width: 560px;
  margin: 0 auto;
}
.hearts-divider {
  text-align: center;
  font-size: 1.4rem;
  letter-spacing: 6px;
  margin: 24px 0;
}

/* ═══════════════════════════════════════
   CARD COMPONENT
═══════════════════════════════════════ */
.bj-card {
  background: var(--cream);
  border-radius: var(--radius);
  border: 3px dashed var(--pink);
  padding: 28px 32px;
  box-shadow: 0 6px 0 var(--pink), 0 12px 28px var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.bj-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 0 var(--pink), 0 18px 36px var(--shadow);
}

.bj-card-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.5rem;
  color: var(--yellow-dark);
  margin-bottom: 16px;
}

/* ═══════════════════════════════════════
   BUTTON COMPONENT
═══════════════════════════════════════ */
.bj-btn {
  display: inline-block;
  font-family: 'Fredoka One', cursive;
  font-size: 1.05rem;
  padding: 12px 30px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}
.bj-btn-primary {
  background: var(--pink-dark);
  color: var(--white);
  box-shadow: 0 5px 0 #cc4d7a;
}
.bj-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 0 #cc4d7a;
  color: var(--white);
}
.bj-btn-secondary {
  background: var(--yellow);
  color: #7a4f00;
  box-shadow: 0 5px 0 var(--yellow-dark);
}
.bj-btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 0 var(--yellow-dark);
  color: #7a4f00;
}

/* ═══════════════════════════════════════
   SECTION WRAPPER
═══════════════════════════════════════ */
.bj-section {
  max-width: 1060px;
  margin: 0 auto;
  padding: 20px 24px 60px;
}

/* ═══════════════════════════════════════
   PRICE TABLE
═══════════════════════════════════════ */
.price-table {
  width: 100%;
  border-collapse: collapse;
}
.price-table thead th {
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  color: #b06080;
  padding-bottom: 10px;
  text-align: right;
}
.price-table thead th:first-child { text-align: left; }
.price-table tbody tr { border-top: 2px dashed #ffd6e6; }
.price-table tbody td { padding: 12px 0; font-size: 1rem; font-weight: 700; }
.price-table tbody td:not(:first-child) {
  text-align: right;
  font-family: 'Fredoka One', cursive;
  font-size: 1.3rem;
  color: var(--pink-dark);
}
.price-table .member-row td { color: #a07040; }
.member-badge {
  display: inline-block;
  background: var(--yellow);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 0.82rem;
  color: #8a6000;
  margin-left: 6px;
}
.price-note {
  background: var(--mint);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #206050;
  margin-top: 12px;
  display: block;
}

/* ═══════════════════════════════════════
   SERVICE GRID
═══════════════════════════════════════ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

/* ═══════════════════════════════════════
   HOME HERO
═══════════════════════════════════════ */
.home-hero {
  text-align: center;
  padding: 80px 24px 60px;
  position: relative;
}
.home-hero .mascots {
  font-size: 3.5rem;
  letter-spacing: 8px;
  margin-bottom: 16px;
  animation: mascot-bounce 2s ease-in-out infinite;
}
@keyframes mascot-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
.home-hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  color: var(--pink-dark);
  text-shadow: 4px 4px 0 #fff, 7px 7px 0 var(--pink-light);
  margin-bottom: 8px;
}
.home-hero .tagline {
  font-family: 'Fredoka One', cursive;
  font-size: 1.3rem;
  color: var(--yellow-dark);
  margin-bottom: 16px;
}
.home-hero .sub {
  font-size: 1.05rem;
  color: var(--text-light);
  font-weight: 700;
  max-width: 520px;
  margin: 0 auto 32px;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Feature strip */
.feature-strip {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.feature-item {
  background: rgba(255,255,255,0.65);
  border-radius: var(--radius);
  border: 2px dashed var(--pink);
  padding: 22px 20px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: transform 0.2s;
}
.feature-item:hover { transform: translateY(-4px); }
.feature-item .fi-icon { font-size: 2rem; margin-bottom: 8px; display: block; }
.feature-item strong {
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  color: var(--pink-dark);
  display: block;
  margin-bottom: 4px;
}
.feature-item span { font-size: 0.88rem; font-weight: 700; color: var(--text-light); }

/* Promo banner */
.promo-banner {
  background: linear-gradient(135deg, var(--pink-dark), var(--peach));
  border-radius: var(--radius);
  padding: 36px 40px;
  text-align: center;
  max-width: 1012px;
  margin: 0 auto 60px;
  box-shadow: 0 8px 0 #cc4d7a, 0 14px 32px rgba(255,100,140,0.25);
}
.promo-banner h2 {
  font-size: 1.8rem;
  color: var(--white);
  text-shadow: 2px 2px 0 rgba(0,0,0,0.15);
  margin-bottom: 8px;
}
.promo-banner p { color: rgba(255,255,255,0.9); font-weight: 700; margin-bottom: 20px; }

/* ═══════════════════════════════════════
   HOME SHOWCASE GALLERY
═══════════════════════════════════════ */
.home-showcase {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px 60px;
}
.home-showcase-title {
  text-align: center;
  margin-bottom: 28px;
}
.home-showcase-title h2 {
  font-family: 'Fredoka One', cursive;
  font-size: 2rem;
  color: var(--yellow-dark);
  text-shadow: 2px 2px 0 #fff, 4px 4px 0 var(--pink-light);
  margin-bottom: 6px;
}
.home-showcase-title p {
  color: var(--text-light);
  font-weight: 700;
  margin: 0;
}
.home-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.home-showcase-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px dashed var(--pink);
  box-shadow: 0 4px 0 var(--pink), 0 8px 20px var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  background: var(--cream);
  aspect-ratio: 1 / 1;
}
.home-showcase-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 0 var(--pink), 0 14px 32px var(--shadow);
}
.home-showcase-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.home-showcase-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; color: var(--text-light);
  font-weight: 700; font-size: 0.9rem;
  text-align: center; padding: 12px;
  min-height: 200px;
}
.home-showcase-placeholder span { font-size: 2.5rem; }

/* ═══════════════════════════════════════
   GALLERY PAGE
═══════════════════════════════════════ */
.bj-gallery-section { margin-bottom: 48px; }
.bj-gallery-section-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.6rem;
  color: var(--yellow-dark);
  text-shadow: 2px 2px 0 #fff;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.bj-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.bj-gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 3px dashed var(--pink);
  box-shadow: 0 4px 0 var(--pink), 0 8px 20px var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  background: var(--cream);
  cursor: pointer;
  position: relative;
  aspect-ratio: 1 / 1;
}
.bj-gallery-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 0 var(--pink), 0 14px 32px var(--shadow);
}
.bj-gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.bj-gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(90,58,42,0.75));
  color: #fff; font-size: 0.8rem; font-weight: 700;
  padding: 20px 10px 8px;
  opacity: 0; transition: opacity 0.2s;
}
.bj-gallery-item:hover .bj-gallery-caption { opacity: 1; }
.bj-gallery-empty {
  text-align: center; padding: 48px 24px;
  color: var(--text-light); font-weight: 700;
  background: rgba(255,255,255,0.5);
  border-radius: var(--radius);
  border: 2px dashed var(--pink);
}
.bj-gallery-empty span { font-size: 3rem; display: block; margin-bottom: 12px; }

/* Lightbox */
.bj-lightbox {
  display: none; position: fixed;
  inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.88);
  align-items: center; justify-content: center;
}
.bj-lightbox.open { display: flex; }
.bj-lightbox-inner {
  position: relative; max-width: 90vw; max-height: 90vh;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.bj-lightbox-inner img {
  max-width: 90vw; max-height: 80vh;
  object-fit: contain; border-radius: var(--radius-sm);
  box-shadow: 0 0 60px rgba(255,120,160,0.4);
}
.bj-lightbox-caption { color: #fff; font-weight: 700; font-size: 0.95rem; }
.bj-lightbox-close {
  position: absolute; top: -44px; right: 0;
  background: none; border: none; color: #fff;
  font-size: 2.2rem; cursor: pointer; line-height: 1;
}
.bj-lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.15); border: none;
  color: #fff; font-size: 2rem; cursor: pointer;
  padding: 8px 14px; border-radius: 50px;
  transition: background 0.2s;
}
.bj-lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.bj-lightbox-prev { left: -60px; }
.bj-lightbox-next { right: -60px; }
/* ── iOS input zoom fix: font-size must be ≥16px ── */
input, select, textarea,
.bj-form input, .bj-form select, .bj-form textarea {
  font-size: 16px !important;
  touch-action: manipulation;  ← this line added
}


/* ═══════════════════════════════════════
   APPOINTMENT FORM
═══════════════════════════════════════ */
.appt-form-wrap { max-width: 640px; margin: 0 auto; }
.bj-form .form-row { margin-bottom: 18px; }
.bj-form label {
  display: block; font-family: 'Fredoka One', cursive;
  font-size: 0.95rem; color: var(--text-light); margin-bottom: 6px;
}
.bj-form input, .bj-form select, .bj-form textarea {
  width: 100%; background: rgba(255,255,255,0.8);
  border: 2.5px solid var(--pink); border-radius: 50px;
  padding: 12px 20px; font-family: 'Nunito', sans-serif;
  font-size: 0.95rem; font-weight: 700; color: var(--text);
  outline: none; transition: border-color 0.2s, background 0.2s;
}
.bj-form textarea { border-radius: var(--radius-sm); resize: vertical; min-height: 120px; }
.bj-form select { appearance: none; cursor: pointer; }
.bj-form input:focus, .bj-form select:focus, .bj-form textarea:focus {
  border-color: var(--pink-dark); background: var(--white);
}
.bj-form input::placeholder, .bj-form textarea::placeholder { color: #c0a0b0; }
.form-submit { text-align: center; margin-top: 24px; }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.site-footer {
  background: linear-gradient(160deg, var(--pink) 0%, var(--peach) 100%);
  border-top: 4px dashed rgba(255,255,255,0.55);
  padding: 52px 32px 24px;
  position: relative; overflow: hidden; margin-top: auto;
}
.site-footer::before {
  content: '';
  position: absolute; top: -18px; left: 0; right: 0; height: 36px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 36'%3E%3Cpath d='M0,18 C150,36 350,0 600,18 C850,36 1050,0 1200,18 L1200,36 L0,36 Z' fill='%23ff9abe'/%3E%3C/svg%3E") center/cover no-repeat;
  pointer-events: none;
}
.footer-grid {
  max-width: 960px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr 1fr 1.4fr;
  gap: 32px 24px; position: relative; z-index: 1;
}
.footer-heading {
  font-family: 'Fredoka One', cursive; font-size: 1.1rem;
  color: var(--white); text-shadow: 1px 2px 0 rgba(180,60,100,0.3);
  margin-bottom: 14px;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  font-size: 0.9rem; font-weight: 700;
  color: rgba(255,255,255,0.88); transition: color 0.2s, transform 0.2s; display: inline-block;
}
.footer-links a::before { content: '✦ '; font-size: 0.65rem; opacity: 0.7; }
.footer-links a:hover { color: var(--yellow); transform: translateX(4px); }
.footer-contact-item {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px; font-size: 0.9rem; font-weight: 700;
  color: rgba(255,255,255,0.88);
}
.footer-contact-item .ci-icon {
  background: rgba(255,255,255,0.3); border-radius: 50%;
  width: 28px; height: 28px; display: flex; align-items: center;
  justify-content: center; font-size: 0.85rem; flex-shrink: 0;
}
.footer-contact-item a { color: inherit; }
.footer-contact-item a:hover { color: var(--yellow); }
.social-links { display: flex; flex-direction: column; gap: 8px; }
.social-link {
  display: flex; align-items: center; gap: 9px;
  font-size: 0.9rem; font-weight: 700;
  color: rgba(255,255,255,0.88); transition: color 0.2s, transform 0.2s;
}
.social-link:hover { color: var(--yellow); transform: translateX(4px); }
.s-icon {
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; flex-shrink: 0;
}
.s-ig { background: linear-gradient(135deg,#f09433,#dc2743,#bc1888); }
.footer-bottom {
  max-width: 960px; margin: 28px auto 0; padding-top: 18px;
  border-top: 2px dashed rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; position: relative; z-index: 1;
}
.footer-brand { font-family: 'Fredoka One', cursive; font-size: 1.1rem; color: var(--white); }
.footer-mascots { font-size: 1rem; letter-spacing: 4px; }
.footer-copy { font-size: 0.82rem; font-weight: 700; color: rgba(255,255,255,0.7); }

/* ═══════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.55s cubic-bezier(.34,1.56,.64,1) both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 768px) {
  .site-header { padding: 0 20px; }
  .menu-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 70px; left: 0; right: 0;
    background: rgba(255,255,255,0.96);
    border-bottom: 3px dashed var(--pink); padding: 16px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col-newsletter { grid-column: 1 / -1; }
  .home-hero { padding: 50px 20px 40px; }
  .promo-banner { margin: 0 16px 40px; padding: 28px 24px; }
  .bj-lightbox-prev { left: -10px; }
  .bj-lightbox-next { right: -10px; }
  .bj-gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
  .home-showcase-grid { grid-template-columns: repeat(2, 1fr); }
}
