/*
	Theme Name: Gambleaze
	Theme URI: http://html5blank.com
	Description: HTML5 Blank WordPress Theme
	Version: 1.4.3
	Author: Todd Motto (@toddmotto)
	Author URI: http://toddmotto.com
	Tags: Blank, HTML5, CSS3

	License: MIT
	License URI: http://opensource.org/licenses/mit-license.php
*/

/*------------------------------------*\
    MAIN
\*------------------------------------*/

/* global box-sizing */
*,
*:after,
*:before {
	-moz-box-sizing:border-box;
	box-sizing:border-box;
	-webkit-font-smoothing:antialiased;
	font-smoothing:antialiased;
	text-rendering:optimizeLegibility;
}
/* html element 62.5% font-size for REM use */
html {
	font-size:62.5%;
}
body {
	font-size: 19px;
	font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	color:#170453;
	line-height:1.6;
	background-color:#FFF9F0;
}
/* clear */
.clear:before,
.clear:after {
    content:' ';
    display:table;
}

.clear:after {
    clear:both;
}
.clear {
    *zoom:1;
}
img {
	max-width:100%;
	vertical-align:bottom;
	height:auto;
}
a {
	color:#444;
	text-decoration:none;
}
a:hover {
	color:#444;
}
a:focus {
	outline:0;
}
a:hover,
a:active {
	outline:0;
}
input:focus {
	outline:0;
	border:1px solid #04A4CC;
}

 h1, h2, h3, h4 {
 	margin-top: 0;
 }
 h1 {
 	line-height:1.3;
 }
 h2 {
 	line-height:1.2;
 }

/*------------------------------------*\
    STRUCTURE
\*------------------------------------*/

/* containers */
.wrapper {
	margin:0 auto;
	position:relative;
}
.inner {
	max-width:1600px;
	width:90%;
	margin: 0 auto;
	position: relative;
}
.inner-narrow {
	max-width:1024px;
	width:70%;
	margin: 0 auto;
	position: relative;
}
/* header */
.header {
	position:fixed;
	top:0;
	left:0;
	right:0;
	display: block;
	z-index:10;
	container-type: scroll-state;
}

@container scroll-state(stuck) {
	.header {
		background:red;
	}
}
.header .inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
/* logo */
.logo {
	width:300px;
	max-width:300px;
}
.logo-img {
--webkit-filter: drop-shadow(5px 10px 60px rgba(0, 0, 0, .1));
filter: drop-shadow(5px 10px 60px rgba(0, 0, 0, .1));

}
/* nav */
.nav-container{
  --nav-bg: #FFF9F0;          /* warm cream */
  --nav-text: #28343A;        /* charcoal */
  --nav-accent: #7A5C8A;      /* plum */
  --nav-accent-2: #71A1B5;    /* calm blue */
  --nav-border: rgba(63,66,96,0.14);
  --nav-shadow: 0 10px 28px rgba(40,52,58,0.10);
  --nav-radius: 50px;
  --nav-pad-x: 14px;
  --nav-pad-y: 10px;
  --nav-gap: 1em;
}

/* Container */
.nav-container{
  position: relative;
  z-index: 50;
  padding: 10px 0;
}

/* Nav surface */
.nav{
  background: var(--nav-bg);
  border: 1px solid var(--nav-border);
  border-radius: var(--nav-radius);
  box-shadow: var(--nav-shadow);
  overflow: visible;
}

/* Reset lists */
.nav ul{
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Top-level layout */
.nav > ul{
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: var(--nav-gap);
  padding: var(--nav-pad-y) var(--nav-pad-x);
}

/* Top-level links */
.nav > ul > li > a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--nav-text);
  padding: 10px 12px;
  border-radius: 999px;
  line-height: 1.2;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
  outline: none;
}

/* Hover/focus */
.nav > ul > li > a:hover,
.nav > ul > li > a:focus-visible{
  background: rgba(205,180,219,0.35); /* soft lavender wash */
  color: var(--nav-text);
  box-shadow: 0 0 0 3px rgba(113,161,181,0.20);
}

/* Current item */
.nav > ul > li.current-menu-item > a,
.nav > ul > li.current_page_item > a{
  background: rgba(216,167,177,0.35); /* dusty rose wash */
  box-shadow: 0 0 0 2px rgba(122,92,138,0.22);
}

/* Parent item with children */
.nav li.menu-item-has-children{
  position: relative;
}

/* Caret */
.nav li.menu-item-has-children > a::after{
  content: "▾";
  display: inline-block;
  margin-left: 8px;
  font-size: 0.9em;
  opacity: 0.75;
  transition: transform 180ms ease;
}

/* Rotate caret while open */
.nav li.menu-item-has-children:hover > a::after,
.nav li.menu-item-has-children:focus-within > a::after{
  transform: rotate(-180deg);
}

/* =========================
   Submenu (desktop/tablet)
   Key fix: submenu stays open while pointer is on LI OR on submenu.
   Also add a small "hover bridge" so tiny mouse gaps don't collapse it.
   ========================= */
.nav li.menu-item-has-children > ul.sub-menu{
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  background: #FFFFFF;
  border: 1px solid var(--nav-border);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(40,52,58,0.16);
  padding: 8px;

  /* Use opacity/visibility rather than display for smoother, more forgiving hover */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  pointer-events: none;

  transition: opacity 160ms ease, transform 160ms ease, visibility 0ms linear 160ms;
}

/* Hover "bridge": an invisible strip above submenu so leaving the link doesn't instantly close it */
.nav li.menu-item-has-children > ul.sub-menu::before{
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

/* Show submenu when parent LI is hovered or focused (keyboard/tap) */
.nav li.menu-item-has-children:hover > ul.sub-menu,
.nav li.menu-item-has-children:focus-within > ul.sub-menu{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 160ms ease, transform 160ms ease, visibility 0ms;
}

/* Submenu items */
.nav ul.sub-menu > li{
  margin: 2px 0;
}

.nav ul.sub-menu > li > a{
  display: block;
  text-decoration: none;
  color: var(--nav-text);
  padding: 10px 10px;
  border-radius: 10px;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
  outline: none;
}

.nav ul.sub-menu > li > a:hover,
.nav ul.sub-menu > li > a:focus-visible{
  background: rgba(113,161,181,0.18);
  color: var(--nav-text);
  transform: translateX(2px);
}

/* footer */
.footer {
	padding:100px 0;
}

.footer-top {
	max-width:60%;
	width:60%;
	display: flex;
	justify-content: start;
	gap:50px;
	margin-bottom:50px;
}
.footer-top-section {
	flex:1;
}
.footer-logo {
	width:75%;
	max-width:215px;
	margin-bottom: 50px;
}
.footer-social {
	display: flex;
	gap:2em;
}

.footer-menu h3 {
	margin-bottom: 0.5em;
	color:#533773;
}

.footer-menu ul {
	list-style:none;
	margin: 0;
	padding: 0;
	font-size: 0.9em;
}

.footer-social img {
	opacity:0.6;
	transition:0.6s all;
}
.footer-social img:hover {
	opacity:1;
}

.footer-bottom {
	font-size:0.8em;
}

/*------------------------------------*\
    PAGES
\*------------------------------------*/



/*------------------------------------*\
    bits n bobs
\*------------------------------------*/
.pad-2em {
	padding:2em;
}


/*------------------------------------*\
    RESPONSIVE
\*------------------------------------*/

@media only screen and (min-width:320px) {

}
@media only screen and (min-width:480px) {

}
@media only screen and (min-width:768px) {

}
@media only screen and (min-width:1024px) {

}
@media only screen and (min-width:1140px) {

}
@media only screen and (min-width:1280px) {

}
@media only screen and (-webkit-min-device-pixel-ratio:1.5),
	   only screen and (min-resolution:144dpi) {

}

/*------------------------------------*\
    MISC
\*------------------------------------*/

::selection {
	background:#04A4CC;
	color:#FFF;
	text-shadow:none;
}
::-webkit-selection {
	background:#04A4CC;
	color:#FFF;
	text-shadow:none;
}
::-moz-selection {
	background:#04A4CC;
	color:#FFF;
	text-shadow:none;
}

/*------------------------------------*\
    WORDPRESS CORE
\*------------------------------------*/

.alignnone {
	margin:5px 20px 20px 0;
}
.aligncenter,
div.aligncenter {
	display:block;
	margin:5px auto 5px auto;
}
.alignright {
	float:right;
	margin:5px 0 20px 20px;
}
.alignleft {
	float:left;
	margin:5px 20px 20px 0;
}
a img.alignright {
	float:right;
	margin:5px 0 20px 20px;
}
a img.alignnone {
	margin:5px 20px 20px 0;
}
a img.alignleft {
	float:left;
	margin:5px 20px 20px 0;
}
a img.aligncenter {
	display:block;
	margin-left:auto;
	margin-right:auto;
}
.wp-caption {
	background:#FFF;
	border:1px solid #F0F0F0;
	max-width:96%;
	padding:5px 3px 10px;
	text-align:center;
}
.wp-caption.alignnone {
	margin:5px 20px 20px 0;
}
.wp-caption.alignleft {
	margin:5px 20px 20px 0;
}
.wp-caption.alignright {
	margin:5px 0 20px 20px;
}
.wp-caption img {
	border:0 none;
	height:auto;
	margin:0;
	max-width:98.5%;
	padding:0;
	width:auto;
}
.wp-caption .wp-caption-text,
.gallery-caption {
	font-size:11px;
	line-height:17px;
	margin:0;
	padding:0 4px 5px;
}
.sticky {

}
.bypostauthor {

}

/*------------------------------------*\
    PRINT
\*------------------------------------*/

@media print {
	* {
		background:transparent !important;
		color:#000 !important;
		box-shadow:none !important;
		text-shadow:none !important;
	}
	a,
	a:visited {
		text-decoration:underline;
	}
	a[href]:after {
		content:" (" attr(href) ")";
	}
	abbr[title]:after {
		content:" (" attr(title) ")";
	}
	.ir a:after,
	a[href^="javascript:"]:after,
	a[href^="#"]:after {
		content:"";
	}
	pre,blockquote {
		border:1px solid #999;
		page-break-inside:avoid;
	}
	thead {
		display:table-header-group;
	}
	tr,img {
		page-break-inside:avoid;
	}
	img {
		max-width:100% !important;
	}
	@page {
		margin:0.5cm;
	}
	p,
	h2,
	h3 {
		orphans:3;
		widows:3;
	}
	h2,
	h3 {
		page-break-after:avoid;
	}
}
