/* --- Button Hover Behaviour --- */
.irgf-button:hover {
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

/* --- Navigation Hover Behaviour --- */
.irgf-nav a {
    transition: color 0.2s ease, opacity 0.2s ease;
}

.irgf-nav a:hover {
    opacity: 1;
    color: #ffffff;
    text-shadow: 0 0 6px rgba(255,255,255,0.4);
}
.dropdown {
	position: relative;
  	display: inline-block;            /* hides submenu */
}

/* --- Twisty Tooltip Behaviour --- */
.irgf-twisty summary {
    position: relative;
}



.irgf-twisty summary:hover::after {
    content: "Expand for more information";
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 6px;
    background: #333;
    color: #e0e0e0;
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 20;

/* Start fully invisible */
    opacity: 0;

/* Fade-in animation with delay */
    animation: irgfTooltipFade 0.18s ease-out 0.25s;

}

/* Fade-in Fade/out animation for tooltip */
@keyframes irgfTooltipFade {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes irgfTooltipFadeOut {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(4px); }
}


/* Hide tooltip when twisty is open */
.irgf-twisty[open] summary:hover::after {
    content: none !important;
    display: none !important;
}

/* Disable tooltip on touch devices */
@media (hover: none) and (pointer: coarse) {
    .irgf-twisty summary::after {
        display: none !important;
        content: none !important;
    }
}

.irgf-twisty summary::after {
    opacity: 0;
}

.irgf-twisty summary:hover::after {
    animation: irgfTooltipFade 0.18s ease-out 0.25s forwards;
}

.irgf-twisty summary:not(:hover)::after {
    animation: irgfTooltipFadeOut 0.25s ease-out forwards;
}


/* --- Dropdown Hover Behaviour --- */
.dropdown:hover .dropdown-content {
    display: block;
}

/* --- Smooth hover behaviour --- */
.dropdown-content a:hover {
    background: #444;
    opacity: 1;
}

/* --- Form Focus Behaviour --- */
/* --- Form Focus Behaviour (Behaviour Layer) --- */
.irgf-form input:focus,
.irgf-form textarea:focus {
    border-color: #c47a3a;   /* IRGF sandstone highlight */
    outline: none;
    transition: border-color 0.2s ease;
}

/* --- Form Focus quote --- */
.quote-form input:focus,
.quote-form textarea:focus {
    border-color: #c47a3a;
    outline: none;
}

.dropdown:hover .dropdown-content {
    display: block !important;
}
