/* ============================================================
   GC — Header Bar  (phone + live weather)
   Compact strip for site headers.
   ============================================================ */

/* ── Tokens ── */
.gc-hb {
    --gc-hb-gold:     #b8953a;
    --gc-hb-gold-l:   #d4af6a;
    --gc-hb-dark:     #1c1914;
    --gc-hb-cream:    #faf5ec;
    --gc-hb-text:     rgba(255,255,255,0.85);
    --gc-hb-text-sub: rgba(255,255,255,0.45);
    --gc-hb-ring:     #b8953a;
}

/* ── Colour schemes ── */
.gc-hb--dark {
    background: var(--gc-hb-dark);
}
.gc-hb--cream {
    background: var(--gc-hb-cream);
    --gc-hb-text:     rgba(28,25,20,0.85);
    --gc-hb-text-sub: rgba(28,25,20,0.45);
}
.gc-hb--gold {
    background: var(--gc-hb-gold);
    --gc-hb-text:     #ffffff;
    --gc-hb-text-sub: rgba(255,255,255,0.65);
    --gc-hb-ring:     #ecddb8;
}
.gc-hb--transparent {
    background: transparent;
}

/* ── Layout ── */
.gc-hb {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 10px 20px;
    font-family: 'Montserrat', Arial, sans-serif;
    line-height: 1;
    position: relative;
}

/* ── Divider (horizontal rule between phone and weather) ── */
.gc-hb__divider {
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right,
        rgba(184,149,58,0.45),
        rgba(184,149,58,0.15) 80%,
        transparent);
    margin: 0.1rem 0;
}

/* ============================================================
   PHONE SECTION
   ============================================================ */
.gc-hb__phone,
.gc-hb__whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: inherit;
}

/* ── WhatsApp icon wrapper ── */
.gc-hb__wa-icon-wrap {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gc-hb__wa-svg {
    width: 20px;
    height: 20px;
    color: #25d366;
    display: block;
    filter: drop-shadow(0 0 5px rgba(37,211,102,0.35));
    transition: color 0.2s, filter 0.2s;
}

.gc-hb__whatsapp:hover .gc-hb__wa-svg {
    color: #1ebe5d;
    filter: drop-shadow(0 0 8px rgba(37,211,102,0.55));
}

.gc-hb__phone-number--wa {
    color: #25d366 !important;
}
.gc-hb__whatsapp:hover .gc-hb__phone-number--wa {
    color: #1ebe5d !important;
}

/* ── Icon wrapper (holds rings + svg) ── */
.gc-hb__icon-wrap {
    position: relative;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Phone SVG ── */
.gc-hb__phone-svg {
    width: 20px;
    height: 20px;
    color: var(--gc-hb-gold);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    display: block;
    filter: drop-shadow(0 0 6px rgba(184,149,58,0.4));
}

/* ── Pulse rings ── */
.gc-hb__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid var(--gc-hb-ring, #b8953a);
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}

/* ring animation keyframes */
@keyframes gc-hb-ring-out {
    0%   { transform: scale(0.6); opacity: 0.7; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* Only fire when animation mode includes 'ring' */
.gc-hb--anim-ring  .gc-hb__ring,
.gc-hb--anim-both  .gc-hb__ring {
    animation: gc-hb-ring-out 2.4s cubic-bezier(0.4,0,0.6,1) infinite;
}
.gc-hb--anim-ring  .gc-hb__ring--2,
.gc-hb--anim-both  .gc-hb__ring--2 { animation-delay: 0.8s; }
.gc-hb--anim-ring  .gc-hb__ring--3,
.gc-hb--anim-both  .gc-hb__ring--3 { animation-delay: 1.6s; }

/* ── Phone vibrate ── */
@keyframes gc-hb-vibrate {
    0%,100%  { transform: rotate(0deg); }
    10%      { transform: rotate(-12deg); }
    20%      { transform: rotate(12deg); }
    30%      { transform: rotate(-10deg); }
    40%      { transform: rotate(10deg); }
    50%      { transform: rotate(-6deg); }
    60%      { transform: rotate(6deg); }
    70%,90%  { transform: rotate(0deg); }
}

.gc-hb--anim-shake .gc-hb__phone-svg,
.gc-hb--anim-both  .gc-hb__phone-svg {
    animation: gc-hb-vibrate 1s ease-in-out infinite;
    animation-delay: 2s;            /* first ring pulse, then vibrate */
    animation-play-state: running;
}

/* ── Phone text ── */
.gc-hb__phone-text {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.gc-hb__phone-label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gc-hb-text-sub);
    line-height: 1;
}

.gc-hb__phone-number {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--gc-hb-gold-l);
    line-height: 1;
    transition: color 0.2s;
    white-space: nowrap;
}

.gc-hb__phone:hover .gc-hb__phone-number {
    color: #fff;
}
.gc-hb--cream .gc-hb__phone:hover .gc-hb__phone-number,
.gc-hb--transparent .gc-hb__phone:hover .gc-hb__phone-number {
    color: var(--gc-hb-gold);
}

/* ============================================================
   WEATHER SECTION
   ============================================================ */
.gc-hb__weather {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    transition: opacity 0.4s;
}
.gc-hb__weather--hidden { display: none; }

/* ── Weather icon wrapper ── */
.gc-hb__wx-icon-wrap {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

/* SVG icon (sun / cloud etc. filled by JS or PHP) */
.gc-hb__wx-svg {
    width: 24px;
    height: 24px;
    color: var(--gc-hb-gold-l);
    display: block;
}

/* OWM img icon */
.gc-hb__wx-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
    /* invert to warm on dark backgrounds */
    filter: brightness(1.1) saturate(0.7) sepia(0.5) hue-rotate(5deg);
}
.gc-hb--cream  .gc-hb__wx-img,
.gc-hb--gold   .gc-hb__wx-img { filter: none; }

/* Loading spinner */
.gc-hb__wx-loading {
    width: 22px;
    height: 22px;
    color: rgba(184,149,58,0.5);
    animation: gc-hb-spin 1.2s linear infinite;
    display: block;
}

@keyframes gc-hb-spin {
    to { transform: rotate(360deg); }
}

/* ── Weather text ── */
.gc-hb__wx-info {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.gc-hb__wx-temp {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--gc-hb-gold-l);
    line-height: 1;
    white-space: nowrap;
}

.gc-hb__wx-city {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gc-hb-text-sub);
    line-height: 1;
    white-space: nowrap;
}

/* ── Condition tooltip (appears on hover) ── */
.gc-hb__wx-condition {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--gc-hb-dark);
    color: var(--gc-hb-gold-l);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(184,149,58,0.3);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 999;
}
.gc-hb__weather:hover .gc-hb__wx-condition {
    opacity: 1;
}

/* ── Elementor editor visibility fix ── */
.elementor-editor-active .gc-hb__ring { animation: none; opacity: 0; }
.elementor-editor-active .gc-hb__phone-svg { animation: none; }

/* ── Reduce motion ── */
@media (prefers-reduced-motion: reduce) {
    .gc-hb__ring,
    .gc-hb__phone-svg,
    .gc-hb__wx-loading { animation: none !important; }
    .gc-hb__ring { opacity: 0; }
}
