/*
 Theme Name:   My Fine Yard
 Theme URI:    https://myfineyard.com
 Description:  MFY Theme
 Author:       MFY Team
 Author URI:   https://myfineyard.com
 Template:     generatepress
 Version:      0.1
*/

/* --THEME TWEAKS -- */
.site-header {
	padding-inline: clamp(1rem, 0.848rem + 0.758vw, 1.5rem);
}

:is(h1, h2, h3, h4, h5, h6), .balance {
	text-wrap: balance;
}

p, blockquote, li {
	text-wrap: pretty;
}

p:last-child:last-of-type {
	margin-bottom: 0px;
}

/* --FRAMEWORK VARIABLES-- */
:root {
  /* Smaller minimums for mobile, same maximums for desktop */
  --padding-xs:  clamp(0.25rem, 0.2rem + 0.25vw, 0.5rem);
  --padding-s:   clamp(0.5rem, 0.4rem + 0.5vw, 1rem);
  --padding-m:   clamp(1rem, 0.8rem + 1vw, 2rem);
  --padding-l:   clamp(1.5rem, 1rem + 2.5vw, 4rem);
  --padding-xl:  clamp(2.5rem, 1.5rem + 4vw, 6rem);
  --padding-xxl: clamp(4rem, 2rem + 8vw, 12rem);
}

/* Quiz testing */

/* 1. Hide/Show the main section (No animation) */

.quiz-step {

    display: none;

}

.quiz-step.is-active {

    display: block;

}



/* 2. The Entrance Animation (Apply to the inner wrapper only) */

.quiz-entrance {

    animation: mfySlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;

}



/* 3. Pointer for buttons (from your previous question) */

#next-btn, #back-btn {

    cursor: pointer;

}



@keyframes mfySlideUp {

    0% { opacity: 0; transform: translateY(20px); }

    100% { opacity: 1; transform: translateY(0); }

}



/* Targets your specific Wizard buttons */

#next-btn, #back-btn {

    cursor: pointer;

}



/* Removes the default mobile tap highlight */

.btn-delay, .gb-button {

    -webkit-tap-highlight-color: transparent;

}



/* Remove outline for mouse/touch users */

.btn-delay:focus {

    outline: none;

}



/* Add a premium custom outline ONLY for keyboard users */

.btn-delay:focus-visible {

    outline: 2px solid #fbb02d; /* Your brand yellow */

    outline-offset: 3px;

}



/* Quiz pill color */

/* This adds the smooth 180ms fade you want for the brand */

.nav-pill {

    transition: background-color 0.18s ease-in-out;

}



/* This overrides the GB background color only when the class is present */

.nav-pill.is-active {

    background-color: #5c8001 !important; 

}

/* Hardiness Zone Tool */

/* Main Container - Centered with 2px Green Border */
.hz-container {
    max-width: 450px;
    margin: 40px auto;
    padding: 30px;
    border: 2px solid #5c8001; /* Your Primary Green */
    border-radius: 12px;
    text-align: center;
    background-color: #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.hz-title {
    margin: 0 0 10px 0;
    font-size: 1.4em;
    color: #333;
}

.hz-description {
    margin-bottom: 25px;
    font-size: 0.95em;
    color: #666;
}

/* Form Grouping */
.hz-form-group {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

/* Input Box - 2px Border #55555e */
.hz-input {
    width: 60%;
    padding: 12px 15px;
    border: 2px solid #55555e;
    border-radius: 6px;
    font-size: 16px; /* Prevents iOS auto-zoom on focus */
    outline: none;
    transition: border-color 0.2s ease;
}

.hz-input:focus {
    border-color: #5c8001; /* Turns green when typing */
}

/* Search Button */
.hz-button {
    padding: 12px 24px;
    background-color: #5c8001;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.hz-button:hover {
    background-color: #7cb518; /* Your Secondary Green */
}

/* Results Section */
.hz-result {
    margin-top: 25px;
    min-height: 40px;
    font-size: 1.1em;
    color: #333;
}

.hz-result strong {
    color: #5c8001;
    font-size: 1.3em;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .hz-form-group {
        flex-direction: column;
        align-items: center;
    }
    .hz-input {
        width: 100%;
    }
    .hz-button {
        width: 100%;
    }
}