/* ==========================================================================
   Shutter — base theme (monochrome photography portfolio + masonry gallery)
   Near-black / near-white base, photography does almost all of the visual
   work, a single vivid electric-blue accent used sparingly (active filter
   underline, buttons, small accents). Bold heavy grotesque-sans headlines,
   clean sans body/UI, no external font dependency. Masonry gallery built
   with CSS multi-column layout (no JS layout library).
   ========================================================================== */

:root {
  --bg: #faf9f7;
  --bg-alt: #f0efec;
  --bg-card: #ffffff;
  --bg-dark: #0c0c0d;
  --border: #e2e1dd;
  --border-dark: rgba(255, 255, 255, 0.14);
  --text: #101012;
  --text-dim: #55565c;
  --text-dimmer: #8c8d92;
  --on-dark: #f7f7f5;
  --on-dark-dim: rgba(247, 247, 245, 0.68);
  --on-dark-dimmer: rgba(247, 247, 245, 0.44);
  --accent: #1d4fff;
  --accent-bright: #4169ff;
  --accent-rgb: 29, 79, 255;
  --accent-bright-rgb: 65, 105, 255;
  --accent-text: #ffffff;

  --container-width: 1180px;
  --radius: 3px;
  --radius-lg: 6px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-ui: var(--font);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.lightbox-locked { overflow: hidden; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* Section label — small bold uppercase eyebrow
   ========================================================================== */

.section-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-heading { margin-bottom: 36px; }
.section-heading h2 { font-size: clamp(28px, 3.6vw, 40px); }

/* Header / Nav
   ========================================================================== */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-header .logo {
  font-family: var(--font);
  font-size: 19px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.01em;
}
.site-header .logo:hover { text-decoration: none; }

.main-nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  flex-wrap: wrap;
}

.main-nav a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.main-nav a:hover { color: var(--text); text-decoration: none; }

/* Footer
   ========================================================================== */

.site-footer {
  background: var(--bg-dark);
  color: var(--on-dark-dim);
  padding: 72px 0 30px;
}

.footer-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding-bottom: 40px;
}

.footer-logo {
  font-family: var(--font);
  font-size: 22px;
  font-weight: 900;
  color: var(--on-dark);
  letter-spacing: -0.01em;
}
.footer-logo:hover { text-decoration: none; }

.footer-tagline {
  max-width: 420px;
  font-size: 14px;
  color: var(--on-dark-dim);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-dark);
  font-size: 13px;
  font-weight: 700;
}
.footer-social a:hover { border-color: var(--accent-bright); color: var(--accent-bright); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 22px;
  text-align: center;
  font-size: 12px;
  color: var(--on-dark-dimmer);
}

.footer-admin-link { margin-top: 6px; }
.footer-admin-link a { color: inherit; text-decoration: underline; opacity: 0.75; }
.footer-admin-link a:hover { opacity: 1; }

/* Hero — full-bleed dark/moody photo, left-aligned bold headline
   ========================================================================== */

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  padding: 80px 0 96px;
  color: var(--on-dark);
  background: var(--bg-dark);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(6, 6, 7, 0.94) 0%, rgba(6, 6, 7, 0.55) 46%, rgba(6, 6, 7, 0.3) 100%),
    linear-gradient(90deg, rgba(6, 6, 7, 0.55) 0%, rgba(6, 6, 7, 0.05) 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  text-align: left;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 84px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.98;
  color: var(--on-dark);
  margin-bottom: 18px;
  text-transform: uppercase;
}

.hero-tagline {
  font-size: 18px;
  line-height: 1.5;
  color: var(--on-dark-dim);
  max-width: 460px;
  margin-bottom: 34px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Gallery
   ========================================================================== */

.gallery-section { padding: 96px 0 100px; }

.album-tabs {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--border);
}

.album-tabs a {
  padding: 0 0 16px;
  margin-bottom: -1px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text-dim);
  border-bottom: 2px solid transparent;
}
.album-tabs a:hover { color: var(--text); text-decoration: none; }
.album-tabs a.is-active { color: var(--text); border-bottom-color: var(--accent); }

.gallery-grid {
  column-count: 3;
  column-gap: 4px;
}

.gallery-item {
  display: block;
  width: 100%;
  break-inside: avoid;
  margin-bottom: 4px;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
  background: none;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--bg-alt);
  transition: filter 0.3s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img { filter: brightness(0.82); }
.gallery-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.gallery-item-meta {
  padding: 14px 2px 8px;
}

.gallery-item-title { display: block; font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.gallery-item-album { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--accent); margin-top: 5px; }

/* Gallery carousel — admin-selectable alternative to the masonry grid above.
   Slides wrap the same .gallery-item buttons, so the lightbox JS is unaware
   of which layout rendered them.
   ========================================================================== */

.gallery-carousel {
  position: relative;
  outline: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-alt);
}
.gallery-carousel:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.carousel-viewport { overflow: hidden; }

.carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  touch-action: pan-y;
  cursor: grab;
}
.carousel-track.is-dragging { transition: none; cursor: grabbing; }

.carousel-slide { flex: 0 0 100%; min-width: 0; }

.carousel-slide .gallery-item { cursor: pointer; user-select: none; }
.carousel-slide .gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--bg-alt);
  -webkit-user-drag: none;
}
.carousel-slide .gallery-item-meta { padding: 18px 4px 4px; }

.carousel-arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 12, 13, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.15s ease, border-color 0.15s ease;
  z-index: 2;
}
.carousel-arrow:hover { background: var(--accent); border-color: var(--accent); }
.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }

.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}
.carousel-dots button.is-active { background: var(--accent-bright); transform: scale(1.3); }

/* About — asymmetric editorial split, not a centered eyebrow/headline block
   ========================================================================== */

.about-section {
  background: var(--bg-alt);
  padding: 100px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 56px;
  align-items: stretch;
}

.about-media {
  position: relative;
  margin-left: calc((100vw - var(--container-width)) / -2 + 24px);
  min-height: 460px;
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 0 24px 8px;
  max-width: 480px;
}

.about-grid.no-photo {
  grid-template-columns: 1fr;
}
.about-grid.no-photo .about-copy {
  max-width: 640px;
  padding-left: 0;
}

.about-copy h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 22px; text-transform: uppercase; }
.about-body { color: var(--text-dim); font-size: 16px; }
.about-body p { margin-bottom: 14px; }
.about-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* Services / Packages
   ========================================================================== */

.services-section { padding: 100px 0; }

.services-heading { max-width: 600px; margin-bottom: 48px; }

.services-grid {
  display: grid;
  /* Admin can publish any number of packages (or none, which hides the whole
     section) -- auto-fit instead of a fixed 3 columns so 1, 2, 4, 5+ cards
     all lay out sensibly instead of leaving an awkward empty cell. */
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.service-card {
  position: relative;
  background: var(--bg-card);
  padding: 44px 34px;
  display: flex;
  flex-direction: column;
  /* Covers both the hover lift and the .reveal-up entrance below in one list
     (rather than letting .reveal-up declare its own `transition` shorthand,
     which — same specificity, later in source — would otherwise silently
     replace this one instead of merging with it). */
  transition: opacity 0.6s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(16, 16, 18, 0.14);
  z-index: 1;
}

.service-card.is-featured {
  background: var(--bg-dark);
  color: var(--on-dark);
  animation: service-card-pulse 3.4s ease-in-out infinite;
}

.service-card.is-featured:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 26px 52px rgba(0, 0, 0, 0.4);
}

@keyframes service-card-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent-bright-rgb), 0); }
  50% { box-shadow: 0 0 34px 4px rgba(var(--accent-bright-rgb), 0.28); }
}

/* Scroll-reveal entrance (see initScrollReveal() in main.js) — cards start
   faded/lowered and settle into place as the section enters the viewport.
   No `transition` declared here on purpose — it rides on .service-card's own
   transition list above so the hover transition isn't clobbered. */
.reveal-up { opacity: 0; transform: translateY(26px); }
.reveal-up.is-visible { opacity: 1; transform: translateY(0); }

.services-grid .service-card:nth-child(1) { transition-delay: 0s; }
.services-grid .service-card:nth-child(2) { transition-delay: 0.08s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.16s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.24s; }
.services-grid .service-card:nth-child(5) { transition-delay: 0.32s; }
.services-grid .service-card:nth-child(6) { transition-delay: 0.4s; }

.service-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-bright);
  background: rgba(var(--accent-rgb), 0.12);
  padding: 4px 9px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.service-card.is-featured .service-tag { background: rgba(var(--accent-bright-rgb), 0.22); }

.service-name {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.service-card.is-featured .service-name { color: var(--on-dark-dim); }

.service-price {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.service-price span { font-size: 15px; font-weight: 700; vertical-align: middle; margin-right: 2px; }

.service-desc {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.65;
  flex: 1;
}
.service-card.is-featured .service-desc { color: var(--on-dark-dim); }

/* Contact
   ========================================================================== */

.contact-section { padding: 100px 0 112px; text-align: center; }

.contact-inner { max-width: 600px; margin: 0 auto; }
.contact-inner .section-label { text-align: center; }
.contact-inner h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 30px; text-transform: uppercase; }

.contact-actions { display: flex; flex-direction: column; align-items: center; gap: 16px; }

.contact-instagram {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.contact-instagram:hover { color: var(--accent); text-decoration: none; }

.contact-form {
  text-align: left;
  max-width: 460px;
  margin: 0 auto 32px;
}
.contact-form .btn { margin-top: 4px; }

/* Honeypot — visually hidden and unreachable by keyboard/screen-reader nav,
   present in the DOM only so a bot filling every field trips it. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}
.btn-primary:hover { background: var(--accent-bright); text-decoration: none; transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--text); }
.btn-ghost:hover { background: var(--text); color: var(--bg); text-decoration: none; }

.btn-outline-light { background: transparent; color: var(--on-dark); border-color: rgba(247, 247, 245, 0.55); }
.btn-outline-light:hover { background: var(--on-dark); color: var(--bg-dark); text-decoration: none; border-color: var(--on-dark); }

.btn-block { width: 100%; }

/* Flash messages
   ========================================================================== */

.flash {
  margin: 0 auto 24px;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 14px;
}

.flash-success { background: rgba(var(--accent-rgb), 0.08); border: 1px solid rgba(var(--accent-rgb), 0.28); color: var(--accent); }
.flash-error { background: rgba(200, 46, 46, 0.08); border: 1px solid rgba(200, 46, 46, 0.28); color: #b23131; }

/* Single photo
   ========================================================================== */

.photo-single { margin-top: 56px; padding-bottom: 40px; max-width: 820px; margin-left: auto; margin-right: auto; text-align: center; }

.post-location {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 10px;
}

.photo-single h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 900; margin: 4px 0 24px; text-transform: uppercase; }

.photo-single-image {
  width: 100%;
  max-height: 680px;
  object-fit: contain;
  margin-bottom: 24px;
  background: var(--bg-dark);
}

.post-body { font-size: 16px; color: var(--text-dim); text-align: left; }
.post-body p { margin-bottom: 16px; }

.photo-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

.photo-nav a { font-weight: 800; color: var(--text); }
.photo-nav a:hover { color: var(--accent); text-decoration: none; }

.post-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
}
.post-read-more:hover { color: var(--accent); text-decoration: none; }

.empty-state {
  color: var(--text-dimmer);
  padding: 64px 0;
  text-align: center;
}

/* Lightbox — near-full-bleed, larger image, minimal chrome
   ========================================================================== */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 5, 6, 0.97);
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.lightbox.is-open { display: flex; }

.lightbox-figure {
  position: relative;
  max-width: 96vw;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-image {
  max-width: 94vw;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-caption-block {
  margin-top: 20px;
  text-align: center;
  color: var(--on-dark);
  max-width: 680px;
}

.lightbox-title { display: block; font-family: var(--font); font-size: 19px; font-weight: 800; margin-bottom: 5px; }
.lightbox-album { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-bright); margin-bottom: 8px; }
.lightbox-caption { display: block; font-size: 14px; color: var(--on-dark-dim); margin-bottom: 10px; }

.lightbox-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 12px;
}

.lightbox-permalink { color: var(--accent-bright); font-weight: 700; letter-spacing: 0.02em; }
.lightbox-permalink:hover { color: var(--on-dark); }
.lightbox-counter { color: var(--on-dark-dimmer); letter-spacing: 0.04em; }

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: transparent;
  border: none;
  color: var(--on-dark-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { color: var(--on-dark); }

.lightbox-close { top: 22px; right: 26px; width: 42px; height: 42px; font-size: 30px; line-height: 1; }
.lightbox-prev { top: 50%; left: 18px; transform: translateY(-50%); width: 52px; height: 52px; font-size: 24px; }
.lightbox-next { top: 50%; right: 18px; transform: translateY(-50%); width: 52px; height: 52px; font-size: 24px; }

/* Forms (auth, admin)
   ========================================================================== */

.auth-section { padding: 64px 0 80px; display: flex; justify-content: center; }

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border, #ddd);
  border-radius: var(--radius-lg, 6px);
  padding: 36px;
}

.auth-card h1 { font-size: 22px; margin-bottom: 6px; text-align: center; text-transform: none; }
.auth-subtext { color: var(--text-dim, #666); font-size: 13px; text-align: center; margin-bottom: 24px; }

.demo-login-hint {
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  color: var(--accent, #1d4fff);
  border-radius: var(--radius, 3px);
  padding: 12px 14px;
  font-size: 13px;
  margin-bottom: 20px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-dim, #666);
}

.admin-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim, #666);
  margin-bottom: 10px;
  cursor: pointer;
}
.admin-checkbox input { width: auto; }

.admin-radio-group { display: flex; flex-direction: column; gap: 10px; }

.admin-radio-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border, #ddd);
  border-radius: var(--radius-lg, 6px);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.admin-radio-option:hover { border-color: var(--accent, #1d4fff); }
.admin-radio-option:has(input:checked) {
  border-color: var(--accent, #1d4fff);
  background: rgba(var(--accent-rgb), 0.05);
}
.admin-radio-option input { width: auto; margin-top: 3px; accent-color: var(--accent, #1d4fff); }
.admin-radio-title { display: block; font-size: 14px; font-weight: 700; color: var(--text, #222); }
.admin-radio-desc { display: block; font-size: 12.5px; color: var(--text-dim, #666); margin-top: 2px; }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg, #fff);
  border: 1px solid var(--border, #ddd);
  border-radius: var(--radius, 3px);
  color: var(--text, #222);
  font-size: 14px;
  font-family: var(--font-ui, sans-serif);
}

.form-group textarea { resize: vertical; }

.admin-color-input {
  width: 64px !important;
  height: 42px;
  padding: 4px !important;
  cursor: pointer;
}

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

.form-errors {
  background: rgba(200, 46, 46, 0.08);
  border: 1px solid rgba(200, 46, 46, 0.28);
  color: #b23131;
  border-radius: var(--radius, 3px);
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 18px;
}

.form-errors ul { list-style: disc; padding-left: 18px; }

.admin-form-hint {
  font-size: 12px;
  color: var(--text-dimmer, #999);
  margin-top: 6px;
}

.admin-form-section {
  font-family: var(--font-ui, sans-serif);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dimmer, #999);
  margin: 32px 0 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border, #ddd);
}
.admin-form-section:first-child { margin-top: 0; padding-top: 0; border-top: none; }

.admin-form-subsection {
  font-family: var(--font-ui, sans-serif);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent, #1d4fff);
  margin: 22px 0 12px;
}

.admin-image-preview {
  max-width: 220px;
  border-radius: var(--radius, 3px);
  border: 1px solid var(--border, #ddd);
  margin-bottom: 10px;
  display: block;
}

/* Admin shell
   ========================================================================== */

.admin-body { font-family: var(--font-ui, sans-serif); }

.admin-shell { display: flex; min-height: 100vh; align-items: flex-start; }

.admin-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--bg-card, #fff);
  border-right: 1px solid var(--border, #ddd);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.admin-sidebar .logo { margin-bottom: 28px; font-size: 17px; }

.admin-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }

.admin-nav a {
  padding: 9px 12px;
  border-radius: var(--radius, 3px);
  color: var(--text-dim, #666);
  font-size: 14px;
  font-weight: 500;
}
.admin-nav a:hover { background: var(--bg-alt, #f2f2f2); text-decoration: none; }
.admin-nav a.is-active { background: rgba(var(--accent-rgb), 0.12); color: var(--accent, #1d4fff); }

.admin-sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border, #ddd);
  font-size: 13px;
}

.admin-main { flex: 1; padding: 40px; max-width: 900px; }
.admin-main h1 { font-size: 24px; margin-bottom: 6px; text-transform: none; }
.admin-subtext { color: var(--text-dim, #666); margin-bottom: 28px; }

.admin-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.admin-header-row h1 { margin-bottom: 0; }

.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }

.admin-stat { background: var(--bg-card, #fff); border: 1px solid var(--border, #ddd); border-radius: var(--radius-lg, 6px); padding: 20px; }
.admin-stat-value { display: block; font-size: 26px; font-weight: 900; margin-bottom: 4px; font-family: var(--font-ui, sans-serif); }
.admin-stat-label { font-size: 12px; color: var(--text-dim, #666); }

.admin-quicklinks { display: flex; gap: 10px; flex-wrap: wrap; }

.admin-form { max-width: 600px; }

.admin-table { width: 100%; border-collapse: collapse; background: var(--bg-card, #fff); border: 1px solid var(--border, #ddd); border-radius: var(--radius-lg, 6px); overflow: hidden; }
.admin-table th, .admin-table td { padding: 12px 16px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--border, #ddd); }
.admin-table th { color: var(--text-dimmer, #999); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
.admin-table tr:last-child td { border-bottom: none; }

.admin-table-actions { display: flex; gap: 12px; align-items: center; }
.admin-table-actions form { margin: 0; }

.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.badge-draft { background: rgba(140, 141, 146, 0.18); color: var(--text-dim, #666); }
.badge-published { background: rgba(var(--accent-rgb), 0.14); color: var(--accent, #1d4fff); }
.badge-unread { background: rgba(var(--accent-rgb), 0.14); color: var(--accent, #1d4fff); }
.badge-read { background: rgba(140, 141, 146, 0.18); color: var(--text-dim, #666); }

/* A <button> styled as a one-click status-toggle badge (see admin/packages.php). */
.badge-button { border: none; cursor: pointer; font-family: inherit; }

.link-danger { background: none; border: none; color: #b23131; font-size: 13px; cursor: pointer; padding: 0; font-family: inherit; }
.link-danger:hover { text-decoration: underline; }

.admin-message-body {
  background: var(--bg-card, #fff);
  border: 1px solid var(--border, #ddd);
  border-radius: var(--radius-lg, 6px);
  padding: 20px 22px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text, #222);
  max-width: 640px;
}

.demo-banner {
  background: var(--bg-dark, #0c0c0d);
  color: var(--on-dark, #f7f7f5);
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
}
.demo-banner a { color: var(--accent-bright, #4169ff); text-decoration: underline; }

/* Demo-only preview bar — lets a visitor compare Light/Dark and Grid/Carousel
   without an admin login (the demo blocks admin saves by design). Session-only
   override, never touches the settings table. Not used in the sold package. */
.demo-preview-bar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.demo-preview-bar-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-size: 12.5px;
}

.demo-preview-label {
  color: var(--text-dimmer);
  font-weight: 600;
}

.demo-preview-group {
  color: var(--text-dim);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.demo-preview-group a {
  color: var(--text-dim);
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.demo-preview-group a:hover { color: var(--text); text-decoration: none; }
.demo-preview-group a.is-active {
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
  border-color: rgba(var(--accent-rgb), 0.3);
  text-decoration: none;
}

.demo-preview-color-input {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  vertical-align: middle;
  background: none;
}

.demo-preview-reset {
  color: var(--text-dimmer);
  font-weight: 700;
  text-decoration: underline;
}
.demo-preview-reset:hover { color: var(--text); }

@media (max-width: 640px) {
  .demo-preview-bar-inner { gap: 8px 14px; }
  .demo-preview-label { width: 100%; }
}

/* Install wizard
   ========================================================================== */

.install-body { display: flex; align-items: flex-start; justify-content: center; padding: 60px 20px; font-family: var(--font-ui, sans-serif); }

.install-card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border, #ddd);
  border-radius: var(--radius-lg, 6px);
  padding: 40px;
}

.install-card h1 { font-size: 22px; margin-bottom: 24px; text-transform: none; }
.install-card h2 { font-size: 15px; margin: 24px 0 12px; font-family: var(--font-ui, sans-serif); text-transform: none; }
.install-card p { margin-bottom: 12px; font-size: 14px; color: var(--text-dim, #666); }

.install-checklist { list-style: none; font-size: 14px; }
.install-checklist li { padding: 6px 0; }
.install-checklist .is-ok { color: var(--accent, #1d4fff); }
.install-checklist .is-fail { color: #b23131; font-weight: 700; }

.install-error {
  background: rgba(200, 46, 46, 0.08);
  border: 1px solid rgba(200, 46, 46, 0.28);
  color: #b23131;
  border-radius: var(--radius, 3px);
  padding: 12px 16px;
  font-size: 13px;
}
.install-error ul { list-style: disc; padding-left: 18px; margin: 0; }

.install-success { color: var(--accent, #1d4fff); font-weight: 700; font-size: 15px; }
.install-hint { font-size: 12px; color: var(--text-dimmer, #999); }

.install-form .form-group { margin-bottom: 16px; }

/* Dark mode — the site owner's global "Appearance" choice (data-theme="dark"
   on <html>, set from includes/header.php based on the theme_mode setting).
   Public-facing pages only. The admin panel (includes/admin-header.php) never
   receives data-theme and always stays in its own light theme regardless.
   ========================================================================== */

:root[data-theme="dark"] {
  --bg: #131316;
  --bg-alt: #1a1a1e;
  --bg-card: #1c1c20;
  --border: rgba(255, 255, 255, 0.12);
  --text: #f2f1ee;
  --text-dim: #a9a9b0;
  --text-dimmer: #77777f;
  --accent: #3f66ff;
  --accent-bright: #5c84ff;
  --accent-rgb: 63, 102, 255;
  --accent-bright-rgb: 92, 132, 255;
}

/* The footer/hero/lightbox/featured-card already sit on the fixed near-black
   --bg-dark regardless of theme. In dark mode the page background sits close
   to that same value, so the footer gets its own seam here to still read as
   a distinct band rather than blending into the page above it. */
[data-theme="dark"] .site-footer { border-top: 1px solid rgba(255, 255, 255, 0.08); }

/* The featured pricing card is deliberately dark-on-light for contrast in
   light mode; in dark mode every card is already dark, so give it an
   accent-tinted background instead so it still stands out from its
   neighbors rather than blending in. */
[data-theme="dark"] .service-card.is-featured {
  background: linear-gradient(165deg, rgba(var(--accent-rgb), 0.32) 0%, var(--bg-dark) 70%);
  border: 1px solid rgba(var(--accent-bright-rgb), 0.3);
}

[data-theme="dark"] .flash-error,
[data-theme="dark"] .form-errors {
  background: rgba(255, 107, 107, 0.12);
  border-color: rgba(255, 107, 107, 0.35);
  color: #ff8a8a;
}

[data-theme="dark"] .flash-success,
[data-theme="dark"] .demo-login-hint {
  background: rgba(var(--accent-rgb), 0.16);
  border-color: rgba(var(--accent-bright-rgb), 0.4);
}

/* Reduced motion — disables the Packages & Pricing scroll-reveal, hover
   lift, and "Most Popular" pulse for visitors who've asked for it, without
   touching layout. Cards simply appear in place instead of animating in.
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .reveal-up { opacity: 1; transform: none; }
  .service-card,
  .service-card.is-featured { transition: none; animation: none; }
  .service-card:hover,
  .service-card.is-featured:hover { transform: none; }
  .carousel-track { transition: none; }
}

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

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-media { margin-left: 0; min-height: 320px; }
  .about-copy { padding-left: 0; max-width: none; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { column-count: 2; }
}

@media (max-width: 768px) {
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: static; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 16px; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; }
  .admin-sidebar-footer { flex-direction: row; border-top: none; padding-top: 0; margin-left: auto; }
  .admin-main { padding: 24px; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .main-nav ul { gap: 18px; }
  .hero { min-height: 66vh; padding: 60px 0 64px; }
  .gallery-grid { column-count: 1; }
  .lightbox-prev { left: 6px; width: 42px; height: 42px; }
  .lightbox-next { right: 6px; width: 42px; height: 42px; }
  .lightbox-close { top: 10px; right: 12px; }
  .carousel-slide .gallery-item img { aspect-ratio: 4 / 3; }
  .carousel-prev { left: 8px; width: 38px; height: 38px; }
  .carousel-next { right: 8px; width: 38px; height: 38px; }
}
