/*
Theme Name: Asia Cycling Tours Child
Theme URI: https://asiacyclingtours.com/
Description: GeneratePress child theme for Asia Cycling Tours with a premium Indigo–Saffron travel design system, custom WooCommerce tour templates, blog templates, destination archives, utility pages, and responsive styling.
Author: Asia Cycling Tours
Author URI: https://asiacyclingtours.com/
Template: generatepress
Version: 2.1.0
Text Domain: gct-tour-theme
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/*
 * Asia Cycling Tours – GeneratePress header inspired by approved homepage mockup
 * Paste into: Appearance > Customize > Additional CSS
 * Recommended menu CSS class for the final CTA item: menu-cta
 */

/* ---------- Header shell ---------- */
#masthead {
    z-index: 999;
    background: #ffffff;
    transition: box-shadow .2s ease, background-color .2s ease;
}

#masthead .inside-header {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 22px;
    min-height: 76px;
    padding: 0 18px 0 22px;
}

/* Floating header over the homepage hero */
body.home #masthead,
body.page-template-page-global-cycling-home #masthead {
    position: absolute;
    top: 18px;
    right: 0;
    left: 0;
    width: 100%;
    background: transparent;
    box-shadow: none;
}

body.admin-bar.home #masthead,
body.admin-bar.page-template-page-global-cycling-home #masthead {
    top: 50px;
}

body.home #masthead .inside-header,
body.page-template-page-global-cycling-home #masthead .inside-header {
    width: calc(100% - 40px);
    max-width: 1180px;
    margin: 0 auto;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 15px;
    box-shadow: 0 16px 42px rgba(6, 50, 90, .18);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

/* Sticky, compact header on inner pages */
body:not(.home):not(.page-template-page-global-cycling-home) #masthead {
    position: sticky;
    top: 0;
    border-bottom: 1px solid #e3edf3;
    box-shadow: 0 8px 24px rgba(6, 50, 90, .07);
}

body.admin-bar:not(.home):not(.page-template-page-global-cycling-home) #masthead {
    top: 32px;
}

/* ---------- Branding / logo ---------- */
.site-branding,
.site-logo {
    flex: 0 0 auto;
    margin-right: auto;
}

.site-logo img,
.inside-header .site-logo img {
    display: block;
    width: auto;
    max-width: 175px;
    max-height: 52px;
    object-fit: contain;
}

.main-title {
    margin: 0;
}

.main-title a {
    display: block;
    max-width: 220px;
    color: #273469;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.01em;
    text-decoration: none;
}

.main-title a:hover {
    color: #D94F30;
}

/* ---------- Desktop navigation ---------- */
#site-navigation,
#site-navigation .inside-navigation {
    background: transparent;
}

#site-navigation {
    flex: 0 1 auto;
}

#site-navigation .inside-navigation {
    padding: 0;
}

.main-navigation .main-nav > ul {
    display: flex;
    align-items: center;
    gap: 2px;
}

.main-navigation .main-nav > ul > li > a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 12px 12px;
    color: #163b55;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: -.005em;
    transition: color .18s ease, background-color .18s ease, transform .18s ease;
}

.main-navigation .main-nav > ul > li > a:hover,
.main-navigation .main-nav > ul > li.sfHover > a,
.main-navigation .main-nav > ul > li.current-menu-item:not(.menu-cta) > a,
.main-navigation .main-nav > ul > li.current-menu-ancestor:not(.menu-cta) > a {
    color: #067eaf;
    background: #eef8fc;
}

.main-navigation .main-nav > ul > li.current-menu-item:not(.menu-cta) > a::after,
.main-navigation .main-nav > ul > li.current-menu-ancestor:not(.menu-cta) > a::after {
    position: absolute;
    right: 12px;
    bottom: 6px;
    left: 12px;
    height: 2px;
    border-radius: 999px;
    background: #0a8dc6;
    content: "";
}

.dropdown-menu-toggle {
    padding-left: 6px;
    color: #66859a;
}

/* Dropdown cards */
.main-navigation ul ul {
    min-width: 235px;
    padding: 9px;
    background: #ffffff;
    border: 1px solid #dfeaf0;
    border-radius: 13px;
    box-shadow: 0 18px 45px rgba(7, 59, 100, .16);
}

.main-navigation ul ul li a {
    padding: 11px 13px;
    color: #35425A;
    border-radius: 8px;
    font-size: 13.5px;
    line-height: 1.35;
}

.main-navigation ul ul li a:hover,
.main-navigation ul ul li.current-menu-item > a {
    color: #067eaf;
    background: #eef8fc;
}

/* Final menu item CTA: add CSS class "menu-cta" in Appearance > Menus */
.main-navigation .main-nav > ul > li.menu-cta {
    margin-left: 7px;
}

.main-navigation .main-nav > ul > li.menu-cta > a {
    min-height: 44px;
    padding: 12px 18px;
    color: #ffffff !important;
    background: #D94F30;
    border: 1px solid #D94F30;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(7, 137, 197, .23);
    font-weight: 750;
}

.main-navigation .main-nav > ul > li.menu-cta > a::after {
    display: none;
}

.main-navigation .main-nav > ul > li.menu-cta > a:hover,
.main-navigation .main-nav > ul > li.menu-cta.current-menu-item > a {
    color: #ffffff !important;
    background: #BC3E24;
    border-color: #BC3E24;
    transform: translateY(-1px);
}

/* Optional search icon/menu item */
.main-navigation .menu-bar-item > a {
    color: #35425A;
}

/* ---------- Tablet tightening ---------- */
@media (max-width: 1080px) and (min-width: 769px) {
    #masthead .inside-header {
        gap: 10px;
        padding-right: 12px;
        padding-left: 16px;
    }

    .main-title a {
        max-width: 165px;
        font-size: 13px;
    }

    .site-logo img,
    .inside-header .site-logo img {
        max-width: 145px;
    }

    .main-navigation .main-nav > ul > li > a {
        padding-right: 8px;
        padding-left: 8px;
        font-size: 12.5px;
    }

    .main-navigation .main-nav > ul > li.menu-cta > a {
        padding-right: 13px;
        padding-left: 13px;
    }
}

/* ---------- Mobile navigation ---------- */
@media (max-width: 768px) {
    body.home #masthead,
    body.page-template-page-global-cycling-home #masthead {
        top: 10px;
    }

    body.admin-bar.home #masthead,
    body.admin-bar.page-template-page-global-cycling-home #masthead {
        top: 56px;
    }

    body.home #masthead .inside-header,
    body.page-template-page-global-cycling-home #masthead .inside-header {
        width: calc(100% - 20px);
        min-height: 64px;
        padding: 8px 10px 8px 14px;
        border-radius: 12px;
    }

    body:not(.home):not(.page-template-page-global-cycling-home) #masthead .inside-header {
        min-height: 64px;
        padding: 8px 12px;
    }

    body.admin-bar:not(.home):not(.page-template-page-global-cycling-home) #masthead {
        top: 46px;
    }

    .site-logo img,
    .inside-header .site-logo img {
        max-width: 145px;
        max-height: 42px;
    }

    .main-title a {
        max-width: 175px;
        font-size: 12.5px;
    }

    #mobile-menu-control-wrapper {
        margin-left: auto;
        background: transparent;
    }

    .menu-toggle,
    #mobile-menu-control-wrapper .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        min-width: 44px;
        height: 44px;
        padding: 0;
        color: #273469;
        background: #eef8fc;
        border: 1px solid #dcecf4;
        border-radius: 10px;
    }

    .menu-toggle:hover,
    #mobile-menu-control-wrapper .menu-toggle:hover {
        color: #ffffff;
        background: #D94F30;
    }

    #site-navigation {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        background: #ffffff;
        border: 1px solid #dfeaf0;
        border-radius: 14px;
        box-shadow: 0 20px 44px rgba(7, 59, 100, .2);
    }

    #site-navigation .inside-navigation {
        display: block;
        padding: 9px;
    }

    .main-navigation .main-nav > ul {
        display: block;
    }

    .main-navigation .main-nav > ul > li > a {
        min-height: 0;
        padding: 13px 14px;
        border-radius: 9px;
        font-size: 14px;
    }

    .main-navigation .main-nav > ul > li.current-menu-item:not(.menu-cta) > a::after,
    .main-navigation .main-nav > ul > li.current-menu-ancestor:not(.menu-cta) > a::after {
        display: none;
    }

    .main-navigation .main-nav > ul > li.menu-cta {
        margin: 8px 0 0;
    }

    .main-navigation .main-nav > ul > li.menu-cta > a {
        justify-content: center;
        padding: 14px 18px;
    }

    .main-navigation ul ul {
        position: static;
        width: auto;
        min-width: 0;
        margin: 0 10px 8px;
        padding: 5px 0 5px 10px;
        border: 0;
        border-left: 2px solid #0a8dc6;
        border-radius: 0;
        box-shadow: none;
    }

    .main-navigation ul ul li a {
        padding: 10px 12px;
    }
}

/* WordPress admin bar wraps on very narrow screens */
@media (max-width: 600px) {
    body.admin-bar.home #masthead,
    body.admin-bar.page-template-page-global-cycling-home #masthead {
        top: 56px;
    }

    body.admin-bar:not(.home):not(.page-template-page-global-cycling-home) #masthead {
        top: 0;
    }
}


/* =========================================================
 * GCT SITEWIDE RESPONSIVE FOUNDATION — v1.5
 * ========================================================= */

html {
	scroll-behavior: smooth;
}

html,
body {
	max-width: 100%;
}

body {
	overflow-x: clip;
}

img,
svg,
video,
iframe,
embed,
object {
	max-width: 100%;
}

img,
video {
	height: auto;
}

table {
	max-width: 100%;
}

.entry-content,
.page-content,
.site-main,
.content-area {
	min-width: 0;
}

.entry-content {
	overflow-wrap: anywhere;
}

.entry-content table {
	display: block;
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.entry-content iframe,
.entry-content video,
.entry-content embed,
.entry-content object {
	max-width: 100%;
}

.entry-content input,
.entry-content select,
.entry-content textarea,
.entry-content button {
	max-width: 100%;
}

a,
button,
input,
select,
textarea,
summary {
	-webkit-tap-highlight-color: transparent;
}

:focus-visible {
	outline: 3px solid rgba(7,137,197,.35);
	outline-offset: 3px;
}

/* Default GeneratePress pages that do not use a custom template. */
body.page:not(.page-template-page-global-cycling-home):not(.woocommerce-page) .site-content {
	width: min(1180px, calc(100% - 40px));
	margin-right: auto;
	margin-left: auto;
	padding-top: 46px;
	padding-bottom: 70px;
}

body.page:not(.page-template-page-global-cycling-home):not(.woocommerce-page) article.page {
	min-width: 0;
}

body.page:not(.page-template-page-global-cycling-home):not(.woocommerce-page) .entry-title {
	color: #273469;
	font-size: clamp(2rem, 4vw, 3.4rem);
	line-height: 1.1;
	letter-spacing: -.035em;
}

/* Footer widgets supplied for Asia Cycling Tours. */
.footer-widgets {
	background: #182044;
	color: rgba(255,255,255,.78);
	border-top: 1px solid rgba(255,255,255,.08);
}

.footer-widgets .inside-footer-widgets {
	gap: 38px;
	padding-top: 62px;
	padding-bottom: 54px;
}

.gct-footer-widget {
	color: rgba(255,255,255,.70);
	font-size: 14px;
	line-height: 1.65;
}

.gct-footer-widget h3 {
	position: relative;
	margin: 0 0 22px;
	padding-bottom: 13px;
	color: #fff;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.3;
}

.gct-footer-widget h3::after {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 38px;
	height: 3px;
	border-radius: 999px;
	background: linear-gradient(90deg,#4eb4e4,#73c441);
	content: "";
}

.gct-footer-widget a {
	color: inherit;
	text-decoration: none;
}

.gct-footer-links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gct-footer-links li {
	border-bottom: 1px solid rgba(255,255,255,.07);
}

.gct-footer-links a {
	position: relative;
	display: block;
	padding: 8px 0 8px 16px;
}

.gct-footer-links a::before {
	position: absolute;
	top: 17px;
	left: 0;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #73c441;
	content: "";
}

.gct-footer-links a:hover {
	color: #fff;
	transform: translateX(3px);
}

.gct-footer-contact-list {
	display: grid;
	gap: 13px;
	margin: 0 0 21px;
	font-style: normal;
}

.gct-footer-contact-list > a,
.gct-footer-contact-list > div {
	display: flex;
	align-items: flex-start;
	gap: 11px;
}

.gct-footer-contact-icon {
	display: grid;
	flex: 0 0 32px;
	place-items: center;
	width: 32px;
	height: 32px;
	color: #4eb4e4;
	border: 1px solid rgba(78,180,228,.22);
	border-radius: 9px;
	background: rgba(78,180,228,.08);
}

.gct-footer-contact-icon svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
}

.gct-footer-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 45px;
	padding: 11px 16px;
	color: #fff !important;
	border: 1px solid #D94F30;
	border-radius: 10px;
	background: #D94F30;
	font-size: 13px;
	font-weight: 800;
}

/*
 * GeneratePress mobile navigation:
 * keep the hamburger visible; hide only the closed menu contents.
 */
@media (max-width: 768px) {
	#masthead,
	#masthead .inside-header {
		max-width: 100%;
	}

	#masthead .inside-header {
		position: relative;
		width: 100%;
		min-width: 0;
	}

	.site-branding,
	.site-logo {
		min-width: 0;
	}

	.site-logo img,
	.inside-header .site-logo img {
		max-width: min(145px, 42vw);
	}

	.main-title a {
		max-width: min(180px, 48vw);
		overflow-wrap: anywhere;
	}

	#mobile-menu-control-wrapper {
		flex: 0 0 auto;
		margin-left: auto;
	}

	#site-navigation {
		width: auto;
		min-width: 0;
		margin: 0;
		padding: 0;
		overflow: visible;
		background: transparent !important;
		border: 0 !important;
		box-shadow: none !important;
	}

	#site-navigation .inside-navigation {
		position: relative;
		min-height: 0;
		padding: 0 !important;
		background: transparent !important;
	}

	#site-navigation:not(.toggled) .main-nav {
		display: none !important;
	}

	#site-navigation.toggled .main-nav {
		position: absolute;
		top: calc(100% + 10px);
		right: 0;
		left: auto;
		z-index: 1000;
		display: block !important;
		width: min(340px, calc(100vw - 28px));
		max-height: calc(100dvh - 110px);
		padding: 9px;
		overflow-y: auto;
		border: 1px solid #dfeaf0;
		border-radius: 14px;
		background: #fff;
		box-shadow: 0 20px 44px rgba(7,59,100,.20);
	}

	#site-navigation.toggled .main-nav > ul {
		display: block !important;
		width: 100%;
		margin: 0;
		padding: 0;
	}

	#site-navigation.toggled .main-nav > ul > li,
	#site-navigation.toggled .main-nav > ul > li > a {
		display: block;
		width: 100%;
	}

	#site-navigation.toggled .main-nav > ul > li > a {
		min-height: 0;
		padding: 13px 14px;
		border-radius: 9px;
		font-size: 14px;
		line-height: 1.35;
	}

	body.page:not(.page-template-page-global-cycling-home):not(.woocommerce-page) .site-content {
		width: calc(100% - 28px);
		padding-top: 34px;
		padding-bottom: 55px;
	}

	.footer-widgets .inside-footer-widgets {
		display: grid;
		grid-template-columns: repeat(2,minmax(0,1fr));
		gap: 38px;
	}

	.footer-widgets .footer-widget-3 {
		margin-left: 0;
	}
}

@media (max-width: 640px) {
	.footer-widgets .inside-footer-widgets {
		grid-template-columns: minmax(0,1fr);
		padding-top: 45px;
		padding-bottom: 42px;
	}

	.gct-footer-cta {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}
