/* --- Base / variables --- */
:root {
  --maxw: 1200px;
  --gap: 1rem;
  --radius: 14px;
}

body {
  font-family: "Alan Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  background: linear-gradient(-45deg, #1a1a1a, #2e2e2e, #121212, #242424);
  background-size: 400% 400%;
  animation: gradientShift 12s ease infinite;
  color: bisque;
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  25%  { background-position: 50% 100%; }
  50%  { background-position: 100% 50%; }
  75%  { background-position: 50% 0%; }
  100% { background-position: 0% 50%; }
}

body.fade-in {
      opacity: 1;                   /* fade in */
    }
    body.fade-out {
      opacity: 0;                   /* fade out */
    }
    a {
      color: blue;
      cursor: pointer;
    }

.sherlockContainer {
  display: grid;
  gap: clamp(.75rem, 2vw, 1.25rem);
  justify-items: center;
  align-items: start;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem);
}

/* 2 columns on tablets/desktop, 1 on mobile; article spans full width */
.sherlockContainer {
  grid-template-columns: 1fr;
}
@media (min-width: 820px) {
  .sherlockContainer {
    grid-template-columns: 1.2fr .8fr;
    align-items: start;
  }
}

/* Gallery layout */
.sherlockGallery {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap);
}

/* Card-style frames */
.shot {
  margin: 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
  overflow: hidden;                /* clips the rounded corners */
}

/* Make images consistent without distortion */
.dog-photo {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;             /* pick 1/1, 3/2, or 4/3 to taste */
  object-fit: cover;                /* fills the frame nicely */
  transition: transform .2s ease, filter .2s ease;
}

/* Subtle hover lift */
.shot:hover .dog-photo,
.shot:focus-within .dog-photo {
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.02);
}

#paw-prints {
  max-width: 400px;
  max-height: 400px;
}

.landing-page-text {
  background: #2f4f4f;            /* darkslate */
  color: #f5f7fa;                  /* soft white for readability */
  max-width: 60%;
  margin: 4rem auto;
  padding: 2rem clamp(1rem, 3vw, 2rem);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  line-height: 1.65;
  font-size: large;
}

.landing-page-text:hover {
  transform:translateY(-2px);
  box-shadow: 10px 10px 42px rgba(0,0,0,0.2);
  background-color: #4f7f7f; 
  border-radius: 12px;
}


.landing-page-text::after {
  opacity: 0;
  content: "";
  position: absolute;
  top: 0;
  left: -5%;              /* start offscreen */
  width: 100%;
  height: 100%;
  background: #5f9ea0;     /* hover background color */
  transition: left 0.5s ease;
  z-index: -1;              /* keep it behind the text */
  border-radius: 12px;
}

.landing-page-text:hover::after {
  left: 0;                  /* slide fully in */
  opacity: 1;
}


.sherlock-text {
  background: #2f4f4f;            /* darkslate */
  color: #f5f7fa;                  /* soft white for readability */
  max-width: 60%;
  margin: 4rem auto;
  padding: 2rem clamp(1rem, 3vw, 2rem);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  line-height: 1.65;
  font-size: large;
}

.sherlock-text:hover {
  transform:translateY(-2px);
  box-shadow: 10px 10px 42px rgba(0,0,0,0.2);
  background-color: #4f7f7f; 
  border-radius: 12px;
}


.sherlock-text::after {
  opacity: 0;
  content: "";
  position: absolute;
  top: 0;
  left: -5%;              /* start offscreen */
  width: 100%;
  height: 100%;
  background: #5f9ea0;     /* hover background color */
  transition: left 0.5s ease;
  z-index: -1;              /* keep it behind the text */
  border-radius: 12px;
}

.sherlock-text:hover::after {
  left: 0;                  /* slide fully in */
  opacity: 1;
}

.sherlockSidebar {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  align-items: center;                     /* center paw prints & card */
}
@media (min-width: 1024px) {
  .sherlockSidebar { position: sticky; top: 1rem; } /* optional sticky */
}

.landing-page-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  align-items: center;                     /* center paw prints & card */
}
@media (min-width: 1024px) {
  .sherlockSidebar { position: sticky; top: 1rem; } /* optional sticky */
}


/* Optional: nicer paragraph rhythm */
.landing-page-article p { margin: 0; }

/* Fade-in behavior */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 800ms ease, transform 800ms ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
}

.landing-page-article-trigger { height: 1px; }
h1,
.pageHeading {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.navbar {
  border: 3px solid #111;
  background: linear-gradient(to bottom, #3a3a3a 0%, #1a1a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.6);
  padding: 10px 0;
}

/* Navbar links */
.navbar a {
  margin: 0 20px;
  padding: 8px 14px;
  font-size: large;
  font-family: "Alan Sans", sans-serif;
  color: bisque;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 10px;
  transition: all 0.25s ease-in-out;
  position: relative;
}



/* Make it smaller on mobile */
@media (max-width: 500px) {
  .navbar {
    gap: 5px;           /* tighter spacing */
    padding: 4px 6px;   /* less padding */
    font-size: 0.85rem;  /* smaller text */
  }

  .navbar a {
    padding: 2px 4px;    /* smaller clickable area */
  }
}
/* Hover highlight effect */
.navbar a:hover {
  border: 2px solid bisque;
  background: linear-gradient(to bottom, rgba(255,255,255,0.08), rgba(255,255,255,0));
  color: #fff;
  box-shadow: 0 0 8px rgba(255,228,196,0.5);
}




#camera-image {
  border: 2px solid black;
}
/* --- Hero / misc --- */
.landing-page-image {
  max-height: 75%;
  max-width: 75%;
  position: relative;
  border: 2px solid black;
  border-top: 0;
  display: block;
  margin: 0 auto;
}



.content {
  display: flex;
  align-items: flex-start;
  background-color: lightgrey;
}

article {
  background-color: lightgrey;
  margin-left: 20px;
}

.headers {
  display: flex;
  align-items: center;      /* vertical centering */
  justify-content: center;  /* horizontal centering */
  
  background: linear-gradient(-45deg, #1a1a1a, #2e2e2e, #121212, #242424);
  background-size: 400% 400%;
  animation: gradientShift 12s ease infinite;
  
  color: bisque;
  text-align: center;
  
  min-height: 20vh;        /* fills full screen height */
  box-sizing: border-box;
  padding: 20px;
}


#spLogo {
  height: 250px;
  width: 250px;
}

#headingText {
  margin: 20px
}

/* --- Locations --- */
.locations {
  max-height: 300px;
  max-width: 300px;
  display: block;
}

.visitBtn {
  border: 0;
  background-color: slategrey;
  color: bisque;
  font-family: "Alan Sans", sans-serif;
  font-size: x-large;
  font-weight: 600;
  min-width: 300px;
}

.location-card {
  display: inline-block;
  text-align: center;
  margin: 10px;
}

/* --- Socials layout --- */
.socials-container {
  display: flex;
  justify-content: space-between; /* space between left + right */
  align-items: flex-start;        /* top aligned */
  gap: 30px;
  padding: 20px;
}

/* Left side: stack cards vertically */
.socials-left {
  flex: 1;            /* take up remaining space */
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Right side: TikTok embed */
.socials-right {
  flex: 1;            /* take up equal space */
  max-width: 600px;   /* prevent it from being too large */
}

/* --- Gallery (deduplicated) --- */
.gallery {
  max-width: var(--maxw);
  margin: 0 auto 2rem;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap);
}

.gallery-img {
  width: 100%;
  height: 100%;
  margin: 20px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 5px groove black;           /* normalized order */
  box-shadow: 0 2px 10px blue;        /* keep if you like the color */
  transition: transform .18s ease, box-shadow .18s ease;
  cursor: zoom-in;
}

.gallery-img:hover,
.gallery-img:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px lightblue;
  outline: none;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.85);
  padding: 2rem;
  z-index: 1000;
}

.lightbox[aria-hidden="false"] {
  display: flex;
}

.lightbox img {
  max-width: min(100vw, 1100px);
  max-height: 85vh;
  border-radius: 10px;
  box-shadow: 0 10px 40px brown;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  line-height: 1;
  background: #fff;
  border: none;
  border-radius: 999px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  box-shadow: 0 4px 14px brown;
}

:root {
  --footer-h: 72px; /* will be updated by JS below */
}

/* fixed bottom panel */
.bottomPanel {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #2f4f4f;
  color: #f5f7fa;
  border-top: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 -8px 24px rgba(0,0,0,.16);
  z-index: 80;
}

/* inner container aligned to your site width */
.bottomPanel .footerWrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: .75rem clamp(1rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
}

.bottomPanel a { color: inherit; text-decoration: none; }

/* socials */
.socials {
  display: flex;
  align-items: center;
  gap: .65rem;
  list-style: none;
  padding: 0; margin: 0;
}
.socials a {
  display: inline-flex;
  width: 34px; height: 34px;
  align-items: center; justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  transition: transform .15s ease, background .15s ease, opacity .15s ease;
}
.socials a:hover { transform: translateY(-1px); background: rgba(255,255,255,.18); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }

/* text */
.footerMeta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .95rem;
  opacity: .92;
  text-align: right;
}
.footerMeta .copy, .footerMeta .credit { white-space: nowrap; }

/* mobile stacking */
@media (max-width: 720px) {
  .bottomPanel .footerWrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .5rem;
  }
  .footerMeta { flex-direction: column; gap: .25rem; text-align: center; }
}

/* keep content visible above fixed footer */
body {
  padding-bottom: calc(var(--footer-h) + env(safe-area-inset-bottom));
}


/* Optional dark mode (kept commented)
@media (prefers-color-scheme: dark) {
  body { background: #0f1115; color: #e9ecf1; }
  .navbar a { border-color: #2a2f3a; box-shadow: none; }
  .gallery-img { border-color: #2a2f3a; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
  .lightbox { background: rgba(0,0,0,.75); }
}
*/


/* --- Mobile rescue rules --- */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

/* Make media responsive */
img, video, canvas { max-width: 100%; height: auto; display: block; }

/* Prevent fixed nav from covering content */
:root { --nav-height: 64px; }            /* adjust to your real nav height */
body.has-fixed-nav { padding-top: var(--nav-height); }

/* Basic mobile layout */
@media (max-width: 768px) {
  /* If your nav is fixed, consider making it static on mobile */
  nav, .navbar { position: static !important; top: auto !important; }

  /* Stack menu items vertically or wrap when there isn't room */
  nav ul, .navbar ul {
    display: flex; flex-wrap: wrap; gap: 8px;
  }
  nav li, .navbar li { flex: 1 1 auto; }

  /* Avoid oversized logo/header colliding with nav */
  .logo, header img { max-width: 40vw; height: auto; }

  /* Keep main content away from edges */
  main { padding: 0 16px; }
}

/* Optional: subtle shadow so the nav looks “above” without hiding content */
nav { z-index: 10; box-shadow: 0 2px 8px rgba(74, 72, 72, 0.5); }

  :root {
    --xfade-ms: 100ms;           /* page transition duration */
    --reveal-ms: 300ms;          /* scroll-reveal duration */
    --reveal-distance: 16px;     /* how far items rise in */
    --xfade-bg: #000;            /* color seen under the fade (set to your brand) */
  }
  @media (prefers-reduced-motion: reduce) {
    :root { --xfade-ms: 0ms; --reveal-ms: 0ms; --reveal-distance: 0; }
  }

  /* Cross-fade: start hidden, then fade in when 'ready' */
  html, body { background: var(--xfade-bg); }
  body { opacity: 0; }
  body.is-ready    { opacity: 1; transition: opacity var(--xfade-ms) ease; }
  body.is-leaving  { opacity: 0; transition: opacity var(--xfade-ms) ease; }

  /* Scroll reveal (fade + rise) */
  [data-reveal]{
    opacity: 0;
    transform: translateY(var(--reveal-distance));
    transition: opacity var(--reveal-ms) ease, transform var(--reveal-ms) ease;
    will-change: opacity, transform;
  }
  .reveal-in{
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
  /* Optional stagger */
  [data-reveal][data-delay="1"]{ transition-delay: 80ms; }
  [data-reveal][data-delay="2"]{ transition-delay: 160ms; }
  [data-reveal][data-delay="3"]{ transition-delay: 240ms; }