/* ----------------------------------------------------
   ROOT VARIABLES
---------------------------------------------------- */
:root {
  --container: 960px;
  --gap: 1rem;

  /* Colors */
  --text: #222;
  --muted: #666;
  --bg: #fff;
  --overlay: rgba(0,0,0,.5);

  /* Typography (Customizer-controlled) */
  --body-font: Arial, sans-serif;
  --body-size: 16px;
  --heading-font: Georgia, serif;
  --heading-weight: 700;

  /* Menu Pill (Customizer-controlled) */
  --menu-pill-bg: rgba(0,0,0,0.6);
  --menu-pill-radius: 20px;
  --menu-pill-padding: 10px;
}

/* ----------------------------------------------------
   GLOBAL RESET
---------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body-font);
  font-size: var(--body-size);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* ----------------------------------------------------
   HERO SECTION — FULLY RESPONSIVE
---------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  pointer-events: auto !important;
}

/* Mobile hero fix */
@media (max-width: 900px) {
  .hero-section {
    background-size: contain;
    background-position: top center;
    background-attachment: scroll;
    background-color: #000;
  }
}

.hero-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 2rem;
  backdrop-filter: saturate(1.2);
  pointer-events: auto !important;
}

.site-logo img {
  height: auto;
  width: auto;
  max-height: none;
  margin-bottom: 1rem;
}

.site-title {
  font-size: 3rem;
  margin: 0 0 1rem;
}

/* ----------------------------------------------------
   NAVIGATION
---------------------------------------------------- */
.site-nav { width: 100%; }

/* Desktop pill menu */
.nav-menu {
  list-style: none;
  margin: 0;
  padding: var(--menu-pill-padding);
  display: flex;
  gap: 2rem;
  justify-content: center;

  background-color: var(--menu-pill-bg);
  border-radius: var(--menu-pill-radius);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  transition: background-color .3s ease, box-shadow .3s ease;

  position: relative;
  z-index: 9999;
}

.nav-menu a {
  color: inherit;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.5rem;
  transition: opacity .25s ease, text-shadow .25s ease;
}

.nav-menu a:hover {
  opacity: 0.75;
  text-shadow: 0 0 8px rgba(255,255,255,0.6);
}

/* iOS-safe hamburger toggle */
.menu-toggle,
.menu-toggle * {
  pointer-events: auto !important;
  cursor: pointer !important;
  z-index: 99999 !important;
  position: relative;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
}

.hamburger-line {
  width: 28px;
  height: 3px;
  background: #fff;
  display: block;
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* ----------------------------------------------------
   TABLET BREAKPOINT
---------------------------------------------------- */
@media (max-width: 1194px) {
  .site-logo img { max-height: 75px; }
}

/* ----------------------------------------------------
   MOBILE NAVIGATION + iPad Mini Portrait
   (Plugin takes over below 900px)
---------------------------------------------------- */
@media (max-width: 900px) {

  /* Hide theme mobile menu when plugin is active */
  .menu-toggle {
    display: none !important;
  }
  .nav-menu {
    display: none !important;
  }
   .hero-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;   /* vertical centering */
    align-items: center;       /* horizontal centering */
    text-align: center;
    width: 100%;
    height: 100%;
    padding: 2rem 1.25rem;
  }

  .site-logo img {
    margin: 0 auto;
    max-height: 70px;
  }
}

/* ----------------------------------------------------
   ULTRA-SMALL PHONES
---------------------------------------------------- */
@media (max-width: 430px) {
  .nav-menu a { font-size: 1rem; }
  .site-logo img { max-height: 42px; }
}

/* ----------------------------------------------------
   PARALLAX SECTIONS — RESPONSIVE
---------------------------------------------------- */
.parallax-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 6rem 2rem;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  pointer-events: auto !important;
}

/* Mobile/tablet parallax fix */
@media (max-width: 1024px) {
  .parallax-section {
    background-attachment: scroll;
    background-size: cover;
    background-position: top center;
  }
}

.parallax-content {
  background: var(--overlay);
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  margin: 0 auto;
}

.parallax-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #fff;
}

/* ----------------------------------------------------
   iPad Mini 7 FIX — Background images not resizing
---------------------------------------------------- */
@media only screen 
  and (min-device-width: 744px) 
  and (max-device-width: 820px)
  and (-webkit-min-device-pixel-ratio: 2) {

  .parallax-section,
  .hero-section {
    background-attachment: scroll !important;
    background-size: cover !important;
    background-position: center top !important;
  }
}

/* ----------------------------------------------------
   SIDEBAR + FOOTER
---------------------------------------------------- */
.sidebar { padding: 1rem; background: #f9f9f9; }

.site-footer {
  background: #222;
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
  border-top: 1px solid #eee;
}

.footer-widgets {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

.footer-column { flex: 1; }
.footer-widget { flex: 1 1 240px; }
.footer-top-btn { margin-top: 2rem; }

/* ----------------------------------------------------
   BACK TO TOP BUTTON
---------------------------------------------------- */
#scrollTopBtn {
  position: fixed;
  bottom: 3rem;
  right: 2rem;
  background: #444;
  color: #000;
  border: none;
  padding: .75rem 1.5rem;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 4px;
  transition: opacity 0.3s ease, background 0.3s ease;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
}

#scrollTopBtn.show {
  opacity: 1;
  pointer-events: auto;
}

#scrollTopBtn:hover { background: #666; }

/* ----------------------------------------------------
   MOSAIC GALLERY
---------------------------------------------------- */
.mosaic-gallery-page .wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-auto-rows: 200px;
  gap: 10px;
}

.mosaic-gallery-page .wp-block-gallery figure {
  margin: 0;
  position: relative;
  overflow: hidden;
}

.mosaic-gallery-page .wp-block-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.mosaic-gallery-page .wp-block-gallery img:hover {
  transform: scale(1.05);
}

/* ----------------------------------------------------
   BLOG GRID — DARK GLASS
---------------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto 0;
}

.blog-card {
  background: rgba(0,0,0,0.65);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  color: #fff;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
}

.blog-card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.blog-card-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.blog-card-excerpt {
  font-size: 1rem;
  color: #ddd;
  margin-bottom: 1.25rem;
}

.blog-card-readmore,
.blog-back-button {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: #cc9900;
  color: #000;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

.blog-card-readmore:hover,
.blog-back-button:hover {
  background: #e6b800;
}

/* ----------------------------------------------------
   SINGLE POST VIEW
---------------------------------------------------- */
.single-post-view {
  background: rgba(0,0,0,0.65);
  padding: 2rem;
  border-radius: 12px;
  color: #fff;
  max-width: 900px;
  margin: 0 auto;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.single-post-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.single-post-content {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  color: #eee;
}

/* ----------------------------------------------------
   MOBILE BLOG GRID
---------------------------------------------------- */
@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}
/* FORCE-HIDE THE THEME HAMBURGER BELOW 900PX */
@media (max-width: 900px) {

  /* Hide theme hamburger button */
  .menu-toggle,
  .menu-toggle *,
  button.menu-toggle,
  .site-header .menu-toggle {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* Hide theme nav menu entirely */
  .nav-menu,
  #primary-menu,
  .site-nav .nav-menu {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* Center logo perfectly on mobile + iPad Mini */
@media (max-width: 900px) {

  .hero-section {
    display: flex;
    align-items: center;      /* vertical centering */
    justify-content: center;  /* horizontal centering */
    text-align: center;
    min-height: 100vh;        /* full screen height */
  }

  .hero-inner {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;      /* horizontal centering */
    justify-content: center;  /* vertical centering */
    padding: 2rem 1.25rem;
    text-align: center;
  }

  .site-logo {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .site-logo img {
    margin: 0 auto;
    max-height: 70px;
  }
}

/* Force Fancybox toolbar + infobar to bottom of viewport */
body .fancybox-container.vp-fancybox.fancybox-is-open .fancybox-toolbar,
body .fancybox-container.vp-fancybox.fancybox-is-open .fancybox-infobar {
  position: fixed !important;
  top: auto !important;
  bottom: 10px !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 999999 !important;
  transform: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.fancybox-container a{
color: #CC9900;	
}

/* Layout: infobar centered, toolbar right-aligned */
body .fancybox-container.vp-fancybox.fancybox-is-open .fancybox-infobar {
  text-align: center;
  pointer-events: none;
}

body .fancybox-container.vp-fancybox.fancybox-is-open .fancybox-toolbar {
  text-align: right;
  padding-right: 10px;
}

.single-post-nav {
  position: relative;
  width: 100%;
  margin: 2rem 0;
}

.single-post-prev,
.single-post-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.single-post-prev {
  left: 0;
}

.single-post-next {
  right: 0;
}

.post-arrow {
  font-size: 2.5rem;
  font-weight: bold;
  text-decoration: none;
  color: inherit;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.post-arrow:hover {
  opacity: 1;
}

.blog-carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto;
}

.blog-carousel {
  display: flex;
  overflow-x: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.blog-grid-page {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.blog-carousel-arrow {
  position: absolute;
  bottom: 20px;                 /* bottom aligned */
  font-size: 1.4rem;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s ease;
  z-index: 20;
  user-select: none;
  padding: 0.5rem 1rem;
  background: rgba(0,0,0,0.5);
  border-radius: 6px;
}

.blog-carousel-arrow:hover {
  opacity: 1;
}

.blog-carousel-arrow.left {
  left: 20px;                   /* bottom-left */
}

.blog-carousel-arrow.right {
  right: 20px;                  /* bottom-right */
}