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

html {
  scroll-behavior: smooth;
}

h1, h2 {
  font-family: 'Playfair Display', serif;
}

body {
  font-family: 'Lato', Arial, sans-serif;
  color: #222;
  background-color: #ededed;
}

/* ---------- Navbar ---------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: #1a1a1a;
  color: white;
  position: relative;
}

.logo img {
  height: 50px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: #ccc;
}
.nav-links a.active {
  color: #ccc;
  border-bottom: 2px solid white;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #1a1a1a;
  min-width: 150px;
  list-style: none;
  padding: 10px 0;
}

.dropdown-menu li {
  padding: 8px 20px;
}

/* Show the city list on mouse hover (devices with a real pointer) and keyboard focus */
@media (hover: hover) {
  .dropdown:hover .dropdown-menu {
    display: block;
  }
}

.dropdown:focus-within .dropdown-menu {
  display: block;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
}

.hamburger:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Hero ---------- */
.hero {
  height: 100vh;
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center;
}

/* ---------- Intro ---------- */
.intro {
  text-align: center;
  padding: 60px 20px 20px;
}

.intro h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #1a1a1a;
}

.intro p {
  font-size: 1.1rem;
  color: #555;
}

/* ---------- About ---------- */
.about {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px 20px 60px;
  text-align: center;
}

.about p {
  color: #707070;
}

.about p:not(:last-child) {
  margin-bottom: 16px;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 25px 25px;
  max-width: 1500px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  color: white;
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

/* Thumbnails are wrapped in buttons by script.js so they work with the keyboard */
.gallery-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

/* Clicks on the caption strip should reach the photo button underneath */
.gallery-caption {
  pointer-events: none;
}

/* Keyboard focus: outline the photo and show its caption, like hover does */
.gallery-item:has(.gallery-open:focus-visible) {
  outline: 3px solid #1a1a1a;
  outline-offset: 3px;
}

.gallery-item:has(.gallery-open:focus-visible) img {
  transform: scale(1.05);
}

.gallery-item:has(.gallery-open:focus-visible) .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}
/* ---------- Services (kept for reuse on the parlour site later) ---------- */
.services {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
}

.service-row {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.service-row img {
  width: 50%;
  height: 300px;
  object-fit: cover;
  border-radius: 6px;
}

.service-text {
  width: 50%;
}

.service-text h2 {
  margin-bottom: 12px;
}

.service-row:nth-child(even) {
  flex-direction: row-reverse;
}

/* ---------- Contact ---------- */
.contact {
  max-width: 600px;
  margin: 0 auto;
  padding: 60px 20px;
}

.contact h2 {
  text-align: center;
  margin-bottom: 30px;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact label {
  font-weight: bold;
  margin-top: 12px;
}

.contact input,
.contact textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

.contact input:focus,
.contact textarea:focus {
  outline: none;
  border-color: #1a1a1a;
}

.contact button {
  margin-top: 20px;
  padding: 12px;
  background-color: #1a1a1a;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
}

.contact button:hover {
  background-color: #333;
}

.contact button[disabled] {
  opacity: 0.6;
  cursor: default;
}

/* Spam honeypot — hidden from users, visible to bots */
.contact input[name="_gotcha"] {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 16px;
  text-align: center;
  font-size: 0.95rem;
  min-height: 1.2em;
}

.form-status.success {
  color: #1a7a3c;
}

.form-status.error {
  color: #b3261e;
}

/* ---------- Lightbox ---------- */
.lightbox.hidden {
  display: none;
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 6px;
}

/* Discourage casual saving of photos (drag, selection, iOS long-press menu) */
.gallery img,
.lightbox img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: white;
  cursor: pointer;
  padding: 10px;
  user-select: none;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-arrow:hover,
.lightbox-close:hover {
  color: #ccc;
}

/* Lightbox controls are real buttons: remove default button styling */
.lightbox-close,
.lightbox-arrow {
  background: none;
  border: 0;
  font-family: inherit;
  line-height: 1;
}

/* Comfortable tap area (at least 44 x 44 px) for the close button */
.lightbox-close {
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:focus-visible,
.lightbox-arrow:focus-visible {
  outline: 2px solid white;
  outline-offset: 4px;
  border-radius: 4px;
}

/* Stop the page behind the lightbox from scrolling */
body.lightbox-open {
  overflow: hidden;
}

/* Horizontal swipes are handled by script.js; keep vertical panning and pinch-to-zoom */
.lightbox {
  touch-action: pan-y pinch-zoom;
}

/* Text for screen readers only */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 20px;
  color: #666;
  font-size: 0.9rem;
}

.footer-social {
  margin-bottom: 8px;
}

.footer-social a,
.contact-intro a {
  color: #1a1a1a;
  font-weight: bold;
  text-underline-offset: 3px;
}

.footer-social a:hover,
.contact-intro a:hover {
  color: #555;
}

.contact .contact-intro {
  text-align: center;
  color: #707070;
  margin: -16px 0 20px;
}

/* ---------- Mobile overrides (always last) ---------- */
@media (max-width: 600px) {
  .logo img {
    height: 36px;
  }

  .hamburger {
    display: block;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    line-height: 1;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: #1a1a1a;
    text-align: center;
    padding: 20px 0;
  }

  .nav-links.active {
    display: flex;
  }

  /* On phones, "Travels" opens the Travels page, which lists every city */
  .nav-links .dropdown-menu,
  .nav-links .dropdown:focus-within .dropdown-menu {
    display: none;
  }

  .gallery {
    grid-template-columns: repeat(1, 1fr);
  }

  .service-row {
    flex-direction: column;
  }

  .service-row img,
  .service-text {
    width: 100%;
  }
}
/* ---------- 404 Page ---------- */
.not-found {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.not-found h1 {
  font-size: 5rem;
  color: #1a1a1a;
}

.not-found p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 24px;
}

.not-found-link {
  background-color: #1a1a1a;
  color: white;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 1rem;
}

.not-found-link:hover {
  background-color: #333;
}
@view-transition {
  navigation: auto;
}
.lightbox-caption {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 20px;
  border-radius: 4px;
  max-width: 80%;
}

/* ---------- Shop & Licensing page ---------- */
.hero-short {
  height: 55vh;
}

.shop-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.shop-card {
  background: white;
  border-radius: 6px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.shop-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #707070;
  margin-bottom: 8px;
}

.shop-card h2 {
  font-size: 1.6rem;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.shop-card p,
.shop-card li,
.tier p,
.shop-steps li,
.shop-note p {
  color: #555;
  line-height: 1.6;
}

.shop-card > p {
  margin-bottom: 16px;
}

.shop-card ul {
  padding-left: 20px;
  margin-bottom: 24px;
}

.shop-card li {
  margin-bottom: 6px;
}

.shop-card .shop-price {
  margin-top: auto;
}


.shop-price {
  font-weight: 700;
  color: #1a1a1a;
}

.shop-button {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 24px;
  background-color: #1a1a1a;
  color: white;
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
}

.shop-button:hover {
  background-color: #333;
}

.shop-button-disabled,
.shop-button-disabled:hover {
  background-color: #b5b5b5;
  cursor: default;
}

.shop-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 20px 50px;
}

.shop-section h2 {
  text-align: center;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.shop-section-intro,
.shop-fineprint {
  text-align: center;
  color: #707070;
  max-width: 640px;
  margin: 0 auto;
}

.shop-section-intro {
  margin-bottom: 24px;
}

.shop-fineprint {
  font-size: 0.9rem;
  margin-top: 20px;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tier {
  background: white;
  border-radius: 6px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tier h3,
.shop-note h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: #1a1a1a;
}

.tier .shop-price {
  margin-top: auto;
}

.shop-steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.shop-steps li {
  counter-increment: step;
  background: white;
  border-radius: 6px;
  padding: 24px;
}

.shop-steps li::before {
  content: counter(step);
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.shop-steps strong {
  color: #1a1a1a;
}

.shop-note {
  background: white;
  border-left: 3px solid #1a1a1a;
  border-radius: 0;
  padding: 24px 28px;
  max-width: 760px;
  margin: 0 auto;
}

.shop-note h3 {
  margin-bottom: 8px;
}

.contact select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  background: white;
}

.contact select:focus {
  outline: none;
  border-color: #1a1a1a;
}

.contact .optional {
  font-weight: normal;
  color: #707070;
}

@media (max-width: 800px) {
  .shop-options,
  .tier-grid,
  .shop-steps {
    grid-template-columns: 1fr;
  }

  .hero-short {
    height: 35vh;
  }
}

/* ---------- Travels page ---------- */
.city-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 25px 60px;
}

.city-card {
  position: relative;
  background: white;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.city-card-photo {
  overflow: hidden;
}

.city-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  /* Crop wide photos from the right so the watermark (bottom left) stays whole */
  object-position: left center;
  transform-origin: left bottom;
  display: block;
  transition: transform 0.3s ease;
}

.city-card:hover img,
.city-card:focus-within img {
  transform: scale(1.05);
}

.city-card-body {
  background: white;
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.city-card h2 {
  font-size: 1.5rem;
  color: #1a1a1a;
}

.city-card h2 a {
  color: inherit;
  text-decoration: none;
}

/* The whole card is clickable through the city name link */
.city-card h2 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.city-card:has(h2 a:focus-visible) {
  outline: 3px solid #1a1a1a;
  outline-offset: 3px;
}

.city-card h2 a:focus-visible {
  outline: none;
}

.city-card-country {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #707070;
  margin: 4px 0 12px;
}

.city-card-teaser {
  color: #555;
  line-height: 1.6;
  margin-bottom: 16px;
}

.city-card-meta {
  margin-top: auto;
  font-weight: bold;
  color: #1a1a1a;
}

.back-link {
  max-width: 1500px;
  margin: 0 auto;
  padding: 10px 25px 40px;
  text-align: center;
}

.back-link a {
  color: #1a1a1a;
  font-weight: bold;
  text-underline-offset: 3px;
}

.back-link a:hover {
  color: #555;
}

@media (max-width: 1000px) {
  .city-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .city-grid {
    grid-template-columns: 1fr;
  }
}
