:root {
  --primary: #84313B;
  --primary-light: #a33d4a;
  --primary-dark: #6b2730;
  --bg: #D4CFC3;
  --bg-dark: #c4beae;
  --text: #2c2c2c;
  --text-light: #6b6b6b;
  --white: #ffffff;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --radius: 8px;
  --transition: 0.3s ease;
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

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

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

/* ─── NAVBAR ─── */
nav {
  background: #2c2c2c;
  color: var(--bg);
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  position: relative;
  z-index: 100;
}

.nav-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: var(--shadow);
}

.nav-logo {
  font-family: 'Dela Gothic One', cursive;
  font-size: 1.3rem;
  color: var(--bg);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--bg);
  font-size: 0.9rem;
  transition: opacity var(--transition);
}

.nav-links a:hover {
  opacity: 0.7;
}

.menu-icon {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--bg);
  background: none;
  border: none;
  padding: 0.25rem;
}

#menu-toggle {
  display: none;
}

.nav-spacer {
  height: 60px;
}

@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: #2c2c2c;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    padding: 1rem 1.5rem;
    gap: 0;
  }

  .nav-links li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  #menu-toggle:checked ~ .nav-links {
    display: flex;
  }
}

/* ─── HERO ─── */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  min-height: 60vh;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg-img {
  width: min(360px, 70vw);
  height: min(360px, 70vw);
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
  transition: opacity 0.6s ease;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(212, 207, 195, 0.8);
}

.hero > *:not(.hero-bg):not(.hero-bg-overlay) {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-family: 'Dela Gothic One', cursive;
  font-size: clamp(2.5rem, 8vw, 5rem);
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 500px;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}

.btn:hover {
  background: var(--primary-light);
}

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

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

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

/* ─── SECTIONS ─── */
.section {
  padding: 4rem 1.5rem;
}

.section-dark {
  background: var(--primary);
  color: var(--bg);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-dark .text-light {
  color: rgba(255,255,255,0.8);
}

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

.section-title {
  font-family: 'Dela Gothic One', cursive;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 3rem;
  font-size: 1rem;
}

/* ─── ABOUT ─── */
.about-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ─── CATEGORY CARDS ─── */
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.category-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.category-card:hover {
  transform: translateY(-4px);
}

.category-card-img {
  height: 220px;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 2rem;
  position: relative;
  overflow: hidden;
}

.category-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transition: background 0.3s;
}

.carousel-dot.active {
  background: #fff;
}

.carousel-dot.inactive {
  background: rgba(255,255,255,0.4);
}

.category-card-body {
  padding: 1.5rem;
}

.category-card-body h3 {
  font-family: 'Dela Gothic One', cursive;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.category-card-body p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

/* ─── GALLERY GRID ─── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.design-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.design-card:hover {
  transform: translateY(-4px);
}

.design-card-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

.design-card-body {
  padding: 1.25rem;
}

.design-card-body h3 {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.design-card-body p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.design-card-category {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gallery-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-light);
}

.gallery-empty p {
  margin-bottom: 1.5rem;
}

/* ─── CATEGORY FILTER ─── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.filter-btn {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  color: var(--white);
}

/* ─── CTA ─── */
.cta-section {
  text-align: center;
  padding: 4rem 1.5rem;
}

.cta-section h2 {
  font-family: 'Dela Gothic One', cursive;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin-bottom: 1rem;
}

.cta-section p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── BOOKING FORM ─── */
.booking-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--bg-dark);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-submit {
  width: 100%;
  padding: 0.85rem;
  font-size: 1rem;
}

.form-success {
  text-align: center;
  padding: 2rem;
  color: var(--primary);
  font-weight: 600;
}

/* ─── ADMIN ─── */
.admin-gate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
}

.admin-gate-box {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.admin-gate-box h2 {
  font-family: 'Dela Gothic One', cursive;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.admin-gate-box input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--bg-dark);
  border-radius: var(--radius);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.admin-gate-box input:focus {
  outline: none;
  border-color: var(--primary);
}

.admin-error {
  color: #c0392b;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.admin-dashboard {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.admin-dashboard h1 {
  font-family: 'Dela Gothic One', cursive;
  color: var(--primary);
  margin-bottom: 2rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.admin-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
}

.admin-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.admin-card h2 {
  font-family: 'Dela Gothic One', cursive;
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--bg);
}

.admin-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--bg);
}

.admin-item:last-child {
  border-bottom: none;
}

.admin-item-info h3 {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.admin-item-info span {
  font-size: 0.8rem;
  color: var(--text-light);
}

.btn-danger {
  background: #c0392b;
  color: var(--white);
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background var(--transition);
}

.btn-danger:hover {
  background: #a93226;
}

/* ─── FOOTER ─── */
footer {
  background: #2c2c2c;
  color: var(--bg);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.85rem;
}

footer p {
  margin-bottom: 0.25rem;
}

/* ─── PAGE HEADER ─── */
.page-header {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
}

.page-header h1 {
  font-family: 'Dela Gothic One', cursive;
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: var(--primary);
}

.page-header p {
  color: var(--text-light);
  margin-top: 0.5rem;
}

/* ─── MISC ─── */
.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  color: var(--text-light);
}

.empty-state p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* ─── ADMIN LIST ─── */
.admin-list {
  max-height: 500px;
  overflow-y: auto;
}

/* ─── INSTAGRAM SECTION ─── */
.instagram-section {
  margin-top: 3rem;
  text-align: center;
}

.instagram-card {
  background: linear-gradient(135deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
  color: #fff;
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  max-width: 500px;
  margin: 0 auto;
}

.instagram-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.instagram-card h3 {
  font-family: 'Dela Gothic One', cursive;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.instagram-card p {
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  opacity: 0.9;
}

.instagram-card .btn {
  background: #fff;
  color: #833AB4;
  font-weight: 700;
}

.instagram-card .btn:hover {
  background: #f0f0f0;
}

/* ─── HERO SELECT GRID (ADMIN) ─── */
.hero-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 1rem;
}

.hero-select-item {
  position: relative;
  cursor: pointer;
  border-radius: 18px;
  overflow: hidden;
  border: 3px solid transparent;
  transition: border-color 0.2s;
}

.hero-select-item.selected {
  border-color: var(--primary);
}

.hero-select-thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  border-radius: 15px;
}

.hero-select-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.hero-select-name {
  font-size: 0.7rem;
  text-align: center;
  padding: 4px 2px;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── IMAGE SOURCE TOGGLE ─── */
.image-source-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0.75rem;
  border: 2px solid var(--bg-dark);
  border-radius: var(--radius);
  overflow: hidden;
}

.image-source-tab {
  flex: 1;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-light);
  transition: all 0.2s;
  font-family: inherit;
}

.image-source-tab.active {
  background: var(--primary);
  color: var(--white);
}

.image-source-tab:not(.active):hover {
  background: var(--bg);
}

/* ─── UPLOAD AREA ─── */
.upload-area {
  border: 2px dashed var(--bg-dark);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.upload-area:hover {
  border-color: var(--primary);
}

.upload-area input[type="file"] {
  width: 100%;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
}

.upload-hint {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

.upload-status {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: 0.5rem;
}

/* ─── IMAGE PREVIEW ─── */
.image-preview {
  margin-top: 0.75rem;
  position: relative;
  display: inline-block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--bg-dark);
}

.image-preview-img {
  max-width: 200px;
  max-height: 150px;
  object-fit: cover;
  display: block;
}

.image-preview-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.hero-select-name {
  font-size: 0.7rem;
  text-align: center;
  padding: 4px 2px;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drive-connect-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.drive-error {
  font-size: 0.8rem;
  color: #c0392b;
  margin-top: 0.5rem;
}

/* ─── DRIVE BROWSER ─── */
.drive-browser {
  max-height: 350px;
  overflow-y: auto;
  border: 2px solid var(--bg-dark);
  border-radius: var(--radius);
  padding: 0.75rem;
}

.drive-file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.75rem;
}

.drive-file-item {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.2s;
  background: var(--bg);
}

.drive-file-item:hover {
  border-color: var(--primary-light);
}

.drive-file-item.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary);
}

.drive-file-thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.drive-file-name {
  font-size: 0.65rem;
  padding: 4px;
  text-align: center;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: var(--white);
}

.drive-empty {
  text-align: center;
  padding: 1.5rem;
  color: var(--text-light);
  font-size: 0.85rem;
}
