/* ============================================================
   BASE.CSS — Reset, typography, global utility styles
   ============================================================ */


*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  transition: background-color 0.4s ease, color 0.4s ease;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.1;
}

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

button {
  font-family: var(--font-body);
  cursor: pointer;
}

input, textarea, select {
  font-family: var(--font-body);
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--color-primary);
  border-color: var(--color-primary) !important;
}

img {
  max-width: 100%;
  display: block;
}

/* ---- Utility ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
}

.page-wrapper {
  padding-top: 64px;
  min-height: 100vh;
  background-color: var(--color-bg);
}

/* ---- Section Header ---- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.section-header__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  color: var(--color-text);
  font-weight: 700;
}

.section-header__divider {
  width: 48px;
  height: 3px;
  background: var(--gradient-button);
  border-radius: 999px;
  margin: 16px auto 0;
}

/* ---- Card ---- */
.card {
  background: var(--color-surface);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--gradient-button);
  color: #fff;
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  filter: brightness(1.1);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border: 2px solid var(--color-border);
}

.btn-ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 13px;
  border-radius: 8px;
}

.btn-danger {
  background: rgba(217, 48, 48, 0.1);
  color: var(--color-danger);
  border: 1.5px solid var(--color-danger);
}

.btn-danger:hover {
  background: var(--color-danger);
  color: #fff;
}

.btn:disabled, .btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---- Status Badges ---- */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.badge-confirmed, .badge-delivered {
  background: rgba(109, 191, 135, 0.2);
  color: var(--color-success);
}

.badge-pending, .badge-processing {
  background: rgba(var(--color-primary-rgb, 232, 118, 159), 0.15);
  color: var(--color-primary);
}

.badge-cancelled {
  background: rgba(217, 48, 48, 0.15);
  color: var(--color-danger);
}

.badge-shipped {
  background: rgba(59, 127, 224, 0.15);
  color: #3B7FE0;
}

/* ---- Form fields ---- */
.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 2px solid var(--color-border);
  background: var(--color-surface-alt);
  color: var(--color-text);
  font-size: 14px;
  transition: border-color 0.2s;
}

.field textarea {
  resize: vertical;
  min-height: 80px;
}

/* ---- Animations ---- */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }

  .hide-mobile {
    display: none !important;
  }
}

/* ============================================================
   NEW FEATURE COMPONENTS
   ============================================================ */

/* ---- Signature service badge on service cards ---- */
.service-card--signature {
  border: 2px solid var(--color-primary);
  position: relative;
}

.service-card__signature-badge {
  display: inline-block;
  background: var(--gradient-button);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.service-card__category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.service-card__price-hidden {
  font-size: 13px;
  color: var(--color-text-muted);
  font-style: italic;
}

/* ---- Service category group headings on booking page ---- */
.service-category-group {
  margin-bottom: 8px;
}

.service-category-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  padding: 12px 0 6px;
  border-top: 1px solid var(--color-border);
  margin-top: 8px;
}

/* ---- Signature badge on booking page service option ---- */
.service-option--signature {
  border-left: 3px solid var(--color-primary);
}

.signature-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

/* ---- Add-ons in booking ---- */
.addons-header {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  padding-top: 4px;
}

.addon-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border: 2px solid var(--color-border);
  border-radius: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.addon-option:hover {
  border-color: var(--color-primary);
}

.addon-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.addon-option__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.addon-option__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.addon-option__price {
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 700;
}

/* ---- Silent appointment toggle ---- */
.silent-appt-toggle {
  margin: 16px 0;
  padding: 16px;
  background: var(--color-bg-alt);
  border-radius: 12px;
  border: 2px solid var(--color-border);
}

.silent-appt-toggle:hover {
  border-color: var(--color-primary);
}

/* ---- Reviews grid ---- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-card--featured {
  border: 2px solid var(--color-primary);
}

.review-card__stars {
  color: var(--color-primary);
  font-size: 18px;
  letter-spacing: 2px;
}

.review-card__text {
  color: var(--color-text);
  line-height: 1.6;
  font-style: italic;
  flex: 1;
}

.review-card__author {
  font-weight: 700;
  font-size: 14px;
  color: var(--color-text-muted);
}

.review-card__source {
  font-size: 12px;
  color: var(--color-text-muted);
  opacity: 0.7;
}

/* ---- FAQ accordion ---- */
.faq-accordion {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
}

.faq-item__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
}

.faq-item__q:hover {
  color: var(--color-primary);
}

.faq-item__icon {
  font-size: 24px;
  font-weight: 300;
  color: var(--color-primary);
  flex-shrink: 0;
  line-height: 1;
}

.faq-item__a {
  padding: 0 24px 20px;
  color: var(--color-text-muted);
  line-height: 1.7;
  font-size: 15px;
}

/* ---- Sensory / What to Expect grid ---- */
.sensory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.sensory-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 20px 24px;
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.5;
  box-shadow: var(--shadow-card);
}

/* ---- Admin badge for completion/waiting statuses ---- */
.badge-waiting, .badge-contacted {
  background: rgba(167, 139, 202, 0.18);
  color: var(--color-accent);
}

.badge-booked {
  background: rgba(109, 191, 135, 0.2);
  color: var(--color-success);
}

.badge-admin {
  background: rgba(59, 127, 224, 0.15);
  color: #3B7FE0;
}

.badge-superadmin {
  background: var(--gradient-button);
  color: #fff;
}

.badge-staff {
  background: rgba(217, 48, 48, 0.12);
  color: var(--color-danger);
}

/* ============================================================
   Workspace / Studio Photos — about.php
   ============================================================ */

.workspace-gallery {
  display: grid;
  gap: 56px;
}

/* Each item that has a caption */
.workspace-item {
  width: 100%;
}

.workspace-item__img img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
  box-shadow: var(--shadow-card);
}

/* Side-by-side (left / right) */
.workspace-item--left,
.workspace-item--right {
  flex-wrap: wrap;
}

.workspace-item__img--side {
  min-width: 0;
}

.workspace-item__img--side img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.workspace-item__caption {
  color: var(--color-text);
  line-height: 1.75;
  font-size: 1rem;
}

.workspace-item__caption--top {
  margin-bottom: 20px;
  text-align: center;
  font-style: italic;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.workspace-item__caption--bottom {
  margin-top: 20px;
  text-align: center;
  font-style: italic;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.workspace-item__caption--side {
  display: flex;
  align-items: center;
  font-size: 1.05rem;
  color: var(--color-text);
}

/* Image-only grid */
.workspace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.workspace-grid__item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.workspace-grid__item img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

@media (max-width: 700px) {
  .workspace-item--left,
  .workspace-item--right {
    flex-direction: column !important;
  }

  .workspace-item__img--side img {
    height: 240px;
  }

  .workspace-item__caption--side {
    order: 10 !important; /* always after image on mobile */
    margin-top: 16px;
  }
}
