/* Hero Section Block - Frontend Styles */
/* Note: CSS variables --global-palette1 through --global-palette9 are defined globally by Kadence theme */

/* Inline Highlight Format - Palette 2 */
.has-palette2-highlight {
    color: var(--global-palette2);
    font-weight: 600;
}

.kunoco-hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: visible;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgb(24,24,24) 0%, rgb(24,24,24) 100%);
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.hero-content {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    column-gap: 6rem;
    align-items: start;
    min-height: 500px;
    padding: 3rem 0;
    width: 100%;
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        text-align: center;
        min-height: auto;
        padding: 2rem 0 0 0;
    }

    .hero-main {
        position: static;
        padding-bottom: 2rem;
    }

    /* Solid background on locations so it's not see-through */
    .hero-locations {
        background: var(--global-palette7, #181818);
        margin: 0 -3rem;
        padding: 2rem 3rem;
    }
}

@media (max-width: 480px) {
    .hero-locations {
        margin: 0 -1rem;
        padding: 2rem 1rem;
    }
}

/* Main Content - color only, sticky defined above */
.hero-main {
    color: var(--global-palette3);
    width: 100%;
    position: sticky;
    top: 100px;
    align-self: start;
}

.hero-headline {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-accent {
    display: block;
    color: var(--global-palette1);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subheadline {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: var(--global-palette4);
    max-width: 600px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .hero-subheadline {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }
}

/* Buttons */
.hero-buttons {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 1rem;
    width: 100%;
    max-width: none;
}

@media (min-width: 1101px) {
    .hero-buttons {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }
}

@media (max-width: 1101px) {
    .hero-buttons {
        flex-direction: column !important;
        align-items: stretch !important;
        flex-wrap: wrap !important;
    }

    .hero-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .hero-buttons {
        flex-direction: column !important;
        align-items: center !important;
    }

    .hero-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

.hero-btn {
    padding: 1rem 2rem;
    border-radius: 0;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex !important;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: none;
    flex-shrink: 1;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s ease, border-color 0.4s ease;
}

@media (min-width: 1201px) {
    .hero-btn {
        flex-shrink: 1;
        flex-grow: 0;
    }
}

.hero-btn:hover {
    transform: none;
    box-shadow: none;
}

.hero-btn-primary {
    background: var(--global-palette1);
    color: var(--global-palette7);
    border: 2px solid var(--global-palette1);
}

.hero-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--global-palette2);
    z-index: -1;
    transition: width 0.4s ease;
}

.hero-btn-primary:hover::before {
    width: 100%;
}

.hero-btn-primary:hover {
    border-color: var(--global-palette2);
    color: var(--global-palette7);
}

.hero-btn-secondary {
    background: transparent;
    color: var(--global-palette3);
    border: 2px solid var(--global-palette3);
}

.hero-btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--global-palette3);
    z-index: -1;
    transition: width 0.4s ease;
}

.hero-btn-secondary:hover::before {
    width: 100%;
}

.hero-btn-secondary:hover {
    color: var(--global-palette7);
    border-color: var(--global-palette3);
}

.hero-btn-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Locations Section */
.hero-locations {
    color: var(--global-palette3);
}

.locations-heading {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--global-palette1);
    margin-bottom: 2.5rem;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 0rem;
}

@media (max-width: 1101px) {
    .locations-grid {
        grid-template-columns: 1fr;
    }
}

.location-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.location-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.location-town {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--global-palette1);
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.location-address {
    font-size: 0.95rem;
    color: var(--global-palette4);
    margin-bottom: 0.25rem!important;
    line-height: 1.5;
}

.location-phone {
    margin-bottom: 1.5rem;
}

.location-phone a {
    color: var(--global-palette1);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    transition: color 0.2s ease;
}

.location-phone a:hover {
    color: var(--global-palette2);
}

.location-button {
    display: inline-block;
    background: var(--global-palette1);
    color: var(--global-palette7);
    padding: 1rem 2rem;
    border-radius: 0;
    border: 2px solid var(--global-palette1);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s ease, border-color 0.4s ease;
    box-shadow: none;
    white-space: nowrap;
    min-width: fit-content;
}

.location-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--global-palette2);
    z-index: -1;
    transition: width 0.4s ease;
}

.location-button:hover::before {
    width: 100%;
}

.location-button:hover {
    border-color: var(--global-palette2);
    color: var(--global-palette7);
    transform: none;
    box-shadow: none;
}

.storage-heading {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.storage-locations {
    margin-top: 0;
}

@media (max-width: 767px) {
    .locations-heading {
        font-size: 1.5rem;
    }

    .locations-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .location-card {
        padding: 1.5rem 1rem;
    }

    .location-town {
        font-size: 1.25rem;
    }
}

/* Responsive Design */
@media (max-width: 480px) {
    .hero-content-wrapper {
        padding: 0 1rem;
    }

    .hero-btn {
        padding: 0.875rem 2rem;
        font-size: 0.875rem;
    }

    .reviews-badge {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .reviews-rating {
        justify-content: center;
    }
}

/* ==========================================================================
   WARM STYLE VARIANT (Classic Palette Only)
   Softer, more inviting design with warm cream background
   Fonts: Playfair Display (headings), Source Sans 3 (body)
   ========================================================================== */

.palette-classic .kunoco-hero-section:not(.is-style-default) {
	background-color: var(--classic-warm-bg);
	font-family: 'Source Sans 3', 'Source Sans 3 Fallback', -apple-system, BlinkMacSystemFont, sans-serif;
	min-height: auto;
}

/* Warm style background - keep absolute positioning */
.palette-classic .kunoco-hero-section:not(.is-style-default) .hero-background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.palette-classic .kunoco-hero-section:not(.is-style-default) .hero-overlay {
	background: linear-gradient(135deg, rgba(253, 251, 247, 0.92) 0%, rgba(253, 251, 247, 0.88) 100%);
}

/* Content wrapper for warm style */
.palette-classic .kunoco-hero-section:not(.is-style-default) .hero-content-wrapper {
	padding: 120px 70px;
}

.palette-classic .kunoco-hero-section:not(.is-style-default) .hero-content {
	min-height: auto;
	padding: 0;
}

/* ==========================================================================
   Scroll-triggered animations for warm style
   ========================================================================== */

/* Animation: only animate elements BELOW the fold (location cards).
   Above-fold hero content must be visible immediately for fast LCP. */
.palette-classic .kunoco-hero-section:not(.is-style-default) .location-card {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Location cards - no stagger delay, each animates on its own scroll trigger */
.palette-classic .kunoco-hero-section:not(.is-style-default) .location-card {
	transition-delay: 0s;
}

/* Individual card visible state */
.palette-classic .kunoco-hero-section:not(.is-style-default) .location-card.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Above-fold hero elements are always visible (no animation delay for LCP) */

/* Disable animations if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
	.palette-classic .kunoco-hero-section:not(.is-style-default) .location-card,
	.palette-classic .kunoco-hero-section:not(.is-style-default) .location-card.is-visible {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ==========================================================================
   Typography - Warm Style
   ========================================================================== */

.palette-classic .kunoco-hero-section:not(.is-style-default) .hero-main {
	color: var(--classic-black);
}

.palette-classic .kunoco-hero-section:not(.is-style-default) .hero-headline {
	font-family: 'Playfair Display', 'Playfair Display Fallback', Georgia, serif;
	color: var(--classic-black);
	font-weight: 700;
	font-size: clamp(2.5rem, 5vw, 4rem);
	line-height: 1.1;
	text-shadow: none;
	position: relative;
	padding-left: 20px;
}

/* Decorative accent line */
.palette-classic .kunoco-hero-section:not(.is-style-default) .hero-headline::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	transform: translateY(-50%);
	width: 4px;
	height: 80%;
	background: linear-gradient(180deg, var(--classic-yellow) 0%, var(--classic-red) 100%);
	border-radius: 2px;
}

.palette-classic .kunoco-hero-section:not(.is-style-default) .hero-accent {
	font-family: 'Playfair Display', 'Playfair Display Fallback', Georgia, serif;
	color: var(--classic-red);
	font-weight: 700;
	font-size: clamp(2.5rem, 5vw, 4rem);
	text-shadow: none;
	padding-left: 0;
}

.palette-classic .kunoco-hero-section:not(.is-style-default) .hero-subheadline {
	font-family: 'Source Sans 3', 'Source Sans 3 Fallback', -apple-system, BlinkMacSystemFont, sans-serif;
	color: var(--classic-gray);
	font-size: 1.125rem;
	line-height: 1.75;
	text-shadow: none;
	max-width: 550px;
}

/* ==========================================================================
   Buttons - Warm Style
   ========================================================================== */

.palette-classic .kunoco-hero-section:not(.is-style-default) .hero-btn-primary {
	background-color: var(--classic-red);
	color: var(--classic-white);
	border: 2px solid var(--classic-red);
	border-radius: 8px;
	font-family: 'Source Sans 3', 'Source Sans 3 Fallback', -apple-system, BlinkMacSystemFont, sans-serif;
	box-shadow: 0 4px 15px rgba(209, 23, 44, 0.25);
}

.palette-classic .kunoco-hero-section:not(.is-style-default) .hero-btn-primary::before {
	background-color: var(--classic-black);
}

.palette-classic .kunoco-hero-section:not(.is-style-default) .hero-btn-primary:hover {
	border-color: var(--classic-black);
	color: var(--classic-white);
}

.palette-classic .kunoco-hero-section:not(.is-style-default) .hero-btn-secondary {
	background-color: transparent;
	color: var(--classic-black);
	border: 2px solid var(--classic-black);
	border-radius: 8px;
	font-family: 'Source Sans 3', 'Source Sans 3 Fallback', -apple-system, BlinkMacSystemFont, sans-serif;
}

.palette-classic .kunoco-hero-section:not(.is-style-default) .hero-btn-secondary::before {
	background-color: var(--classic-yellow);
}

.palette-classic .kunoco-hero-section:not(.is-style-default) .hero-btn-secondary:hover {
	border-color: var(--classic-yellow);
	color: var(--classic-black);
}

/* ==========================================================================
   Location Cards - Warm Style
   ========================================================================== */

.palette-classic .kunoco-hero-section:not(.is-style-default) .hero-locations {
	color: var(--classic-black);
}

.palette-classic .kunoco-hero-section:not(.is-style-default) .locations-heading {
	font-family: 'Source Sans 3', 'Source Sans 3 Fallback', -apple-system, BlinkMacSystemFont, sans-serif;
	color: var(--classic-black);
	font-weight: 600;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	text-shadow: none;
	margin-bottom: 1.5rem;
}

.palette-classic .kunoco-hero-section:not(.is-style-default) .location-card {
	background: var(--classic-white);
	border: none;
	border-radius: 0;
	backdrop-filter: none;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease, opacity 0.8s ease-out, transform 0.8s ease-out;
	position: relative;
}

/* Gradient bottom accent line */
.palette-classic .kunoco-hero-section:not(.is-style-default) .location-card::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--classic-yellow) 0%, var(--classic-red) 100%);
	opacity: 0.7;
	transition: opacity 0.3s ease;
}

.palette-classic .kunoco-hero-section:not(.is-style-default) .location-card:hover {
	background: var(--classic-white);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.palette-classic .kunoco-hero-section:not(.is-style-default) .location-card:hover::after {
	opacity: 1;
}

.palette-classic .kunoco-hero-section:not(.is-style-default) .location-town {
	font-family: 'Playfair Display', 'Playfair Display Fallback', Georgia, serif;
	color: var(--classic-black);
	font-weight: 700;
	text-shadow: none;
}

.palette-classic .kunoco-hero-section:not(.is-style-default) .location-address {
	font-family: 'Source Sans 3', 'Source Sans 3 Fallback', -apple-system, BlinkMacSystemFont, sans-serif;
	color: var(--classic-gray);
}

.palette-classic .kunoco-hero-section:not(.is-style-default) .location-phone a {
	color: var(--classic-red);
	font-family: 'Source Sans 3', 'Source Sans 3 Fallback', -apple-system, BlinkMacSystemFont, sans-serif;
}

.palette-classic .kunoco-hero-section:not(.is-style-default) .location-phone a:hover {
	color: var(--classic-black);
}

.palette-classic .kunoco-hero-section:not(.is-style-default) .location-button {
	background-color: var(--classic-yellow);
	color: var(--classic-black);
	border: 2px solid var(--classic-yellow);
	border-radius: 6px;
	font-family: 'Source Sans 3', 'Source Sans 3 Fallback', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 0.875rem;
	padding: 0.75rem 1.5rem;
	box-shadow: 0 2px 8px rgba(248, 217, 24, 0.3);
}

.palette-classic .kunoco-hero-section:not(.is-style-default) .location-button::before {
	background-color: var(--classic-red);
}

.palette-classic .kunoco-hero-section:not(.is-style-default) .location-button:hover {
	border-color: var(--classic-red);
	color: var(--classic-white);
}

/* Storage section divider */
.palette-classic .kunoco-hero-section:not(.is-style-default) .storage-heading {
	border-top-color: rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Responsive - Warm Style
   ========================================================================== */

@media (max-width: 1300px) {
	.palette-classic .kunoco-hero-section:not(.is-style-default) .hero-content-wrapper {
		padding: 50px 40px;
	}
}

@media (max-width: 782px) {
	.palette-classic .kunoco-hero-section:not(.is-style-default) .hero-content-wrapper {
		padding: 40px 24px;
	}

	.palette-classic .kunoco-hero-section:not(.is-style-default) .hero-headline,
	.palette-classic .kunoco-hero-section:not(.is-style-default) .hero-accent {
		padding-left: 16px;
	}

	.palette-classic .kunoco-hero-section:not(.is-style-default) .hero-headline::before {
		width: 3px;
	}
}

@media (max-width: 480px) {
	.palette-classic .kunoco-hero-section:not(.is-style-default) .hero-content-wrapper {
		padding: 30px 20px;
	}

	.palette-classic .kunoco-hero-section:not(.is-style-default) .hero-headline,
	.palette-classic .kunoco-hero-section:not(.is-style-default) .hero-accent {
		padding-left: 14px;
	}

	.palette-classic .kunoco-hero-section:not(.is-style-default) .hero-btn {
		border-radius: 6px;
	}

	.palette-classic .kunoco-hero-section:not(.is-style-default) .location-card {
		padding: 1.25rem 1rem;
	}
}

/* Warm style: solid background on locations for mobile */
@media (max-width: 782px) {
	.palette-classic .kunoco-hero-section:not(.is-style-default) .hero-locations {
		background: var(--classic-warm-bg, #fdfbf7);
		margin: 0 -24px;
		padding: 2rem 24px;
	}
}

@media (max-width: 480px) {
	.palette-classic .kunoco-hero-section:not(.is-style-default) .hero-locations {
		margin: 0 -20px;
		padding: 2rem 20px;
	}
}

/* ==========================================================================
   Mobile - Simple stacked layout (no parallax/animations)
   ========================================================================== */
@media (max-width: 782px) {
	.palette-classic .kunoco-hero-section:not(.is-style-default) .hero-content {
		display: block !important;
	}

	.palette-classic .kunoco-hero-section:not(.is-style-default) .hero-main {
		position: static !important;
	}

	.palette-classic .kunoco-hero-section:not(.is-style-default) .location-card {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}
