
/* =====================================
   TT STUDIO - Customer Mini App
   Cute Cream Oil Painting Theme
===================================== */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&family=ZCOOL+KuaiLe&display=swap');

:root {
  --cream: #fff9f0;
  --ivory: rgba(255, 251, 244, 0.60);
  --lavender: #e9e2f3;
  --lavender-dark: #8e7da9;
  --peach: #f7dfd3;
  --pink: #f4e1e3;
  --sage: #e4eadc;
  --gold: #c4a477;
  --brown: #65564f;
  --muted: #988a80;
  --white: #ffffff;

  --glass: rgba(255, 251, 246, 0.57);
  --glass-border: rgba(255, 255, 255, 0.78);
  --shadow: 0 6px 22px rgba(119, 94, 91, 0.10);
  --radius: 25px;

  --font-cute:
    "Nunito",
    "ZCOOL KuaiLe",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--cream);
  color: var(--brown);
  font-family: var(--font-cute);
  line-height: 1.65;
  font-weight: 500;
  letter-spacing: 0.2px;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

#app {
  width: 100%;
  min-height: 100vh;
}

/* =====================================
   Main page layout
===================================== */

#main-content {
  width: 100%;
  max-width: 760px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 16px calc(105px + env(safe-area-inset-bottom));
}

.page {
  display: none;
  animation: pageFade 0.28s ease;
}

.page.active {
  display: block;
}

@keyframes pageFade {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

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

/* =====================================
   Homepage background
===================================== */

#page-home {
  position: relative;
  isolation: isolate;
  padding-top: 8px;
}

#page-home::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: -16px;
  right: -16px;
  min-height: 100%;
  background:
    linear-gradient(
      180deg,
      rgba(255, 249, 244, 0.06),
      rgba(255, 250, 245, 0.18) 45%,
      rgba(255, 249, 240, 0.30) 100%
    ),
    url("./assets/background.png") center top / cover no-repeat;
  background-color: var(--cream);
}

/* =====================================
   Homepage welcome header
===================================== */

.home-header {
  min-height: 245px;
  padding: 30px 16px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

#welcome-name {
  margin: 0 0 7px;
  color: #766b75;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.home-header h1 {
  margin: 0;
  color: #76637f;
  font-family: var(--font-cute);
  font-size: clamp(36px, 9vw, 52px);
  font-weight: 900;
  letter-spacing: 1px;
  text-shadow: 0 3px 12px rgba(255,255,255,0.72);
}

.home-header h2 {
  margin: 5px 0;
  color: #8c7184;
  font-size: clamp(18px, 4.8vw, 23px);
  font-weight: 800;
}

.home-description {
  margin: 5px 0 14px;
  color: #806f70;
  font-size: 13px;
  font-weight: 600;
}

/* =====================================
   Cute buttons
===================================== */

.primary-button {
  min-height: 43px;
  padding: 10px 25px;
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: 30px;
  background: linear-gradient(
    135deg,
    rgba(248, 226, 225, 0.92),
    rgba(235, 224, 245, 0.92)
  );
  color: #705e70;
  box-shadow: 0 5px 15px rgba(119, 94, 91, 0.12);
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button:active {
  transform: scale(0.96);
  box-shadow: 0 2px 8px rgba(119, 94, 91, 0.10);
}

/* =====================================
   Homepage glass sections
===================================== */

.home-section {
  margin: 16px 0;
  padding: 19px 16px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: rgba(255, 251, 246, 0.57);
  box-shadow: var(--shadow);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.section-heading {
  margin-bottom: 13px;
}

.section-heading h2 {
  margin: 0;
  color: #78677f;
  font-size: 18px;
  font-weight: 900;
}

.section-heading p {
  margin: 4px 0 0;
  color: #8f817c;
  font-size: 12px;
  font-weight: 600;
}

.empty-state {
  padding: 16px 10px;
  color: #8f817c;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

/* =====================================
   Cute service category cards
===================================== */

.service-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.category-card {
  min-width: 0;
  padding: 17px 10px;
  border: 1px solid rgba(255,255,255,0.78);
  border-radius: 22px;
  background: rgba(255, 250, 245, 0.65);
  color: var(--brown);
  box-shadow: 0 4px 14px rgba(119, 94, 91, 0.07);
  text-align: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.2s ease;
}

.category-card:active {
  transform: scale(0.97);
}

.category-card:nth-child(2) {
  background: rgba(235, 241, 229, 0.66);
}

.category-card:nth-child(3) {
  background: rgba(249, 231, 231, 0.66);
}

.category-card:nth-child(4) {
  background: rgba(239, 232, 248, 0.66);
}

.category-card span {
  display: block;
  margin-bottom: 5px;
  font-size: 29px;
}

.category-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
}

.category-card p {
  margin: 4px 0 0;
  color: #8f817c;
  font-size: 11px;
  font-weight: 600;
}

/* =====================================
   About and contact
===================================== */

#about-content {
  color: #81736d;
  font-size: 13px;
  line-height: 1.9;
  font-weight: 600;
}

#contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#contact-links a {
  flex: 1;
  min-width: 110px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: 20px;
  background: rgba(255, 249, 245, 0.66);
  color: #806d7d;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 3px 12px rgba(119, 94, 91, 0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.2s ease;
}

#contact-links a:active {
  transform: scale(0.96);
}

/* =====================================
   Other page headers
===================================== */

.page-header {
  padding: 25px 8px 18px;
  text-align: center;
}

.page-header h1 {
  margin: 0;
  color: #806c85;
  font-size: 24px;
  font-weight: 900;
}

.page-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

/* =====================================
   Profile sections
===================================== */

.profile-section {
  margin: 13px 0;
  padding: 19px 16px;
  border: 1px solid rgba(255,255,255,0.82);
  border-radius: var(--radius);
  background: rgba(255, 251, 246, 0.66);
  box-shadow: var(--shadow);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.profile-section h2 {
  margin: 0 0 13px;
  color: #806c85;
  font-size: 17px;
  font-weight: 900;
}

/* =====================================
   Booking form
===================================== */

#booking-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

#booking-form > section {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.82);
  border-radius: 22px;
  background: rgba(255, 251, 246, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

#booking-form input,
#booking-form textarea,
#booking-form select {
  border-radius: 14px;
  border: 1px solid #eadfe2;
  background: rgba(255,255,255,0.76);
  color: var(--brown);
}

#submit-booking {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 28px;
  background: linear-gradient(
    135deg,
    #eadff0,
    #f5e1dc
  );
  color: #705e70;
  font-weight: 900;
  box-shadow: var(--shadow);
}

/* =====================================
   Bottom navigation
===================================== */

#bottom-navigation {
  position: fixed;
  z-index: 1000;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  width: 100%;
  max-width: 760px;
  min-height: 69px;
  margin: 0 auto;
  padding: 7px 7px calc(7px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255,255,255,0.8);
  border-radius: 23px 23px 0 0;
  background: rgba(255, 250, 246, 0.83);
  box-shadow: 0 -5px 20px rgba(119, 94, 91, 0.09);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  min-width: 0;
  min-height: 50px;
  padding: 5px 1px;
  border: none;
  border-radius: 18px;
  background: transparent;
  color: #a19591;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-item span {
  font-size: 21px;
  line-height: 1.3;
}

.nav-item small {
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.nav-item.active {
  color: #907b9e;
  font-weight: 900;
  background: rgba(238, 229, 245, 0.48);
}

.nav-booking {
  min-height: 59px;
  margin-top: -13px;
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 21px;
  background: linear-gradient(
    145deg,
    rgba(248, 226, 229, 0.94),
    rgba(238, 230, 247, 0.94)
  );
  color: #806b86;
  box-shadow: 0 5px 15px rgba(119, 94, 91, 0.12);
}

.nav-booking span {
  font-size: 26px;
}

.nav-booking small {
  font-size: 10px;
  font-weight: 900;
}

/* =====================================
   Cute input focus
===================================== */

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #cdbbdc;
  box-shadow: 0 0 0 3px rgba(205, 187, 220, 0.20);
}

/* =====================================
   Responsive layout
===================================== */

@media (min-width: 600px) {
  #main-content {
    padding-right: 25px;
    padding-left: 25px;
  }

  #page-home::before {
    left: -25px;
    right: -25px;
  }

  .home-header {
    min-height: 265px;
  }

  .service-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 360px) {
  #main-content {
    padding-right: 11px;
    padding-left: 11px;
  }

  .home-section {
    padding: 17px 13px;
  }

  .nav-item small {
    font-size: 9px;
  }
}
