/*
Theme Name: AK Interiors & Civil
Theme URI: https://akconstructionsandinteriors.com
Author: AK Interiors & Civil
Author URI: https://akconstructionsandinteriors.com
Description: Premium Interior Design and Civil Construction WordPress Theme for AK Interiors & Civil in Chennai.
Version: 1.2.3
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary
License URI: https://akconstructionsandinteriors.com
Text Domain: ak-interiors-civil
Tags: architecture, interior-design, construction, portfolio, modern, dark, luxury
*/

/* ==========================================================================
   AK Interiors & Civil — Floating Contact Actions
   ========================================================================== */
.ak-floating-actions {
    position: fixed;
    bottom: 1.5rem;
    right: 1.25rem;
    z-index: 1350;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    transition: bottom 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

@media (min-width: 640px) {
    .ak-floating-actions {
        bottom: 2rem;
        right: 1.75rem;
        gap: 0.875rem;
    }
}

/* Elevate above cookie banner when banner is displayed */
body.ak-cookie-banner-active .ak-floating-actions {
    bottom: 6.5rem;
}

@media (min-width: 1024px) {
    body.ak-cookie-banner-active .ak-floating-actions {
        bottom: 5.5rem;
    }
}

.ak-float-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    cursor: pointer;
    text-decoration: none;
    outline: none;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

.ak-float-btn:hover {
    transform: translateY(-3px) scale(1.06);
}

.ak-float-btn:active {
    transform: translateY(0) scale(0.96);
}

.ak-float-phone {
    width: 50px;
    height: 50px;
    background-color: #1a1a1a;
    color: #dfc49c;
    border: 1.5px solid #bfa181;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6), 0 0 10px rgba(191, 161, 129, 0.2);
}

.ak-float-phone:hover {
    background-color: #bfa181;
    color: #141414;
    border-color: #dfc49c;
    box-shadow: 0 14px 30px -5px rgba(191, 161, 129, 0.45), 0 0 15px rgba(191, 161, 129, 0.3);
}

.ak-float-whatsapp {
    width: 56px;
    height: 56px;
    background-color: #25D366;
    color: #ffffff;
    box-shadow: 0 12px 28px -5px rgba(37, 211, 102, 0.5), 0 4px 12px rgba(0, 0, 0, 0.25);
}

.ak-float-whatsapp:hover {
    background-color: #20ba5a;
    box-shadow: 0 16px 32px -4px rgba(37, 211, 102, 0.65), 0 6px 16px rgba(0, 0, 0, 0.3);
}

.ak-whatsapp-pulse {
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background-color: #25D366;
    opacity: 0.35;
    pointer-events: none;
    animation: ak-pulse 2.4s infinite cubic-bezier(0.24, 0, 0.38, 1);
}

@keyframes ak-pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.35);
        opacity: 0;
    }
    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

.ak-float-tooltip {
    position: absolute;
    right: calc(100% + 0.75rem);
    display: none;
    white-space: nowrap;
    border: 1px solid rgba(22, 22, 22, 0.12);
    background-color: #f7f6f2;
    padding: 0.375rem 0.75rem;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #161616;
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.18);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateX(4px);
}

@media (min-width: 768px) {
    .ak-float-btn:hover .ak-float-tooltip {
        display: block;
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==========================================================================
   Global SVG Rendering & Stroke Utilities
   ========================================================================== */
svg.fill-none,
svg[fill="none"] {
    fill: none !important;
}

svg.stroke-currentColor,
svg[stroke="currentColor"] {
    stroke: currentColor !important;
}

svg.stroke-2,
svg[stroke-width="2"] {
    stroke-width: 2px !important;
}

svg.stroke-2-2,
svg[stroke-width="2.2"] {
    stroke-width: 2.2px !important;
}

svg.stroke-1-5,
svg[stroke-width="1.5"] {
    stroke-width: 1.5px !important;
}

svg.fill-current,
svg[fill="currentColor"] {
    fill: currentColor !important;
}

/* Section Spacing & No-Overlap Safeguards */
#ak-site-header {
    height: 5rem;
}
@media (min-width: 1024px) {
    #ak-site-header {
        height: 5.5rem;
    }
}

/* Ensure hero content never overlaps header */
#hero {
    padding-top: calc(5rem + 1rem);
}
@media (min-width: 1024px) {
    #hero {
        padding-top: calc(5.5rem + 2rem);
    }
}
