:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #111827;
  color: white;
  position: sticky;
  top: 0;
  z-index: 10;
}

.navbar nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.navbar a {
  color: white;
  margin-left: 1rem;
  text-decoration: none;
}

.hero,
.contact-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 100px);
  padding: 2rem 1.5rem 1rem;
  background: transparent;
  text-align: center;
}

.hero > div,
.contact-copy {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  align-self: center;
  text-align: center;
}

.hero-intro {
  width: min(92vw, 640px);
  margin: 0 auto;
  align-self: center;
  text-align: center;
}

.hero h1,
.hero p,
.eyebrow,
.hero-title,
.hero-description,
.hero-eyebrow {
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero .btn {
  display: inline-flex;
  margin: 0.4rem auto 0;
  align-self: flex-start;
}

.hero-card {
  width: min(92vw, 520px);
  padding: 2.2rem 2.4rem;
  margin: 2rem auto 0 0;
  align-self: flex-start;
  background: white;
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.1);
  text-align: left;
  left: 0px;
}

.hero h1 {
  font-size: clamp(3.5rem, 5vw, 5rem);
  line-height: 1.05;
  margin: 0;
}

.hero p {
  max-width: 720px;
  margin: 1rem auto 0;
}

.hero .btn {
  margin: 2rem 0 0 0;
  align-self: flex-start;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: rgba(17, 24, 39, 0.4);
  font-weight: 700;
  margin-bottom: 0.9rem;
  font-size: 0.75rem;
}

.contact-copy {
  max-width: 820px;
}

.contact-heading {
  margin: 0;
  font-size: clamp(2.4rem, 3.8vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 900;
  color: #111827;
}

.contact-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.75rem 0;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  background: transparent;
  color: #1d4ed8;
  border: none;
  border-radius: 0;
  font-weight: 800;
}

.contact-hero-btn:hover {
  text-decoration: underline;
}

.inline-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(17, 24, 39, 0.16);
  color: #111827;
  font: inherit;
  font-weight: 800;
  min-width: 8rem;
  padding: 0.08rem 0.15rem;
  margin: 0 0.2rem;
  outline: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.inline-group {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}
.inline-input::placeholder {
  color: rgba(17, 24, 39, 0.4);
  font-weight: 600;
}

.inline-input:focus {
  border-color: var(--accent);
}

.thank-you {
  margin-top: 3rem;
  max-width: 720px;
}

.thank-you h1 {
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  margin: 0;
  line-height: 1.05;
}

.thank-you p {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.contact-details-section {
  padding-top: 3rem;
}



.contact-details a {
  color: #111827;
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

.contact-details p {
  margin: 0.75rem 0;
  color: var(--muted);
  font-size: 1rem;
}

.contact-details a {
  color: var(--accent);
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  background: var(--accent-dark);
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 260px;
}

.card .card-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1 1 auto;
  overflow: hidden;
}

.card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  word-break: break-word;
}
}

.btn.secondary {
  background: #e5e7eb;
  color: var(--text);
  margin-top: 0.5rem;
}

.btn.download {
  display: inline-block;
  margin-top: 0.6rem;
  background: #10b981;
}

.btn.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.65rem 1rem;
  background: #5865f2;
  color: white;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.contact-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(88, 101, 242, 0.25);
}

.contact-popup {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.contact-popup.hidden {
  display: none;
}

.contact-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
}

.contact-popup-card {
  position: relative;
  z-index: 1;
  width: min(92vw, 520px);
  padding: 2rem;
  border-radius: 24px;
  background: white;
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.2);
  text-align: center;
}

.contact-popup-card h2 {
  margin: 0;
  font-size: 1.75rem;
}

.contact-popup-card p {
  color: var(--muted);
  margin: 1rem 0 1.5rem;
  line-height: 1.7;
}

.contact-popup-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-popup-card .btn {
  width: 100%;
  border-radius: 999px;
  margin-top: 0;
}

.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.08);
  color: #111827;
  font-size: 1.25rem;
  cursor: pointer;
}

/* Login spinner */
.login-spinner { display: inline-block; }
.login-spinner .spinner {
  box-sizing: border-box;
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0,0,0,0.12);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.popup-note {
  margin-top: 1rem;
  color: var(--muted);
}

.btn.danger,
.btn.danger:visited {
  background: #ef4444;
  color: white;
  margin-top: 0.6rem;
}

.btn.danger:hover {
  background: #dc2626;
}

.hidden {
  display: none !important;
}

.admin-login label {
  display: block;
  margin-bottom: 0.5rem;
}

.admin-login input {
  width: 260px;
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
}

.section {
  padding: 2rem;
  width: 100%;
  max-width: none;
  margin: 0;
}

.section-title {
  margin-bottom: 1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  justify-items: center;
}

.card {
  width: min(520px, 100%);
  background: var(--card);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.8rem;
  cursor: pointer;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.8);
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: white;
  border-radius: 12px;
  padding: 1rem;
  z-index: 1;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  overflow: auto;
}

.modal-content img {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: #111827;
  color: white;
  font-size: 1.2rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
}

.modal p {
  margin: 0.7rem 0 0;
  text-align: center;
  font-weight: bold;
}

.modal-caption {
  margin-top: 0.6rem;
  max-width: 80vw;
  text-align: center;
}

.modal-caption h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text);
}

.modal-caption p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
  white-space: normal;
  word-break: break-word;
  max-height: 160px;
  overflow-y: auto;
  padding: 0.25rem 0.5rem;
  text-align: left;
}

.admin-form {
  display: grid;
  gap: 1rem;
  max-width: 600px;
}

.admin-form label {
  display: grid;
  gap: 0.5rem;
  font-weight: bold;
}

input,
textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
}

.preview-box {
  min-height: 160px;
  border: 1px dashed #9ca3af;
  border-radius: 8px;
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  background: #f9fafb;
}

.image-slider {
  position: relative;
  min-height: 160px;
  overflow: hidden;
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.image-slider img.active {
  opacity: 1;
}

.preview-empty {
  color: #6b7280;
  text-align: center;
  padding: 1rem;
}

.preview-message {
  color: #374151;
  font-size: 0.95rem;
}

#searchInput {
  width: 100%;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .navbar {
    flex-direction: column;
    align-items: center;
  }

  .navbar nav {
    justify-content: center;
  }

  .navbar a {
    margin-left: 0;
  }
}
