/* Display fonts removed; using Montserrat/system fonts */

:root {
  --bg-color: #033624;
  --text-color: #ffffff;
  --accent-teal: #25f4ee;
  --accent-pink: #fe2c55;
  --accent-dark: #000000;
  --card-bg: rgba(3, 54, 36, 0.98);
  --shadow-soft: none;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-dual-card: none;
}

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

html,
body {

  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  position: relative;
  min-height: 100vh;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */

.site-header {
  padding: 24px 0 12px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  max-width: 320px;
  height: auto;
}

/* Landing */

.landing-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 40px;
}

.landing-card {
  max-width: 540px;
  width: 100%;
  padding: 32px 28px 28px;
  border-radius: var(--radius-lg);
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.landing-title {
  margin: 0 0 8px;
  font-size: 2.0rem;
  font-weight: 600;
}

.landing-copy {
  margin: 0 0 20px;
  font-size: 0.97rem;
  line-height: 1.6;
}

/* Form */

.code-form {
  /* layout for label + row */
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.code-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 4px;
}

.code-row .code-input {
  flex: 1;
}

.code-row .go-btn {
  white-space: nowrap;
  padding-inline: 20px;
}



.code-label {
  text-align: left;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.code-input {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 11px 16px;
  font-size: 0.98rem;
  outline: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}

.code-input:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8);
}

/* Buttons */

.btn,
.btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: #ffffff;
  color: #033624;
  padding: 10px 26px;
  font-size: 0.96rem;
  text-decoration: none;
  transform: translateY(0);
  transition: transform 0.08s ease, background 0.08s ease, color 0.08s ease;
  box-shadow: none;
}

.btn-small {
  padding: 8px 20px;
  font-size: 0.9rem;
}

.btn:hover,
.btn-small:hover {
  transform: translateY(-1px);
  background: #e6f2ee;
}

.btn:active,
.btn-small:active {
  transform: translateY(0);
}

.go-btn {
  margin-top: 4px;
}

/* Footer */

.site-footer {
  padding: 18px 0 24px;
}

.footer-inner {
  text-align: center;
  font-size: 0.78rem;
  opacity: 0.75;
}

/* Footer link styling for visibility */
.footer-inner a,
.footer-inner a:visited,
.footer-inner a:hover,
.footer-inner a:active,
.footer-inner a:focus,
.footer-inner a:focus-visible {
  color: #ffffff !important;
  text-decoration: underline;
}

/* Gallery page */

.gallery-wrap {
  flex: 1;
  padding: 0 16px 40px;
}

.gallery-copy {
  margin: 24px auto 18px;
  text-align: center;
  max-width: 720px;
  font-size: 0.95rem;
  line-height: 1.6;
  background: var(--card-bg);
  padding: 16px 22px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dual-card);
}

.gallery-empty {
  font-weight: 600;
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 0 0;
}

.card {
  background: transparent;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: visible;
  box-shadow: none;
}

.card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.45);
}

.actions {
  padding: 8px 0 0;
  display: flex;
  justify-content: flex-start;
}

/* Lightbox */

.lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 54, 36, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
}

.lb-overlay.open {
  display: flex;
}

.lb-content {
  position: relative;
  max-width: min(92vw, 520px);
  max-height: 90vh;
  background: #033624;
  box-shadow: none;
  border-radius: 24px;
  padding: 18px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lb-img-wrap {
  flex: 1;
  overflow: hidden;
  border-radius: 18px;
}

.lb-img {
  display: block;
  width: 100%;
  height: auto;
}

.lb-actions {
  display: flex;
  justify-content: center;
}

.lb-btn {
  min-width: 150px;
}

.lb-close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 1.8rem;
  cursor: pointer;
}

.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-size: 1.8rem;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lb-prev {
  left: -18px;
}

.lb-next {
  right: -18px;
}

/* Responsive tweaks */

@media (max-width: 640px) {
  .landing-card {
    padding: 24px 18px 20px;
  }

  .landing-title {
    font-size: 1.45rem;
  }

  .gallery-copy {
    padding: 0 8px;
  }

  .lb-content {
    max-width: 94vw;
    padding: 16px 14px 18px;
  }

  .lb-prev {
    left: 4px;
  }

  .lb-next {
    right: 4px;
  }
}

/* Typography */
html, body {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Buttons: text color to black */
.btn, .btn-small { color: #000000; }

/* Discovery bar styling */
.code-row { width: 100%; }
.discovery-bar {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 6px solid #000000;
  border-radius: 28px;
  padding: 12px 16px;
}
.discovery-bar .search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #000000;
}
.discovery-input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  color: #000000;
  font-size: 1.6rem;
  font-weight: 700; /* Bold inside bar */
  line-height: 1.2;
  padding: 8px 4px;
}
.discovery-input::placeholder {
  color: #9a9a9a;
  font-weight: 600;
}

/* Remove default input chrome when used in discovery bar */
.discovery-bar .code-input { border: 0; box-shadow: none; }
.discovery-bar .code-input:focus { border: 0; box-shadow: none; }

/* Responsive size for discovery input */
@media (max-width: 640px) {
  .discovery-input { font-size: 1.25rem; }
}

/* Title weight to Bold */
.landing-title { font-weight: 700; }



/* Discovery bar uses SVG outline skin */
.discovery-bar {
  position: relative;
  background: transparent;
  border: 0; /* outline provided by SVG */
  padding: 12px 16px; /* inner content padding */
  min-height: 64px;   /* ensure comfortable touch target */
}
.discovery-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/assets/discovery-outline.interior.clean.svg') no-repeat center center / 100% 100%;
  pointer-events: none; /* clicks pass through */
}
/* Lift content above the skin */
.discovery-bar > * { position: relative; z-index: 1; }

.discovery-bar { background: #ffffff; }

.discovery-input {  }

/* Discovery bar: ensure clearance from magnifier */

.discovery-input {  }
/* Extra clearance left of text */

.discovery-input {  }

/* Use an absolutely-positioned img as skin to avoid background clipping */
.discovery-bar { position: relative; overflow: visible; background: transparent !important; border: 0; }
.discovery-skin { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; pointer-events: none; z-index: 0; }
.discovery-bar > *:not(.discovery-skin) { position: relative; z-index: 1; }
/* Extra margin to clear the magnifier area */

.discovery-input {  }

/* Discovery v2: fixed-aspect wrapper with SVG skin */
.discovery-wrap {
  position: relative;
  width: 100%;
  max-width: 580px; /* matches card width */
  aspect-ratio: 400 / 82.08595; /* matches current SVG viewBox */
}
.discovery-skin { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; pointer-events: none; }
.discovery-content { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 var(--disc-right, 3%) 0 var(--disc-left, 15%); }
/* stronger reset on old styles */
.discovery-bar, .discovery-wrap { background: transparent !important; border: 0 !important; border-radius: 0 !important; padding: 0 !important; }
/* input inside content */
.discovery-input { width: 100%; background: transparent; border: 0; outline: none; color: #000; font-weight: 700; font-size: clamp(1.2rem, 3.4vw, 1.8rem); }
.discovery-input::placeholder { color: #9a9a9a; font-weight: 600; }
@media (max-width: 640px) {
  .discovery-content { padding: 0 var(--disc-right-mobile, 5%) 0 var(--disc-left-mobile, 18%); }
}

/* Go button – match discovery bar visual */
.go-btn {
  background: #ffffff !important;
  color: #000000 !important;
  border: 6px solid #000000 !important;
  border-radius: 16px !important;
  height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
}
@media (max-width: 640px) {
  .go-btn { height: 42px; padding: 0 14px; border-width: 5px; border-radius: 14px; }
}


/* Inline Go inside discovery bar */
.go-btn { display: none !important; }
.go-inline {
  background: transparent;
  border: 0;
  color: #000;
  font-weight: 700;
  font-size: clamp(0.9rem, 2.2vw, 1.0rem);
  letter-spacing: 0.02em;
  padding: 6px 6px;
  cursor: pointer;
}
.go-inline:focus-visible { outline: 2px dotted #000; outline-offset: 2px; border-radius: 4px; }
/* Match inline Go to input size and push to edge */
.discovery-content { gap: 10px; }
.discovery-input { flex: 1; }
.go-inline { font-size: inherit; font-weight: 700; text-transform: uppercase; margin-left: 10px; padding: 4px 6px; }

/* Viewport sizing: prefer dynamic viewport units to avoid iOS URL bar jump */
html, body, .page { min-height: 100vh; }
@supports (height: 100dvh) {
  html, body, .page { min-height: 100dvh; }
}
@supports (height: 100svh) {
  html, body, .page { min-height: 100svh; }
}

/* Landing-only: prevent scroll on small screens */
@media (max-width: 640px) {
  body.landing { overflow-y: hidden; }
  .site-header { padding: 10px 0 4px; }
  .brand-logo { max-width: 200px; }
  .landing-main { padding: 10px 14px 12px; }
  .landing-card { padding: 16px 10px 10px; }
  .site-footer { padding: 8px 0 10px; }
  .footer-inner { font-size: 0.7rem; }
}

/* Small helper link under discovery bar */
.contact-line {
  margin: 8px 0 0;
  font-size: 0.85rem;
  line-height: 1.3;
  text-align: center;
  opacity: 0.95;
}
.contact-line a {
  color: var(--text-color);
  text-decoration: underline;
  font-weight: 600;
}
@media (max-width: 640px) {
  .contact-line { font-size: 0.8rem; }
}

/* Contact line refinements */
.contact-line { font-size: 0.75rem; font-style: italic; opacity: 0.9; }
.contact-line a,
.contact-line a:visited,
.contact-line a:hover,
.contact-line a:active { color: #ffffff !important; text-decoration: underline; }
@media (max-width: 640px) { .contact-line { font-size: 0.72rem; } }
