/*
 Theme Name:   Storefront Child
 Template:     storefront
 Author:       Kyle
 Version:      1.0
*/

/* ===============================
   GLOBAL LAYOUT FIXES
=================================*/

.site {
  overflow-x: visible !important;
}

/* Apply Questrial to all body content sitewide */
body,
button,
input,
select,
textarea,
.site-description,
.entry-content,
.entry-summary,
.widget,
.widget-area,
.main-navigation a,
footer,
h1, h2, h3, h4, h5, h6,
blockquote,
cite,
table,
th,
td,
ul,
ol,
li,
p {
  font-family: 'Questrial', 'Arial', sans-serif;
}

/* EXCLUDE site title (keep it Spectral or whatever you're using) */
.site-title a {
  font-family: 'Waterfall', cursive; /* or 'Libre Caslon Text', etc. */
}

/* ===============================
   STICKY HEADER
=================================*/

.site-header {
  position: sticky;
  top: 0;
  z-index: 1;
  width: 100%;
  background: url('/wp-content/uploads/2025/11/Shallows-2025-Acrylic-on-Board-rectangle-header-ratio-V2-1.png') center/cover no-repeat;
  background-size: cover;
  background-position: center;
  padding: 2px 0 4px 0; /* Adjust this to control header height */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.site-header .col-full {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ===============================
   SITE TITLE / LOGO
=================================*/

.site-title {
  text-align: center;
  font-weight: bold;
  font-size: 3rem;
  margin-bottom: 0.5em;
  color: #ffffff;
}

.site-title a {
  font-family: 'Waterfall', cursive;
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: 3px;
  display: block;
  text-align: center;
  color: #ffffff;
}

/* ===============================
   PRIMARY MENU — DESKTOP
=================================*/

@media (min-width: 769px) {

  .site-title a {
    font-family: 'Waterfall', cursive; /* or 'Libre Caslon Text', etc. */
	font-size: 3.5rem;
    margin-top: 20px;
	letter-spacing: 10px;
	line-height: 0.5;
	padding-top: 10px;
  }
  
  .site-branding {
  padding-top: 10px; /* increase/decrease as needed */
  }
	
  .main-navigation {
    display: flex;
    justify-content: center;
	font-family: 'Questrial', Arial, sans-serif;
  }

  .main-navigation ul.menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 0;
    margin: 0 auto;
    list-style: none;
	color: #ffffff !important;
  }
  .main-navigation ul.menu li a {
    color: #ffffff !important;
  }
	
  .main-navigation ul.menu > li {
    margin: 0;
    padding: 0;
    position: relative;
	color: #ffffff;
  }
  .main-navigation ul.menu > li { position: relative; }
	
  .main-navigation ul.menu > li:not(:last-child)::before {
    content: "|";
    color: #ffffff;
    position: absolute;
    right: -13px;
    top: 50%;
    transform: translateY(-50%);
  }
	
  .main-navigation a {
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
	color: #ffffff;
  }

  .main-navigation a:hover {
    text-decoration: underline;
  }

  .main-navigation .current-menu-item > a {
    font-weight: bold;
    text-decoration: underline;
  }
  /* Set the submenu background to dark grey when it appears */
  .main-navigation ul ul.sub-menu {
    background-color: #333333 !important;
    border: none;
  }

  /* Style submenu links */
  .main-navigation ul ul.sub-menu li a {
    color: #ffffff !important;
    padding: 10px 16px;
    display: block;
  }

  /* Optional: slightly lighter grey on hover */
  .main-navigation ul ul.sub-menu li a:hover {
    background-color: #444444;
    color: #ffffff;
  }

  /* Remove dropdown arrow from parent menu items */
  .main-navigation ul.menu li.menu-item-has-children > a::after {
    display: none !important;
    content: none !important;
  }
  #landscapes,
  #seascapes,
  #urbanscapes,
  #marinelife,
  #brighton {
    scroll-margin-top: 25vh; /* Adjust this to control vertical centering */
  }
}
/* ===============================
   PRIMARY MENU — MOBILE (≤768px)
   Title centered | Menu button fixed top-right
=================================*/
@media (max-width: 768px) {

  /* Header row */
  .site-header { padding: 14px 16px; }
  .site-header .col-full {
    display: flex;
    align-items: center;
    justify-content: center; /* title centered */
    position: relative;
    gap: 12px;
  }

  /* Title */
  .site-branding { margin: 0; }
  .site-title { margin: 0; }
  .site-title a {
    font-size: 2.75rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
  }

  /* -----------------------------
     Clean, fixed menu button
  ------------------------------*/
  button.menu-toggle {
    position: fixed;
    top: 18px;
    right: 12px;
    z-index: 1001;
    width: 40px; height: 60px;
    padding: 0 !important;
    background: transparent !important;
    background-image: none !important;
    border: 0px solid rgba(255,255,255,.95);
    border-radius: 0px;
    cursor: pointer;
    box-shadow: none;
    outline: none;
    font-size: 0; line-height: 0; color: transparent;
    text-indent: -9999px;
    overflow: hidden;
    transform: none !important;
  }
  button.menu-toggle i,
  button.menu-toggle span,
  button.menu-toggle svg { display: none !important; }
  button.menu-toggle::before { content: none !important; }
  button.menu-toggle::after,
  button.menu-toggle[aria-expanded="true"]::after {
    content: "";
    position: absolute; left: 50%; top: 50%;
    width: 20px; height: 2px; background: #fff;
    transform: translate(-50%, -50%);
    box-shadow: 0 -6px 0 #fff, 0 6px 0 #fff;
    pointer-events: none;
  }

  /* -----------------------------
   Menu list as a full-width blurred strip
   (does NOT push the header down)
------------------------------*/
  .main-navigation ul.menu { display: none !important; }

  /* keep the button above the strip */
  .main-navigation.toggled { z-index: 999; }

  /* Full-width overlay panel positioned below the header */
  .main-navigation.toggled ul.menu {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    position: fixed;              /* overlay, not document flow */
    left: 0;
    right: 0;
    top: calc(70px + 8px);        /* ≈ header height + gap. Adjust 64px to your header height */
    width: 100vw;
    margin: 0;                    /* no document flow margins */
    padding: 5px 50px 5px;           /* inner padding in the strip */
    text-align: center;

    /* Blurred strip effect */
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 0px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);

    z-index: 1000;                /* under the toggle button (1001) */
  }

  /* Links inside the strip */
  .main-navigation.toggled ul.menu > li > a {
    display: block;
    padding: 10px 0;
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
  }

  /* No theme separators */
  .main-navigation ul.menu > li::after { display: none !important; }
	
  .main-navigation.toggled ul.menu li {
    position: relative; /* anchor for absolute positioning */
  }

  .main-navigation.toggled ul.menu li button.dropdown-toggle {
    margin: 0;
	color: #ffffff;
	position: absolute;
    right: -30px;
  }

  /* Submenu styling (still within blurred panel) */
  .main-navigation.toggled ul.sub-menu {
    padding-left: 0;
    margin: 4px 0 0;
  }
  .main-navigation.toggled ul.sub-menu li a {
    padding: 6px 0;
    font-size: 0.95rem;
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255,255,255,0.25);
    background: transparent;
    border-radius: 0;
  }
  .main-navigation.toggled ul.sub-menu li:last-child a {
    border-bottom: 0;
  }

  /* Optional anchor offset */
  #landscapes, #seascapes, #urbanscapes, #marinelife, #brighton {
    scroll-margin-top: 30vh;
  }
}


/* ALL VIEWS - WP Block Colours */

.hentry .entry-content .wp-block-button .wp-block-button__link, .editor-styles-wrapper .wp-block-button .wp-block-button__link {
    border-radius: 0;
    font-size: 1em;
    line-height: 0.5;
    border: 0;
    cursor: pointer;
    padding: .6180469716em 1.41575em;
    text-decoration: none;
    font-weight: 600;
    text-shadow: none;
    display: inline-block;
    -webkit-appearance: none;
    color: #ffffff;
}
    .wp-block-button__link:not(.has-background) {
    background-color: #3a9d9d;
}

/* ===============================
   CLEANUP
=================================*/

.site-header .site-search,
.site-header .site-header-cart {
  display: none; !important
}

/* Kill the sticky handheld footer bar */
.storefront-handheld-footer-bar,
.storefront-handheld-footer-bar .search,
.storefront-handheld-footer-bar .cart,
.storefront-handheld-footer-bar .my-account {
  display: none !important;
}
