/*
Theme Name: Imaginative Hive
Theme URI: https://imaginativehive.com
Author: Rafiat Daniju
Author URI: https://imaginativehive.com
Description: Block theme for Imaginative Hive LLC with bee and honeycomb branding. Features golden yellow, honey gold, deep brown, and orange-gold color palette. Full-site editing, custom patterns, and block styles.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: imaginative-hive
Tags: custom-colors, custom-logo, full-site-editing, block-patterns, wide-blocks
*/

/* Hero section gradient background */
.imaginative-hive-hero.has-background {
	background: linear-gradient(135deg, var(--wp--preset--color--accent-3, #F5D547) 0%, var(--wp--preset--color--accent-1, #E6A500) 50%, var(--wp--preset--color--accent-2, #D49700) 100%) !important;
}

/* Hero bee landing animation */
.hero-bee-illustration {
	max-width: 280px;
	margin: 0 auto 1rem;
}

.bee-sunflower-svg {
	width: 100%;
	height: auto;
	filter: drop-shadow(0 4px 12px rgba(61, 40, 23, 0.2));
}

.bee-flying {
	animation: bee-land 3s ease-in-out forwards;
	transform-origin: center;
}
h2{
	text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #3d2817;
    margin: 0 0 1rem 0;
    background: linear-gradient(135deg, #3d2817, #e6a500);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

}

@keyframes bee-land {
	0% {
		transform: translate(80px, -60px) scale(0.8);
		opacity: 0.6;
	}
	40% {
		transform: translate(-10px, 20px) scale(1);
		opacity: 1;
	}
	70% {
		transform: translate(5px, 5px) scale(1.02);
	}
	85% {
		transform: translate(-2px, 2px) scale(1);
	}
	100% {
		transform: translate(0, 0) scale(1);
		opacity: 1;
	}
}

/* Modern hero styling and animations */
.ih-hero-cover {
	position: relative;
	overflow: hidden;
}

.ih-hero-cover::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

.ih-hero-cover .wp-block-cover__image-background {
	transform: scale(1.05);
	animation: ih-hero-zoom 18s ease-in-out infinite alternate;
	filter: saturate(1.05) contrast(1.05);
}

.ih-hero-cover .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
}

.ih-hero-content {
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.ih-hero-badge {
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	padding: 0.4rem 1rem;
	border-radius: 999px;
	backdrop-filter: blur(8px);
	animation: ih-hero-fade-up 0.8s ease-out both;
}

.ih-hero-title {
	margin: 1.25rem 0 0.5rem;
	animation: ih-hero-fade-up 0.9s ease-out both;
	animation-delay: 0.1s;
}

.ih-hero-subtitle {
	margin-bottom: 1.8rem;
	animation: ih-hero-fade-up 0.95s ease-out both;
	animation-delay: 0.2s;
}

.ih-hero-cta {
	animation: ih-hero-fade-up 1s ease-out both;
	animation-delay: 0.3s;
	justify-content: center;
}

.ih-hero-cta .wp-block-button {
	margin-left: auto;
	margin-right: auto;
}

.ih-hero-cover .wp-block-button.is-style-outline .wp-block-button__link {
	border: 2px solid rgba(255, 255, 255, 0.7);
	background: transparent;
}

.ih-hero-cover .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.15);
}

@keyframes ih-hero-zoom {
	0% {
		transform: scale(1.02) translateY(0);
	}
	100% {
		transform: scale(1.08) translateY(-2%);
	}
}

@keyframes ih-hero-fade-up {
	0% {
		opacity: 0;
		transform: translateY(16px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Membership cards grid - responsive layout */
.ih-membership-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
	gap: var(--wp--preset--spacing--40, 2.5rem);
	width: 100%;
}

/* Membership cards - Stunning design with white background */
.ih-membership-card {
	background: #ffffff;
	border: 1px solid rgba(230, 165, 0, 0.3);
	box-shadow:
		0 25px 50px rgba(61, 40, 23, 0.15),
		0 0 0 1px rgba(255, 255, 255, 0.4),
		inset 0 1px 0 rgba(255, 255, 255, 0.8),
		inset 0 -1px 0 rgba(230, 165, 0, 0.2);
	transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
	position: relative;
	overflow: hidden;
	transform-style: preserve-3d;
	min-width: 0; /* Prevent grid blowout on small screens */
}

.ih-membership-card:hover {
	transform: translateY(-12px) rotateX(5deg) rotateY(2deg);
	box-shadow:
		0 35px 80px rgba(61, 40, 23, 0.25),
		0 0 0 1px rgba(230, 165, 0, 0.6),
		inset 0 1px 0 rgba(255, 255, 255, 1),
		inset 0 -1px 0 rgba(230, 165, 0, 0.4),
		0 0 60px rgba(230, 165, 0, 0.3);
}

/* Glassmorphism gradient overlay */
.ih-membership-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, 
		rgba(230, 165, 0, 0.1) 0%, 
		rgba(255, 255, 255, 0.2) 25%,
		rgba(230, 165, 0, 0.05) 50%,
		rgba(255, 255, 255, 0.1) 75%,
		rgba(230, 165, 0, 0.15) 100%);
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
}



/* Animated glow effect */
.ih-membership-card::after {
	content: "";
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, 
		rgba(230, 165, 0, 0.4) 0%, 
		rgba(230, 165, 0, 0.2) 30%,
		transparent 70%);
	opacity: 0;
	transform: scale(0.5);
	transition: all 0.6s ease;
	pointer-events: none;
}



/* Enhanced content styling */
.ih-membership-card h3 {
	background: linear-gradient(135deg, #3d2817, #e6a500);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-shadow: 0 2px 4px rgba(61, 40, 23, 0.1);
}

.ih-membership-card p {
	color: rgba(61, 40, 23, 0.8);
	text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Price styling with special glow */
.ih-membership-card p[style*="font-weight:700"] {
	background: linear-gradient(135deg, #e6a500, #ff8c00);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	filter: drop-shadow(0 2px 4px rgba(230, 165, 0, 0.3));
	position: relative;
}

/* Button enhancement */
.ih-membership-card .wp-block-button__link {
	background: linear-gradient(135deg, #e6a500, #ff8c00) !important;
	border: 1px solid rgba(255, 255, 255, 0.3);
	box-shadow: 
		0 8px 16px rgba(230, 165, 0, 0.3),
		inset 0 1px 0 rgba(255, 255, 255, 0.4);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.ih-membership-card .wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 
		0 12px 24px rgba(230, 165, 0, 0.4),
		inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Floating animation for cards */
@keyframes ih-card-float {
	0%, 100% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-8px);
	}
}

.ih-membership-card {
	animation: ih-card-float 6s ease-in-out infinite;
}

.ih-membership-card:nth-child(2) {
	animation-delay: -2s;
}

.ih-membership-card:nth-child(3) {
	animation-delay: -4s;
}

/* Bee tier background images */
.ih-membership-card.ih-bee-drone {
	background-image: url('assets/drone-bee.png');
	background-position: bottom right;
	background-repeat: no-repeat;
	background-size: 120px auto;
}

.ih-membership-card.ih-bee-worker {
	background-image: url('assets/worker-bee.png');
	background-position: bottom right;
	background-repeat: no-repeat;
	background-size: 130px auto;
}

.ih-membership-card.ih-bee-queen {
	background-image: url('assets/queen-bee.png');
	background-position: bottom right;
	background-repeat: no-repeat;
	background-size: 140px auto;
}


/* Drone tier - subtle styling */
.ih-membership-card.ih-bee-drone {
	border: 1px solid rgba(230, 165, 0, 0.2);
}

/* Membership cards - tablet */
@media (max-width: 900px) {
	.ih-membership-cards-grid {
		gap: var(--wp--preset--spacing--30, 1.5rem);
	}

	.ih-membership-card {
		padding: var(--wp--preset--spacing--40, 1.5rem) !important;
	}

	.ih-membership-card h3 {
		font-size: 1.35rem !important;
	}

	.ih-membership-card.ih-bee-drone {
		background-size: 90px auto;
	}

	.ih-membership-card.ih-bee-worker {
		background-size: 95px auto;
	}

	.ih-membership-card.ih-bee-queen {
		background-size: 100px auto;
	}
}

/* Membership cards - mobile */
@media (max-width: 600px) {
	.ih-membership-cards-grid {
		grid-template-columns: 1fr;
		gap: var(--wp--preset--spacing--30, 1.5rem);
		padding-left: 0;
		padding-right: 0;
	}

	.ih-membership-card {
		padding: var(--wp--preset--spacing--30, 1.25rem) !important;
		animation: none; /* Disable float on small screens for stability */
	}

	.ih-membership-card:hover {
		transform: translateY(-6px); /* Simpler lift, no 3D on touch */
	}

	.ih-membership-card h3 {
		font-size: 1.25rem !important;
	}

	.ih-membership-card p {
		font-size: 0.9375rem !important;
	}

	.ih-membership-card p[style*="font-weight:700"] {
		font-size: 1.1rem !important;
	}

	.ih-membership-card .wp-block-button__link {
		display: block;
		text-align: center;
		padding: 0.65rem 1.25rem !important;
	}

	/* Smaller bee illustrations on mobile */
	.ih-membership-card.ih-bee-drone {
		background-size: 70px auto;
		background-position: bottom 0.75rem right 0.75rem;
	}

	.ih-membership-card.ih-bee-worker {
		background-size: 75px auto;
		background-position: bottom 0.75rem right 0.75rem;
	}

	.ih-membership-card.ih-bee-queen {
		background-size: 80px auto;
		background-position: bottom 0.75rem right 0.75rem;
	}
}

/* Header */
header {
    padding: 0 3rem;
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
}
.header-content{
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: 700;
}

.entry-content{
	padding-left: 2rem;
	padding-right: 2rem
}

/* Footer */
footer {
    background: #281f15;
    color: #fff;
    padding: 3rem 5% 1.5rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #FDB836;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
	padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #FDB836;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #FDB836;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #999;
}

/* Header menu (Customizer: logged in / logged out) */
.ih-header-nav {
    display: flex;
    justify-content: flex-end;
}

.ih-header-menu,
.ih-header-nav .wp-block-navigation__container {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--wp--preset--spacing--10, 0.5rem);
    justify-content: flex-end;
}

.ih-header-menu a,
.ih-header-nav a {
    color: var(--wp--preset--color--contrast, #3D2817);
    text-decoration: none;
    padding: 0.25em 0.5em;
}

.ih-header-menu a:hover,
.ih-header-nav a:hover {
    text-decoration: underline;
}

/* Active/current menu item - distinct style */
.ih-header-nav .current-menu-item a,
.ih-header-menu .current-menu-item a {
    color: var(--wp--preset--color--accent-1, #E6A500);
    font-weight: 600;
}

/* Large screen: appealing menu link animations */
@media (min-width: 769px) {
    .ih-header-menu a,
    .ih-header-nav a {
        position: relative;
        padding: 0.35em 0.6em;
        transition: color 0.3s ease, transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Animated underline on hover */
    .ih-header-menu a::after,
    .ih-header-nav a::after {
        content: "";
        position: absolute;
        left: 0.6em;
        right: 0.6em;
        bottom: 0.1em;
        height: 2px;
        background: linear-gradient(90deg, var(--wp--preset--color--accent-1, #E6A500), var(--wp--preset--color--accent-2, #D49700));
        transform: scaleX(0);
        transform-origin: center;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 1px;
    }

    .ih-header-menu a:hover,
    .ih-header-nav a:hover {
        color: var(--wp--preset--color--accent-1, #E6A500);
        text-decoration: none;
        transform: translateY(-2px);
    }

    .ih-header-menu a:hover::after,
    .ih-header-nav a:hover::after {
        transform: scaleX(1);
    }

    /* Active item: always show gold underline on desktop */
    .ih-header-nav .current-menu-item a::after,
    .ih-header-menu .current-menu-item a::after {
        transform: scaleX(1);
    }

    .ih-header-nav .current-menu-item a:hover,
    .ih-header-menu .current-menu-item a:hover {
        color: var(--wp--preset--color--accent-2, #D49700);
    }

    /* Staggered fade-in for menu items on load */
    .ih-header-nav .wp-block-navigation__container > li {
        opacity: 0;
        animation: ih-menu-item-in 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    .ih-header-nav .wp-block-navigation__container > li:nth-child(1) { animation-delay: 0.05s; }
    .ih-header-nav .wp-block-navigation__container > li:nth-child(2) { animation-delay: 0.1s; }
    .ih-header-nav .wp-block-navigation__container > li:nth-child(3) { animation-delay: 0.15s; }
    .ih-header-nav .wp-block-navigation__container > li:nth-child(4) { animation-delay: 0.2s; }
    .ih-header-nav .wp-block-navigation__container > li:nth-child(5) { animation-delay: 0.25s; }
    .ih-header-nav .wp-block-navigation__container > li:nth-child(6) { animation-delay: 0.3s; }
    .ih-header-nav .wp-block-navigation__container > li:nth-child(7) { animation-delay: 0.35s; }
    .ih-header-nav .wp-block-navigation__container > li:nth-child(8) { animation-delay: 0.4s; }
}

@keyframes ih-menu-item-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ih-header-menu-placeholder {
    margin: 0;
    font-size: 0.875rem;
    color: var(--wp--preset--color--contrast, #3D2817);
    opacity: 0.8;
}

/* Hamburger button - hidden on desktop; hide entirely when no menu */
.ih-header-no-menu .ih-hamburger {
    display: none !important;
}

.ih-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.ih-hamburger:hover {
    background: rgba(230, 165, 0, 0.12);
}

.ih-hamburger-box {
    display: block;
    width: 22px;
    height: 18px;
    position: relative;
}

.ih-hamburger-inner {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--wp--preset--color--contrast, #3D2817);
    border-radius: 2px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.25s cubic-bezier(0.68, -0.55, 0.27, 1.55), background 0.2s;
}

.ih-hamburger-inner::before,
.ih-hamburger-inner::after {
    content: "";
    display: block;
    width: 22px;
    height: 2px;
    background: var(--wp--preset--color--contrast, #3D2817);
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: transform 0.25s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.ih-hamburger-inner::before {
    top: -6px;
}

.ih-hamburger-inner::after {
    top: 6px;
}

/* Hamburger open state: animate to X */
.site-header.is-menu-open .ih-hamburger-inner {
    background: transparent;
}

.site-header.is-menu-open .ih-hamburger-inner::before {
    top: 0;
    transform: rotate(45deg);
}

.site-header.is-menu-open .ih-hamburger-inner::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Mobile: show hamburger, collapse nav */
@media (max-width: 768px) {
    .site-header .wp-block-group.alignwide {
        flex-wrap: wrap;
    }

    .ih-header-nav-wrap {
        flex: 1;
        justify-content: flex-end;
        order: 2;
    }

    .ih-hamburger {
        display: flex;
    }

    .ih-header-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 10px 30px rgba(61, 40, 23, 0.12);
        flex-direction: column;
        align-items: stretch;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, visibility 0.25s;
        z-index: 99;
    }

    .ih-header-menu,
    .ih-header-nav .wp-block-navigation__container {
        flex-direction: column;
        width: 100%;
        padding: 0.75rem 1rem 1rem;
        gap: 0;
        border-top: 1px solid rgba(230, 165, 0, 0.2);
    }

    .ih-header-nav .wp-block-navigation__container li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .ih-header-nav .wp-block-navigation__container li:last-child {
        border-bottom: none;
    }

    .ih-header-menu a,
    .ih-header-nav a {
        display: block;
        padding: 0.75rem 0.5rem;
        font-size: 1rem;
    }

    /* Mobile: active menu item - left border + background tint */
    .ih-header-nav .current-menu-item a,
    .ih-header-menu .current-menu-item a {
        border-left: 3px solid var(--wp--preset--color--accent-1, #E6A500);
        background: rgba(230, 165, 0, 0.08);
        padding-left: calc(0.5rem + 3px);
    }

    /* Menu open: reveal nav with animation */
    .site-header.is-menu-open .ih-header-nav {
        max-height: 80vh;
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 768px) {
	h2{
		font-size: 2rem;
	}
}
@media (max-width: 480px) {
	h2{
		font-size: 1.5rem;
	}
}
@media screen and (max-width: 821px) {
	header{
		padding: 0 1rem ;
	}
}