/* TileTalk — Custom CSS */

/* ── Fonts ──────────────────────────────────────────────── */
:root {
  --orange: #A44C29;
  --orange-dark: #A44C29;
  --charcoal: #1C1C1C;
  --charcoal-light: #2D2D2D;
  --offwhite: #FAF9F6;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
}

.text-orange {
  color: var(--orange) !important;
}

.bg-orange {
  background-color: var(--orange) !important;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--offwhite);
  color: var(--charcoal);
  -webkit-font-smoothing: antialiased;
}

/* ── Header Scroll State ────────────────────────────────── */
#site-header {
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

#site-header.scrolled .nav-link {
  color: var(--charcoal) !important;
}

#site-header.scrolled .nav-link:hover {
  color: var(--orange) !important;
}

#site-header.scrolled .ham-line {
  background: var(--charcoal) !important;
}

#site-header.scrolled #logo-white {
  display: none !important;
}

#site-header.scrolled #logo-dark {
  display: block !important;
}

#site-header.scrolled #logo-text-nav {
  color: var(--charcoal) !important;
}

/* ── Marquee ────────────────────────────────────────────── */
#marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

/* ── Filter Pills ───────────────────────────────────────── */
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid #E5E5E5;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--charcoal);
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: var(--font-body);
}

.filter-pill:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.filter-pill.active {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
  box-shadow: 0 4px 12px rgba(244, 123, 32, 0.3);
}

.filter-pill svg {
  width: 14px;
  height: 14px;
}

/* ── Tile Cards ─────────────────────────────────────────── */
.tile-card {
  border-radius: 16px;
  overflow: hidden;
  background: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
}

.tile-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border: 2px solid var(--orange);
}

.tile-card .tile-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
}

.tile-card .tile-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tile-card:hover .tile-img-wrap img {
  transform: scale(1.07);
}

.tile-card .tile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 28, 28, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tile-card:hover .tile-overlay {
  opacity: 1;
}

.tile-card .tile-info {
  padding: 14px 16px;
}

.tile-card .tile-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(244, 123, 32, 0.1);
  padding: 3px 9px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 5px;
}

.tile-card .tile-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.3;
}

/* ── Category Cards ─────────────────────────────────────── */
.category-card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.category-card:hover img {
  transform: scale(1.05);
}

.category-card .cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 28, 28, 0.85) 0%, rgba(28, 28, 28, 0.2) 50%, transparent 100%);
}

.category-card .cat-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
}

.category-card .cat-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 6px;
}

.category-card .cat-desc {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-card .cat-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--orange);
  font-size: 0.875rem;
  font-weight: 600;
  transition: gap 0.2s ease;
}

.category-card:hover .cat-link {
  gap: 10px;
}

/* ── Skeleton Shimmer ───────────────────────────────────── */
.skeleton-shimmer {
  background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

/* ── FAQ Items ──────────────────────────────────────────── */
.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] {
  background: #fff9f5;
}

.faq-item[open] summary {
  color: var(--orange);
}

/* ── Form Inputs ────────────────────────────────────────── */
.form-input {
  border: 1.5px solid #E5E5E5;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.9375rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: white;
  color: var(--charcoal);
}

.form-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(244, 123, 32, 0.1);
}

.form-input::placeholder {
  color: #aaa;
}

select.form-input {
  appearance: none;
  cursor: pointer;
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

/* ── Catalog Cards ──────────────────────────────────────── */
.catalog-card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.catalog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.catalog-card .catalog-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  position: relative;
}

.catalog-card .catalog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.catalog-card:hover .catalog-img img {
  transform: scale(1.05);
}

.catalog-card .catalog-body {
  padding: 20px;
}

/* ── Blog Cards ─────────────────────────────────────────── */
.blog-card {
  border-radius: 16px;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

.blog-card .blog-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.blog-card .blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-img img {
  transform: scale(1.05);
}

.blog-card .blog-body {
  padding: 20px;
}

/* ── Mobile Menu ────────────────────────────────────────── */
/* #mobile-menu.open {
  display: flex;
}

#mobile-panel.open {
  transform: translateX(0) !important;
} */

/* Hamburger open state */
#hamburger.open .ham-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#hamburger.open .ham-line:nth-child(2) {
  opacity: 0;
}

#hamburger.open .ham-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  width: 24px;
}

/* ── Grid Filter Transition ─────────────────────────────── */
#tiles-grid {
  transition: opacity 0.25s ease;
}

#tiles-grid.fading {
  opacity: 0;
}

/* ── Counter ────────────────────────────────────────────── */
.counter {
  font-variant-numeric: tabular-nums;
}

/* ── Hero Parallax ──────────────────────────────────────── */
#hero-bg {
  transition: transform 0s linear;
}

/* ── WhatsApp Float Button ──────────────────────────────── */
.whatsapp-float {
  visibility: hidden;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}

/* ── Responsive tweaks ──────────────────────────────────── */
@media (max-width: 640px) {

  #space-filters,
  #type-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
  }

  #space-filters::-webkit-scrollbar,
  #type-filters::-webkit-scrollbar {
    height: 3px;
  }

  #space-filters::-webkit-scrollbar-thumb,
  #type-filters::-webkit-scrollbar-thumb {
    background: var(--orange);
    border-radius: 2px;
  }
}

/* ── Admin Panel Styles ─────────────────────────────────── */
.admin-sidebar {
  width: 240px;
  min-height: 100vh;
  background: var(--charcoal);
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
}

.admin-nav-link:hover,
.admin-nav-link.active {
  background: rgba(244, 123, 32, 0.15);
  color: var(--orange);
}

.admin-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  background: #f8f8f8;
  padding: 12px 16px;
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  font-weight: 600;
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.875rem;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: #fafafa;
}

.badge {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
}

.badge-green {
  background: #dcfce7;
  color: #166534;
}

.badge-yellow {
  background: #fef9c3;
  color: #854d0e;
}

.badge-red {
  background: #fee2e2;
  color: #991b1b;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
  border: none;
}

.btn-primary {
  background: var(--orange);
  color: white;
}

.btn-primary:hover {
  background: var(--orange-dark);
}

.btn-secondary {
  background: #f5f5f5;
  color: var(--charcoal);
}

.btn-secondary:hover {
  background: #e8e8e8;
}

.btn-danger {
  background: #fee2e2;
  color: #dc2626;
}

.btn-danger:hover {
  background: #fecaca;
}













/* ── Mobile Fixes ───────────────────────────────────────── */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Mobile menu — hidden ki jagah visibility use karo taaki transition kaam kare */
#mobile-menu {
  visibility: hidden;
  pointer-events: none;
}

#mobile-menu.menu-open {
  visibility: visible;
  pointer-events: auto;
}

#mobile-backdrop {
  opacity: 0;
  transition: opacity 0.3s ease;
}

#mobile-menu.menu-open #mobile-backdrop {
  opacity: 1;
}

#mobile-panel {
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

#mobile-menu.menu-open #mobile-panel {
  transform: translateX(0);
}

/* Marquee overflow fix */
.bg-orange>div {
  overflow: hidden;
}

#marquee-track {
  animation: marquee-scroll 30s linear infinite;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Hero section mobile */
@media (max-width: 640px) {
  #hero h1 {
    font-size: 2.75rem;
    line-height: 1.15;
  }

  #hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  #hero-ctas a {
    width: 100%;
    justify-content: center;
  }
}

/* About section image overflow fix */
@media (max-width: 1024px) {

  #about .relative [class*="-bottom-5"],
  #about .relative [class*="-left-5"],
  #about .relative [class*="-top-4"],
  #about .relative [class*="-right-4"] {
    position: relative;
    inset: auto;
    margin-top: 12px;
  }
}

/* Spaces grid — 2 col on mobile already fine, just ensure no overflow */
@media (max-width: 640px) {
  .space-card {
    aspect-ratio: 3/4;
  }
}