/* =========================================================
   PHOTO-ME.BE — FULL SITE STYLESHEET (UNIVERSAL MOBILE CROP)
   ========================================================= */

/* ---------- Global Basics ---------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background: #fff;
  color: #222;
  overflow-x: hidden;
}

/* =========================================================
   NAVIGATION
   ========================================================= */
nav.top-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem 1.15rem;
  padding: 0.85rem 1rem;
  box-sizing: border-box;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #eee;
}

nav.top-nav a {
  color: #555;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

nav.top-nav a[aria-current="page"] {
  font-weight: 600;
  color: #111;
}

nav.top-nav a:hover {
  text-decoration: underline;
}

/* =========================================================
   HEADER / FOOTER
   ========================================================= */
header, footer {
  text-align: center;
  padding: 2rem;
  background: #f5f5f5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

footer {
  font-size: 14px;
  color: #777;
}

/* Highlight contact email on home page */
.contact-email {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.contact-email:hover {
  text-decoration: underline;
}

/* =========================================================
   HERO SECTION — Desktop
   ========================================================= */
.hero {
  position: relative;
  text-align: center;
  color: #111;

  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 2rem 1.5rem 1.25rem;

  background-image:
    linear-gradient(to bottom,
      rgba(255,255,255,0.85) 0%,
      rgba(255,255,255,0.45) 60%,
      rgba(255,255,255,0.15) 100%),
    url("../assets/hero-photo.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 48%;

  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.hero h1 {
  font-size: 2.1rem;
  margin: 0.6rem 0;
  max-width: 700px;
  text-shadow:
    0 2px 6px rgba(255,255,255,0.6),
    0 1px 3px rgba(0,0,0,0.25);
}

.hero p.sub {
  color: #000;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.6;
  margin: 0.6rem 0;
  max-width: 720px;
  text-shadow:
    0 2px 6px rgba(255,255,255,0.65),
    0 1px 3px rgba(0,0,0,0.25);
}

.hero p.sub strong {
  display: block;
  margin-top: 0.4rem;
  font-weight: 600;
  color: #000;
}

/* =========================================================
   HERO SECTION — Universal Mobile Crop (iPhone + Samsung)
   Goal: heads + little headroom → hips
   ========================================================= */
@media (max-width: 768px) {
  .hero {
    /* Universal: stable height across iOS + Android */
    height: clamp(240px, 32svh, 300px);

    /* layout */
    min-height: 0;         /* allow clamp to control */
    padding: 0.75rem 1rem;
    justify-content: center;
    align-items: center;

    background-size: cover;

    /* crop DOWN so we keep heads→hips and lose empty top */
    background-position: center 58%;
  }

  .hero h1 {
    font-size: 1.45rem;
    line-height: 1.3;
    margin: 0.35rem 0 0.45rem;
    max-width: 92%;
  }

  .hero p.sub {
    font-size: 1.05rem;
    line-height: 1.45;
    margin: 0;
    max-width: 92%;
  }

  /* slightly less intrusive text on mobile (still readable) */
  .hero h1,
  .hero p.sub {
    background: rgba(255,255,255,0.58);
    border-radius: 14px;
    padding: 10px 12px;
    display: inline-block;
  }
}

/* Optional extra stability for Safari (newer iOS) */
@supports (height: 1dvh) {
  @media (max-width: 768px) {
    .hero {
      height: clamp(240px, 32dvh, 300px);
    }
  }
}

/* =========================================================
   SECTIONS & CARDS
   ========================================================= */
.section {
  padding: 3rem 2rem;
  text-align: center;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 2rem;
  margin: auto;
  max-width: 1000px;
}

/* =========================================================
   SERVICES GRID — aligned headers & images
   ========================================================= */
.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.service-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  padding: 24px;
  text-align: left;
}

.service-card h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
}

.service-card .price {
  font-size: 1rem;
  font-weight: 600;
  color: #444;
  margin: 4px 0 10px;
}

.service-card .price--placeholder {
  visibility: hidden;
}

.service-card p {
  margin: 10px 0 0;
  color: #555;
  line-height: 1.6;
}

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

/* =========================================================
   HOME GALLERY PREVIEW
   ========================================================= */
.gallery {
  max-width: 1000px;
  margin: 1.5rem auto 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.gallery img {
  width: 100%;
  max-width: 480px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: translateY(-3px) scale(1.02);
}

@media (max-width: 768px) {
  .gallery {
    flex-direction: column;
  }
}

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   BACK TO TOP
   ========================================================= */
#backToTop {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #e6e6e6;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 22px;
  display: none;
  cursor: pointer;
}

/* =========================================================
   COOKIE CONSENT BANNER (Dark footer-style)
   ========================================================= */
#cookie-banner[hidden] {
  display: none !important;
}

#cookie-banner.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: rgba(15,15,15,0.95);
  color: #fff;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.18);
  padding: 16px;
}

#cookie-banner .cookie-banner__content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

#cookie-banner .cookie-banner__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

#cookie-banner .cookie-banner__actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

#cookie-banner .cookie-banner__link {
  color: #fff;
  text-decoration: underline;
  margin-right: auto;
  font-size: 14px;
}

#cookie-banner .cookie-banner__btn {
  border: 0;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
}

#cookie-banner .cookie-banner__btn--primary {
  background: #fff;
  color: #111;
}

#cookie-banner .cookie-banner__btn--secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.85);
}

@media (max-width: 520px) {
  #cookie-banner .cookie-banner__btn,
  #cookie-banner .cookie-banner__link {
    width: 100%;
  }
}

/* =========================================================
   ACCESSIBILITY HELPERS
   ========================================================= */
.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
}

.skip-link:focus {
  left: 10px;
}

:focus-visible {
  outline: 3px solid rgba(17,17,17,0.9);
  outline-offset: 3px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* =========================================================
   GALLERY GRID (dedicated gallery pages)
   ========================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: minmax(180px, 260px) repeat(2, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 2rem auto;
  align-items: stretch;
}

.gallery-grid img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  object-fit: cover;
  cursor: pointer;
}

/* Explicit placement for first 5 images (desktop) */
.gallery-grid img:nth-child(1) {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.gallery-grid img:nth-child(2) { grid-column: 2; grid-row: 1; }
.gallery-grid img:nth-child(3) { grid-column: 3; grid-row: 1; }
.gallery-grid img:nth-child(4) { grid-column: 2; grid-row: 2; }
.gallery-grid img:nth-child(5) { grid-column: 3; grid-row: 2; }

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid img {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}

/* =========================================================
   LIGHTBOX OVERLAY
   ========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.lightbox.visible {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  opacity: 1;
  transition: opacity 360ms ease;
  will-change: opacity;
}

.lightbox__img--hidden {
  opacity: 0;
}

/* Close button */
.lightbox__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
}

.lightbox__close:hover { background: rgba(0, 0, 0, 0.8); }

.lightbox__close:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.lightbox__close svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

/* Navigation arrows */
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lightbox__nav:hover { background: rgba(0, 0, 0, 0.8); }

.lightbox__nav svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

.lightbox__prev { left: 0.75rem; }
.lightbox__next { right: 0.75rem; }

@media (max-width: 520px) {
  .lightbox__nav { width: 2.75rem; height: 2.75rem; }
}

/* Counter */
.lightbox__counter {
  position: absolute;
  bottom: 0.9rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  user-select: none;
}
/* ===========================
   FORCE MOBILE HERO SHORTER
   Put at END of file
   =========================== */
@media (max-width: 768px) {
  .hero {
    height: 140px !important;   /* much shorter */
    min-height: 0 !important;
    padding: 0.4rem 0.6rem !important;
    justify-content: center !important;

    background-size: cover !important;

    /* crop DOWN more to keep heads→hips */
    background-position: center 66% !important;
  }
}
/* ===========================
   MOBILE HERO: keep photo visible + nav clickable
   Put at END of file
   =========================== */
@media (max-width: 768px) {

  /* Make sure nav is above hero and clickable */
  nav {
    position: sticky;
    top: 0;
    z-index: 99999;
    background: #fff;
  }

  /* Keep hero content inside the hero area */
  .hero {
    position: relative;
    overflow: hidden;
    justify-content: flex-end !important; /* text sits low */
    padding: 0.5rem 0.75rem 0.75rem !important;
  }

  /* Remove the big white boxes that cover the photo */
  .hero h1,
  .hero p.sub {
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    display: block !important;
    margin: 0 !important;
  }

  /* Put text into one compact readable overlay */
  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(255,255,255,0.00) 0%,
      rgba(255,255,255,0.10) 35%,
      rgba(255,255,255,0.72) 100%
    );
    pointer-events: none;
  }

  /* Keep text above the gradient overlay */
  .hero > * {
    position: relative;
    z-index: 2;
    max-width: 92%;
    text-shadow:
      0 2px 6px rgba(255,255,255,0.75),
      0 1px 3px rgba(0,0,0,0.25);
  }

  /* Reduce text size so it fits the shorter hero */
  .hero h1 {
    font-size: 1.05rem !important;
    line-height: 1.15 !important;
    margin-bottom: 0.25rem !important;
  }

  .hero p.sub {
    font-size: 0.85rem !important;
    line-height: 1.25 !important;
  }

  /* Optional: hide the 2nd strong line on very small heroes */
  .hero p.sub strong:nth-of-type(2) {
    display: none;
  }
}
/* ===========================
   MOBILE HERO — push text lower (protect faces)
   =========================== */
@media (max-width: 768px) {

  .hero {
    justify-content: flex-end !important;
    padding-bottom: 0.1rem !important;
  }

  /* Push text block further down visually */
  .hero h1 {
    margin-top: auto !important;
  }

  /* Optional: slightly stronger bottom fade so text is readable lower */
  .hero::after {
    background: linear-gradient(
      to bottom,
      rgba(255,255,255,0.00) 0%,
      rgba(255,255,255,0.05) 45%,
      rgba(255,255,255,0.78) 100%
    ) !important;
  }
}
@media (max-width: 768px) {
  .hero {
    justify-content: flex-end !important;
    padding-bottom: 0 !important;
  }

  .hero h1,
  .hero p.sub {
    transform: translateY(14px); /* PUSH TEXT DOWN */
  }
}

