/* Reefside Reptiles — styles.css */
:root{
  --max-width: 1100px;
  --accent: #2f6f61; /* teal-ish */
  --accent-2: #c38f6a; /* warm tan */
  --muted: #6b6b6b;
  --bg: #fffdfa;
  --card-bg: #ffffff;
  --radius: 12px;
  --shadow: 0 6px 18px rgba(14,20,26,0.06);
  --ff: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
*{box-sizing:border-box}
html,body{height:100%}
body{font-family:var(--ff);margin:0;background:#cfe8f3;color:#111;line-height:1.45}
.wrap{max-width:var(--max-width);margin:0 auto;padding:1.25rem}
.site-header{background:#a7dcd9;box-shadow:0 1px 0 rgba(0,0,0,0.04);position:sticky;top:0;z-index:1000}
.header-inner{display:flex;align-items:center;justify-content:space-between}
.brand{display:flex;align-items:center;gap:.6rem;text-decoration:none;color:var(--accent);font-weight:700}
.brand .logo{width:44px;height:44px;border-radius:8px;object-fit:cover}
.site-nav ul{display:flex;gap:1rem;list-style:none;margin:0;padding:0}
.site-nav a{text-decoration:none;color:inherit;padding:.6rem;border-radius:8px}
.site-nav a:hover, .site-nav a[aria-current]{background:rgba(47,111,97,0.08)}
.nav-toggle{display:none;background:none;border:0;font-size:1.25rem}

/* Hero */
.hero{padding:2.5rem 0;background:linear-gradient(180deg, rgba(47,111,97,0.06), transparent)}
.hero-inner{display:flex;flex-direction:column;gap:1rem;align-items:flex-start}
.hero h1{font-size:2rem;margin:0}
.hero p{margin:0;color:var(--muted)}
.hero-ctas{display:flex;gap:.75rem;margin-top:1rem}
.btn {
  display: inline-block;
  padding: .6rem 1rem;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease, filter 0.2s ease;
}


.btn:hover {
  filter: brightness(1.1); /* makes it appear slightly highlighted */
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}


/* Cards grid */
.cards-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;margin-top:1rem}
.card{background:var(--card-bg);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}
.card img{
  /* allow image to scale while preserving aspect ratio */
  width: auto;           /* let width scale naturally up to max-width */
  max-width: 100%;       /* never exceed card width */
  object-fit: contain;   /* show the whole image (no cropping) */
  display: block;
  margin: 0 auto;        /* center the image inside the card */
  background: #fafafa;   /* subtle background where images have empty space */
}
.card-body{padding:.75rem}
.card-body h3{margin:.1rem 0 .4rem;font-size:1.05rem}
.card-body p{margin:0;color:var(--muted);font-size:.95rem}

.icon img {
  height: 50px;
  width: 50px;
  border-radius: 12px;
  box-shadow: 4px 4px 10px rgba(0,0,0,0.25); /* x-offset, y-offset, blur, color */
}


/* Minimal autoslide (no controls) */
.card .slideshow {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #fafafa;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height: 180px;
}

.card .slides {
  width:100%;
  height:100%;
  position:relative;
}
.card .slides img {
  position:absolute;
  inset:0;
  margin:auto;
  width:100%;
  height:100%;
  max-height:100%;
  object-fit: contain;
  display:block;
  opacity:0;
  transition: opacity .45s ease;
  pointer-events:none;
}

/* active slide visible */
.card .slides img.active {
  opacity:1;
  pointer-events:auto;
}

/* keep card-body link styling */
.card-body .card-link { display:block; color:inherit; text-decoration:none; padding:.5rem 0; }

/* responsive adjustments */
@media (max-width:700px){
  .card .slideshow { min-height: 140px; }
}



/* About and points */
.key-points{display:flex;gap:1rem;list-style:none;padding:0;margin:1rem 0 0}
.key-points li{background:#fff;padding:.75rem;border-radius:8px;box-shadow:var(--shadow);flex:1}

/* Footer */
.site-footer{border-top:1px solid rgba(0,0,0,0.04);padding:.75rem 0;margin-top:2rem; background:#e0f7fa;}
.footer-inner{display:flex;justify-content:space-between;align-items:center}
.footer-nav a{margin-left:1rem;text-decoration:none;color:var(--muted)}

/* Collection / snake layout specifics */
.lede{color:var(--muted)}
.snake-grid{display:grid;grid-template-columns:1fr 400px;;gap:1.25rem}
.snake-hero img{width:100%;border-radius:10px}
.snake-meta{background:#fff;padding:2rem;border-radius:10px;box-shadow:var(--shadow)}
.specs{width:100%;border-collapse:collapse;margin:.5rem 0}
.specs th{text-align:left;padding:.3rem .6rem;color:var(--muted);width:35%}
.specs td{padding:.3rem .6rem}
.price{font-size:1.1rem;color:var(--accent-2)}
.snake-details{background:#fff;padding:2rem;border-radius:10px;box-shadow:var(--shadow);grid-column:1/-1}

/* Clutch list */
.clutch-list{list-style:none;padding:0;margin:0;display:grid;gap:.75rem}
.clutch-list li{background:#fff;padding:.75rem;border-radius:8px;box-shadow:var(--shadow)}
.clutch-list a{text-decoration:none;color:inherit}

/* Hatchling */
.hatchling img{width:320px;display:block;border-radius:10px;margin-bottom:1rem}
.hatchling{display:grid;grid-template-columns:320px 1fr;gap:1rem}

/* FAQ */
.faq details{background:#fff;padding:1rem;border-radius:8px;box-shadow:var(--shadow);margin-bottom:.6rem}

/* Forms */
.contact-form{display:grid;gap:.6rem;max-width:680px}
.contact-form label{display:flex;flex-direction:column;font-weight:600}
.contact-form input,.contact-form textarea{padding:.6rem;border-radius:8px;border:1px solid #e6e6e6}

/* Breadcrumbs */
.breadcrumbs{font-size:.95rem;color:var(--muted);margin-bottom:1rem}
.breadcrumbs a{text-decoration:none;color:inherit}

/* Responsive */
@media (max-width:900px){
  .snake-grid,.hatchling{grid-template-columns:1fr}
  .hero h1{font-size:1.6rem}
}

/* Mobile: vertical stacked nav when hamburger toggled */
@media (max-width:700px) {
  /* Hide original horizontal nav by default (your file already does this) */
  .site-nav { 
    display: none;
    /* position the dropdown panel directly below header */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 0.6rem;
    box-shadow: var(--shadow);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 1100;
    transform-origin: top center;
    transform: translateY(-6px);
    opacity: 0;
    transition: opacity .18s ease, transform .18s ease;
  }

  /* When open, show as vertically stacked panel */
  .site-nav.open {
    display: block;
    transform: translateY(0);
    opacity: 1;
  }

  /* Stack links vertically */
  .site-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  /* Make each link a large tappable block */
  .site-nav a {
    display: block;
    padding: .9rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    font-weight: 600;
  }

  /* Keep the hover / current visual */
  .site-nav a:hover,
  .site-nav a[aria-current] {
    background: rgba(47,111,97,0.08);
  }

  /* Keep the toggle visible */
  .nav-toggle { display: inline-block; }

  /* Ensure header positioning allows absolute nav below it */
  .site-header .header-inner { position: relative; }

  /* If your header is sticky, ensure nav panel appears over content */
  .site-header { z-index: 1000; }

  /* Make sure the main page content isn't overlapped visually awkwardly when nav opens: add a small top margin to main */
  main { margin-top: 0.0px; } /* leave adjustable depending on your layout */
}


/* Accessibility helper */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* Small utilities */
.btn:focus, a:focus{outline:3px solid rgba(47,111,97,0.18);outline-offset:3px}

/* Modal styles */
.modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,0.45);z-index:1200}
.modal.open{display:flex}
.modal .modal-card{background:#fff;padding:1rem;border-radius:12px;max-width:520px;width:calc(100% - 40px);box-shadow:var(--shadow)}
.modal .modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:.5rem}
.modal .modal-close{background:none;border:0;font-size:1.25rem;padding:.25rem;cursor:pointer}
.modal form{display:grid;gap:.5rem}
.modal label{font-weight:600}
.modal input,.modal textarea{width:100%;padding:.6rem;border-radius:8px;border:1px solid #e6e6e6}
.modal .actions{display:flex;gap:.5rem;justify-content:flex-end;margin-top:.5rem}
/* End styles.css */

/* Disable user resizing for inquiry modal panels/controls */
#inquiryModal .modal-card { 
  /* keep modal size controlled by CSS, not user */
  max-width: 520px;
  width: calc(100% - 40px);
  overflow: hidden;      /* prevents scrollbars from enabling resize-like behavior */
  resize: none;          /* defensive: modern browsers ignore resize on non-resizable elements */
}

/* Prevent the textarea from being resizable by the user */
#inquiryModal textarea {
  resize: none !important;
  /* keep a sensible min-height so users can type comfortably */
  min-height: 120px;
  max-height: 50vh;
  overflow: auto;
}

/* Also ensure inputs keep their size and can't be manually resized */
#inquiryModal input,
#inquiryModal select,
#inquiryModal button {
  resize: none;
}

/* If you want the modal to never be draggable/resizable from browser devtools/OS: ensure box-sizing and fixed dimensions */
#inquiryModal .modal-card { box-sizing: border-box; }

/* Optional: if mobile devices allow pinch-zoom changing layout, you can keep modal responsive but stable */
@media (max-width:700px){
  #inquiryModal .modal-card { width: calc(100% - 24px); max-width: 520px; }
}


/* ===== Slideshow / Lightbox styles (APPENDED) =====
   Add these at the end of your file. They do not modify any of your
   existing rules above — they only add the gallery/lightbox styling.
*/
.snake-hero { position: relative; max-width: 720px; margin: 0; }
.gallery-viewport { overflow: hidden; position: relative; border-radius: 10px; background:#fafafa; outline: none; }

/* slides are hidden by default; .active shows the current one */.gallery-viewport {
  display: flex;
  align-items: center;      /* vertical centering */
  justify-content: center;  /* horizontal centering */
  height: 100%;             /* controls hero section height */
background: transparent;
}

.gallery-viewport .slide {
  min-width: 100%;
  display: none;
  align-items: center;      /* keep content centered inside each slide */
  justify-content: center;
}

.gallery-viewport .slide.active {
  display: flex;
}

.gallery-viewport img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;  /* keep full image visible */
  display: block;
  cursor: zoom-in;
  border-radius: 10px;
}


/* side buttons */
.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  padding: .6rem .7rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.25rem;
  display:flex; align-items:center; justify-content:center;
}
.gallery-btn.prev { left: 8px; }
.gallery-btn.next { right: 8px; }
.gallery-btn:focus { outline: 3px solid rgba(47,111,97,0.18); }

/* caption */
.snake-hero figcaption { margin-top: .5rem; color: var(--muted); font-weight:600; }

/* Lightbox styles */
.lightbox { position: fixed; inset:0; display:none; align-items:center; justify-content:center; background: rgba(0,0,0,0.75); z-index:2000; padding:1.25rem; }
.lightbox.open { display:flex; }
.lightbox-inner { position:relative; max-width:calc(100% - 40px); max-height:calc(100% - 40px); display:flex; align-items:center; justify-content:center; }
.lightbox-img { max-width:100%; max-height:90vh; object-fit:contain; border-radius:10px; }
.lightbox-close { position:absolute; top:-10px; right:-10px; background:#fff; border-radius:50%; border:0; width:36px; height:36px; cursor:pointer; }
.lightbox-btn { position:absolute; top:50%; transform:translateY(-50%); background:rgba(0,0,0,0.5); color:#fff; border:0; padding:.6rem; border-radius:8px; font-size:1.25rem; cursor:pointer; }
.lightbox-btn.prev { left:-60px; }
.lightbox-btn.next { right:-60px; }

/* small screen adjustments */
@media (max-width:900px) {
  .gallery-viewport img { height: 280px; }
  .lightbox-btn.prev { left:10px; }
  .lightbox-btn.next { right:10px; }
}

@media (max-width:700px){
  /* allow thumbnails to be natural height on narrow screens */
  .card img { height: auto; }
  .gallery-viewport img { height: 260px; }
  .lightbox-btn.prev, .lightbox-btn.next { left: 10px; right: 10px; }
.icon img{height: 40px; width: 40px; border-radius: 12px;}
}

@media (max-width:600px) {
  .gallery-viewport img { height: auto; max-height: 50vh; }
  .gallery-btn { padding:.4rem .5rem; font-size:1rem; }
  .lightbox-btn.prev, .lightbox-btn.next { display:none; } /* rely on taps/swipes for mobile */
}

/* End slideshow/lightbox styles */
